1 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
2 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4 * doc/invoke.texi (-mlwp): Add documentation.
5 * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
6 * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
8 * config/i386/lwpintrin.h: New file, provide x86 compiler
10 * config/i386/cpuid.h (bit_LWP): Define LWP bit.
11 * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
12 * config/i386/i386-c.c (ix86_target_macros_internal): Check
14 * config/i386/i386.h (TARGET_LWP): New macro for LWP.
15 * config/i386/i386.opt (-mlwp): New switch for LWP support.
16 * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
17 (OPTION_MASK_ISA_LWP_UNSET): New.
18 (ix86_handle_option): Handle -mlwp.
19 (isa_opts): Handle -mlwp.
20 (enum pta_flags): Add PTA_LWP.
21 (override_options): Add LWP support.
22 (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
23 (IX86_BUILTIN_LLWPCB32): Ditto.
24 (IX86_BUILTIN_LLWPCB64): Ditto.
25 (IX86_BUILTIN_SLWPCB16): Ditto.
26 (IX86_BUILTIN_SLWPCB32): Ditto.
27 (IX86_BUILTIN_SLWPCB64): Ditto.
28 (IX86_BUILTIN_LWPVAL16): Ditto.
29 (IX86_BUILTIN_LWPVAL32): Ditto.
30 (IX86_BUILTIN_LWPVAL64): Ditto.
31 (IX86_BUILTIN_LWPINS16): Ditto.
32 (IX86_BUILTIN_LWPINS32): Ditto.
33 (IX86_BUILTIN_LWPINS64): Ditto.
34 (enum ix86_special_builtin_type): Add LWP intrinsic support.
35 (builtin_description): Ditto.
36 (ix86_init_mmx_sse_builtins): Ditto.
37 (ix86_expand_special_args_builtin): Ditto.
38 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
40 (UNSPEC_SLWP_INTRINSIC): Ditto.
41 (UNSPECV_LWPVAL_INTRINSIC): Ditto.
42 (UNSPECV_LWPINS_INTRINSIC): Ditto.
43 (lwp_llwpcbhi1): New lwp pattern.
44 (lwp_llwpcbsi1): Ditto.
45 (lwp_llwpcbdi1): Ditto.
46 (lwp_slwpcbhi1): Ditto.
47 (lwp_slwpcbsi1): Ditto.
48 (lwp_slwpcbdi1): Ditto.
49 (lwp_lwpvalhi3): Ditto.
50 (lwp_lwpvalsi3): Ditto.
51 (lwp_lwpvaldi3): Ditto.
52 (lwp_lwpinshi3): Ditto.
53 (lwp_lwpinssi3): Ditto.
54 (lwp_lwpinsdi3): Ditto.
56 2009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
57 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
60 * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
63 2009-11-04 Richard Guenther <rguenther@suse.de>
64 Rafael Avila de Espindola <espindola@google.com>
66 * gcc.c (process_command): Handle arguments name@offset.
68 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
69 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
71 * config.gcc (i[34567]86-*-*): Include xopintrin.h.
73 * config/i386/xopintrin.h: New file, provide common x86 compiler
75 * config/i386/cpuid.h (bit_XOP): Define XOP bit.
76 * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
77 * config/i386/i386-c.c(ix86_target_macros_internal): Check
79 * config/i386/i386.h(TARGET_XOP): New macro for XOP.
80 * config/i386/i386.opt (-mxop): New switch for XOP support.
81 * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
82 (UNSPEC_XOP_TRUEFALSE)
84 (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
85 (PPERM_*): New constants for vpperm instruction.
86 (xop_pcmov_<mode>): Add XOP conditional mov instructions.
87 * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
88 (OPTION_MASK_ISA_XOP_UNSET): New.
89 (OPTION_MASK_ISA_XOP_UNSET): Change definition to
91 (ix86_handle_option): Handle -mxop.
92 (isa_opts): Handle -mxop.
93 (enum pta_flags): Add PTA_XOP.
94 (override_options): Add XOP support.
95 (print_operand): Add code for XOP compare instructions.
96 (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
97 (ix86_expand_int_vcond): Extend for XOP compare instruction.
99 (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
100 (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
101 (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
102 (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
103 (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
104 (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
105 (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
107 (IX86_BUILTIN_VPCMOV256): Ditto.
108 (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
109 (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
110 (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
111 (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
112 (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
113 (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
115 (IX86_BUILTIN_VPPERM): Ditto.
117 (IX86_BUILTIN_VPMACSSWW): Ditto.
118 (IX86_BUILTIN_VPMACSWW): Ditto.
119 (IX86_BUILTIN_VPMACSSWD): Ditto.
120 (IX86_BUILTIN_VPMACSWD): Ditto.
121 (IX86_BUILTIN_VPMACSSDD): Ditto.
122 (IX86_BUILTIN_VPMACSDD): Ditto.
123 (IX86_BUILTIN_VPMACSSDQL): Ditto.
124 (IX86_BUILTIN_VPMACSSDQH): Ditto.
125 (IX86_BUILTIN_VPMACSDQL): Ditto.
126 (IX86_BUILTIN_VPMACSDQH): Ditto.
127 (IX86_BUILTIN_VPMADCSSWD): Ditto.
128 (IX86_BUILTIN_VPMADCSWD): Ditto.
130 (IX86_BUILTIN_VPHADDBW): Ditto.
131 (IX86_BUILTIN_VPHADDBD): Ditto.
132 (IX86_BUILTIN_VPHADDBQ): Ditto.
133 (IX86_BUILTIN_VPHADDWD): Ditto.
134 (IX86_BUILTIN_VPHADDWQ): Ditto.
135 (IX86_BUILTIN_VPHADDDQ): Ditto.
136 (IX86_BUILTIN_VPHADDUBW): Ditto.
137 (IX86_BUILTIN_VPHADDUBD): Ditto.
138 (IX86_BUILTIN_VPHADDUBQ): Ditto.
139 (IX86_BUILTIN_VPHADDUWD): Ditto.
140 (IX86_BUILTIN_VPHADDUWQ): Ditto.
141 (IX86_BUILTIN_VPHADDUDQ): Ditto.
142 (IX86_BUILTIN_VPHSUBBW): Ditto.
143 (IX86_BUILTIN_VPHSUBWD): Ditto.
144 (IX86_BUILTIN_VPHSUBDQ): Ditto.
146 (IX86_BUILTIN_VPROTB): Ditto.
147 (IX86_BUILTIN_VPROTW): Ditto.
148 (IX86_BUILTIN_VPROTD): Ditto.
149 (IX86_BUILTIN_VPROTQ): Ditto.
150 (IX86_BUILTIN_VPROTB_IMM): Ditto.
151 (IX86_BUILTIN_VPROTW_IMM): Ditto.
152 (IX86_BUILTIN_VPROTD_IMM): Ditto.
153 (IX86_BUILTIN_VPROTQ_IMM): Ditto.
155 (IX86_BUILTIN_VPSHLB): Ditto.
156 (IX86_BUILTIN_VPSHLW): Ditto.
157 (IX86_BUILTIN_VPSHLD): Ditto.
158 (IX86_BUILTIN_VPSHLQ): Ditto.
159 (IX86_BUILTIN_VPSHAB): Ditto.
160 (IX86_BUILTIN_VPSHAW): Ditto.
161 (IX86_BUILTIN_VPSHAD): Ditto.
162 (IX86_BUILTIN_VPSHAQ): Ditto.
164 (IX86_BUILTIN_VFRCZSS): Ditto.
165 (IX86_BUILTIN_VFRCZSD): Ditto.
166 (IX86_BUILTIN_VFRCZPS): Ditto.
167 (IX86_BUILTIN_VFRCZPD): Ditto.
168 (IX86_BUILTIN_VFRCZPS256): Ditto.
169 (IX86_BUILTIN_VFRCZPD256): Ditto.
171 (IX86_BUILTIN_VPCOMEQUB): Ditto.
172 (IX86_BUILTIN_VPCOMNEUB): Ditto.
173 (IX86_BUILTIN_VPCOMLTUB): Ditto.
174 (IX86_BUILTIN_VPCOMLEUB): Ditto.
175 (IX86_BUILTIN_VPCOMGTUB): Ditto.
176 (IX86_BUILTIN_VPCOMGEUB): Ditto.
177 (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
178 (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
180 (IX86_BUILTIN_VPCOMEQUW): Ditto.
181 (IX86_BUILTIN_VPCOMNEUW): Ditto.
182 (IX86_BUILTIN_VPCOMLTUW): Ditto.
183 (IX86_BUILTIN_VPCOMLEUW): Ditto.
184 (IX86_BUILTIN_VPCOMGTUW): Ditto.
185 (IX86_BUILTIN_VPCOMGEUW): Ditto.
186 (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
187 (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
189 (IX86_BUILTIN_VPCOMEQUD): Ditto.
190 (IX86_BUILTIN_VPCOMNEUD): Ditto.
191 (IX86_BUILTIN_VPCOMLTUD): Ditto.
192 (IX86_BUILTIN_VPCOMLEUD): Ditto.
193 (IX86_BUILTIN_VPCOMGTUD): Ditto.
194 (IX86_BUILTIN_VPCOMGEUD): Ditto.
195 (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
196 (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
198 (IX86_BUILTIN_VPCOMEQUQ): Ditto.
199 (IX86_BUILTIN_VPCOMNEUQ): Ditto.
200 (IX86_BUILTIN_VPCOMLTUQ): Ditto.
201 (IX86_BUILTIN_VPCOMLEUQ): Ditto.
202 (IX86_BUILTIN_VPCOMGTUQ): Ditto.
203 (IX86_BUILTIN_VPCOMGEUQ): Ditto.
204 (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
205 (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
207 (IX86_BUILTIN_VPCOMEQB): Ditto.
208 (IX86_BUILTIN_VPCOMNEB): Ditto.
209 (IX86_BUILTIN_VPCOMLTB): Ditto.
210 (IX86_BUILTIN_VPCOMLEB): Ditto.
211 (IX86_BUILTIN_VPCOMGTB): Ditto.
212 (IX86_BUILTIN_VPCOMGEB): Ditto.
213 (IX86_BUILTIN_VPCOMFALSEB): Ditto.
214 (IX86_BUILTIN_VPCOMTRUEB): Ditto.
216 (IX86_BUILTIN_VPCOMEQW): Ditto.
217 (IX86_BUILTIN_VPCOMNEW): Ditto.
218 (IX86_BUILTIN_VPCOMLTW): Ditto.
219 (IX86_BUILTIN_VPCOMLEW): Ditto.
220 (IX86_BUILTIN_VPCOMGTW): Ditto.
221 (IX86_BUILTIN_VPCOMGEW): Ditto.
222 (IX86_BUILTIN_VPCOMFALSEW): Ditto.
223 (IX86_BUILTIN_VPCOMTRUEW): Ditto.
225 (IX86_BUILTIN_VPCOMEQD): Ditto.
226 (IX86_BUILTIN_VPCOMNED): Ditto.
227 (IX86_BUILTIN_VPCOMLTD): Ditto.
228 (IX86_BUILTIN_VPCOMLED): Ditto.
229 (IX86_BUILTIN_VPCOMGTD): Ditto.
230 (IX86_BUILTIN_VPCOMGED): Ditto.
231 (IX86_BUILTIN_VPCOMFALSED): Ditto.
232 (IX86_BUILTIN_VPCOMTRUED): Ditto.
234 (IX86_BUILTIN_VPCOMEQQ): Ditto.
235 (IX86_BUILTIN_VPCOMNEQ): Ditto.
236 (IX86_BUILTIN_VPCOMLTQ): Ditto.
237 (IX86_BUILTIN_VPCOMLEQ): Ditto.
238 (IX86_BUILTIN_VPCOMGTQ): Ditto.
239 (IX86_BUILTIN_VPCOMGEQ): Ditto.
240 (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
241 (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
243 (enum multi_arg_type): New enum for describing the various XOP
244 intrinsic argument types.
245 (bdesc_multi_arg): New table for XOP intrinsics.
246 (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
247 (ix86_expand_multi_arg_builtin): New function for creating XOP
250 * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
251 (xop_pmacsww): Ditto.
252 (xop_pmacssww): Ditto.
253 (xop_pmacsdd): Ditto.
254 (xop_pmacssdd): Ditto.
255 (xop_pmacssdql): Ditto.
256 (xop_pmacssdqh): Ditto.
257 (xop_pmacsdql): Ditto.
258 (xop_pmacsdql_mem): Ditto.
259 (xop_mulv2div2di3_low): Ditto.
260 (xop_pmacsdqh): Ditto.
261 (xop_pmacsdqh_mem): Ditto.
262 (xop_mulv2div2di3_high): Ditto.
263 (xop_pmacsswd): Ditto.
264 (xop_pmacswd): Ditto.
265 (xop_pmadcsswd): Ditto.
266 (xop_pmadcswd): Ditto.
267 (xop_pcmov_<mode>): Ditto.
268 (xop_pcmov_<mode>)256: Ditto.
269 (xop_phaddbw): Ditto.
270 (xop_phaddbd): Ditto.
271 (xop_phaddbq): Ditto.
272 (xop_phaddwd): Ditto.
273 (xop_phaddwq): Ditto.
274 (xop_phadddq): Ditto.
275 (xop_phaddubw): Ditto.
276 (xop_phaddubd): Ditto.
277 (xop_phaddubq): Ditto.
278 (xop_phadduwd): Ditto.
279 (xop_phadduwq): Ditto.
280 (xop_phaddudq): Ditto.
281 (xop_phsubbw): Ditto.
282 (xop_phsubwd): Ditto.
283 (xop_phsubdq): Ditto.
285 (rotl<mode>3): Ditto.
286 (rotr<mode>3): Ditto.
287 (xop_rotl<mode>3): Ditto.
288 (xop_rotr<mode>3): Ditto.
289 (vrotr<mode>3): Ditto.
290 (vrotl<mode>3): Ditto.
291 (xop_vrotl<mode>3): Ditto.
292 (vlshr<mode>3): Ditto.
293 (vashr<mode>3): Ditto.
295 (xop_ashl<mode>3): Ditto.
296 (xop_lshl<mode>3): Ditto.
301 (xop_frcz<mode>2): Ditto.
302 (xop_vmfrcz<mode>2): Ditto.
303 (xop_frcz<mode>2256): Ditto.
304 (xop_maskcmp<mode>3): Ditto.
305 (xop_maskcmp_uns<mode>3): Ditto.
306 (xop_maskcmp_uns2<mode>3): Ditto.
307 (xop_pcom_tf<mode>3): Ditto.
309 * doc/invoke.texi (-mxop): Add documentation.
310 * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
312 2009-11-03 Mark Mitchell <mark@codesourcery.com>
315 * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
316 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
317 * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
319 2009-11-04 Richard Earnshaw <rearnsha@arm.com>
322 * arm.md (peephole2 patterns for move and compare): New.
324 2009-11-04 Nick Clifton <nickc@redhat.com>
326 * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
327 Make sure that it does not allow CONST_DOUBLEs.
328 * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
329 * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
330 * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
331 * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
332 * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
333 * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
334 * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
335 * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
336 * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
337 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
338 * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
339 * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
340 * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
341 * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
342 * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
344 2009-11-04 Richard Guenther <rguenther@suse.de>
346 PR tree-optimization/41919
347 * tree-vrp.c (test_for_singularity): Properly compare values.
349 2009-11-04 Revital Eres <eres@il.ibm.com>
351 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
352 Consider peeling for alignment only for stores and remove
353 redundant assignment.
355 2009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
358 * config/m68k/m68k.c (m68k_reg_present_p): New static function.
359 (m68k_ok_for_sibcall_p): Handle different result return locations.
361 2009-11-04 Richard Guenther <rguenther@suse.de>
363 * c-opts.c (c_common_post_options): Move LTO option processing
365 * opts.c (decode_options): ... here.
367 2009-11-04 Jakub Jelinek <jakub@redhat.com>
369 * c-common.c (fold_offsetof_1): Use %wd instead of
370 HOST_WIDE_INT_PRINT_DEC.
372 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
374 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
377 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
379 * config.gcc (vax-*-linux*): Keep the original contents of
380 tmake_file while adding vax/t-linux.
382 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
386 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
387 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
388 (STACK_CHECK_MOVING_SP): Likewise.
389 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
390 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
391 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
392 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
393 Document PROBE_STACK.
394 * explow.c (anti_adjust_stack_and_probe): New function.
395 (allocate_dynamic_stack_space): Do not directly allocate space if
396 STACK_CHECK_MOVING_SP, instead invoke above function.
397 (emit_stack_probe): Handle probe_stack insn.
398 (PROBE_INTERVAL): New macro.
399 (STACK_GROW_OPTAB): Likewise.
400 (STACK_GROW_OFF): Likewise.
401 (probe_stack_range): Use Pmode and memory_address consistently. Fix
402 loop condition in the small constant case. Rewrite in the general
403 case to be immune to wraparounds. Make sure the address of probes
404 is valid. Try to use [base + disp] addressing mode if possible.
405 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
406 checking is enabled and STACK_CHECK_MOVING_SP.
407 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
408 return 1 for volatile references to the stack pointer.
409 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
410 __builtin_alloca if stack checking is enabled.
411 * unwind-dw2.c (uw_identify_context): Take into account whether the
412 context is that of a signal frame or not.
413 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
414 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
416 2009-11-03 Jakub Jelinek <jakub@redhat.com>
418 PR rtl-optimization/41917
419 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
420 operand isn't known to be 0, return 1.
422 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
424 * config/mips/mips.md: Fix typos.
426 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
428 * doc/invoke.texi: Fix typo.
430 2009-11-03 Paul Brook <paul@codesourcery.com>
432 * config/arm/neon.ml (vectype): Add T_floatSF.
433 (string_of_vectype): Ditto.
434 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
435 (deftypes): Use float for float32_t.
436 * config/arm/arm_neon.h: Regenerate.
438 2009-11-03 Nick Clifton <nickc@redhat.com>
439 Kevin Buettner <kevinb@redhat.com>
441 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
442 order of expected registers.
443 (rx_load_multiple_vector): Likewise.
444 (rx_rtsd_vector): Likewise.
445 * config/rx/rx.c (rx_cpu_type): New variable.
446 (rx_print_operand): Fix bug printing 64-bit constant values.
447 (rx_emit_stack_pushm): Reverse order of pushed registers.
448 (gen_rx_store_vector): Likewise.
449 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
451 (is_exception_func): Rename to is_interrupt_func and only accept
452 "interrupt" as the attribute name.
453 (rx_get_stack_layout): Use new function name.
454 (rx_func_attr_inlinable): Likewise.
455 (rx_attribute_table): Remove "exception".
456 (rx_expand_prologue): If necessary push the accumulator register
457 in the prologue of interrupt functions.
458 (rx_expand_epilogue): If necessary pop the accumulator.
459 (rx_builtins): Add RX_BUILTIN_MVTIPL.
460 (rx_expand_builtin_stz): Remove.
461 (rx_expand_builtin_mvtipl): New function.
462 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
463 (rx_expand_builtin): Likewise.
464 (rx_enable_fpu): New variable.
465 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
466 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
467 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
468 (enum rx_cpu_types): Define.
469 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
470 (INCOMING_FRAME_SP_OFFSET): Define.
471 (ARG_POINTER_CFA_OFFSET): Define.
472 (FRAME_POINTER_CFA_OFFSET): Define.
473 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
474 (ALLOW_RX_FPU_INSNS): Define.
475 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
476 fast_math_flags_set_p.
477 (UNSPEC_BUILTIN_MVTIPL): Define.
478 (revl): Rename to bswapsi2.
479 (bswaphi2): New pattern.
480 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
483 (mvtc): Remove clobber of cc0.
486 * config/rx/rx.opt (mieee): Remove.
491 (msave-acc-in-interrupts): Add.
492 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
493 (MULTILIB_DIRS): Likewise.
494 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
495 * doc/extend.texi: Remove description of "exception" function
497 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
498 -msave-acc-in-interrupts options.
500 2009-11-03 Richard Guenther <rguenther@suse.de>
502 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
504 2009-11-03 Dodji Seketeli <dodji@redhat.com>
507 * c-common.c (fold_offsetof_1): Issue errors when the member designator
508 of the offsetof expression is not legitimate.
510 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
512 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
513 names instead of numerical constants.
514 (sse_prologue_save): Ditto.
515 (*sse_prologue_save_insn): Ditto.
517 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
520 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
521 (TARGET_CALL_ESP): New define.
522 * config/i386/i386.c (initial_ix86_tune_features): Initialize
524 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
525 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
526 *call_1, *call_value_pop_1 and *call_value_1. Depend on
528 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
529 New patterns, use "lsm" as operand 1 constraint.
530 * config/i386/predicates.md (call_insn_operand): Depend on
531 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
533 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
535 PR tree-optimization/41857
536 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
537 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
539 * tree-ssa-address.c (move_hint_to_base): New function.
540 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
541 address space associated with TYPE.
542 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
543 most_expensive_mult_to_index. Call move_hint_to_base.
544 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
545 TYPE to addr_to_parts.
547 2009-11-02 Martin Jambor <mjambor@suse.cz>
549 PR tree-optimization/41750
550 * tree-sra.c (analyze_modified_params): Loop over all
551 representatives of components of a parameter.
553 2009-11-02 Jakub Jelinek <jakub@redhat.com>
555 PR tree-optimization/41841
556 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
557 local variables of not yet materialized clones.
560 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
561 for a VOIDmode variable.
564 * c-pragma.c (visstack): Change into vector of ints rather than
565 enum symbol_visibility.
566 (push_visibility): Add kind argument, push default_visibility together
568 (pop_visibility): Add kind argument, return true if successful, fail
569 if visibility stack is empty or if stack top is of different kind.
570 (handle_pragma_visibility): Don't check length of visstack, instead
571 call pop_visibility and issue diagnostics if it failed. Pass 0
572 as last argument to push_visibility and pop_visibility.
573 * c-pragma.h (push_visibility): Add kind argument.
574 (pop_visibility): Likewise. Return bool instead of void.
576 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
578 * tree.def (TARGET_MEM_REF): Update comment.
579 * alias.c (get_alias_set): Retrieve the original memory reference for
580 a TARGET_MEM_REF before proceeding.
582 2009-10-31 Anatoly Sokolov <aesok@post.ru>
584 * config/frv/frv.c (frv_function_value, frv_libcall_value,
585 frv_function_value_regno_p): New functions.
586 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
587 * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
588 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
589 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
591 2009-10-31 Anatoly Sokolov <aesok@post.ru>
593 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
594 new 'outgoing' argument.
595 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
596 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
597 * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
598 LIBCALL_VALUE): Remove.
599 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
600 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
601 (mh10300_function_value_regno_p): Declare.
603 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
605 * config/arm/cortex-a9.md: New - integer pipeline description.
607 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
609 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
610 aborting if the sizes of the two references don't match.
612 2009-10-31 Toon Moene <toon@moene.org>
614 * ipa-inline.c (cgraph_decide_inlining):
615 Include reason for not inlining called-once functions in dump file.
617 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
619 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
620 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
621 (LINK_SPEC): BE_LINK_SPEC added.
623 2009-10-30 Richard Guenther <rguenther@suse.de>
626 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
628 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
630 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
631 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
634 2009-10-30 Martin Jambor <mjambor@suse.cz>
636 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
638 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
641 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
642 first. Move assert on stack_alignment_estimated just before
643 setting stack_realign_needed.
644 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
645 Don't call update_stack_boundary.
647 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
648 (verride_options): Don't check ix86_force_align_arg_pointer here.
649 (ix86_function_ok_for_sibcall): Use it.
650 (ix86_update_stack_boundary): Likewise.
652 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
654 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
656 * arm.md (QHSI): New mode iterator.
657 (movqi): If generating for thumb, then truncate any immediate to
659 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
661 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
664 2009-10-29 Cary Coutant <ccoutant@google.com>
667 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
668 locations in the source).
669 (store_vcall_insn): New function.
670 (lookup_vcall_insn): New function.
671 (dwarf2out_virtual_call_token): Use store_vcall_insn.
672 (dwarf2out_copy_call_info): New function.
673 (dwarf2out_virtual_call): Use lookup_vcall_insn.
674 * emit-rtl.c (try_split): Call copy_call_info debug hook.
675 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
676 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
677 (debug_nothing_rtx_rtx): New dummy hook.
678 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
679 (xcoff_debug_hooks): Likewise.
680 * sdbout.c (sdb_debug_hooks): Likewise.
681 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
683 2009-10-29 David Daney <ddaney@caviumnetworks.com>
685 * doc/invoke.texi (mmcount-ra-address): Document new command line
687 * config/mips/mips.opt (mmcount-ra-address): New option.
688 * config/mips/mips-protos.h (mips_function_profiler): Declare new
690 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
692 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
693 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
695 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
696 mips_function_profiler.
698 2009-10-29 Steve Ellcey <sje@cup.hp.com>
702 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
703 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
704 * optc-gen.awk (cl_target_option_restore): Include call to
705 targetm.override_options_after_change.
706 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
707 * target.h (override_options_after_change): New.
708 * c-common.c (parse_optimize_options): Call
709 targetm.override_options_after_change.
710 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
711 (ia64_override_options_after_change): New.
712 (ia64_override_options) Add call to above.
714 2009-10-29 Michael Matz <matz@suse.de>
716 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
717 (gate_convert_to_rsqrt): Ditto.
718 (pass_convert_to_rsqrt): Ditto.
719 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
720 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
723 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
725 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
727 * config/arm/arm.c (find_best_start): Fix type of remainder to be
730 2009-10-29 Martin Jambor <mjambor@suse.cz>
732 PR tree-optimization/41775
733 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
734 (generate_subtree_copies): Do not unshare agg.
735 (load_assign_lhs_subreplacements): Do not unshare rhs.
736 (sra_modify_assign): Do not unshare exprs.
737 (propagate_subacesses_accross_link): Renamed to
738 propagate_subaccesses_across_link.
740 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
742 * arm.c (count_insns_for_constant): Rework to support counting for
743 thumb2 immediates as well.
744 (find_best_start): Split out from arm_gen_constant.
745 (arm_gen_constant): Rework to support XOR with immediate.
747 2009-10-29 Chao-ying Fu <fu@mips.com>
749 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
751 (mips_expand_synci_loop): Use the length rtx to control the
752 synci loop from the begin rtx that points to the first byte of
755 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
757 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
759 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
761 * dbxout.c (dbxout_common_check): Accept non public trees.
762 * dwarf2out.c (fortran_common): Accept non public trees.
764 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
766 * common.opt (fuse-linker-plugin): New option.
767 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
769 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
771 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
773 PR rtl-optimization/39715
774 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
775 (gen_cstoresi_ltu_thumb1): New splitter.
777 2009-10-28 Richard Guenther <rguenther@suse.de>
781 * tree-ssa.c (useless_type_conversion_p): Do not treat
782 conversions to pointers to incomplete types as useless.
783 * gimple.c (gimple_types_compatible_p): Compare struct tags,
786 2009-10-28 Jakub Jelinek <jakub@redhat.com>
788 * var-tracking.c (emit_note_insn_var_location): Don't call the second
789 vt_expand_loc unnecessarily when location is not a register nor
793 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
794 fields don't have DECL_NAME.
797 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
798 call convert_memory_address on addr.
801 * config/i386/i386.c (ix86_pic_register_p): Don't call
802 rtx_equal_for_cselib_p for VALUEs discarded as useless.
804 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
806 * var-tracking.c (emit_note_insn_var_location): Get the mode of
807 a variable part from its REG, MEM or VALUE.
809 2009-10-28 Richard Guenther <rguenther@suse.de>
811 * gimple.c (gimple_get_alias_set): Fix comment typo.
813 2009-10-28 Richard Guenther <rguenther@suse.de>
815 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
816 (free_lang_data): Unconditionally compute alias sets for all
817 standard integer types. Bail out if gate bailed out previously.
818 Do not reset the types_compatible_p langhook.
819 (gate_free_lang_data): Remove.
820 (struct pass_ipa_free_lang_data): Enable unconditionally.
821 * gimple.c (gimple_get_alias_set): Use the same alias-set for
824 2009-10-28 Richard Guenther <rguenther@suse.de>
827 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
828 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
829 (call_may_clobber_ref_p_1): Likewise.
830 * tree-ssa-structalias.c (find_func_aliases): Likewise.
831 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
833 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
835 PR rtl-optimization/41812
838 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
840 * df-problems.c (df_md_scratch): New.
841 (df_md_alloc, df_md_free): Allocate/free it.
842 (df_md_local_compute): Only include live registers in init.
843 (df_md_transfer_function): Prune the in-set computed by
844 the confluence function, and the gen-set too.
846 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
848 PR rtl-optimization/39715
849 * combine.c (simplify_comparison): Use extensions to
850 widen comparisons. Try an ANDing first.
852 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
854 PR rtl-optimization/40741
855 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
856 a small constant is cheap.
857 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
858 force_reg on the LHS.
859 (xorsi3): Likewise, and split the XOR if the constant is complex
860 and not in Thumb mode.
862 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
864 * expmed.c (emit_store_flag): Check costs before
865 transforming to the opposite representation.
867 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
869 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
870 cstore result to DImode.
872 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
874 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
875 inside the unspec vector.
877 2009-10-27 Richard Henderson <rth@redhat.com>
879 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
881 2009-10-27 Richard Henderson <rth@redhat.com>
884 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
885 eh_region_may_contain_throw; update users.
886 (eh_region_may_contain_throw): New function.
887 (lower_catch): Check flag_exceptions before creating exception region.
888 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
889 (lower_cleanup): Tidy existing flag_exceptions check to match.
891 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
894 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
895 * config/i386/mingw.opt: Add fset-stack-executable.
896 * config/i386/i386.c (ix86_trampoline_init): Make call to
897 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
898 defined and its value is not zero.
901 2009-10-27 Richard Guenther <rguenther@suse.de>
903 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
904 handle calls to externally visible functions like in regular mode.
905 (create_variable_info_for): Do not create function infos here.
906 (have_alias_info): Remove write-only variable.
907 (solve_constraints): New function split out from common code
908 in compute_points_to_sets and ipa_pta_execute.
909 (compute_points_to_sets): Adjust.
910 (ipa_pta_execute): Likewise. Handle clones and externally visible
911 functions like in non-IPA mode.
913 2009-10-27 Jakub Jelinek <jakub@redhat.com>
916 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
919 2009-10-27 Richard Guenther <rguenther@suse.de>
921 * tree-complex.c (expand_complex_div_wide): Check for
922 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
924 2009-10-27 Revital Eres <eres@il.ibm.com>
926 PR tree-optimization/40648
927 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
928 Change decision of when to peel for alignment.
930 2009-10-27 Richard Guenther <rguenther@suse.de>
933 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
935 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
938 * fold-const.c (fold_binary_loc): Do not call
939 protected_set_expr_location.
941 2009-10-27 Wei Guozhi <carrot@google.com>
944 * target.h (have_conditional_execution): Add a new target hook
946 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
947 * targhooks.h (default_have_conditional_execution): Likewise.
948 * targhooks.c (default_have_conditional_execution): Likewise.
949 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
950 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
951 (arm_have_conditional_execution): New function.
952 * ifcvt.c (noce_process_if_block, find_if_header,
953 cond_exec_find_if_block, dead_or_predicable): Change the usage of
954 macro HAVE_conditional_execution to a target hook call.
955 * recog.c (peephole2_optimize): Likewise.
956 * sched-rgn.c (add_branch_dependences): Likewise.
957 * final.c (asm_insn_count, final_scan_insn): Likewise.
958 * bb-reorder.c (HAVE_conditional_execution): Remove it.
960 2009-10-26 Ben Elliston <bje@au.ibm.com>
961 Michael Meissner <meissner@linux.vnet.ibm.com>
962 Ulrich Weigand <uweigand@de.ibm.com>
964 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
965 * config/spu/spu_cache.h: New file.
967 * config/spu/cachemgr.c: New file.
968 * config/spu/cache.S: New file.
970 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
971 (ADDR_SPACE_EA): Define.
972 (TARGET_ADDR_SPACE_KEYWORDS): Define.
973 * config/spu/spu.c (EAmode): New macro.
974 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
975 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
976 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
977 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
978 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
979 (TARGET_ADDR_SPACE_CONVERT): Likewise.
980 (TARGET_ASM_SELECT_SECTION): Likewise.
981 (TARGET_ASM_UNIQUE_SECTION): Likewise.
982 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
983 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
984 (ea_symbol_ref): New function.
985 (spu_legitimate_constant_p): Handle __ea qualified addresses.
986 (spu_addr_space_legitimate_address_p): New function.
987 (spu_addr_space_legitimize_address): Likewise.
988 (cache_fetch): New global.
989 (cache_fetch_dirty): Likewise.
990 (ea_alias_set): Likewise.
991 (ea_load_store): New function.
992 (ea_load_store_inline): Likewise.
993 (expand_ea_mem): Likewise.
994 (spu_expand_mov): Handle __ea qualified memory references.
995 (spu_addr_space_pointer_mode): New function.
996 (spu_addr_space_address_mode): Likewise.
997 (spu_addr_space_subset_p): Likewise.
998 (spu_addr_space_convert): Likewise.
999 (spu_section_type_flags): Handle "._ea" section.
1000 (spu_select_section): New function.
1001 (spu_unique_section): Likewise.
1002 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
1003 and __EA64__ predefined macros.
1004 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
1005 -matomic-updates switches.
1007 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
1008 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
1009 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
1010 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
1011 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
1012 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
1013 $(T)cache128k.o): Likewise.
1014 ($(T)libgcc_%.a): Likewise.
1016 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
1017 * config/spu/spu.opt (-mea32/-mea64): Add switches.
1018 (-maddress-space-conversion): Likewise.
1019 (-mcache-size=): Likewise.
1020 (-matomic-updates): Likewise.
1021 * doc/invoke.texi (-mea32/-mea64): Document.
1022 (-maddress-space-conversion): Likewise.
1023 (-mcache-size=): Likewise.
1024 (-matomic-updates): Likewise.
1026 2009-10-26 Ben Elliston <bje@au.ibm.com>
1027 Michael Meissner <meissner@linux.vnet.ibm.com>
1028 Ulrich Weigand <uweigand@de.ibm.com>
1030 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
1032 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
1033 defined, add the named address space keywords.
1034 (c_addr_space_name): New function.
1035 (complete_array_type): Preserve named address space.
1036 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
1037 instead of targetm.valid_pointer_mode.
1039 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
1040 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
1041 (ADDR_SPACE_KEYWORD): New macro.
1042 (c_addr_space_name): Add prototype.
1044 * c-tree.h (struct c_declspecs): Add address_space member.
1045 (declspecs_add_addrspace): Add prototype.
1047 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
1049 * c-parser.c (c_parse_init): Add assertion.
1050 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
1051 (c_lex_one_token): Handle address space keywords.
1052 (c_token_starts_typename): Likewise.
1053 (c_token_starts_declspecs): Likewise.
1054 (c_parser_declspecs): Likewise.
1055 (c_parser_postfix_expression_after_paren_type): Diagnose compound
1056 literal within function qualified with named address space.
1058 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
1059 address space qualifiers.
1060 (shadow_tag_warned): Warn about useless address space qualifiers.
1061 (quals_from_declspecs): Handle address space qualifiers.
1062 (grokdeclarator): Likewise.
1063 (build_null_declspecs): Likewise.
1064 (declspecs_add_addrspace): New function.
1066 * c-typeck.c (addr_space_superset): New function.
1067 (qualify_type): Handle named address spaces.
1068 (composite_type): Likewise.
1069 (common_pointer_type): Likewise.
1070 (comp_target_types): Likewise.
1071 (build_conditional_expr): Likewise.
1072 (handle_warn_cast_qual): Likewise.
1073 (build_c_cast): Likewise.
1074 (convert_for_assignment): Likewise.
1075 (build_binary_op): Likewise.
1076 (pointer_diff): Handle named address spaces. Use intermediate
1077 integer type of sufficient size if required.
1079 2009-10-26 Ben Elliston <bje@au.ibm.com>
1080 Michael Meissner <meissner@linux.vnet.ibm.com>
1081 Ulrich Weigand <uweigand@de.ibm.com>
1083 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
1084 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1085 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1087 * target.h (struct target_def): Add pointer_mode, address_mode,
1088 and valid_pointer_mode to addr_space substructure.
1089 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
1090 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1091 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1092 (TARGET_ADDR_SPACE_HOOKS): Add them.
1093 * targhooks.c (target_default_pointer_address_modes_p): New function.
1094 * target.h (target_default_pointer_address_modes_p): Add prototype.
1095 * targhooks.c (default_addr_space_pointer_mode): New function.
1096 (default_addr_space_address_mode): Likewise.
1097 (default_addr_space_valid_pointer_mode): Likewise.
1098 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
1099 (default_addr_space_address_mode): Likewise.
1100 (default_addr_space_valid_pointer_mode): Likewise.
1101 * output.h (default_valid_pointer_mode): Move to ...
1102 * targhooks.h (default_valid_pointer_mode): ... here.
1103 * varasm.c (default_valid_pointer_mode): Move to ...
1104 * targhooks.c (default_valid_pointer_mode): ... here.
1106 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
1107 instead of targetm.valid_pointer_mode.
1109 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
1110 * tree.c (integer_pow2p): Likewise.
1111 (tree_log2): Likewise.
1112 (tree_floor_log2): Likewise.
1113 (signed_or_unsigned_type_for): Support pointer type of different size.
1114 (int_or_pointer_precision): New function.
1115 * tree.h (int_or_pointer_precision): Add prototype.
1116 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
1117 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
1118 incoming pointer type instead of POINTER_SIZE.
1120 * tree.c (build_pointer_type): Use appropriate pointer mode
1121 instead of ptr_mode.
1122 (build_reference_type): Likewise.
1123 * expr.c (store_expr): Likewise.
1124 (expand_expr_addr_expr): Likewise.
1125 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
1126 * cfgexpand.c (expand_debug_expr): Likewise.
1128 * auto-inc-dec.c: Include "target.h".
1129 (try_merge): Use appropriate address mode instead of Pmode.
1130 (find_inc): Likewise.
1131 * combine.c (find_split_point): Likewise.
1132 * cselib.c (cselib_record_sets): Likewise.
1133 * dse.c (replace_inc_dec): Likewise.
1134 (canon_address): Likewise.
1135 * var-tracking.c (replace_expr_with_values): Likewise.
1136 (count_uses): Likewise.
1137 (add_uses): Likewise.
1138 (add_stores): Likewise.
1139 * emit-rtl.c: Include "target.h".
1140 (adjust_address_1): Use appropriate address mode instead of Pmode.
1141 (offset_address): Likewise.
1142 * explow.c (break_out_memory_refs): Likewise.
1143 (memory_address_addr_space): Likewise.
1144 (promote_mode): Likewise.
1145 * expr.c (move_by_pieces): Likewise.
1146 (emit_block_move_via_loop): Likewise.
1147 (store_by_pieces): Likewise.
1148 (store_by_pieces_1): Likewise.
1149 (expand_assignment): Likewise.
1150 (store_constructor): Likewise.
1151 (expand_expr_addr_expr): Likewise.
1152 (expand_expr_real_1): Likewise.
1153 * cfgexpand.c (expand_debug_expr): Likewise.
1154 * ifcvt.c (noce_try_cmove_arith): Likewise.
1155 * regcprop.c (kill_autoinc_value): Likewise.
1156 * regmove.c (try_auto_increment): Likewise.
1157 * reload.c (find_reloads): Likewise.
1158 (find_reloads_address): Likewise.
1159 (find_reloads_address_1): Likewise.
1160 * sched-deps.c: Include "target.h".
1161 (sched_analyze_1): Use appropriate address mode instead of Pmode.
1162 (sched_analyze_2): Likewise.
1163 * sel-sched-dump.c: Include "target.h".
1164 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
1165 * stor-layout.c (layout_type): Likewise.
1166 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1167 (multiplier_allowed_in_address_p): Likewise.
1168 (get_address_cost): Likewise.
1169 * varasm.c (make_decl_rtl): Likewise.
1171 * expr.c (expand_assignment): Always convert offsets to appropriate
1173 (store_expr): Likewise.
1174 (store_constructor): Likewise.
1175 (expand_expr_real_1): Likewise.
1177 * reload.h (form_sum): Add MODE argument.
1178 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
1179 Update recursive calls.
1180 (subst_indexed_address): Update calls to form_sum.
1182 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
1183 * tree-ssa-address.c: Include "target.h".
1184 (templates): Replace by ...
1185 (mem_addr_template_list): ... this new vector.
1186 (TEMPL_IDX): Handle address space numbers.
1187 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
1188 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
1189 instead of global cache. Update call to gen_addr_rtx.
1190 (valid_mem_ref_p): Update call to addr_for_mem_ref.
1191 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
1193 * rtl.h (convert_memory_address_addr_space): Add prototype.
1194 (convert_memory_address): Define as macro.
1195 * explow.c (convert_memory_address): Rename to ...
1196 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
1197 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
1198 Update recursive calls.
1199 (memory_address_addr_space): Call convert_memory_address_addr_space.
1200 * expmed.c (make_tree): Likewise.
1201 * expr.c (expand_assignment): Likewise.
1202 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
1203 (expand_expr_addr_expr): Likewise. Also, update call.
1205 * alias.c (find_base_value): Guard pointer size optimizations.
1206 (find_base_term): Likewise.
1207 * rtlanal.c (nonzero_bits1): Likewise.
1208 (num_sign_bit_copies1): Likewise.
1209 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1211 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
1212 (emit-rtl.o): Likewise.
1213 (auto-inc-dec.o): Likewise.
1214 (sched-deps.o): Likewise.
1216 2009-10-26 Ben Elliston <bje@au.ibm.com>
1217 Michael Meissner <meissner@linux.vnet.ibm.com>
1218 Ulrich Weigand <uweigand@de.ibm.com>
1220 * doc/extend.texi (Named Address Spaces): New section.
1221 * coretypes.h (addr_space_t): New type.
1222 (ADDR_SPACE_GENERIC): New define.
1223 (ADDR_SPACE_GENERIC_P): New macro.
1225 * doc/tm.texi (Named Address Spaces): New section.
1226 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
1227 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
1228 (TARGET_ADDR_SPACE_SUBSET_P): Document.
1229 (TARGET_ADDR_SPACE_CONVERT): Document.
1230 * target.h (struct gcc_target): Add addr_space substructure.
1231 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1232 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
1233 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
1234 (TARGET_ADDR_SPACE_CONVERT): Likewise.
1235 (TARGET_ADDR_SPACE_HOOKS): Likewise.
1236 (TARGET_INITIALIZER): Initialize addr_space hooks.
1237 * targhooks.c (default_addr_space_legitimate_address_p): New function.
1238 (default_addr_space_legitimize_address): Likewise.
1239 (default_addr_space_subset_p): Likewise.
1240 (default_addr_space_convert): Likewise.
1241 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
1242 (default_addr_space_legitimize_address): Likewise.
1243 (default_addr_space_subset_p): Likewise.
1244 (default_addr_space_convert): Likewise.
1246 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
1247 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
1248 (MEM_ADDR_SPACE): New macro.
1249 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
1250 address space memory attribute.
1251 (mem_attrs_htab_hash): Handle address space memory attribute.
1252 (mem_attrs_htab_eq): Likewise.
1253 (set_mem_attributes_minus_bitpos): Likewise.
1254 (set_mem_alias_set): Likewise.
1255 (set_mem_align): Likewise.
1256 (set_mem_expr): Likewise.
1257 (set_mem_offset): Likewise.
1258 (set_mem_size): Likewise.
1259 (adjust_address_1): Likewise.
1260 (offset_address): Likewise.
1261 (widen_memoy_address): Likewise.
1262 (get_spill_slot_decl): Likewise.
1263 (set_mem_attrs_for_spill): Likewise.
1264 (set_mem_addr_space): New function.
1265 * emit-rtl.h (set_mem_addr_space): Add prototype.
1266 * print-rtl.c (print_rtx): Print address space memory attribute.
1267 * expr.c (expand_assignment): Set address space memory attribute
1268 of generated MEM RTXes as appropriate.
1269 (expand_expr_real_1): Likewise.
1270 * cfgexpand.c (expand_debug_expr): Likewise.
1271 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1273 * tree.h (struct tree_base): Add address_space bitfield. Reduce
1274 size of "spare" bitfield.
1275 (TYPE_ADDR_SPACE): New macro.
1276 (ENCODE_QUAL_ADDR_SPACE): Likewise.
1277 (DECODE_QUAL_ADDR_SPACE): Likewise.
1278 (CLEAR_QUAL_ADDR_SPACE): Likewise.
1279 (KEEP_QUAL_ADDR_SPACE): Likewise.
1280 (TYPE_QUALS): Encode type address space.
1281 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
1282 * tree.c (set_type_quals): Set type address space.
1283 (build_array_type): Inherit array address space from element type.
1284 * print-tree.c (print_node_brief): Print type address space.
1285 (print_node): Likewise.
1286 * tree-pretty-print.c (dump_generic_node): Likewise.
1288 * explow.c (memory_address): Rename to ...
1289 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
1290 Use address-space aware variants of memory address routines.
1291 * recog.c (memory_address_p): Rename to ...
1292 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
1293 Use address-space aware variants of memory address routines.
1294 (offsettable_address_p): Rename to ...
1295 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
1296 Use address-space aware variants of memory address routines.
1297 * reload.c (strict_memory_address_p): Rename to ...
1298 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
1299 Use address-space aware variants of memory address routines.
1300 (maybe_memory_address_p): Rename to ...
1301 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
1302 Use address-space aware variants of memory address routines.
1303 * expr.h (memory_address_addr_space): Add prototype.
1304 (memory_address): Define as macro.
1305 * recog.h (memory_address_addr_space_p): Add prototype.
1306 (memory_address_p): Define as macro.
1307 (offsettable_address_addr_space_p): Add prototype.
1308 (offsettable_address_p): Define as macro.
1309 (strict_memory_address_addr_space_p): Add prototype.
1310 (strict_memory_address_p): Define as macro.
1312 * combine.c (find_split_point): Use address-space aware variants
1313 of memory address routines.
1314 * emit-rtl.c (operand_subword): Likewise.
1315 (change_address_1): Likewise.
1316 (adjust_address_1): Likewise.
1317 (offset_address): Likewise.
1318 * expr.c (emit_move_insn): Likewise.
1319 (expand_assignment): Likewise.
1320 (expand_expr_real_1): Likewise.
1321 * recog.c (verify_changes): Likewise.
1322 (general_operand): Likewise.
1323 (offsettable_memref_p): Likewise.
1324 (offsettable_nonstrict_memref_p): Likewise.
1325 (constrain_operands): Likewise.
1326 * reload.c (get_secondary_mem): Likewise.
1327 (find_reloads_toplev): Likewise.
1328 (find_reloads_address): Likewise.
1329 (find_reloads_subreg_address): Likewise.
1330 * reload1.c (reload): Likewise.
1331 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1332 * rtl.h (address_cost): Add ADDRSPACE argument.
1333 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
1334 aware variant of memory address routines.
1335 * loop-invariant.c (create_new_invariant): Update address_cost call.
1336 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1337 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
1338 Use address-space aware variant of memory address routines.
1339 (propagate_rtx_1): Update call to should_replace_address.
1340 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
1342 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
1343 ADDRSPACE argument. Use per-address-space instead of global cache.
1344 Use address-space aware variant of memory address routines.
1345 (get_address_cost): Likewise.
1346 (get_computation_cost_at): Update calls.
1347 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
1348 Use address-space aware variant of memory address routines.
1349 (create_mem_ref_raw): Update call to valid_mem_ref_p.
1350 (most_expensive_mult_to_index): Update call to
1351 multiplier_allowed_in_address_p.
1353 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
1354 attribute to indicate named address spaces.
1356 * varasm.c (get_variable_section): DECLs in named address spaces
1359 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
1360 for addresses in a non-generic address space.
1362 * expr.c (emit_block_move_hints): Do not use libcalls for
1363 memory in non-generic address spaces.
1364 (clear_storage_hints): Likewise.
1365 (expand_assignment): Likewise.
1367 * fold-const.c (operand_equal_p): Expressions refering to different
1368 address spaces are not equivalent.
1370 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
1371 spaces are not equivalent.
1372 (rtx_equal_p): Likewise.
1373 * cse.c (exp_equiv_p): Likewise.
1374 * jump.c (rtx_renumbered_equal_p): Likewise.
1375 * reload.c (operands_match_p): Likewise.
1377 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
1378 address spaces may alias.
1379 (true_dependence): Likewise.
1380 (canon_true_dependence): Likewise.
1381 (write_dependence_p): Likewise.
1383 * dse.c (canon_address): Handle named address spaces.
1384 * ifcvt.c (noce_try_cmove_arith): Likewise.
1386 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
1387 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
1388 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
1389 to handle conversions between different address spaces.
1390 * fold-const.c (fold_convert_loc): Likewise.
1391 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
1392 * tree-pretty-print.c (dump_generic_node): Likewise.
1393 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
1394 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
1395 * tree-inline.c (estimate_operator_cost): Likewise.
1396 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
1397 to different address spaces are not useless.
1399 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1402 * cfgcleanup.c (trivially_empty_bb_p): New function.
1403 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
1406 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
1407 add_name_and_src_coords_attributes, gen_namespace_die,
1408 dwarf2out_set_name): Handle dwarf2_name returning NULL.
1410 2009-10-26 Nick Clifton <nickc@redhat.com>
1412 * config.gcc: Add support for RX target.
1413 * config/rx: New directory.
1414 * config/rx/constraints.md: New file.
1415 * config/rx/predicates.md: New file.
1416 * config/rx/rx.c: New file.
1417 * config/rx/rx.h: New file.
1418 * config/rx/rx.md: New file.
1419 * config/rx/rx.opt: New file.
1420 * config/rx/rx-protos.h: New file.
1421 * config/rx/t-rx: New file.
1422 * doc/extend.texi: Document RX function attributes.
1423 * doc/invoke.texi: Document RX specific command line options.
1424 * doc/contrib.texi: Document RX contribution.
1425 * doc/md.texi: Document RX constraints.
1426 * doc/install.texi: Document RX support.
1428 2009-10-26 Michael Matz <matz@suse.de>
1430 PR tree-optimization/41783
1431 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
1432 case for simple diamonds.
1433 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
1434 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
1435 argument, use alias oracle to skip some vdefs.
1436 (phi_translate_1): Change call to above, don't allocate new
1437 value ids if they can stay the same.
1438 (compute_avail): Allow vuse walking when looking up references.
1440 2009-10-26 Richard Guenther <rguenther@suse.de>
1442 PR tree-optimization/41826
1443 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
1444 access to re-allocated vector fields.
1446 2009-10-26 Richard Guenther <rguenther@suse.de>
1448 * graphite-sese-to-poly.c (check_poly_representation): Fix
1449 compile without checking.
1451 2009-10-26 Janus Weil <janus@gcc.gnu.org>
1454 * gimple.h (tree_annotate_all_with_location): Remove prototype.
1455 * gimplify.c (tree_should_carry_location_p,
1456 tree_annotate_one_with_location,tree_annotate_all_with_location):
1457 Remove obsolete functions.
1459 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
1462 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
1464 2009-10-25 Richard Guenther <rguenther@suse.de>
1466 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1467 Stream DECL_RESTRICTED_P.
1468 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1470 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
1472 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
1473 a note when expanding to nothing.
1475 2009-10-25 Richard Guenther <rguenther@suse.de>
1478 * tree.c (find_decls_types_r): Deal with Java overloading
1479 BINFO_VIRTUALS for its own purpose.
1481 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
1483 * config/mips/predicates.md (hilo_operand): New predicate.
1484 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
1485 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
1486 splitter part from here ...:
1487 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
1488 op0 and op4 to match the DINS case.
1489 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
1491 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1494 * avr.md (QIDI): Add new mode iterator.
1495 (sbrx_branch<mode>): Create new zero extract bit, test and jump
1496 patterns for all QI thru DI modes combinations.
1497 (sbrx_and_branch<mode>): Create new and based bit test and jump
1498 patterns for QI thru SI modes.
1499 avr.c (avr_out_sbxx_branch): Use only bit number.
1501 2009-10-24 Jan Hubicka <jh@suse.cz>
1503 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1505 (analyze_function): When analyzing noreturn nothrow call, do not
1506 compute written stats; free bitmaps of vars early if possible.
1507 (generate_summary): Only update bitmaps if computed.
1508 (propagate): Only dump bitmaps if computed.
1509 (ipa_reference_read_summary): Fix pasto.
1511 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1513 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1514 (aliasing_component_refs_p): ...this. Return true if there is no
1515 common base and the base access types have the same alias set.
1516 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1517 (indirect_refs_may_alias_p): Likewise.
1519 2009-10-23 Joseph Myers <joseph@codesourcery.com>
1522 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1523 a C_MAYBE_CONST_EXPR.
1525 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1528 * config/rs6000/rs6000.c (struct machine_function): Add
1529 vsx_or_altivec_used_p to record if vector types are used.
1530 (rs6000_expand_to_rtl_hook): Rename from
1531 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
1532 any vector operations, so if there are, we can set VRSAVE to
1533 non-zero when only floating point vector registers are used.
1534 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1535 (rs6000_check_vector_mode): Inner function to check if vector
1536 types are used in the code.
1537 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1538 vector instructions are used.
1540 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1541 Indicate that VSX registers which overlap floating point
1542 registers, can't be used across a call, since the ABI only states
1543 the scalar part of the register will be saved and restored.
1545 2009-10-23 Joseph Myers <joseph@codesourcery.com>
1548 * alias.c (get_alias_set): Call langhook before returning 0 for
1549 types with structural equality.
1550 * c-common.c (c_common_get_alias_set): Use alias set of element
1551 type for arrays with structural comparison.
1553 2009-10-23 Richard Guenther <rguenther@suse.de>
1556 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1557 gimple_call_nothrow_p.
1559 2009-10-23 Richard Guenther <rguenther@suse.de>
1561 PR tree-optimization/41778
1562 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1563 redundancy along a path in the CFG we want to optimize for speed
1564 is going to be removed.
1565 (execute_pre): Do partial-PRE only if the function is to be
1566 optimized for speed.
1567 (gate_pre): Do not turn off all of PRE when not optimizing a
1570 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1572 * builtins.c (fold_builtin_cabs): Use validate_arg().
1573 (fold_builtin_cexp): Fix if-logic.
1574 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1576 2009-10-22 Jeff Law <law@redhat.com>
1578 * ira-lives.c (process_single_reg_class_operands): Update the
1579 hard reg costs for all the hard registers desired by the
1580 single reg class operand.
1582 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1584 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1585 for rtxes that aren't handled specially.
1587 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1589 * rtl.h (shallow_copy_rtvec): Declare.
1590 * rtl.c (shallow_copy_rtvec): New function.
1591 * cselib.c (cselib_subst_to_values): Use it. Only modify an
1592 rtx field if the subrtx has changed.
1594 2009-10-22 Anatoly Sokolov <aesok@post.ru>
1596 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1597 (m32c_function_value): Make static, add new 'outgoing' argument.
1598 (m32c_libcall_value): Make static, add new 'fun' argument.
1599 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1600 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1601 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1602 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1603 (m32c_function_value, m32c_libcall_value): Delete declaration.
1605 2009-10-22 Diego Novillo <dnovillo@google.com>
1607 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1609 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1611 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1614 2009-10-22 Richard Guenther <rguenther@suse.de>
1616 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1617 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1618 (lto_symtab_merge): Do not merge cgraph nodes here.
1619 (lto_symtab_resolve_can_prevail_p): Simplify.
1620 (lto_symtab_resolve_symbols): Store cgraph node.
1621 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
1622 functions from the symtab.
1623 (lto_symtab_merge_cgraph_nodes_1): New function.
1624 (lto_symtab_merge_cgraph_nodes): Likewise.
1626 2009-10-22 Richard Guenther <rguenther@suse.de>
1629 * lto-streamer-out.c (lto_output_location): Stream the
1631 * lto-streamer-in.c (lto_input_location): Likewise.
1633 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1635 * cfgloopmanip.c (duplicate_subloops): Export.
1636 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1637 (transform_to_exit_first_loop): Duplicate bbs starting from
1638 header up to loop->latch instead of exit->src.
1639 Initialize control variable to the correct number of iterations.
1640 (gather_scalar_reductions): Do not register double reductions.
1641 (parallelize_loops): Dump which loop is tested.
1642 Indicate whether the parallelized loop is inner or not.
1643 Remove the innermost-loop requirement.
1644 * cfgloop.h (duplicate_subloops): Export.
1645 * tree-cfg.c (add_phi_args_after_redirect): New function.
1646 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1647 Call duplicate_subloops.
1648 Update number of iterations at the exit condition.
1649 Don't redirect nexits always to the loop exit.
1650 Redirect copied edges from latch to the loop exit.
1652 2009-10-22 Jan Hubicka <jh@suse.cz>
1654 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1656 * ipa-inline.c (cgraph_mark_inline_edge,
1657 cgraph_decide_inlining_of_small_function,
1658 cgraph_decide_inlining, inline_read_summary): Disable indirect
1659 inlining for WPA for time being.
1661 PR tree-optimize/40556
1662 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1664 2009-10-22 Richard Guenther <rguenther@suse.de>
1666 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1667 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1669 2009-10-22 Jan Hubicka <jh@suse.cz>
1672 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1674 (check_call): Handle only indirect calls.
1675 (propagate_bits): Update comment.
1676 (write_node_summary_p): Turn bogus check to assert.
1677 (ipa_reference_write_summary): Stream calls_read_all properly.
1678 (ipa_reference_read_summary): Stream in calls_read_all properly.
1679 (read_write_all_from_decl): New function.
1680 (propagate): Handle OVERWRITABLE nodes and external calls here.
1681 * ipa-pre-const.c (check_call): In IPA mode handle indirect
1683 (analyze_function): Do not check visibility here.
1684 (add_new_function): We summary OVERWRITABLE too.
1685 (generate_summary): Stream OVERWRITABLE nodes too.
1686 (propagate): Handle external calls and OVERWRITABLE nodes here.
1687 (local_pure_const): Check visibility here.
1689 2009-10-22 Jan Hubicka <jh@suse.cz>
1691 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1692 (pass_ipa_cp): Register them.
1693 (ipcp_init_stage): Analyze all functions for whopr/lto.
1694 (ipcp_propagate_stage): Skip external calls.
1695 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1696 * ipa-reference.c (write_node_summary_p): Fix thinko about
1698 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1699 when in ltrans, skip executing of ipa passes since everything
1700 should've been done.
1701 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1702 (inline_generate_summary): Likewise.
1703 (inline_read_summary): New function.
1704 (inline_write_summary): New function.
1705 (pass_ipa_inline): Register new hooks.
1706 * ipa-prop.c: Inlcude lto-streamer.h
1707 (ipa_edge_args_vector): Update declaration.
1708 (ipa_count_arguments, ipa_compute_jump_functions,
1709 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1710 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1711 ipa_read_node_info): New static functions.
1712 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1713 (duplicate_array): Use xmalloc.
1714 (duplicate_ggc_array): New.
1715 (ipa_edge_duplication_hook): Use it.
1716 (ipa_update_after_lto_read): New function.
1717 * ipa-prop.h (ipa_prop_write_jump_functions,
1718 ipa_prop_read_jump_functions): Declare.
1719 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1720 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1721 (ipa_edge_args_vector): Move into GGC.
1722 (ipa_check_create_edge_args): Update.
1723 (ipa_update_after_lto_read): New.
1724 * passes.c (ipa_write_summaries_1): When in wpa, do not write
1726 (ipa_read_summaries): When in ltrans, so not read summaries.
1727 * lto-streamer.c (lto_get_section_name): Add
1728 LTO_section_jump_functions.
1729 * lto-streamer.h (LTO_section_jump_functions): New section.
1730 (produce_asm): Declare.
1731 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1732 * lto-streamer-out.c (produce_asm): Export.
1733 * lto-streamer-in.c: Include tree-pass.h
1734 (input_function): Free dominance info when done.
1735 (lto_read_body): Push ipa_inline in ltrans stage.
1736 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1737 * Makefile.in (GTFILES): Add ipa-prop.h
1739 2009-10-22 Matthias Klose <doko@ubuntu.com>
1741 * doc/install.texi: Document --enable-browser-plugin.
1743 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
1745 * doc/invoke.texi (fira-loop-pressure): Update default value.
1746 * opts.c (decode_options): Remove default value setting for
1747 flag_ira_loop_pressure.
1748 * config/ia64/ia64.c (ia64_override_options): Set
1749 flag_ira_loop_pressure up for -O3.
1750 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1752 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
1754 PR tree-optimization/41497
1755 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1756 chrec_dont_know if the evolution function returned by follow_ssa_edge
1757 is constant in the analyzed loop and is not compatible with the
1758 initial value before the loop.
1759 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1761 2009-10-21 Joseph Myers <joseph@codesourcery.com>
1763 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1765 2009-10-21 Jakub Jelinek <jakub@redhat.com>
1768 * doc/invoke.texi: Document -print-multi-os-directory.
1770 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
1773 * gcc/config/darwin10.h: Use default_emit_unwind_label.
1774 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1775 when darwin_emit_unwind_label is used.
1777 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1779 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1782 2009-10-20 Richard Henderson <rth@redhat.com>
1784 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1785 before emit_post_landing_pad.
1787 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
1789 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1790 Use when calling rtx_costs.
1791 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
1792 global optimize_size. Pass speed to mips_binary_cost.
1794 2009-10-20 Jakub Jelinek <jakub@redhat.com>
1796 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1799 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
1801 * rtl.h (simplify_replace_fn_rtx): Declare.
1802 (wrap_constant, unwrap_constant): Delete.
1803 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1804 (expand_debug_expr): Don't call wrap_constant.
1805 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1806 (auto_adjust_pair): Fold into...
1807 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
1808 Just return a new value.
1809 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1810 otherwise use simplify_replace_rtx.
1811 * cselib.c (wrap_constant): Reinstate old definition.
1812 (cselib_expand_value_rtx_1): Don't wrap constants.
1813 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1814 simplify_replace_rtx.
1815 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1816 * reload1.c (reload): Skip all uses for an insn before adjusting it.
1817 Use simplify_replace_rtx.
1818 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1820 (simplify_replace_rtx): ...here. Turn into a wrapper for
1821 simplify_replace_fn_rtx.
1822 (simplify_unary_operation): Don't unwrap CONSTs.
1823 * var-tracking.c (check_wrap_constant): Delete.
1824 (vt_expand_loc_callback): Don't call it.
1825 (vt_expand_loc): Likewise.
1827 2009-10-20 Pascal Obry <obry@adacore.com>
1828 Eric Botcazou <ebotcazou@adacore.com>
1830 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1832 2009-10-20 Michael Matz <matz@suse.de>
1834 * loop-invariant.c (create_new_invariant): Use different magic number.
1836 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
1839 * arm.c (arm_override_options): Forcibly disable hot/cold block
1842 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
1845 * haifa-sched.c (try_ready): Skip debug deps updating speculation
1848 2009-10-20 Richard Guenther <rguenther@suse.de>
1850 * ggc-page.c: Include cfgloop.h.
1851 (struct max_alignment): Drop long double, add void *.
1852 (extra_order_size_table): Add low non-power-of-two multiples
1853 of MAX_ALIGNMENT. Drop small type-based entries, add
1854 tree_type, cgraph_node and loop.
1855 * alloc-pool.c (struct allocation_object_def): Drop long double
1858 2009-10-20 Jakub Jelinek <jakub@redhat.com>
1861 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1862 referenced just in DEBUG_INSNs.
1864 2009-10-20 Richard Guenther <rguenther@suse.de>
1867 * gimple.c (gimple_register_type): Make sure we register
1868 the types main variant first.
1870 2009-10-20 Richard Guenther <rguenther@suse.de>
1872 * gimple.c (gimple_types_compatible_p): Simplify. Move
1873 cheap checks before hashtable queries. Add checks for
1874 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1876 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
1878 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1879 without size or with size that can't be represented as a host integer.
1881 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
1883 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1884 the removal of a debug stmt as a significant change.
1886 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
1888 * config/s390/s390.md: Added agen condition to operand
1889 forwarding bypasses. Added bypass for early address generation
1890 use of int results. Updated comments.
1892 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
1894 * config/i386/i386.c: Remove signal.h #include.
1896 2009-10-20 Jie Zhang <jie.zhang@analog.com>
1898 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1899 * doc/rtl.texi: Document ss_abs.
1901 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1903 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1904 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
1905 instead of C_LEX_RAW_STRINGS.
1906 (lex_string): Handle CPP_UTF8STRING.
1907 * c-parser.c (c_parser_postfix_expression): Likewise.
1908 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1909 (C_LEX_STRING_NO_JOIN): ... this.
1911 2009-10-19 Anatoly Sokolov <aesok@post.ru>
1913 * config/cris/cris.c (cris_function_value, cris_libcall_value,
1914 cris_function_value_regno_p): New functions.
1915 (cris_promote_function_mode): Update comment.
1916 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1917 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1918 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1919 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1921 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1923 * unwind-dw2.c (execute_stack_op): Fix operand order for
1924 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1926 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
1928 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1929 (lower_stmt) <GIMPLE_BIND>: Add comment.
1930 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1932 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1933 Otherwise lower it and set cannot_fallthru to true.
1934 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1935 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1936 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1937 to true for a noreturn call. Do not remove statements.
1938 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1939 Set cannot_fallthru to false on function exit.
1940 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1941 <GIMPLE_ASSIGN>: Remove.
1943 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1945 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1947 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1949 * config/s390/s390.c (s390_z10_optimize_cmp): Use
1950 next/prev_active_insn to skip DEBUG_INSNs as well.
1952 2009-10-19 Joseph Myers <joseph@codesourcery.com>
1954 * config/arm/arm.c (output_move_neon): Use DImode in call to
1957 2009-10-19 Matthias Klose <doko@ubuntu.com>
1960 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1962 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1964 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1966 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1969 * optabs.c (expand_binop): Make mode of shift count expression mode
1970 of shift count not target.
1973 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1975 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1976 case. Force using values to replace references within the statement.
1977 (convert_local_reference_stmt): Likewise.
1979 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1981 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1982 remove a subsequent GOTO or RETURN statement.
1984 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
1986 * config/avr.md (*movqi): Add zero as equally preferable constraint
1987 as general register.
1990 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1992 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1994 2009-10-17 Richard Guenther <rguenther@suse.de>
1996 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1998 2009-10-17 Richard Guenther <rguenther@suse.de>
2000 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
2001 operands in COMPONENT_REFs.
2003 2009-10-17 Anatoly Sokolov <aesok@post.ru>
2005 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
2006 if not defined. Change type of second argument to const_rtx.
2007 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
2009 * targhooks.h (default_libcall_value): Update prototype.
2010 * target.h (struct gcc_target): Change type of second argument of
2011 libcall_value to const_rtx.
2012 * config/arm/arm.c (arm_libcall_value): Change type of second argument
2014 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
2015 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
2017 2009-10-17 Jakub Jelinek <jakub@redhat.com>
2020 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
2021 * cgraphunit.c (cgraph_optimize): Call it.
2022 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
2023 (dwarf2out_assembly_start): ... here. New hook.
2024 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
2025 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
2027 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
2028 * sdbout.c (sdb_debug_hooks): Likewise.
2029 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
2030 (vmsdbgout_assembly_start): New hook.
2032 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
2034 * rtl.h (RTL_LOCATION): Fix typo.
2036 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
2038 * print-rtl.c (print_rtx): Print locators in asm_operands
2041 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
2044 * sched-deps.c (depl_on_debug_p): New.
2045 (attach_dep_link): Reject debug deps before nondebug deps.
2046 (add_to_deps_list): Insert debug deps after nondebug deps.
2047 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
2049 (sd_add_dep): Do not reject debug deps.
2050 (add_insn_mem_dependence): Don't count debug deps.
2051 (remove_from_deps): Likewise.
2052 (sched_analyze_2): Set up mem deps on debug insns.
2053 (sched_analyze_insn): Record reg uses for deps on debug insns.
2054 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
2055 try_ready nondebug insn after debug insn.
2056 * ddg.c (create_ddg_dep_from_intra_loop_link,
2057 create_ddg_dep_no_link): Don't reject debug deps.
2059 2009-10-16 Richard Guenther <rguenther@suse.de>
2061 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
2062 (maybe_merge_incomplete_and_complete_type): Likewise.
2063 (lto_symtab_merge): Do not call them. Do not warn for
2064 complete vs. incomplete compatible types.
2065 (lto_symtab_merge_decls_2): Simplify.
2066 * gimple.c (gimple_force_type_merge): Remove.
2067 (gimple_types_compatible_p): Make it static.
2068 * gimple.h (gimple_force_type_merge): Remove.
2069 (gimple_types_compatible_p): Likewise.
2071 2009-10-16 Jakub Jelinek <jakub@redhat.com>
2073 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
2074 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
2076 2009-10-16 Richard Guenther <rguenther@suse.de>
2078 PR tree-optimization/41728
2079 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
2080 if fold_stmt did anything.
2082 2009-10-16 Richard Guenther <rguenther@suse.de>
2085 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
2086 (maybe_fixup_handled_component): New function.
2087 (input_gimple_stmt): Fixup mismatched decl replacements.
2089 2009-10-16 Richard Guenther <rguenther@suse.de>
2092 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
2093 the same as VAR_DECL.
2095 2009-10-16 Richard Guenther <rguenther@suse.de>
2097 * gimple.c (iterative_hash_gimple_type): For integer types
2098 also hash their minimum and maximum values and the string flag.
2099 For array types hash their domain and the string flag.
2101 2009-10-16 Richard Guenther <rguenther@suse.de>
2103 * gimple.c (gimple_types_compatible_p): Restrict completing
2104 types to record or unions. Simplify completion.
2105 Do not merge records or unions with different
2106 TYPE_STRUCTURAL_EQUALITY_P tag.
2107 (iterative_hash_gimple_type): Restrict non-recursing into
2108 pointer targets for records and unions.
2110 2009-10-15 Jakub Jelinek <jakub@redhat.com>
2113 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
2114 * dwarf2out.c (mem_loc_descriptor): Don't handle
2115 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
2116 punt if it is not lowpart subreg or if inner mode isn't
2119 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2121 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
2122 investigating previous or next insns.
2124 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
2126 * tree-sra.c (build_ref_for_offset_1): Update comment.
2128 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
2130 * config/s390/s390.md (atype): Added missing values.
2132 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2135 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
2136 (casesi64p): Update pattern to reflect above.
2138 2009-10-15 Steve Ellcey <sje@cup.hp.com>
2140 PR rtl-optimization/41697
2141 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
2143 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2146 * config/rs6000/predicates.md: Update copyright year.
2147 * config/rs6000/altivec.md: Ditto.
2149 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
2150 (MD_INCLUDES): Add a2.md.
2152 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
2153 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
2154 (builtin_classify): New static vector to classify various builtins
2155 to get the tree attributes correct.
2156 (def_builtin): Set the attributes of builtins based on what the
2157 builtin does (i.e. memory operation, floating point, saturation
2158 need special attributes, others are pure functions).
2160 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
2162 (enum rs6000_builtins): Include rs6000-builtin.def to define the
2163 builtins. Change the end marker to MAX_RS6000_BUILTINS from
2164 RS6000_BUILTIN_COUNT.
2165 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
2166 MAX_RS6000_BUILTINS.
2168 * config/rs6000/rs6000-builtin.def: New file that combines the
2169 builtin enumeration name and attributes.
2171 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
2173 * config/i386/linux.h (ASM_SPEC): Add --32.
2175 2009-10-15 Jakub Jelinek <jakub@redhat.com>
2177 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
2178 and DW_TAG_template_alias.
2179 (dwarf_attr_name): Handle DW_AT_main_subprogram,
2180 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
2181 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
2182 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
2183 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
2184 and DW_AT_GNU_odr_signature.
2185 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
2186 DW_FORM_flag_present and DW_FORM_ref_sig8.
2187 (output_signature): Only print name on the first byte.
2188 (output_die): Likewise for dw_val_class_data8.
2190 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
2192 * doc/invoke.texi: Clarify that most optimizations are not enabled
2195 2009-10-15 Richard Guenther <rguenther@suse.de>
2198 * gimple.c (compare_type_names_p): Handle anonymous names
2199 differently based on new mode argument.
2200 (gimple_types_compatible_p): For structs also compare the tags.
2201 (iterative_hash_type_name): Rename to ...
2202 (iterative_hash_name): ... this. Hash all names.
2203 (iterative_hash_gimple_type): Fix hashing the struct tag of
2204 pointer targets. Hash field decl names.
2206 2009-10-15 Richard Guenther <rguenther@suse.de>
2209 * gimple.c (gimple_get_alias_set): Avoid recursing on
2210 invalid type topology.
2212 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2214 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
2216 2009-10-15 Richard Guenther <rguenther@suse.de>
2218 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
2220 2009-10-15 Jakub Jelinek <jakub@redhat.com>
2222 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
2223 add --with-tune{,-32,-64} configured default for -mtune if explicit
2226 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
2228 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
2230 2009-10-14 DJ Delorie <dj@redhat.com>
2232 * config/h8300/h8300.c (F): New.
2234 (h8300_emit_stack_adjustment): Call them.
2236 (h8300_push_pop): Likewise.
2237 (h8300_expand_prologue): Likewise.
2238 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
2239 (MUST_USE_SJLJ_EXCEPTIONS): Define.
2240 (INCOMING_RETURN_ADDR_RTX): Define.
2241 (INCOMING_FRAME_SP_OFFSET): Define.
2242 (DWARF_CIE_DATA_ALIGNMENT): Define.
2244 2009-10-14 Jakub Jelinek <jakub@redhat.com>
2246 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
2247 fields in builtin structs.
2248 (finalize_record_size): Likewise.
2250 2009-10-14 Richard Guenther <rguenther@suse.de>
2252 * gimple.c (gtc_ob): New global.
2253 (struct type_pair_d): Replace pointers with type UIDs.
2254 (type_pair_hash): Adjust.
2255 (type_pair_eq): Likewise.
2256 (lookup_type_pair): Likewise. Allocate from an obstack.
2257 (gimple_force_type_merge): Adjust.
2258 (gimple_types_compatible_p): Likewise.
2259 (free_gimple_type_tables): Free the obstack.
2261 2009-10-14 Jakub Jelinek <jakub@redhat.com>
2263 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
2264 stmts setting DEBUG_EXPR_DECLs.
2266 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
2267 Don't crash if mode1 is VOIDmode.
2269 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
2271 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
2272 * params.h (IRA_LOOP_RESERVED_REGS): New.
2273 * tree-pass.h (pass_subregs_of_mode_init,
2274 pass_subregs_of_mode_finish): Remove.
2275 * passes.c (pass_subregs_of_mode_init,
2276 pass_subregs_of_mode_finish): Remove.
2277 (pass_reginfo_init): Move before loop optimizations.
2278 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
2279 * common.opt (fira-loop-pressure): New.
2280 * toplev.h (flag_ira_loop_pressure): New.
2281 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
2282 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
2283 Make external and void type functions.
2284 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
2285 pass_subregs_of_mode_finish): Remove.
2286 * ira-costs.c (init_costs): Call init_subregs_of_mode.
2287 * regmove.c: Include ira.h.
2288 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
2289 register pressure calculation in loops.
2290 * loop-invariant.c: Include REGS_H and ira.h.
2291 (struct loop_data): New members max_reg_pressure, regs_ref, and
2293 (struct invariant): New member orig_regno.
2294 (curr_loop): New variable.
2295 (find_exits): Initialize regs_ref and regs_live.
2296 (create_new_invariant): Initialize orig_regno.
2297 (get_cover_class_and_nregs): New.
2298 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
2299 array. Add code for flag_ira_loop_pressure.
2300 (gain_for_invariant): Make new_regs an array. Add code for
2301 flag_ira_loop_pressure.
2302 (best_gain_for_invariant): Ditto.
2303 (set_move_mark): New parameter gain. Use it for debugging output.
2304 (find_invariants_to_move): Make regs_needed and new_regs an array.
2305 Add code for flag_ira_loop_pressure.
2306 (move_invariant_reg): Set up orig_regno.
2307 (move_invariants): Set up reg classes for pseudos for
2308 flag_ira_loop_pressure.
2309 (free_loop_data): Clear regs_ref and regs_live.
2310 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
2311 get_regno_cover_class, change_pressure, mark_regno_live,
2312 mark_regno_death, mark_reg_store, mark_reg_clobber,
2313 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
2314 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
2315 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
2316 register pressure calculation in loops if new regs were added.
2317 Call finish_subregs_of_mode.
2318 * opts.c (decode_options): Set up flag_ira_loop_pressure.
2319 * Makefile.in (loop-invariant.o): Add ira.h.
2321 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
2323 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
2325 2009-10-14 Richard Guenther <rguenther@suse.de>
2327 * lto-symtab.c (lto_symtab_compatible): Fold in ...
2328 (lto_symtab_merge): ... here. Rewrite both to take the
2329 prevailing and a to-be-merged entry and to queue diagnostics properly.
2330 (lto_symtab_resolve_replaceable_p): New predicate for
2332 (lto_symtab_resolve_can_prevail_p): Likewise.
2333 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
2334 handles merging commons by choosing the largest decl. Fold
2335 in code that gives ODR errors.
2336 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
2338 (lto_symtab_merge_decls_1): Re-structure. Deal with the
2339 case of no prevailing decl here. Diagnose mismatches
2340 in object types here. Drop all but the prevailing decls.
2341 (lto_symtab_prevailing_decl): Return the single prevailing decl.
2342 * lto-streamer-in.c (lto_input_tree_ref): Deal with
2343 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
2345 2009-10-14 Richard Guenther <rguenther@suse.de>
2348 * lto-streamer-in.c (input_bb): Replace debug stmts with
2349 nops instead of dropping them.
2351 2009-10-14 Nick Clifton <nickc@redhat.com>
2353 * gcc/doc/extended.texi: Replace the dash character with @minus{}
2354 in situations where it is being used as a minus symbol.
2355 * gcc/doc/tm.texi: Likewise.
2356 * gcc/doc/md.texi: Likewise.
2358 2009-10-14 Jakub Jelinek <jakub@redhat.com>
2360 PR preprocessor/41543
2361 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
2362 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
2363 * tree.c: Include intl.h.
2364 (expand_location): Handle BUILTINS_LOCATION.
2365 * Makefile.in (tree.o): Depend on intl.h.
2368 * dwarf2out.c (dwarf2out_var_location): Always clear
2369 last_postcall_label when changing last_label.
2371 2009-10-14 Pascal Obry <obry@adacore.com>
2373 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
2374 (process_command): Handle -E as done with -c and -S. Do not add
2375 the target executable suffix to the output file when -E is used.
2376 (main): Adjust error message accordingly.
2378 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
2384 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
2386 (tree_code_size): Likewise.
2388 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2390 * builtins.c (fold_builtin_1): Support complex "arc" functions.
2391 * real.h (HAVE_mpc_arc): Define.
2393 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
2395 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
2396 (struct builtin_description): Add fndecl field.
2397 (bdesc): Remove const qualifier. Update initializer.
2398 (sh_media_init_builtins): Remove const qualifier for d. Record
2399 the result of add_builtin_function to the fndecl field.
2400 (sh_builtin_decl): New.
2401 (sh_media_builtin_decl): New.
2403 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
2406 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
2407 requests between special registers.
2409 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
2411 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
2413 2009-10-13 Richard Henderson <rth@redhat.com>
2415 PR tree-optimization/41377
2416 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
2417 (cleanup_empty_eh_merge_phis): New change_region parameter;
2418 pass it on to redirect_eh_edge_1. Update callers.
2419 (cleanup_empty_eh_unsplit): Don't require an existing EH label
2420 at the destination block.
2422 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
2424 * passes.c (register_pass): Replaced gcc_unreachable by
2425 fatal_error on failure. Mentions plugins in comments & messages.
2427 2009-10-13 Jakub Jelinek <jakub@redhat.com>
2430 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
2431 * sched-vis.c (print_value): Use it.
2432 * cselib.c (cselib_hash_rtx): Likewise.
2433 * print-rtl.c (print_rtx): Likewise.
2434 * cfgexpand.c (expand_debug_rtx): Likewise.
2435 * var-tracking.c (vt_expand_loc_callback): Likewise.
2437 2009-10-13 Richard Guenther <rguenther@suse.de>
2440 * opts.c (handle_option): Split out code to handle setting
2441 the options flag var ...
2442 (set_option): ... here.
2443 * opts.h (set_option): Declare.
2444 * lto-opts.c (register_user_option_p): Include -fexceptions
2445 and all position independent code variants.
2446 (handle_common_option): Remove.
2447 (lto_reissue_options): Use set_option.
2449 2009-10-13 Martin Jambor <mjambor@suse.cz>
2451 PR tree-optimization/41661
2452 * ipa-prop.c (compute_complex_pass_through): Allow only operations
2453 that are tcc_comparisons or do not change the type in any
2455 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
2456 folding tcc_comparison operations.
2458 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2460 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
2463 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
2469 * tree.def (DEBUG_EXPR_DECL): New.
2470 * rtl.def (DEBUG_EXPR): New.
2471 * gengtype.c (adjust_field_rtx_def): Handle it.
2472 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
2473 (insert_debug_temp_for_var_def): ... this. Drop support for
2474 moving. Take iterator for def stmt; insert debug stmt before it.
2475 Scan early for use count and kind in debug stmts.
2476 (propagate_defs_into_debug_stmts): Rename to...
2477 (insert_debug_temps_for_defs): ... this. Likewise.
2478 * tree.h (DEBUG_TEMP_UID): New.
2479 * tree.c (next_debug_decl_uid): New.
2480 (make_node_stat): Count debug decls separately.
2481 (copy_node_stat): Likewise.
2482 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
2483 * var-tracking.c (dv_is_decl_p): Recognize it.
2484 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
2485 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
2486 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
2487 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
2488 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
2489 (cselib_hash_rtx): Likewise.
2490 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
2491 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
2493 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
2494 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
2495 * rtl.c (copy_rtx): Likewise.
2496 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
2497 * print-rtl.c (print_rtx): Likewise.
2498 * sched-vis.c (print_value): Likewise.
2499 (print_insn): Handle DEBUG_EXPR_DECL.
2500 * tree-dump.c (dequeue_and_dump): Likewise.
2501 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2502 * gimple-iterator (gsi_replace): Check for same lhs.
2503 (gsi_remove): Insert debug temps.
2504 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2505 (move_computations_stmt): Drop explicit propagation into debug stmts.
2506 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
2507 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2508 * tree-ssa-sink.c (statement_sink_location): Likewise.
2509 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2510 * tree-ssanames.c (release_ssa_name): Adjust for rename.
2511 * tree-flow.h: Likewise.
2512 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2513 debug temps without values.
2514 (eliminate_unnecessary_stmts): Don't discard just-inserted
2517 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
2520 * config/cris/cris.md (andu): Check that operand 1 is one of the
2521 general registers. Fix typo in head comment.
2523 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
2525 * config/i386/i386.md (vswapmov): New.
2526 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2527 (ix86_function_ms_hook_prologue): New.
2528 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2529 * configure.ac: Test for swap suffix support in as.
2530 * configure: Rebuild.
2532 2009-10-12 Jakub Jelinek <jakub@redhat.com>
2535 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2536 paradoxical subregs to prevent partial register stalls if the inner
2537 mode is integer mode.
2539 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
2541 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2543 2009-10-12 Dodji Seketeli <dodji@redhat.com>
2546 * gcc/dwarf2out.c (template_parameter_pack_die,
2547 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2549 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
2552 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2554 (maybe_register_def): Likewise. Take stmt iterator.
2555 (rewrite_update_stmt): Take stmt iterator and pass it on.
2556 (rewrite_update_enter_block): Pass stmt iterator.
2558 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2560 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2561 (spu_builtin_decl): New function.
2563 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
2565 * config/i386/i386.md (SWIM): New mode iterator.
2566 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2567 using SWIM mode iterator.
2568 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2569 patterns using SWI48 mode iterator.
2570 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
2571 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2572 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2573 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2574 patterns using SWI248 mode iterator.
2575 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2576 gen_x86_movdicc_0_m1_rex64 for renamed function
2578 2009-10-11 Jose Ruiz <ruiz@adacore.com>
2579 Eric Botcazou <ebotcazou@adacore.com>
2582 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2583 * config/sparc/sol2-unwind.h: New file.
2585 2009-10-11 Olivier Hainque <hainque@adacore.com>
2586 Eric Botcazou <ebotcazou@adacore.com>
2589 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2590 * config/i386/sol2-unwind.h: New file.
2592 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
2595 * config/i386/i386.md (addsi_1_zext): Get the proper second
2598 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
2600 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2601 all OLD_RTXes, not just REGs. Use copy_rtx to create the
2604 2009-10-11 Richard Guenther <rguenther@suse.de>
2606 * gimple.c (iterative_hash_type_name): Do not handle special
2609 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
2611 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2612 (*setcc_si_1_and): Ditto.
2613 (*setcc_si_1_movzbl): Ditto.
2614 (*setcc_<mode>_2): Ditto.
2615 (*setcc_qi): Rename from *setcc_1.
2616 (*setcc_qi_slp): Rename from *setcc_2.
2618 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2619 (*zero_extendqisi2_movzbw_and splitter): Ditto.
2621 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2622 "if" condition, there is already assert with reload_completed present.
2624 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
2626 * plugin.c (try_init_one_plugin): Improve constness of variable err.
2628 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
2630 * doc/install.texi (Final install): Refer to
2631 http://gcc.gnu.org/bugs/ for bug reporting.
2633 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
2635 * configure.ac: Add test for dci instruction.
2636 * configure: Regenerate.
2637 * config.in: Likewise.
2638 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2639 * doc/invoke.texi: Add cpu_type 476 and 476fp.
2640 (-mmulhw): Add 476 to description.
2641 (-mdlmzb): Likewise.
2642 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2643 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2644 (processor_target_table): Add 476 and 476fp entries.
2645 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2646 (rs6000_issue_rate): Add CPU_PPC476.
2647 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2648 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2649 (processor_type): Add PROCESSOR_PPC476.
2650 (EXTRA_SPECS): Add asm_cpu_476 string.
2651 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2652 (define_attr "cpu"): Add ppc476.
2654 Update comments for 476.
2655 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2656 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2657 Update copyright year.
2658 * config/rs6000/476.md: New file.
2659 * config/rs6000/40x.md: Add description for "isel" attribute.
2660 Update copyright year.
2661 * config/rs6000/440.md: Likewise.
2662 * config/rs6000/603.md: Likewise.
2663 * config/rs6000/6xx.md: Likewise.
2664 * config/rs6000/7450.md: Likewise.
2665 * config/rs6000/7xx.md: Likewise.
2666 * config/rs6000/8540.md: Likewise.
2667 * config/rs6000/cell.md: Likewise.
2668 * config/rs6000/e300c2c3.md: Likewise.
2669 * config/rs6000/e500mc.md: Likewise.
2670 * config/rs6000/mpc.md: Likewise.
2671 * config/rs6000/power4.md: Likewise.
2672 * config/rs6000/power5.md: Likewise.
2673 * config/rs6000/power6.md: Likewise.
2674 * config/rs6000/power7.md: Likewise.
2675 * config/rs6000/rios1.md: Likewise.
2676 * config/rs6000/rios2.md: Likewise.
2677 * config/rs6000/rs64.md: Likewise.
2679 2009-10-10 Richard Guenther <rguenther@suse.de>
2681 PR tree-optimization/41654
2682 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2683 a cond expr before calling gimple_cond_set_condition_from_tree.
2684 (ifcombine_iforif): Likewise.
2686 2009-10-09 Ian Lance Taylor <iant@google.com>
2688 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2689 * configure: Rebuild.
2691 2009-10-09 Neil Vachharajani <nvachhar@google.com>
2693 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2696 2009-10-09 Richard Guenther <rguenther@suse.de>
2699 * target-def.h (TARGET_BUILTIN_DECL): Define.
2700 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2701 * target.h (struct gcc_target): Add builtin_decl target hook.
2702 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2703 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2705 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2706 not gcc_unreachable.
2707 (lto_output_builtin_tree): Sorry if the target does not support
2708 streaming target builtins.
2709 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2710 (rs6000_builtin_decl): New function.
2711 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2712 (ix86_builtin_decl): New function.
2714 2009-10-09 Jakub Jelinek <jakub@redhat.com>
2716 PR preprocessor/41445
2717 * c-ppoutput.c (do_line_change): New function.
2718 (cb_line_change): Use it.
2719 (scan_translation_unit): Call do_line_change if
2720 avoid_paste or PREV_WHITE and token location is on a different line
2721 than print.src_line.
2724 * dwarf2out.c (dwarf2out_init): Test whether
2725 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2728 PR rtl-optimization/41646
2729 * calls.c (expand_call): For BLKmode types returned in registers
2730 avoid likely spilled hard regs in copy_blkmode_from_reg generated
2733 2009-10-09 Richard Guenther <rguenther@suse.de>
2735 PR tree-optimization/41634
2736 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2737 we remove the correct elements.
2738 (optimize_stmt): Make sure to update stmt operands before
2739 optimizing redundancies.
2741 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2743 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2745 2009-10-09 Richard Guenther <rguenther@suse.de>
2748 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2750 (lto_wrapper_exit): New function.
2752 (fatal_perror): Likewise.
2753 (fork_execute): Use global args_name, do not free it.
2754 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2755 * lto-streamer.h: Remove duplicate prototypes.
2757 2009-10-09 Richard Guenther <rguenther@suse.de>
2759 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2760 before calling stmt_can_throw_external.
2762 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
2764 PR tree-optimization/40071
2765 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2766 pointer if the original data reference doesn't conflict with the
2767 created vector data reference. Fix long line.
2769 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
2771 * config/i386/i386.md (any_div): New code iterator.
2772 (u): Handle div and udiv.
2774 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
2776 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2777 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2778 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2779 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2781 2009-10-08 Joseph Myers <joseph@codesourcery.com>
2783 * gcc.c (main): Remove trailing "." from diagnostics.
2785 2009-10-08 Cary Coutant <ccoutant@google.com>
2787 Add support for debugging with ICF (Identical Code Folding).
2788 * calls.c (debug.h): New #include.
2789 (emit_call_1): Call virtual_call_token debug hook.
2790 * common.opt (-fenable-icf-debug): New option.
2791 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2792 locations in the source).
2793 (poc_label_num): New variable.
2794 (dcall_entry, vcall_entry): New typedefs.
2795 (dcall_table, vcall_table): New variables.
2796 (struct vcall_insn): New type.
2797 (vcall_insn_table): New variable.
2798 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2799 (size_of_dcall_table): New function.
2800 (output_dcall_table): New function.
2801 (size_of_vcall_table): New function.
2802 (output_vcall_table): New function.
2803 (dwarf2out_direct_call): New function.
2804 (vcall_insn_table_hash): New function.
2805 (vcall_insn_table_eq): New function.
2806 (dwarf2out_virtual_call_token): New function.
2807 (dwarf2out_virtual_call): New function.
2808 (dwarf2out_init): Allocate new tables and sections.
2809 (prune_unused_types): Mark DIEs referenced from direct call table.
2810 (dwarf2out_finish): Output direct and virtual call tables.
2811 * final.c (final_scan_insn): Call direct_call and virtual_call
2813 * debug.h (struct gcc_debug_hooks): Add direct_call,
2814 virtual_call_token, virtual_call hooks.
2815 (debug_nothing_uid): New function.
2816 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2817 (debug_nothing_uid): New function.
2818 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2819 (xcoff_debug_hooks): Likewise.
2820 * sdbout.c (sdb_debug_hooks): Likewise.
2821 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2822 * doc/invoke.texi (-fenable-icf-debug): New option.
2824 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
2827 * regmove.c (regmove_backward_pass): Replace src with dst in the
2828 debug insn, and check for dst before rather than after.
2830 2009-10-08 Janis Johnson <janis187@us.ibm.com>
2832 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2833 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2835 2009-10-08 Jan Hubicka <jh@suse.cz>
2838 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2839 do not mark cgraph nodes as needed.
2840 (record_references_in_initializer): Add new only_vars parameter.
2841 * cgraph.h (record_references_in_initializer): New parameter.
2842 * varasm.c (assemble_variable): Update call.
2843 * varpool.c (varpool_analyze_pending_decls): Always look for
2846 2009-10-08 Anatoly Sokolov <aesok@post.ru>
2848 * config/avr/avr.c (last_insn_address) Remove variable.
2849 (expand_prologue): Don't initialise last_insn_address variable.
2850 (final_prescan_insn): Don't output insn size.
2851 * config/avr/avr.opt (msize): Remove switch.
2852 * doc/invoke.texi (AVR Options): Remove documentation of -msize
2855 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
2857 * combine.c (label_tick_ebb_start): Fix comment.
2858 (combine_instructions): Set label_tick and label_tick_ebb_start before
2859 calling setup_incoming_promotions. Start them from 1. Increment
2860 label_tick instead of deriving it from the BB index. Rather than
2861 comparing ticks use the block from the previous iteration to decide
2862 whether to start a new EBB. Remove empty lines before function.
2864 2009-10-08 Michael Matz <matz@suse.de>
2867 * builtins.c (fold_builtin_isascii): Use fold_build2.
2868 (fold_builtin_isdigit): Ditto.
2869 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2870 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2871 remove_useless_stmts_cond, remove_useless_stmts_tf,
2872 remove_useless_stmts_tc, remove_useless_stmts_bind,
2873 remove_useless_stmts_goto, remove_useless_stmts_label,
2874 remove_useless_stmts_1, remove_useless_stmts,
2875 pass_remove_useless_stmts): Remove.
2876 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2877 * passes.c (init_optimization_passes): Don't add
2878 pass_remove_useless_stmts.
2879 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2880 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2882 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2883 for static constants.
2884 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2885 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2887 2009-10-08 Richard Guenther <rguenther@suse.de>
2889 * gimple.c (free_gimple_type_tables): New function.
2890 * gimple.h (free_gimple_type_tables): Declare.
2892 2009-10-07 Mark Heffernan <meheff@google.com>
2894 * ipa-prop.c (ipa_print_node_params) Only print
2895 names of named arguments.
2897 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
2899 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2900 being statically linked.
2902 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2904 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2906 2009-10-08 Jan Hubicka <jh@suse.cz>
2909 * ipa.c (cgraph_externally_visible_p,
2910 function_and_variable_visibility,
2911 whole_program_function_and_variable_visibility): Skip non-finalized
2914 2009-10-08 Nick Clifton <nickc@redhat.com>
2916 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2919 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
2922 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2924 2009-10-07 Joseph Myers <joseph@codesourcery.com>
2927 * c-common.c (c_fully_fold_internal): Strip nops from the result
2928 of recursive calls to c_fully_fold_internal.
2929 (c_wrap_maybe_const): New.
2930 (c_save_expr): Use c_wrap_maybe_const.
2931 * c-common.h (c_wrap_maybe_const): Declare.
2932 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2933 build_binary_op): Use c_wrap_maybe_const.
2935 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2937 * real.c: Fix comment to reflect actual exponent size.
2939 2009-10-08 Ben Elliston <bje@au.ibm.com>
2941 * config/rs6000/a2.md: Add FSF comment header.
2943 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
2945 * config/i386/i386.md (any_extend): New code iterator.
2946 (u, s): New code attributes.
2948 (DWIH): Rewrite as code iterator for SI and DI modes.
2949 (DWI): Rewrite as mode attribute.
2950 (dwi): New mode attribute.
2951 (di): Depend on SI mode and DI mode.
2952 (doubleint_general_operand): Remove mode attribute.
2954 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2957 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2958 (*sub<mode>3_doubleword): Ditto.
2960 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2961 using SWIM248 mode iterator.
2962 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2963 using SWI48 mode iterator.
2964 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2965 patterns using DWIH mode iterator and any_extend code iterator.
2966 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2967 using any_extend code iterator.
2968 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2969 patterns using DWIH mode iterator and any_extend code iterator.
2970 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2971 using any_extend code iterator.
2972 (<s>mul<mode>3_highpart): Macroize expander from
2973 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2974 and any_extend code iterator.
2975 (*<s>muldi3_highpart_1): Macroize insn from
2976 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2977 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2978 patterns using any_extend code iterator.
2979 (*<s>mulsi3_highpart_zext): Macroize insn from
2980 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2982 2009-10-07 Jakub Jelinek <jakub@redhat.com>
2984 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2985 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2986 refering to a DIE with DW_AT_const_value.
2988 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
2991 * ira-lives.c (check_and_make_def_conflict): Process all operands.
2993 2009-10-06 Jan Hubicka <jh@suse.cz>
2995 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2998 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
3000 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
3001 *lea_2_rex64): Move before *add<mode>_1 pattern.
3003 2009-10-07 Jan Hubicka <jh@suse.cz>
3005 * collect2.c (main): Add -fno-whole-program.
3006 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
3008 2009-10-07 Jan Hubicka <jh@suse.cz>
3010 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
3011 has no address taken.
3012 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
3014 (cgraph_clone_node): Clear externally_visible flag for clones.
3015 * cgraph.h (cgraph_only_called_directly_p,
3016 cgraph_can_remove_if_no_direct_calls_p): New predicates.
3017 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
3018 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
3019 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
3020 ipcp_insert_stage): Likwise.
3021 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
3022 externally_visible flag.
3023 (verify_cgraph_node): Verify that inline clones look right.
3024 (process_function_and_variable_attributes): Do not set
3025 externally_visible flags.
3026 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
3028 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
3030 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
3031 clear externally_visible when turning into inline clones
3032 (cgraph_mark_inline_edge): Use new predicates.
3033 (cgraph_estimate_growth): Likewise.
3034 (cgraph_decide_inlining): Likewise.
3035 * ipa.c (cgraph_postorder): Likewise.
3036 (cgraph_remove_unreachable_nodes): Likewise; sanity check
3037 that inline clones are not needed.
3038 (cgraph_externally_visible_p): New predicate.
3039 (function_and_variable_visibility): Add whole_program parameter;
3040 always set externally_visible flag; handle COMDAT function
3042 (local_function_and_variable_visibility): New function.
3043 (gate_whole_program_function_and_variable_visibility): New function.
3044 (whole_program_function_and_variable_visibility): New function.
3045 (pass_ipa_whole_program_visibility): New function.
3046 * passes.c (init_optimization_passes): Add whole program visibility
3048 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
3049 not care about needed/reachable flags.
3050 * varpool.c: Include flags.h
3051 (decide_is_variable_needed): When doing LTO assume whole-program mode.
3052 (varpool_finalize_decl): When we are in LTO read-back, all variables
3054 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
3056 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3058 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
3061 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3063 * config.gcc: Don't include the makefile fragments intended for
3065 * config/s390/fixdfdi.h: File removed.
3066 * config/s390/libgcc-glibc.ver: File removed.
3067 * config/s390/s390.h: Remove the fixdfdi.h hack.
3068 * config/s390/t-crtstuff: File moved to libgcc dir.
3069 * config/s390/t-linux: Likewise.
3070 * config/s390/t-tpf: libgcc specific parts removed.
3071 * config/s390/t-linux64: Likewise.
3073 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
3075 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
3076 (lto-compress.o): Likewise.
3078 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3081 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
3082 dllexport to class members here.
3083 (i386_pe_determine_dllimport_p): Only check static class data for
3085 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
3086 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
3087 functions for vague linkage.
3088 (i386_pe_type_dllexport_p): Fix formatting.
3089 (maybe_add_dllexport) New function.
3090 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
3093 2009-10-07 Ben Elliston <bje@au.ibm.com>
3095 * config/rs6000/a2.md: Remove duplicated lines.
3097 2009-10-07 Ben Elliston <bje@au.ibm.com>
3099 * config.gcc (powerpc*-*-*): Handle a2.
3100 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
3101 * config/rs6000/a2.md: New file.
3102 * config/rs6000/rs6000.opt (mno-update): New.
3103 (mupdate): Return to using a mask, not a var.
3104 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
3105 (enum processor_type): Add PROCESSOR_PPCA2.
3106 * config/rs6000/rs6000.c (ppca2_cost): New costs.
3107 (rs6000_override_options): Add "a2" to processor_target_table.
3108 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
3109 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
3111 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
3113 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3114 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
3115 reference to nonexistent gen_truncxfxf2 function.
3117 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
3119 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
3120 (DWIH, g, di, doubleint_general_operand): New mode attributes.
3121 (general_operand): Handle TI mode.
3122 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
3123 using SDWIM mode iterator.
3124 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
3125 pattern from *add{di,ti}3_1 patterns and corresponding splitters
3126 using DWI mode iterator.
3127 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
3128 patterns using SWI mode iterator.
3129 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
3130 using SWI48 mode iterator.
3131 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
3132 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
3133 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
3134 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
3135 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
3136 using SDWIM mode iterator.
3137 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
3138 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
3139 using DWI mode iterator.
3140 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
3141 patterns using SWI mode iterator.
3142 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
3143 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
3144 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
3145 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
3146 patterns using plusminus code iterator.
3147 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
3148 sub<mode>3 patterns using plusminus code iterator.
3149 * config/i386/i386.c (override_options): Update the call to
3150 gen_subdi_carry_rex64 for renamed function.
3151 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
3152 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
3153 calls to instruction expanders.
3155 2009-10-06 Martin Jambor <mjambor@suse.cz>
3158 * opts.c (decode_options): Run IPA-SRA at -O2.
3160 2009-10-06 Richard Guenther <rguenther@suse.de>
3162 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
3164 2009-10-06 Tobias Burnus <burnus@net-b.de>
3167 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
3168 -flto and -fwhole-program flags can be combined.
3170 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
3173 * gcc.c (process_command): Check that -o argument was specified.
3175 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
3177 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
3179 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3181 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
3182 * doc/invoke.texi (Warning Options): Annotate allowed languages
3183 for -Wunsuffixed-float-constants.
3185 2009-10-05 Jakub Jelinek <jakub@redhat.com>
3187 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
3188 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
3189 same name and isn't the main variant.
3192 * dwarf2out.c (loc_by_reference): Removed.
3193 (dw_loc_list_1): New function.
3194 (dw_loc_list): Remove toplev argument, add want_address argument.
3195 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
3196 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
3197 want_address == 2 to dw_loc_list. For successful dw_loc_list
3198 set have_address to 1 only if want_address is not 0.
3200 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
3202 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
3203 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
3204 a code block followed by two pointers.
3205 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
3206 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
3207 (MIPS_MOVE): Likewise.
3208 (MIPS_LUI): Likewise.
3209 (MIPS_JR): Likewise.
3210 (MIPS_BAL): Likewise.
3211 (MIPS_NOP): Likewise.
3212 (mips_asm_trampoline_template): Delete.
3213 (mips_trampoline_code_size): New function.
3214 (mips_trampoline_init): Add shorter sequences for all cases
3215 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
3216 Calculate the opcodes directly, rather than copying from a template.
3217 Only flush the code part of the trampoline.
3218 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
3220 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
3222 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
3223 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
3224 (INCOMING_RETURN_ADDR_RTX): Likewise.
3225 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
3227 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
3228 with RETURN_ADDR_REGNUM.
3229 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
3230 * config/mips/mips.c (mips16_build_call_stub): Replace
3231 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
3232 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
3233 (mips_print_operand_punctuation): Likewise.
3234 (mips_frame_set): Likewise.
3235 (mips16e_output_save_restore): Likewise.
3236 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3237 (mips_save_reg_p): Likewise.
3238 (mips_return_addr): Likewise.
3239 (mips_set_return_address): Likewise.
3240 (mips_direct_save_slot_move_p): Likewise.
3241 (mips_output_function_prologue): Likewise.
3242 (mips_restore_reg): Likewise.
3243 (mips_expand_epilogue): Likewise.
3244 (mips_epilogue_uses): Likewise.
3245 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
3246 (*mov<mode>_ra): Use it instead of a hard-coded 31.
3247 (clear_hazard_<mode>): Likewise.
3248 (call_internal): Likewise.
3249 (call_internal_direct): Likewise.
3250 (call_direct_split): Likewise.
3251 (call_value_internal): Likewise.
3252 (call_value_split): Likewise.
3253 (call_value_internal_direct): Likewise.
3254 (call_value_direct_split): Likewise.
3255 (call_value_multiple_internal): Likewise.
3256 (call_value_multiple_split): Likewise.
3258 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
3259 Jakub Jelinek <jakub@redhat.com>
3261 PR rtl-optimization/41511
3262 * combine.c (record_value_for_reg): Pass explicit values as argument
3263 to get_last_value_validate.
3264 (get_last_value_validate): Document INSN parameter.
3265 For non-readonly MEMs, assume they might have been modified if INSN
3266 was in another basic block.
3267 (get_last_value): Minor reformatting.
3269 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3272 * final.c (asm_str_count): Split out from asm_insn_count.
3273 * rtl.h (asm_str_count): New prototype.
3274 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
3277 2009-10-05 Sriraman Tallam <tmsriram@google.com>
3279 * doc/plugins.texi: Change plugin_pass to register_pass_info.
3281 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
3282 Rafael Espindola <espindola@google.com>
3284 * gengtype.c (write_types): Moved call to write_func_for_structure
3285 into seperate loops.
3287 2009-10-05 Richard Guenther <rguenther@suse.de>
3290 * lto-cgraph.c (output_cgraph): Output toplevel asms.
3291 (input_cgraph_1): Input toplevel asms.
3293 2009-10-05 Richard Guenther <rguenther@suse.de>
3296 * lto-symtab.c (lto_compatible_attributes_p): Remove.
3297 (external_aggregate_decl_p): Likewise.
3298 (lto_symtab_compatible): Re-structure. Remove dead code.
3299 For variables ignore toplevel qualifiers when comparing types.
3300 Issue warnings, not errors for mismatched user-alignment.
3302 2009-10-05 Richard Guenther <rguenther@suse.de>
3306 * lto-symtab.c (struct lto_symtab_base_def): Remove.
3307 (struct lto_symtab_identifier_def): Likewise.
3308 (struct lto_symtab_decl_def): Likewise.
3309 (struct lto_symtab_entry_def): New.
3310 (lto_symtab_identifier_t): Rename to ...
3311 (lto_symtab_entry_t): ... this.
3312 (lto_symtab_decls): Remove.
3313 (lto_symtab_base_hash): Rename to ...
3314 (lto_symtab_entry_hash): ... this.
3315 (lto_symtab_base_eq): Rename to ...
3316 (lto_symtab_entry_eq): ... this.
3317 (lto_symtab_base_marked_p): Rename to ...
3318 (lto_symtab_entry_marked_p): ... this.
3319 (lto_symtab_identifier_marked_p): Remove.
3320 (lto_symtab_decl_marked_p): Likewise.
3321 (lto_symtab_maybe_init_hash_tables): Rename to ...
3322 (lto_symtab_maybe_init_hash_table): ... this.
3323 (lto_symtab_set_resolution_and_file_data): Remove.
3324 (lto_symtab_register_decl): New function.
3325 (lto_symtab_get_identifier): Remove.
3326 (lto_symtab_get): New function.
3327 (lto_symtab_get_resolution): Adjust.
3328 (lto_symtab_get_identifier_decl): Remove.
3329 (lto_symtab_set_identifier_decl): Likewise.
3330 (lto_symtab_merge_decl): Rename to ...
3331 (lto_symtab_merge): ... this. Rewrite.
3332 (lto_symtab_merge_var): Remove.
3333 (lto_symtab_merge_fn): Likewise.
3334 (lto_symtab_prevailing_decl): Adjust.
3335 (lto_cgraph_replace_node): New function.
3336 (lto_symtab_merge_decls_2): Likewise.
3337 (lto_symtab_merge_decls_1): Likewise.
3338 (lto_symtab_fixup_var_decls): Likewise.
3339 (lto_symtab_resolve_symbols): Likewise.
3340 (lto_symtab_merge_decls): Likewise.
3341 (lto_symtab_prevailing_decl): Adjust.
3342 (lto_symtab_get_symtab_def): Remove.
3343 (lto_symtab_get_file_data): Likewise.
3344 (lto_symtab_clear_resolution): Adjust.
3345 (lto_symtab_clear_resolution): Likewise.
3346 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
3347 (input_cgraph_1): Likewise.
3348 * lto-streamer-in.c (get_resolution): Do not provide fake
3349 symbol resolutions here.
3350 (deferred_global_decls): Remove.
3351 (lto_register_deferred_decls_in_symtab): Likewise.
3352 (lto_register_var_decl_in_symtab): Change signature, register
3353 variable via lto_symtab_register_decl.
3354 (lto_register_function_decl_in_symtab): Likewise.
3355 (lto_read_tree): Adjust.
3356 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
3357 (lto_symtab_merge_var): Likewise.
3358 (lto_symtab_merge_fn): Likewise.
3359 (lto_symtab_register_decl): Declare.
3360 (lto_symtab_merge_decls): Likewise.
3362 2009-10-05 Richard Guenther <rguenther@suse.de>
3364 PR tree-optimization/23821
3365 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
3366 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
3367 simple IV increments.
3369 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3371 * config/arm/arm.c (arm_override_options): Really initialize
3372 flag_dwarf2_cfi_asm to 0.
3374 2009-10-05 Doug Kwan <dougkwan@google.com>
3376 PR rtl-optimization/41574
3377 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
3378 floating point and we are not doing unsafe math optimizations.
3380 2009-10-03 Simon Baldwin <simonb@google.com>
3381 Cary Coutant <ccoutant@google.com>
3382 Rafael Espindola <espindola@google.com>
3383 Richard Guenther <rguenther@suse.de>
3384 Jan Hubicka <jh@suse.cz>
3385 Doug Kwan <dougkwan@google.com>
3386 H.J. Lu <hongjiu.lu@intel.com>
3387 Bill Maddox <maddox@google.com>
3388 Ryan Mansfield <rmansfield@qnx.com>
3389 Diego Novillo <dnovillo@google.com>
3390 Ollie Wild <aaw@google.com>
3391 Kenneth Zadeck <zadeck@naturalbridge.com>
3393 * lto-cgraph.c: New file.
3394 * lto-compress.c: New file.
3395 * lto-compress.h: New file.
3396 * lto-opts.c: New file.
3397 * lto-section-in.c: New file.
3398 * lto-section-out.c: New file.
3399 * lto-streamer-in.c: New file.
3400 * lto-streamer-out.c: New file.
3401 * lto-streamer.c: New file.
3402 * lto-streamer.h: New file.
3403 * lto-symtab.c: New file.
3404 * lto-wpa-fixup.c: New file.
3405 * lto-wrapper.c: New file.
3407 2009-10-03 Simon Baldwin <baldwin@google.com>
3408 Ben Elliston <bje@au.ibm.com>
3409 Rafael Espindola <espindola@google.com>
3410 Nathan Froyd <froydnj@codesourcery.com>
3411 Jan Hubicka <jh@suse.cz>
3412 Doug Kwan <dougkwan@google.com>
3413 Diego Novillo <dnovillo@google.com>
3414 Kenneth Zadeck <zadeck@naturalbridge.com>
3416 * Makefile.in (enable_lto): New.
3417 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
3418 (LINKER_PLUGIN_API_H): Define.
3419 (LTO_SYMTAB_H): Define.
3420 (LTO_STREAMER_H): Define.
3421 (TREE_VECTORIZER_H): Define.
3422 (INCLUDES): Add LIBELFINC.
3423 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
3424 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
3425 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
3426 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
3427 (native): Add lto-wrapper$(exeext)
3428 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
3429 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
3430 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
3431 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
3432 (varasm.o): Add dependency on tree-iterator.h.
3433 (cgraph.o): Add dependency on cif-code.def.
3434 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
3435 (ipa-pure-const.o): Likewise.
3436 (GTFILES): Add lto-symtab.c.
3437 (install-lto-wrapper): New.
3438 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
3439 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
3440 * config.in: Regenerate.
3442 2009-10-03 Rafael Espindola <espindola@google.com>
3443 Diego Novillo <dnovillo@google.com>
3445 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
3446 ipa_write_summaries.
3447 Call execute_ipa_summary_passes for all_regular_ipa_passes and
3449 (cgraph_optimize): Make extern.
3451 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
3452 Kenneth Zadeck <zadeck@naturalbridge.com>
3454 * toplev.c (in_lto_p): Declare.
3455 * collect2.c (scan_prog_file): Read all the output when reading
3456 information for LTO.
3457 (enum lto_mode_d): Declare.
3459 2009-10-03 Richard Guenther <rguenther@suse.de>
3460 Diego Novillo <dnovillo@google.com>
3462 * gimple.c: Include target.h and alias.h.
3463 (gimple_types): Declare.
3464 (type_hash_cache): Declare.
3465 (gimple_alloc_stat): Make extern.
3466 (gimple_build_eh_must_not_throw): Call
3467 gimple_eh_must_not_throw_set_fndecl.
3468 (struct type_pair_d): Declare.
3469 (type_pair_t): Declare.
3470 (type_pair_hash): New.
3471 (type_pair_eq): New.
3472 (lookup_type_pair): New.
3473 (gimple_force_type_merge): New.
3474 (compare_type_names_p): New.
3475 (compare_field_offset): New.
3476 (gimple_types_compatible_p): New.
3477 (struct sccs): Declare.
3478 (next_dfs_num): Declare.
3479 (iterative_hash_gimple_type): New.
3481 (iterative_hash_type_name): New.
3482 (iterative_hash_gimple_type): New.
3483 (gimple_type_hash): New.
3484 (gimple_type_eq): New.
3485 (gimple_register_type): New.
3486 (print_gimple_types_stats): New.
3487 (gimple_signed_or_unsigned_type): New.
3488 (gimple_unsigned_type): New.
3489 (gimple_signed_type): New.
3490 (gimple_get_alias_set): New.
3491 (gimple_decl_printable_name): Do not use DMGL_TYPES.
3492 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
3493 (gimple_force_type_merge): Declare.
3494 (gimple_types_compatible_p): Declare.
3495 (gimple_register_type): Declare.
3496 (print_gimple_types_stats): Declare.
3497 (gimple_unsigned_type): Declare.
3498 (gimple_signed_type): Declare.
3499 (gimple_get_alias_set): Declare.
3500 (gimple_eh_must_not_throw_set_fndecl): New.
3502 2009-10-03 Jan Hubicka <jh@suse.cz>
3503 Kenneth Zadeck <zadeck@naturalbridge.com>
3505 * ipa-pure-const.c: Include lto-streamer.h.
3506 (register_hooks): Factor out of ...
3507 (generate_summary): ... here.
3508 (pure_const_write_summary): New.
3509 (pure_const_read_summary): New.
3510 (pass_ipa_pure_const): Add pure_const_write_summary and
3511 pure_const_read_summary.
3512 * ipa-reference.c: Include lto-streamer.h.
3513 (add_new_function): New.
3514 (remove_node_data): New.
3515 (duplicate_node_data): New.
3516 (ipa_init): Guard against multiple calls.
3517 Move hook setup from analyze_function.
3518 (write_node_summary_p): New.
3519 (ipa_reference_write_summary): New.
3520 (ipa_reference_read_summary): New.
3521 (pass_ipa_reference): Add ipa_reference_write_summary and
3522 ipa_reference_read_summary.
3523 * cgraph.h (cgraph_local_info): Add field lto_file_data.
3524 (struct cgraph_edge): Add fields lto_stmt_uid and
3525 call_stmt_cannot_inline_p.
3526 (cgraph_optimize): Declare.
3527 (cgraph_decide_is_function_needed): Declare.
3528 (reset_inline_failed): Declare.
3529 (enum LTO_cgraph_tags): Declare.
3530 (LTO_cgraph_tag_names): Declare.
3531 (LCC_NOT_FOUND): Define.
3533 2009-10-03 Doug Kwan <dougkwan@google.com>
3534 Rafael Espindola <espindola@google.com>
3535 Jan Hubicka <jh@suse.cz>
3536 Diego Novillo <dnovillo@google.com>
3537 Kenneth Zadeck <zadeck@naturalbridge.com>
3539 * passes.c (all_regular_ipa_passes): New.
3540 (all_ipa_passes): Rename to all_small_ipa_passes.
3541 (init_optimization_passes): Init all_regular_ipa_passes.
3542 * tree-pass.h (all_regular_ipa_passes): New.
3543 (all_ipa_passes): Rename to all_small_ipa_passes.
3544 * passes.c (all_lto_gen_passes): New.
3545 (init_optimization_passes): Initialize all_lto_gen_passes.
3546 (execute_ipa_summary_passes): Make non-static.
3547 (ipa_write_summaries_1): New.
3548 (ipa_write_summaries_2): New.
3549 (ipa_write_summaries): New.
3550 (ipa_write_summaries_of_cgraph_node_set): New.
3551 (ipa_read_summaries_1): New.
3552 (ipa_read_summaries): New.
3553 (execute_ipa_pass_list): Call cgraph_process_new_functions.
3554 (execute_regular_ipa_pass_list): Remove.
3555 (init_optimization_passes): Schedule
3556 pass_rebuild_cgraph_edges and pass_early_inline outside
3557 of pass_all_early_optimizations. Document reason.
3558 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3559 pass_ipa_lto_finish_out): New pass.
3560 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3561 (execute_all_ipa_transforms): New.
3562 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3563 (dump_properties, debug_properties): New.
3564 * tree-optimize.c (gate_all_early_local_passes): Return
3565 false if we are in lto1.
3566 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3567 * tree-pass.h (execute_all_ipa_transforms): Declare.
3568 (pass_ipa_function_and_variable_visibility): Declare.
3569 (pass_ipa_early_inline): Declare.
3570 (pass_ipa_lto_gimple_out): Declare.
3571 (pass_ipa_lto_wpa_fixup): Declare.
3572 (pass_ipa_lto_finish_out): Declare.
3573 (all_small_ipa_passes, all_regular_ipa_passes,
3574 all_lto_gen_passes): Declare.
3575 (execute_ipa_summary_passes): Declare.
3576 (execute_all_ipa_transforms): Declare.
3577 (ipa_write_summaries): Declare
3578 (ipa_write_summaries_of_cgraph_node_set): Declare.
3579 (ipa_read_summaries): Declare.
3581 2009-10-03 Doug Kwan <dougkwan@google.com>
3582 Ollie Wild <aaw@google.com>
3584 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3586 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3587 (lto_mode): New variable.
3588 (maybe_run_lto_and_relink): Handle the -fwpa option.
3589 (main): Handle the -fwpa option.
3590 (maybe_unlink_list): New function.
3591 * gcc.c (link_lto_options): Replace -flto with -fwpa.
3592 * common.opt (flto): New flag.
3593 * toplev.c (flag_generate_lto): Declare.
3595 2009-10-03 Simon Baldwin <simonb@google.com>
3597 * common.opt (flto-compression-level): New flag.
3599 * opts.c: Include lto-opts.h.
3600 (handle_option): Call lto_register_user_option for each
3601 valid option handled.
3602 (decode_options): Clear registered options before the options
3605 2009-10-03 Cary Coutant <ccoutant@google.com>
3607 * collect2.c (is_elf): New function.
3608 (scan_prog_file): Require LTO object to be in ELF format.
3610 2009-10-03 Rafael Espindola <espindola@google.com>
3612 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3613 libgcc to the linker.
3615 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3617 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3618 (collect_execute): Add flags argument. Pass flags to pex_run. Update
3620 * collect2.h (collect_execute): Add flags argument.
3621 * tlink.c (tlink_execute): Update call to collect_execute.
3622 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3623 (use_linker_plugin): New.
3624 (use_linker_plugin_spec_function): New.
3625 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3626 (linker_plugin_file_spec): New.
3627 (lto_wrapper_spec): New.
3628 (lto_gcc_spec): New.
3629 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3630 (static_spec_functions): Add use-linker-plugin.
3631 (process_command): Handle -use-linker-plugin.
3632 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3633 linker_plugin_file_spec and lto_gcc_spec.
3634 (use_linker_plugin_spec_function): New.
3636 2009-10-03 Richard Guenther <rguenther@suse.de>
3640 * tree.h (is_lang_specific): Include LANG_TYPE.
3641 * tree.c (find_decls_types_r): Manually add interesting parts
3642 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
3644 * gimple.c (type_pair_hash): Make symmetric.
3645 (type_pair_eq): Likewise.
3646 (lookup_type_pair): Increase initial hashtable size.
3647 (gimple_force_type_merge): Rely on type-pair symmetry.
3648 (visit): Remove excessive checking code.
3649 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3650 (gimple_register_type): Remove getenv calls, shrink initial
3654 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3655 inline functions if not generating lto output.
3658 * toplev.c (finalize): In WPA mode remove the asm file.
3660 2009-10-03 Doug Kwan <dougkwan@google.com>
3662 * ipa-inline.c (cgraph_mark_inline): Check
3663 edge->call_stmt_cannot_inline_p instead of calling
3664 gimple_call_cannot_inline_p.
3665 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3666 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3667 (inline_generate_summary): Do nothing in LTRANS.
3668 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3669 exists before calling gimple_call_cannot_inline_p.
3670 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3671 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
3672 Update new_edge->lto_stmt_uid.
3673 * cgraphbuild.c (reset_inline_failed): New.
3675 * common.opt (fwpa): New flag.
3676 (fltrans): New option.
3677 * gcc.c (gcc_lto_option_t): New type.
3678 (current_lto_option): New variable.
3679 (lto_single_spec_function): Remove and is replaced by ..
3680 (lto_option_spec_function): New function.
3681 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3682 passing the -flto flag.
3683 (cc1_options): Separate non-LTO related parts into ..
3684 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3685 (lto1_options): New spec for lto FE.
3686 (link_lto_options): New spec for handling LTO flags in linker.
3687 (invoke_lto_single): Re-format to fit in 80 column. Replace
3688 lto-single with lto-option.
3689 (static_specs): Add cc1_non_lto_options, lto1_options and
3691 (static_spec_function): Replace lto-single with lto-option.
3692 (process_command): Handle -flto, -fwpa and -fltran by setting
3693 current_lto_option and not passing it to subprocess unconditionally.
3695 2009-10-03 Bill Maddox <maddox@google.com>
3697 Add `gcc' driver support for link-time code generation (LTO).
3699 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3700 (lto_flag, lto_objects, lto_o_file): New variables.
3701 (struct lto_object, struct lto_object_list): New structures.
3702 (collect_exit, handler): Remove LTO temporary output file on exit.
3703 (add_lto_object): New function.
3704 (maybe_run_lto_and_relink): New function. Perform link time code
3705 generation and relinking for object files containing LTO information.
3706 (main): Invoke maybe_run_lto_and_relink().
3707 (dump_argv): New function. For debugging, currently disabled.
3708 (scan_prog_file): Add LTO information pass.
3709 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3711 * toplev.c (compile_file): Emit assembler directive to create
3712 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3714 2009-10-03 Diego Novillo <dnovillo@google.com>
3716 * c.opt: Add LTO to warn_abi and warn_psabi.
3718 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
3719 inline function. Ignore language-specific nodes. Update all users.
3720 (find_decls_types_r): Do not traverse the subtrees of
3721 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
3722 * tree.h (is_lang_specific): New.
3723 * langhooks.h (struct lang_hooks_for_decls): Remove
3724 may_need_assembler_name_p. Update all users.
3726 * c-common.c (set_builtin_user_assembler_name): Move ...
3727 * builtins.c (set_builtin_user_assembler_name): ... here.
3728 (is_builtin_name): Add comment
3729 (is_builtin_fn): New.
3730 * except.c (output_ttype): Only call
3731 lookup_type_for_runtime if TYPE is not a runtime type.
3733 * passes.c (register_pass): Call position_pass on
3734 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3735 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3736 (TV_IPA_LTO_DECL_IO): Define.
3737 (TV_IPA_LTO_CGRAPH_IO): Define.
3739 (TV_WHOPR_WPA): Define.
3740 (TV_WHOPR_WPA_IO): Define.
3741 (TV_WHOPR_LTRANS): Define.
3742 (TV_WHOPR_WPA_FIXUP): Define.
3743 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3744 * tree-cfg.c (tree_node_can_be_shared): Make extern.
3745 * tree-flow.h (tree_node_can_be_shared): Declare.
3746 * tree-inline.c (tree_can_inline_p): Check that E has a
3747 statement associated with it.
3748 * tree.c (free_lang_data_in_binf): Factor out of ...
3749 (free_lang_data_in_type): ... here.
3750 Call RECORD_OR_UNION_TYPE_P.
3751 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3752 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
3753 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3754 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
3755 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
3756 (gate_free_lang_data): Return true if flag_generate_lto is set.
3757 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3758 * c-common.h (set_builtin_user_assembler_name): Move ...
3759 * tree.h (set_builtin_user_assembler_name): ... here.
3761 * common.opt (flto-report): New flag.
3762 * opts.c (complain_wrong_lang): Do not complain if running lto1.
3763 * collect2.c (scan_prog_file): Send the error output of
3764 'nm' to HOST_BIT_BUCKET.
3766 2009-10-03 Ollie Wild <aaw@google.com>
3768 * langhooks-def.h (lhd_begin_section): New function declaration.
3769 (lhd_write_section): New function declaration.
3770 (lhd_end_section): New function declaration.
3771 (LANG_HOOKS_BEGIN_SECTION): New macro.
3772 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3773 (LANG_HOOKS_END_SECTION): New macro.
3774 (LANG_HOOKS_LTO): New macro.
3775 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3776 * langhooks.c (output.h): Add include.
3777 (saved_section): New static variable.
3778 (lhd_begin_section): New function.
3779 (lhd_write_section_data): New function.
3780 (lhd_end_section): New function.
3781 * langhooks.h (struct lang_hooks_for_lto): New structure.
3782 (struct lang_hooks): Add member lto.
3783 * Makefile.in (langhooks.o): Add dependency on output.h.
3785 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3787 2009-10-03 Richard Guenther <rguenther@suse.de>
3789 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3792 2009-10-03 Simon Baldwin <simonb@google.com>
3793 Richard Guenther <rguenther@suse.de>
3794 Janis Johnson <janis187@us.ibm.com>
3795 Doug Kwan <dougkwan@google.com>
3796 Diego Novillo <dnovillo@google.com>
3797 Ramana Radhakrishnan <ramana.r@gmail.com>
3798 Ollie Wild <aaw@google.com>
3800 * doc/install.texi: Add documentation for libelf and --enable-lto.
3801 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3802 -flto-report, -flto-compression-level and -use-linker-plugin.
3803 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
3804 Add section for LTO Testing.
3806 2009-10-02 Cary Coutant <ccoutant@google.com>
3808 Add support for comdat type sections for DWARF v4.
3809 Merge from dwarf4 branch.
3811 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3812 (dw_die_ref): Define vector type.
3813 (enum dw_val_class): Add dw_val_class_data8.
3814 (struct dw_val_struct): Add v.val_data8.
3815 (comdat_type_node_ref): New type.
3816 (struct die_struct): Move die_symbol into a union; add new field
3817 die_type_node. Change all uses.
3818 (comdat_type_node): New type.
3819 (skeleton_chain_node): New type.
3820 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3821 (comdat_type_list): New variable.
3822 (dwarf_tag_name): Add DW_TAG_type_unit.
3823 (dwarf_attr_name): Add DW_AT_signature.
3824 (add_AT_data8): New function.
3825 (replace_child): New function.
3826 (move_all_children): New function.
3827 (print_signature): New function.
3828 (print_die): Print signature information; add dw_val_class_data8.
3829 (attr_checksum): Support dw_val_class_data8.
3830 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3831 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3832 (checksum_sleb128, checksum_uleb128): New functions.
3833 (checksum_die_context): New function.
3834 (loc_checksum_ordered): New function.
3835 (attr_checksum_ordered): New function.
3836 (struct checksum_attributes): New structure.
3837 (collect_checksum_attributes): New function.
3838 (die_checksum_ordered): New function.
3839 (generate_type_signature): New function.
3840 (same_dw_val_p): Add dw_val_class_data8.
3841 (is_symbol_die): Use new is_declaration_die function.
3842 (is_declaration_die): New function.
3843 (should_move_die_to_comdat): New function.
3844 (clone_die): New function.
3845 (clone_tree): New function.
3846 (clone_as_declaration): New function.
3847 (copy_declaration_context): New function.
3848 (generate_skeleton_ancestor_tree): New function.
3849 (generate_skeleton_bottom_up): New function.
3850 (generate_skeleton): New function.
3851 (remove_child_or_replace_with_skeleton): New function.
3852 (break_out_comdat_types): New function.
3853 (struct decl_table_entry): New type.
3854 (htab_decl_hash): New function.
3855 (htab_decl_eq): New function.
3856 (htab_decl_del): New function.
3857 (copy_ancestor_tree): New function.
3858 (copy_decls_walk): New function.
3859 (copy_decls_for_unworthy_types): New function.
3860 (build_abbrev_table): Don't assert on missing die_symbol when doing
3861 comdat type sections.
3862 (size_of_die): Use DW_FORM_sig8 for external references. Add
3864 (unmark_dies): Don't assert for unmarked dies when doing comdat
3866 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3867 (output_signature): New function.
3868 (output_die): Likewise.
3869 (output_compilation_unit_header): Mark output as DWARF version 3
3870 even if generating DWARF 4.
3871 (output_comdat_type_unit): New function.
3872 (output_line_info): Mark output as DWARF version 3 even if generating
3874 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3876 (dwarf2out_end_source_file): Likewise.
3877 (prune_unused_types_walk_attribs): Don't follow references into
3878 comdat type sections.
3879 (prune_unused_types_mark): When generating type units, do not mark
3880 children of non-defining declarations of types; do mark children of
3882 (prune_unused_types): Process comdat type sections.
3883 (htab_ct_hash): New function.
3884 (htab_ct_eq): New function.
3885 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3886 Add a pointer to the line table from type unit entries so
3887 DW_AT_decl_file has meaning.
3888 * varasm.c (default_elf_asm_named_section): Use identifier name as
3889 comdat key instead of lang hook.
3891 2009-10-02 Neil Vachharajani <nvachhar@google.com>
3893 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3895 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
3897 * config/i386/i386.md (SWIM248): New mode iterator.
3898 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3899 divmodhi4 patterns using SWIM248 macro.
3900 (*divmod<mode>4): Macroize insn_and_split pattern from
3901 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3902 and their corresponding splitters usign SWIM248 macro. Split SImode
3903 insn to generate cltd and DImode insn to generate cqto instead of
3904 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3905 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3906 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3907 *divmodsi_noext patterns using SWIM248 macro.
3908 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3909 udivmodhi4 patterns using SWIM248 macro.
3910 (*udivmod<mode>4): Macroize insn_and_split pattern from
3911 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3912 corresponding splitters using SWIM248 macro.
3913 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3914 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3916 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
3918 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3919 of zero-sized element is zero-sized regardless of its extent.
3921 2009-10-02 Jakub Jelinek <jakub@redhat.com>
3924 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3925 * configure: Regenerated.
3926 * config.in: Regenerated.
3927 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3928 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3929 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3930 not emitting .eh_frame, emit .cfi_sections .debug_frame
3935 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3936 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3938 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3939 vars use DECL_RTL with resetting it back to NULL afterwards.
3940 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3941 rtx_equal_p instead of asserting it is a SYMBOL_REF.
3942 (value_format): For dw_val_class_addr only use DW_FORM_addr if
3943 the attribute type allows it, otherwise use DW_FORM_dataN.
3944 (mem_loc_descriptor): Handle CONST_STRING.
3945 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3946 Handle MEM with CONST_STRING address using add_AT_string.
3947 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3948 CONST_STRING for const arrays initialized with a string literal.
3949 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3950 (dwarf2out_finish): Call resolve_addr.
3952 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
3953 Maxim Kuvyrkov <maxim@codesourcery.com>
3955 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3957 2009-10-02 Nick Clifton <nickc@redhat.com>
3959 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3960 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3962 2009-10-01 Jan Hubicka <jh@suse.cz>
3964 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3965 (cgraph_create_virtual_clone): Just pass redirect_callers
3967 * cgraph.h (cgraph_clone_node): Update prototype.
3968 * ipa-pure-const.c (self_recursive_p): New function.
3969 (propagate): Use it.
3970 * ipa-inline.c (cgraph_clone_inlined_nodes,
3971 cgraph_decide_recursive_inlining): Update.
3973 2009-10-01 David Daney <ddaney@caviumnetworks.com>
3975 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3976 instructions for TARGET_OCTEON.
3978 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3980 * config/arm/arm.c (arm_override_options): Turn off
3981 flag_dwarf2_cfi_asm for AAPCS variants.
3983 2009-10-01 Martin Jambor <mjambor@suse.cz>
3986 * tree-sra.c (convert_callers): Do not call
3987 compute_inline_parameters on one caller more than once.
3989 2009-10-01 Nick Clifton <nickc@redhat.com>
3991 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3992 an empty string if not already defined.
3994 2009-10-01 Martin Jambor <mjambor@suse.cz>
3997 * tree-sra.c (is_va_list_type): New function.
3998 (find_var_candidates): Call is_va_list_type.
3999 (find_param_candidates): Check that the type or the type pointed
4000 to are not va_list types.
4002 2009-10-01 Martin Jambor <mjambor@suse.cz>
4005 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
4006 DECL_ARTIFICIAL (param_decl) is true.
4008 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
4010 * tree.h (tree_decl_common::lang_flag_8): New.
4011 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
4013 * c-common.h (RID_CONSTEXPR): New.
4015 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
4017 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
4018 Use ref-all pointers.
4019 (alpha_gimplify_va_arg): Ditto.
4021 2009-09-30 Jakub Jelinek <jakub@redhat.com>
4024 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
4025 before insn counting loop now that BB_END (bb) is counted. Ensure
4026 the return value isn't zero.
4028 2009-09-30 Nick Clifton <nickc@redhat.com>
4030 * config.gcc (sh-symbianelf): Replace definition of extra_objs
4031 with separate definitions of c_target_objs and cxx_target_objs.
4032 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
4034 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
4035 sh_symbian_import_export_class.
4036 * config/sh/sh-protos.h: Fix names of exported symbian functions.
4037 * config/sh/symbian.c: Delete, moving code into...
4038 * config/sh/symbian-base.c: ... here
4039 * config/sh/symbian-c.c: ... and here
4040 * config/sh/symbian-cxx.c: ... and here.
4042 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
4045 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
4046 of plus RTX into register.
4048 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4050 * doc/install.texi: Linguistic and markup fixes.
4051 (Configuration) <--disable-cpp>: Remove description.
4052 <--enable-maintainer-mode>: Autotools files are affected, too.
4053 <--with-sysroot>: Improve description.
4054 (Building): Bump required GNU make version.
4056 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
4058 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
4059 (x86_64-*-*): Ditto.
4061 * config/i386/fma4intrin.h: New file, provide common x86 compiler
4062 intrinisics for FMA4.
4063 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
4064 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
4065 Add FMA4 check and fma4intrin.h.
4066 * config/i386/i386-c.c(ix86_target_macros_internal): Check
4068 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
4069 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
4070 constant for FMA4 support.
4071 (UNSPEC_FMA4_FMADDSUB): Ditto.
4072 (UNSPEC_FMA4_FMSUBADD): Ditto.
4073 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
4074 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
4075 (ix86_expand_fma4_multiple_memory): Ditto.
4076 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
4077 (OPTION_MASK_ISA_FMA4_UNSET): New.
4078 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
4079 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
4080 (ix86_handle_option): Handle -mfma4.
4081 (isa_opts): Handle -mfma4.
4082 (enum pta_flags): Add PTA_FMA4.
4083 (override_options): Add FMA4 support.
4084 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
4085 (IX86_BUILTIN_VFMADDSD): Ditto.
4086 (IX86_BUILTIN_VFMADDPS): Ditto.
4087 (IX86_BUILTIN_VFMADDPD): Ditto.
4088 (IX86_BUILTIN_VFMSUBSS): Ditto.
4089 (IX86_BUILTIN_VFMSUBSD): Ditto.
4090 (IX86_BUILTIN_VFMSUBPS): Ditto.
4091 (IX86_BUILTIN_VFMSUBPD): Ditto.
4092 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
4093 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
4094 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
4095 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
4096 (IX86_BUILTIN_VFNMADDSS): Ditto.
4097 (IX86_BUILTIN_VFNMADDSD): Ditto.
4098 (IX86_BUILTIN_VFNMADDPS): Ditto.
4099 (IX86_BUILTIN_VFNMADDPD): Ditto.
4100 (IX86_BUILTIN_VFNMSUBSS): Ditto.
4101 (IX86_BUILTIN_VFNMSUBSD): Ditto.
4102 (IX86_BUILTIN_VFNMSUBPS): Ditto.
4103 (IX86_BUILTIN_VFNMSUBPD): Ditto.
4104 (IX86_BUILTIN_VFMADDPS256): Ditto.
4105 (IX86_BUILTIN_VFMADDPD256): Ditto.
4106 (IX86_BUILTIN_VFMSUBPS256): Ditto.
4107 (IX86_BUILTIN_VFMSUBPD256): Ditto.
4108 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
4109 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
4110 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
4111 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
4112 (IX86_BUILTIN_VFNMADDPS256): Ditto.
4113 (IX86_BUILTIN_VFNMADDPD256): Ditto.
4114 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
4115 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
4116 (enum multi_arg_type): New enum for describing the various FMA4
4117 intrinsic argument types.
4118 (bdesc_multi_arg): New table for FMA4 intrinsics.
4119 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
4120 (ix86_expand_multi_arg_builtin): New function for creating FMA4
4122 (ix86_expand_builtin): Add FMA4 intrinsic support.
4123 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
4124 operand instructions.
4125 (ix86_expand_fma4_multiple_memory): New function to split the
4126 second memory reference from FMA4 instructions.
4127 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
4128 (ssemodesuffixf2s): Ditto.
4129 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
4131 (fma4_fmsub<mode>4): Ditto.
4132 (fma4_fnmadd<mode>4): Ditto.
4133 (fma4_fnmsub<mode>4): Ditto.
4134 (fma4_vmfmadd<mode>4): Ditto.
4135 (fma4_vmfmsub<mode>4): Ditto.
4136 (fma4_vmfnmadd<mode>4): Ditto.
4137 (fma4_vmfnmsub<mode>4): Ditto.
4138 (fma4_fmadd<mode>4256): Ditto.
4139 (fma4_fmsub<mode>4256): Ditto.
4140 (fma4_fnmadd<mode>4256): Ditto.
4141 (fma4_fnmsub<mode>4256): Ditto.
4142 (fma4_fmaddsubv8sf4): Ditto.
4143 (fma4_fmaddsubv4sf4): Ditto.
4144 (fma4_fmaddsubv4df4): Ditto.
4145 (fma4_fmaddsubv2df4): Ditto.
4146 (fma4_fmsubaddv8sf4): Ditto.
4147 (fma4_fmsubaddv4sf4): Ditto.
4148 (fma4_fmsubaddv4df4): Ditto.
4149 (fma4_fmsubaddv2df4): Ditto.
4150 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
4151 instructions for intrinsics.
4152 (fma4i_fmsub<mode>4): Ditto.
4153 (fma4i_fnmadd<mode>4): Ditto.
4154 (fma4i_fnmsub<mode>4): Ditto.
4155 (fma4i_vmfmadd<mode>4): Ditto.
4156 (fma4i_vmfmsub<mode>4): Ditto.
4157 (fma4i_vmfnmadd<mode>4): Ditto.
4158 (fma4i_vmfnmsub<mode>4): Ditto.
4159 (fma4i_fmadd<mode>4256): Ditto.
4160 (fma4i_fmsub<mode>4256): Ditto.
4161 (fma4i_fnmadd<mode>4256): Ditto.
4162 (fma4i_fnmsub<mode>4256): Ditto.
4163 (fma4i_fmaddsubv8sf4): Ditto.
4164 (fma4i_fmaddsubv4sf4): Ditto.
4165 (fma4i_fmaddsubv4df4): Ditto.
4166 (fma4i_fmaddsubv2df4): Ditto.
4167 (fma4i_fmsubaddv8sf4): Ditto.
4168 (fma4i_fmsubaddv4sf4): Ditto.
4169 (fma4i_fmsubaddv4df4): Ditto.
4170 (fma4i_fmsubaddv2df4): Ditto.
4172 * doc/invoke.texi (-mfma4): Add documentation.
4173 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
4175 2009-09-29 Richard Henderson <rth@redhat.com>
4177 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
4178 an edge to the new destination block.
4180 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4183 * pa.c (hppa_profile_hook): Use
4184 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
4186 2009-09-29 Steve Ellcey <sje@cup.hp.com>
4187 Alexander Monakov <amonakov@ispras.ru>
4190 * config/ia64/predicates.md (not_postinc_destination_operand): New.
4191 (not_postinc_memory_operand): New.
4192 (not_postinc_move_operand): New.
4193 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
4194 (*cmovsi_internal): Ditto.
4196 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
4198 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
4199 restrict issue_rate in first pass when scheduling for register
4202 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
4203 Rafael Avila de Espindola <espindola@google.com>
4205 * gengtype.c (plugin_output): New.
4206 (get_output_file_with_visibility): Return plugin_output for plugins.
4207 (main): Parse and use the -P option.
4208 * gty.texi: Update the command line format.
4210 2009-09-29 Jakub Jelinek <jakub@redhat.com>
4213 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
4215 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
4216 out if !const_ok_for_output.
4219 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
4220 case VAR_LOCATION>: Remove gcc_unreachable ().
4222 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
4224 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
4225 (x86_64-*-*): Ditto.
4226 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
4227 back to smmintrin.h.
4228 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
4229 * config/i386/x86intrin.h: Remove SSE5.
4230 * config/i386/mmintrin-common.h: Delete file.
4231 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
4233 2009-09-29 Richard Guenther <rguenther@suse.de>
4235 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
4236 resulting from stack temporaries on STRICT_ALIGNMENT targets.
4238 2009-09-29 Nick Clifton <nickc@redhat.com>
4240 * function.c (current_function_name): If there is no current
4241 function just return "<none>".
4243 2009-09-28 Sriraman Tallam <tmsriram@google.com>
4245 * tree-pass.h (register_pass_info): New structure.
4246 (pass_positioning_ops): Move enum from gcc-plugin.h.
4247 (register_pass): New function.
4248 * gcc-plugin.h (plugin_pass): Delete structure.
4249 (pass_positioning_ops): Delete enum.
4250 * plugin.c (regsiter_pass): Delete function.
4251 (position_pass): Delete function.
4252 (added_pass_nodes): Delete variable.
4253 (prev_added_pass_nodes): Delete variable.
4254 (pass_list_node): Delete structure.
4255 * passes.c (make_pass_instance): New function.
4256 (next_pass_1): Change to call make_pass_instance.
4257 (pass_list_node): Move structure from gcc-plugin.h.
4258 (added_pass_nodes): Move variable from plugin.c.
4259 (prev_added_pass_nodes): Move variable from plugin.c.
4260 (position_pass): New function.
4261 (register_pass): New function.
4263 2009-09-28 Easwaran Raman <eraman@google.com>
4265 * ifcvt.c (noce_try_abs): Recognize pattern and call
4266 expand_one_cmpl_abs_nojump.
4267 * optabs.c (expand_one_cmpl_abs_nojump): New function.
4268 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
4270 2009-09-28 Ian Lance Taylor <iant@google.com>
4273 * c-opts.c (c_common_handle_option): Don't set
4274 warn_jump_misses_init for -Wall.
4275 * doc/invoke.texi (Warning Options): Update documentation.
4277 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4279 * Makefile.in ($(out_object_file)): Depend on
4280 gt-$(basename $(notdir $(out_file))).h.
4282 2009-09-28 Richard Henderson <rth@redhat.com>
4284 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
4285 * except.c (gen_eh_region): Set it.
4286 (duplicate_eh_regions_1): Copy it.
4287 * tree-eh.c (lower_resx): Use it to determine which function
4290 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
4291 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
4292 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
4293 * tree.c (build_common_builtin_nodes): Remove parameter. Build
4294 BUILT_IN_CXA_END_CLEANUP if necessary.
4296 * c-common.c (c_define_builtins): Update call to
4297 build_common_builtin_nodes.
4299 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
4301 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
4303 2009-09-28 Michael Matz <matz@suse.de>
4305 * builtins.c (interclass_mathfn_icode): New helper.
4306 (expand_builtin_interclass_mathfn): Use it here, and split folding
4308 (fold_builtin_interclass_mathfn): ... this new folder.
4309 (build_call_nofold_loc): New static helper.
4310 (build_call_nofold): New wrapper macro for above.
4311 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
4312 (expand_builtin_pow): Ditto.
4313 (expand_builtin_memset_args): Ditto.
4314 (expand_builtin_printf): Ditto.
4315 (expand_builtin_fprintf): Ditto.
4316 (expand_builtin_sprintf): Ditto.
4317 (expand_builtin_memory_chk): Ditto.
4318 (expand_builtin_mempcpy_args): Ditto and don't call folders.
4319 (expand_builtin_stpcpy): Ditto.
4320 (expand_builtin_strcmp): Ditto.
4321 (expand_builtin_strncmp): Ditto.
4322 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
4323 (expand_builtin_strcpy_args): Don't call folders.
4324 (expand_builtin_memcmp): Ditto.
4325 (expand_builtin_strncpy): Ditto, and use target.
4326 (expand_builtin_memcpy): Ditto.
4327 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
4328 expand_builtin_strpbrk, expand_builtin_memmove,
4329 expand_builtin_memmove_args, expand_builtin_bcopy,
4330 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
4331 expand_builtin_strspn, expand_builtin_strcspn,
4332 expand_builtin_fputs): Remove these.
4333 (expand_builtin): Don't call the above, change calls to other
4334 expanders that changed prototype.
4335 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
4336 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
4337 fold_builtin_interclass_mathfn.
4338 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
4339 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
4341 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
4342 * passes.c (init_optimization_passes): Move pass_fold_builtins
4343 after last phiopt pass.
4344 * tree-inline.c (fold_marked_statements): When folding builtins
4345 iterate over all instruction potentially generated.
4346 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
4348 (fold_gimple_call): Use it to always fold calls (into potentially
4349 multiple instructions).
4350 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
4351 calls into zero at this time.
4352 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
4353 statements generated by builtin folding.
4355 2009-09-28 Nick Clifton <nickc@redhat.com>
4357 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
4359 2009-09-28 Duncan Sands <baldrick@free.fr>
4361 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
4362 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
4363 (register_callback): Dispatch it.
4364 (invoke_plugin_callbacks): Incorporate in sanity check.
4365 * ggc.h (ggc_register_cache_tab): Add declaration.
4366 * ggc-common.c (ggc_register_root_tab): Simplify.
4367 (const_ggc_cache_tab_t): New typedef.
4368 (extra_cache_vec): New vector of dynamically added cache tables.
4369 (ggc_register_cache_tab): New function.
4370 (ggc_scan_cache_tab): New function.
4371 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
4372 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
4374 2009-09-27 Richard Henderson <rth@redhat.com>
4376 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
4377 which we remove __builtin_stack_restore.
4379 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
4381 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
4382 to test for GRD_INVARIANT.
4383 (simple_rhs_p): Anything that's function_invariant_p is fine.
4385 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
4387 * gengtype.c (main): Use plunge_files instead of plugin_output.
4389 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
4390 Rafael Avila de Espindola <espindola@google.com>
4392 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
4393 Don't print pch related info if it is false.
4394 (main): Don't print pch info in plugin mode.
4396 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
4398 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
4399 with dw_val_class_const_double.
4400 (struct dw_val_struct): Replace val_long_long with val_double and
4401 adjust for above change.
4402 (output_loc_operands): Likewise.
4403 (add_AT_long_long): Rename into...
4404 (add_AT_double): ...this.
4405 (print_die): Replace dw_val_class_long_long with
4406 dw_val_class_const_double and adjust.
4407 (attr_checksum): Likewise.
4408 (same_dw_val_p): Likewise.
4409 (size_of_die): Likewise.
4410 (value_format): Likewise.
4411 (output_die): Likewise.
4412 (loc_descriptor) <CONST_DOUBLE>: Likewise.
4413 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
4414 instead of add_AT_long_long.
4415 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
4416 value with the precision of its type.
4418 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
4421 * c-typeck.c (build_conditional_expr): Use the readonly and
4422 volatile flags of the operand types, not of the operands itself.
4424 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
4426 * collect2.c (main): Look for -brtl before adding libraries.
4428 2009-09-27 Jonathan Gray <jsg@openbsd.org>
4430 * config.gcc: Update OpenBSD targets.
4431 * config/openbsd-stdint.h: New file.
4432 * config/openbsd-libpthread.h: New file.
4433 * config/openbsd.h: Update and break out LIB_SPEC definition.
4434 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
4435 * config/i386/openbsdelf.h: Correct types.
4436 * config/m68k/openbsd.h: Likewise.
4437 * config/mips/openbsd.h: Likewise.
4438 * config/vax/openbsd.h: Likewise.
4440 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
4442 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
4443 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
4444 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
4445 of the length and zero.
4447 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4449 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
4450 (FLAGS_H): Add options.h $(REAL_H).
4451 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
4452 (TREE_VECTORIZER_H): New.
4453 (EBITMAP_H): Renamed from EBIMAP_H.
4454 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
4455 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
4456 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
4457 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
4458 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
4459 (graphite-clast-to-gimple.o, graphite-dependences.o)
4460 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
4461 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
4462 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
4463 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
4464 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
4465 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
4466 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
4467 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
4468 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
4469 updated and fixed as per above changes and per
4470 check_makefile_deps.sh output.
4473 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
4474 * configure: Regenerate.
4476 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4478 * doc/install.texi: Update minimum MPC version to 0.7.
4480 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
4482 * doc/install.texi (Binaries): Remove reference to the binary
4483 distribution CD-ROM from the FSF.
4485 2009-09-26 Michael Matz <matz@suse.de>
4489 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
4490 that are mentioned in the body.
4492 2009-09-26 Michael Matz <matz@suse.de>
4494 PR tree-optimization/41454
4495 * tree-ssa-dom (stmts_to_rescan): Remove variable.
4496 (tree_ssa_dominator_optimize): Don't allocate and free it.
4497 (dom_opt_leave_block): Don't iterate over it.
4498 (eliminate_redundant_computations): Don't return a value.
4499 (cprop_operand, cprop_into_stmt): Ditto.
4500 (optimize_stmt): Don't defer updating stmts.
4502 2009-09-25 Dodji Seketeli <dodji@redhat.com>
4504 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4505 generic_parameter_die, template_parameter_pack_die,
4506 gen_formal_parameter_die, gen_subprogram_die): Adjust after
4507 renaming DW_TAG_formal_parameter_pack and
4508 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4509 and DW_TAG_GNU_template_parameter_pack.
4511 2009-09-25 Anatoly Sokolov <aesok@post.ru>
4513 * config/v850/v850.h (FUNCTION_VALUE): Remove.
4514 * config/v850/v850.c (v850_function_value): New function.
4515 (TARGET_FUNCTION_VALUE): Define.
4517 2009-09-25 Jakub Jelinek <jakub@redhat.com>
4519 * tree-vect-stmts.c (vectorizable_call): Call
4520 mark_symbols_for_renaming after vect_finish_stmt_generation.
4522 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4523 to loc_descriptor_from_tree.
4524 (add_location_or_const_value_attribute): Pass 0 instead of 2
4525 for decl_by_reference_p decls.
4527 2009-09-25 Richard Guenther <rguenther@suse.de>
4530 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4533 2009-09-25 Ben Elliston <bje@au.ibm.com>
4535 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4538 2009-09-25 Alan Modra <amodra@bigpond.net.au>
4540 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4541 form of instruction.
4543 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4546 * fold-const.c (const_binop): Handle complex int division.
4547 * tree-complex.c (expand_complex_div_straight,
4548 expand_complex_div_wide): Update comments.
4550 2009-09-24 DJ Delorie <dj@redhat.com>
4553 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4554 (reg_class): Likewise.
4555 (REG_CLASS_NAMES): Likewise.
4556 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4557 (m32c_override_options): Disable -fivopts for M32C.
4559 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4561 * config/rs6000/predicates.md (indexed_or_indirect_operand):
4562 Delete VSX load/store with update support.
4563 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4564 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4568 (VStype_load_update): Ditto.
4569 (VStype_store_update): Ditto.
4570 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4571 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4573 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4574 load/store with update builtins.
4576 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
4578 * libgcc2.c (L_trampoline): Prototype for getpagesize
4579 and mprotect in WINNT case.
4581 2009-09-24 Anatoly Sokolov <aesok@post.ru>
4583 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4584 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4585 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4586 'outgoing' argument.
4587 (TARGET_FUNCTION_VALUE): Define.
4589 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4591 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4593 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4596 * common.opt: Initialize dwarf_strict to -1.
4597 * toplev.c (process_options): Catch unset dwarf_strict
4598 and set to 0 for all targets not overriding.
4599 * config/darwin.c (darwin_override_options): Catch unset
4600 dwarf_strict and override to 1.
4602 2009-09-24 Jeff Law <law@redhat.com>
4604 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4606 2009-09-24 Richard Guenther <rguenther@suse.de>
4608 PR tree-optimization/36143
4609 PR tree-optimization/38747
4610 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4611 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4613 2009-09-24 Jakub Jelinek <jakub@redhat.com>
4616 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4617 return false instead of gcc_unreachable (). For CONST return the
4618 value returned by recursive call instead of always returning true.
4619 (tree_add_const_value_attribute): Return the value returned by
4620 add_const_value_attribute instead of always returning true if rtl
4623 2009-09-23 Justin Seyster <jrseys@gmail.com>
4625 * Makefile.in (PLUGIN_HEADERS): Include real.h.
4627 2009-09-24 Jakub Jelinek <jakub@redhat.com>
4629 * cgraphunit.c (cgraph_lower_function): Revert last change.
4630 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4631 instead of DECL_NO_STATIC_CHAIN.
4632 * tree-cfg.c (verify_gimple_call): Likewise.
4633 * tree-nested.c (get_chain_decl, get_chain_field,
4634 convert_tramp_reference_op, convert_gimple_call): Likewise.
4635 (convert_all_function_calls): Likewise. Always set or clear
4636 DECL_STATIC_CHAIN initially, for !n->outer clear it.
4637 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4638 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4640 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4641 DECL_NO_STATIC_CHAIN.
4642 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4643 instead of DECL_NO_STATIC_CHAIN.
4644 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
4645 decl_function_context.
4646 * varasm.c (initializer_constant_valid_p): Likewise.
4647 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4648 (DECL_STATIC_CHAIN): ... this.
4649 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4650 instead of DECL_NO_STATIC_CHAIN.
4652 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
4653 Rafael Avila de Espindola <espindola@google.com>
4655 * gengtype.c (nb_plugin_files): Make it unsigned to match
4656 num_gt_files. Adjust other variables to avoid warnings.
4657 (main): Allocate an all zero lang_bitmap before each plugin file name
4658 to match regular file names.
4660 2009-09-23 Richard Henderson <rth@redhat.com>
4662 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4663 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4664 static chain passed in memory.
4665 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4666 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4667 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
4668 STATIC_CHAIN_REGNUM defined.
4670 * config/picochip/picochip-protos.h: s/class/klass/.
4671 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4672 (picochip_static_chain): New.
4673 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4674 (STATIC_CHAIN_INCOMING): Remove.
4676 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4677 (xtensa_static_chain): New.
4678 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4679 (STATIC_CHAIN_INCOMING): Remove.
4681 2009-09-23 Anatoly Sokolov <aesok@post.ru>
4683 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4684 * config/pa/pa-protos.h (function_value): Remove.
4685 * config/pa/pa.c (pa_function_value): Rename from function_value.
4686 Make static, add 'outgoing' argument.
4687 (TARGET_FUNCTION_VALUE): Define.
4689 2009-09-23 Anatoly Sokolov <aesok@post.ru>
4691 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4692 instead of cfun->machine->is_leaf.
4693 * config/avr/avr.h (machine_function): Remove is_leaf field.
4695 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4698 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4699 DW_OP_piece after DW_OP_stack_value, adjust size calculations
4700 for it, when DW_OP_stack_value and DW_OP_implicit_value has
4701 the same size, prefer DW_OP_stack_value.
4702 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4703 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4705 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
4708 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4710 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
4713 * cfgexpand.c (convert_debug_memory_address): New.
4714 (expand_debug_expr): Convert base address and offset to the same
4715 mode. Use it to convert addresses to other modes. Accept
4718 2009-09-23 Richard Guenther <rguenther@suse.de>
4720 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4721 produced for bigendian targets with promoted subregs.
4723 2009-09-23 Richard Guenther <rguenther@suse.de>
4725 * value-prof.c (gimple_ic): Purge old EH edges only after building
4728 2009-09-23 Nick Clifton <nickc@redhat.com>
4730 * config/arc/arc.c (arc_trampoline_init): Fix typo.
4732 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4735 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4738 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4739 on non-nested functions.
4741 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4742 Jan Hubicka <jh@suse.cz>
4744 * dwarf2out.c (loc_list_plus_const): Only define if
4745 DWARF2_DEBUGGING_INFO.
4746 (address_of_int_loc_descriptor): Likewise.
4749 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4751 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
4754 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4755 constant is more than zero.
4757 2009-09-23 Alan Modra <amodra@bigpond.net.au>
4760 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4761 call final to emit non-scheduled prologue, instead insert at entry.
4763 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
4764 Joseph S. Myers <joseph@codesourcery.com>
4766 * doc/install.texi (*-*-freebsd*): Add proper format codes.
4768 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
4769 Rafael Avila de Espindola <espindola@google.com>
4771 * gengtype.c (is_file_equal): New function.
4772 (close_output_files): Use is_file_equal. Free of->buf.
4774 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
4775 Rafael Avila de Espindola <espindola@google.com>
4777 * gengtype.c (write_types, write_local): Add the output_header
4778 argument. Update all callers.
4780 2009-09-22 Dodji Seketeli <dodji@redhat.com>
4782 * dwarf2out.c (template_parameter_pack_die,
4783 gen_formal_parameter_pack_die ): New functions.
4784 (make_ith_pack_parameter_name): Remove this function.
4785 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4786 DW_TAG_formal_parameter_pack.
4787 (gen_generic_params_dies): Represent each template parameter pack
4788 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4789 represented by usual DW_TAG_template_*_parameter DIEs that are
4790 children of the DW_TAG_template_parameter_pack element DIE.
4791 (generic_parameter_die): This doesn't deal with parameter pack
4792 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4793 of parameter pack DIEs.
4794 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4795 in certain cases, e.g. for pack elements.
4796 (gen_formal_types_die, gen_decl_die): Adjust usage of
4797 gen_formal_parameter_die.
4798 (gen_subprogram_die): Represent each function parameter pack by a
4799 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4800 represented by usual DW_TAG_formal_parameter DIEs that are children
4801 of the DW_TAG_formal_parameter_pack DIE. Remove references to
4802 ____builtin_va_alist decls as no part of the compiler uses those
4804 * langhooks.h (struct lang_hooks_for_decls): Add
4805 function_parm_expanded_from_pack_p, get_generic_function_decl
4806 and function_parameter_pack_p hooks. Fix comment for
4807 get_innermost_generic_parms hook.
4808 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4809 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4810 macros and use them to initialize lang_hook.
4812 2009-09-22 Richard Henderson <rth@redhat.com>
4814 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4815 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4816 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4817 on TRAMPOLINE_TEMPLATE.
4818 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4819 TRAMPOLINE_ADJUST_ADDRESS.
4820 * targhooks.c (default_asm_trampoline_template): Remove.
4821 (default_trampoline_adjust_address): Remove.
4822 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4823 * targhooks.h: Update decls.
4825 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4827 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4828 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4829 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4831 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
4834 * reload1.c (reload): Reset debug insns with pseudos without
4837 2009-09-22 Janis Johnson <janis187@us.ibm.com>
4839 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4840 unconditional true for decimal float modes.
4841 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4842 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4844 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
4846 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4847 Enable a new case for __FreeBSD__ >= 7.
4848 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4849 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4850 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4851 and USE_LD_AS_NEEDED.
4853 * doc/install.texi (*-*-freebsd*): Update target information.
4855 2009-09-22 Richard Guenther <rguenther@suse.de>
4858 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4859 arrays really properly.
4861 2009-09-22 Richard Henderson <rth@redhat.com>
4864 * target.h (struct gcc_target): Add asm_out.trampoline_template,
4865 calls.static_chain, calls.trampoline_init,
4866 calls.trampoline_adjust_address.
4867 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4868 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4869 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4870 * builtins.c (expand_builtin_setjmp_receiver): Use
4871 targetm.calls.static_chain; only clobber registers.
4872 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4873 set up memory attributes properly for the trampoline block.
4874 (expand_builtin_adjust_trampoline): Use
4875 targetm.calls.trampoline_adjust_address.
4876 * calls.c (prepare_call_address): Add fndecl argument. Use
4877 targetm.calls.static_chain.
4878 * df-scan.c (df_need_static_chain_reg): Remove.
4879 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4880 consolodate static chain handling.
4881 * doc/tm.texi: Document new hooks.
4882 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4883 (init_emit_regs): Don't initialize them.
4884 * expr.h (prepare_call_address): Update decl.
4885 * final.c (profile_function): Use targetm.calls.static_chain.
4886 * function.c (expand_function_start): Likewise.
4887 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4888 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4889 only clobber registers.
4890 * targhooks.c (default_static_chain): New.
4891 (default_asm_trampoline_template, default_trampoline_init): New.
4892 (default_trampoline_adjust_address): New.
4893 * targhooks.h: Declare them.
4894 * varasm.c (assemble_trampoline_template): Use
4895 targetm.asm_out.trampoline_template. Make the memory block const
4898 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4899 alpha_initialize_trampoline. Make static. Merge VMS parameter
4900 differences into the TARGET_ABI_OPEN_VMS code block.
4901 (TARGET_TRAMPOLINE_INIT): New.
4902 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4903 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4904 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4905 (INITIALIZE_TRAMPOLINE): Remove.
4907 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4908 (TRAMPOLINE_TEMPLATE): Merge with ...
4909 (INITIALIZE_TRAMPOLINE): ... this and move ...
4910 * config/arc/arc.c (arc_trampoline_init): ... here.
4911 (TARGET_TRAMPOLINE_INIT): New.
4913 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4914 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4915 (arm_asm_trampoline_template): New.
4916 (arm_trampoline_init, arm_trampoline_adjust_address): New.
4917 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4918 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4919 code to arm_asm_trampoline_template.
4920 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4921 arm_trampoline_adjust_address.
4922 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4923 adjust for target hook parameters.
4925 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4928 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4929 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4930 (bfin_trampoline_init): Rename from initialize_trampoline;
4931 make static; update for target hook parameters.
4932 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4933 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4934 bfin_asm_trampoline_template.
4935 (INITIALIZE_TRAMPOLINE): Remove.
4937 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4938 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4939 cris_trampoline_init): New.
4940 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4941 cris_asm_trampoline_template.
4942 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4943 adjust for target hook parameters.
4945 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4947 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4948 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4949 fr30_trampoline_init): New.
4950 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4951 fr30_asm_trampoline_template.
4952 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4953 adjust for target hook parameters.
4955 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4956 (frv_trampoline_init): Rename from frv_initialize_trampoline;
4957 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4958 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4959 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4961 * config/h8300/h8300.c (h8300_trampoline_init): New.
4962 (TARGET_TRAMPOLINE_INIT): New.
4963 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4964 to h8300_trampoline_init and adjust for hook parameters.
4966 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4967 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4968 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4969 make static; adjust for hook parameters.
4970 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4972 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4973 (TARGET_TRAMPOLINE_INIT): New.
4974 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4975 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4976 iq2000_asm_trampoline_template.
4977 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4978 (TRAMPOLINE_CODE_SIZE): New.
4979 (TRAMPOLINE_SIZE): Use it.
4980 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4982 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4983 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4984 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4985 adjust for hook parameters.
4986 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4988 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4989 (m32r_trampoline_init): New.
4990 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4991 m32r_trampoline_init.
4993 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4994 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4995 make static; update for hook parameters.
4996 * config/m68hc11/m68hc11-protos.h: Update.
4997 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4999 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5000 (TARGET_TRAMPOLINE_INIT): New.
5001 (mcore_function_value): Fix typo.
5002 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
5003 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
5004 to mcore_asm_trampoline_template.
5005 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
5007 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
5008 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
5009 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
5010 update for hook parameters.
5011 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
5013 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5014 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5015 mips_trampoline_init): New.
5016 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
5017 mips_asm_trampoline_template.
5018 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
5019 update for hook parameters.
5021 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5022 (TARGET_TRAMPOLINE_INIT): New.
5023 (mmix_trampoline_size): Remove.
5024 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
5025 make static. Remove out-of-date tetra vs octa comment.
5026 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
5027 make static; update for hook parameters.
5028 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
5029 (INITIALIZE_TRAMPOLINE): Remove.
5030 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
5031 (TRAMPOLINE_ALIGNMENT): New.
5032 * gcc/config/mmix/mmix-protos.h: Update.
5034 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5035 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5036 mn10300_trampoline_init): New.
5037 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
5038 mn10300_asm_trampoline_template.
5039 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
5041 * config/moxie/moxie.c (moxie_static_chain,
5042 moxie_asm_trampoline_template, moxie_trampoline_init,
5043 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
5044 TARGET_TRAMPOLINE_INIT): New.
5045 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
5046 moxie_trampoline_init.
5047 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
5048 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
5050 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5051 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5052 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
5053 pa_trampoline_adjust_address): New.
5054 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
5055 pa_asm_trampoline_template.
5056 (TRAMPOLINE_ALIGNMENT): New.
5057 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
5058 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
5059 adjust for hook parameters.
5060 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
5062 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
5063 (TARGET_TRAMPOLINE_INIT): New.
5064 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
5065 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
5067 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
5069 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
5070 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
5071 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
5072 make static; adjust parameters for the hook.
5073 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
5075 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
5076 s390_trampoline_template; make static.
5077 (s390_trampoline_init): Rename from s390_initialize_trampoline;
5078 make static; adjust for target hook.
5079 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
5080 * config/s390/s390-protos.h: Remove trampoline decls.
5081 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
5082 (TRAMPOLINE_TEMPLATE): Remove.
5083 (TRAMPOLINE_ALIGNMENT): New.
5085 * config/score/score-protos.h (score_initialize_trampoline): Remove.
5086 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5087 (TARGET_TRAMPOLINE_INIT): New.
5088 (score_asm_trampoline_template): New.
5089 (score_trampoline_init): Rename from score_initialize_trampoline;
5090 make static; adjust for hook parameters.
5091 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
5092 score[37]_asm_trampoline_template.
5093 (INITIALIZE_TRAMPOLINE): Remove.
5094 * config/score/score3.c (score3_asm_trampoline_template): New.
5095 (score3_trampoline_init): Rename from score3_initialize_trampoline;
5096 adjust for target hook.
5097 * config/score/score7.c (score7_asm_trampoline_template): New.
5098 (score7_trampoline_init): Rename from score7_initialize_trampoline;
5099 adjust for target hook.
5100 * config/score/score3.h, config/score/score7.h: Update.
5102 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
5103 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
5104 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5105 (sh_trampoline_init): Rename from sh_initialize_trampoline;
5106 make static; adjust for target hook parameters.
5107 (sh_trampoline_adjust_address): New.
5108 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
5109 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
5111 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
5112 (sparc32_initialize_trampoline): Rename from
5113 sparc_initialize_trampoline; make static; replace tramp parameter
5114 with m_tramp and update memory accesses.
5115 (sparc64_initialize_trampoline): Similarly.
5116 (sparc_trampoline_init): New.
5117 * config/sparc/sparc-protos.h: Remove trampoline decls.
5118 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
5119 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
5121 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
5122 (array_to_constant): Make ARR parameter const.
5123 (spu_trampoline_init): Rename from spu_initialize_trampoline;
5124 make static; update for hook parameters.
5125 * config/spu/spu-protos.h: Update decls.
5126 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
5128 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
5129 from xstormy16_initialize_trampoline; make static; update for
5131 (TARGET_TRAMPOLINE_INIT): New.
5132 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
5134 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5135 (TARGET_TRAMPOLINE_INIT): New.
5136 (v850_can_eliminate): Make static.
5137 (v850_asm_trampoline_template, v850_trampoline_init): New.
5138 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
5139 v850_asm_trampoline_template.
5140 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
5141 and adjust for target hook parameters.
5143 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5144 (TARGET_TRAMPOLINE_INIT): New.
5145 (vax_asm_trampoline_template, vax_trampoline_init): New.
5146 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
5147 vax_asm_trampoline_template.
5148 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
5150 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5151 (TARGET_TRAMPOLINE_INIT): New.
5152 (xtensa_asm_trampoline_template): Rename from
5153 xtensa_trampoline_template; make static.
5154 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
5155 make static; update for hook parameters.
5156 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
5157 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
5158 (INITIALIZE_TRAMPOLINE): Remove.
5160 * config/i386/i386.c (ix86_function_regparm): Do not issue an
5161 error for nested functions with regparm=3.
5162 (ix86_compute_frame_layout): Adjust frame pointer offset for
5163 ix86_static_chain_on_stack.
5164 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
5165 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
5166 don't reset to UNITS_PER_WORD.
5167 (ix86_emit_leave): Adjust ix86_cfa_state.
5168 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
5169 (ix86_static_chain): New.
5170 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
5171 make static; update for target hook parameters; use ix86_static_chain.
5172 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5173 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
5174 (INITIALIZE_TRAMPOLINE): Remove.
5175 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
5176 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
5177 to the end. Add static_chain_on_stack.
5178 (ix86_static_chain_on_stack): New.
5180 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
5181 (m68k_output_mi_thunk): Don't use static_chain_rtx.
5182 (m68k_trampoline_init): New.
5183 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
5184 m68k_trampoline_init and adjust for hook parameters.
5185 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
5186 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
5188 2009-09-22 Jakub Jelinek <jakub@redhat.com>
5190 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
5191 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
5193 * reload1.c (reload): Call wrap_constant when substituting
5194 reg for equiv inside of DEBUG_INSNs.
5197 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
5198 add_call_src_coords_attributes, add_high_low_attributes,
5199 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
5200 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
5201 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
5202 when -gdwarf-2 -gstrict-dwarf.
5203 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
5204 -gdwarf-[23] -gstrict-dwarf.
5205 (address_of_int_loc_descriptor, loc_descriptor,
5206 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
5207 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
5208 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
5210 2009-09-22 Richard Guenther <rguenther@suse.de>
5212 PR tree-optimization/41428
5213 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
5214 (ccp_finalize): Pass it to substitute_and_fold.
5216 2009-09-22 Richard Guenther <rguenther@suse.de>
5218 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
5219 (substitute_and_fold): Adjust prototype.
5220 * tree-vrp.c (vrp_evaluate_conditional): Make static.
5221 (simplify_stmt_using_ranges): Likewise.
5222 (fold_predicate_in): Move here from tree-ssa-propagate.c.
5223 (vrp_fold_stmt): New function.
5224 (vrp_finalize): Pass it to substitute_and_fold.
5225 * tree-flow.h (vrp_evaluate_conditional): Remove.
5226 (simplify_stmt_using_ranges): Likewise.
5227 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
5228 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5229 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
5231 (fold_predicate_in): Move to tree-vrp.c.
5232 (substitute_and_fold): Use the callback instead of calling into
5233 tree-vrp.c functions directly.
5235 2009-09-22 Jakub Jelinek <jakub@redhat.com>
5237 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
5238 comparison warning on rs6000.
5241 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
5242 GIMPLE_EH_MUST_NOT_THROW cleanup.
5243 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5245 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
5248 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
5249 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
5250 LIB_SPEC for darwin10 and later since it always uses the unwinder in
5251 libSystem which is derived from the gcc 4.2.1 unwinder.
5253 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
5256 * varasm.c (default_encode_section_info): Copy TLS model into
5257 sym_ref flags regardless of backend support for TLS, for all
5258 model types except TLS_MODEL_EMULATED.
5260 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
5263 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
5264 we can handle it correctly.
5266 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
5268 * doc/install.texi (os2): Remove section.
5270 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
5272 * doc/standards.texi (Objective-C): Adjust two URLs.
5274 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
5276 * tree-tailcall.c (process_assignment): Don't check if a
5277 multiplication or an addition are already present.
5278 (find_tail_calls): Combine multiple additions and multiplications.
5279 (adjust_accumulator_values): Emit accumulators.
5281 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
5283 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
5284 xmm register restore.
5286 2009-09-21 Jan Hubicka <jh@suse.cz>
5288 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
5289 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
5292 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
5294 * stor-layout.c (layout_type): Remove obsolete code.
5296 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
5299 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
5301 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5304 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
5305 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
5306 (fold_builtin_2, do_mpc_arg1): Update accordingly.
5307 * fold-const.c (const_binop): Likewise.
5308 * real.h (do_mpc_arg2): Update prototype.
5310 2009-09-20 Jan Hubicka <jh@suse.cz>
5312 * dwarf2out.c (add_const_value_attribute): Return true if successful.
5313 (add_location_or_const_value_attribute): Rewrite using
5315 (tree_add_const_value_attribute): Return true if successful.
5316 (tree_add_const_value_attribute_for_decl): Likewise.
5318 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
5319 (loc_descriptor): ... here;
5320 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5321 (cst_pool_loc_descr): Break out from ...; do not reffer constant
5322 pool items that was not marked for output.
5323 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
5324 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5325 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5326 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
5327 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
5328 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
5329 DW_OP_stack_value to get address of items that are not available
5331 (dw_loc_list): Handle single element lists correctly.
5333 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
5334 Pascal Obry <obry@adacore.com>
5336 * unwind-dw2-fde.c (classify_object_over_fdes):
5337 Cast the constant 1 to _Unwind_Ptr.
5338 (add_fdes): Likewise.
5339 (linear_search_fdes): Likewise.
5341 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
5343 * stor-layout.c (set_sizetype): Avoid useless type copy.
5345 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
5347 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
5349 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
5350 * configure, config.in: Regenerate.
5351 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
5353 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
5354 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
5355 for global data if the output could be used in a shared library.
5356 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
5357 to 0 if TARGET_WRITABLE_EH_FRAME.
5359 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
5361 PR rtl-optimization/39886
5362 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
5363 just when insn is equal to BB_END (bb).
5365 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
5367 * config/mips/mips.opt (mrelax-pic-calls): New option.
5368 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
5370 (mips_unspec_call): Change "unspec_call" expander into this.
5371 (mips_strip_unspec_call): New function.
5372 (mips_got_load): Call mips_unspec_call instead of
5373 gen_unspec_call<mode>.
5374 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
5376 (mips_cfg_in_reorg): New function.
5377 (mips16_lay_out_constants): Use it to decide whether to call
5378 CFG-aware insn splitting.
5379 (r10k_insert_cache_barriers): Move CFG set-up code from here to
5380 mips_reorg. Move DF set-up code from here ...
5381 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
5383 (mips_reorg): Call mips_df_reorg instead of
5384 r10k_insert_cache_barriers. Move CFG set-up code here from
5385 r10k_insert_cache_barriers.
5386 (mips_call_expr_from_insn): New function.
5387 (mips_pic_call_symbol_from_set): Likewise.
5388 (mips_find_pic_call_symbol): Likewise.
5389 (mips_annotate_pic_call_expr): Likewise.
5390 (mips_get_pic_call_symbol): Likewise.
5391 (mips_annotate_pic_calls): Likewise.
5392 (mips_override_options): Disable -mrelax-pic-calls unless PIC
5394 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
5395 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
5396 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
5398 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
5399 (unspec_call<mode>): Remove it.
5400 (sibcall_internal, sibcall_value_internal,
5401 sibcall_value_multiple_internal, call_internal, call_split,
5402 call_value_internal, call_value_split,
5403 call_value_multiple_internal, call_value_multiple_split): Pass
5404 SIZE_OPNO to MIPS_CALL.
5405 (call_internal_direct, call_direct_split,
5406 call_value_internal_direct, call_value_direct_split): Pass -1 as
5407 SIZE_OPNO to MIPS_CALL.
5408 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
5409 * configure: Regenerate.
5410 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
5411 and -mno-relax-pic-calls.
5412 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
5414 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5417 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
5418 in the directory this rule is called from, rather than the
5419 toplevel 'gcc' directory, to fix in-tree build.
5421 2009-09-19 Chris Demetriou <cgd@google.com>
5423 PR preprocessor/28435:
5424 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
5425 to cpplib that the preprocessor output is needed.
5427 2009-09-19 Jakub Jelinek <jakub@redhat.com>
5429 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
5430 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
5431 *return_and_restore_fpregs_<mode>,
5432 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
5435 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
5436 instead of assuming it has always a REG inside of it.
5438 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
5440 * config/freebsd.h: Update comment on types.
5441 (WINT_TYPE): Define.
5443 2009-09-18 Jason Merrill <jason@redhat.com>
5445 * c.opt: Add -fno-deduce-init-list.
5447 2009-09-18 Neil Vachharajani <nvachhar@google.com>
5449 * value-prof.c (interesting_stringop_to_profile_p): Added output
5450 argument to indicate which parameter is the size parameter.
5451 * value-prof.c (gimple_stringop_fixed_value): Use
5452 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
5453 * value-prof.c (gimple_stringops_transform): Update call sites to
5454 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
5456 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
5459 From David Binderman <dcb314@hotmail.com>:
5460 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
5461 local variable f. Remove stale comments.
5462 (ix86_compute_frame_layout): Remove useless local variable total_size.
5463 Remove #if 0'd code.
5464 (legitimate_address_p): Remove useless local variables
5465 reason_rtx and reason.
5466 (ix86_split_copysign_const): Remove useless local variable op1.
5467 (scale_counter): Remove useless local variable piece_size_mask.
5469 2009-09-18 Jakub Jelinek <jakub@redhat.com>
5471 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
5474 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5477 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
5479 2009-09-17 Jakub Jelinek <jakub@redhat.com>
5481 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
5484 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
5486 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
5487 DW_OP_implicit_value even without dwarf_version 4.
5489 2009-09-17 Jan Hubicka <jh@suse.cz>
5491 * dwarf2out.c: Include tree-pass.h and gimple.h.
5492 (loc_list_plus_const): New function.
5493 (loc_descriptor_from_tree_1): Rename to ...
5494 (loc_descriptor_from_tree): ... remove original.
5495 (loc_list_from_tree): New function.
5496 (add_AT_location_description): Accept location list.
5497 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5498 (concatn_mem_loc_descriptor): Remove.
5499 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5501 (secname_for_decl): Move up.
5502 (hidden_reference_p): New function; break out from ...
5503 (loc_by_refernece): ... here; move up.
5504 (dw_loc_list): New function.
5505 (single_element_loc_list): New function.
5506 (single_element_loc_list_p): New function.
5507 (add_loc_descr_to_each): New function.
5508 (add_loc_list): New function.
5509 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5510 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5511 add diagnostics why expansion failed.
5512 (add_location_or_const_value_attribute): Support location lists.
5513 (add_bound_info): Likewise.
5514 (descr_info_loc): Update call of loc_descriptor_from_tree.
5515 (gen_variable_die): Work on location lists.
5516 * final.c (pass_final): Add dump file.
5517 * Makefile.in (dwarf2out.o): Add new dependencies.
5519 2009-09-17 Janis Johnson <janis187@us.ibm.com>
5522 * real.c decimal_from_integer, decimal_integer_string): New.
5523 (real_from_integer): Use them as special case for decimal float.
5524 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5525 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5526 Do not append zero after the decimal point in string to convert.
5528 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
5530 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5531 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
5533 2009-09-17 Martin Jambor <mjambor@suse.cz>
5535 * common.opt (fipa-sra): New switch.
5536 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5537 * timevar.def (TV_IPA_SRA): New timevar.
5538 * params.def (ipa-sra-ptr-growth-factor): New parameter.
5539 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5540 * tree-sra.c: Include cgraph.c.
5541 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5542 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5543 and grp_not_necessarilly_dereferenced.
5544 (func_param_count): New variable.
5545 (encountered_apply_args): New variable.
5546 (bb_dereferences): New variable.
5547 (final_bbs): New variable.
5548 (no_accesses_representant): New variable.
5549 (no_accesses_p): New function.
5550 (dump_access): Dump the new fields.
5551 (sra_initialize): Set encountered_apply_args to false.
5552 (get_ssa_base_param): New function.
5553 (mark_parm_dereference): New function.
5554 (create_access): Caring for INIDRECT_REFs and different handling of
5555 varialble length accesses in early IPA SRA. Store the stmt - a new
5556 parameter - to the new access.
5557 (build_access_from_expr_1): New parameter stmt, passed to
5558 create_access. Handle INDIRECT_REFs.
5559 (build_access_from_expr): Pass the current statement to
5560 build_access_from_expr_1.
5561 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5563 (build_accesses_from_assign): Pass the current statement to
5564 build_access_from_expr_1. Do not create assign links in IPA-SRA.
5565 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
5566 final_bbs when necessary. Check for calls to __builtin_apply_args.
5567 Fixup EH info if anythng was changed.
5568 (is_unused_scalar_param): New function.
5569 (ptr_parm_has_direct_uses): New function.
5570 (find_param_candidates): New function.
5571 (mark_maybe_modified): New function.
5572 (analyze_modified_params): New function.
5573 (propagate_dereference_distances): New function.
5574 (dump_dereferences_table): New function.
5575 (analyze_caller_dereference_legality): New function.
5576 (unmodified_by_ref_scalar_representative): New function.
5577 (splice_param_accesses): New function.
5578 (decide_one_param_reduction): New function.
5579 (enum ipa_splicing_result): New type.
5580 (splice_all_param_accesses): New function.
5581 (get_param_index): New function.
5582 (turn_representatives_into_adjustments): New function.
5583 (analyze_all_param_acesses): New function.
5584 (get_replaced_param_substitute): New function.
5585 (get_adjustment_for_base): New function.
5586 (replace_removed_params_ssa_names): New function.
5587 (sra_ipa_reset_debug_stmts): New function.
5588 (sra_ipa_modify_expr): New function.
5589 (sra_ipa_modify_assign): New function.
5590 (convert_callers): New function.
5591 (modify_function): New function.
5592 (ipa_sra_preliminary_function_checks): New function.
5593 (ipa_early_sra): New function.
5594 (ipa_early_sra_gate): New function.
5595 (pass_early_ipa_sra): New variable.
5596 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5598 2009-09-17 Michael Matz <matz@suse.de>
5601 * tree.c (build_type_attribute_qual_variant): Export.
5602 * tree.h (build_type_attribute_qual_variant): Declare.
5603 * tree-inline.c (remap_type_1): Use it to build variants with
5604 the original qualifiers and attributes.
5606 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5608 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5609 without a fallthrough edge.
5611 2009-09-16 DJ Delorie <dj@redhat.com>
5613 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5614 chip and ignore the "fast_interrupt" attribute if so.
5616 2009-09-16 Richard Henderson <rth@redhat.com>
5619 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5622 2009-09-16 Richard Henderson <rth@redhat.com>
5625 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5626 is set only if DECL_NO_STATIC_CHAIN is unset.
5627 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5628 (FOR_EACH_NEST_INFO): New.
5629 (walk_all_functions): Use it.
5630 (finalize_nesting_tree): Likewise.
5631 (unnest_nesting_tree): Likewise.
5632 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5633 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5634 (convert_gimple_call): Early out if gimple_call_chain already set.
5635 (convert_all_function_calls): Iterate until no new functions
5636 require a static chain.
5637 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5638 when building a trampoline. Use dump_function_to_file instead
5640 (lower_nested_functions): Open dump_file. Validate that decls
5641 that have DECL_NO_STATIC_CHAIN from the front end don't have that
5642 bit reset by this pass.
5644 2009-09-16 Michael Matz <matz@suse.de>
5647 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5648 shorten decl_common_unused.
5649 (DECL_RESTRICTED_P): New accessor.
5650 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5651 to disambiguate marked decls and restrict pointers.
5653 2009-09-16 Richard Henderson <rth@redhat.com>
5656 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5658 2009-09-16 Jakub Jelinek <jakub@redhat.com>
5660 * integrate.c (set_block_abstract_flags): Call
5661 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5663 2009-09-16 Richard Guenther <rguenther@suse.de>
5666 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5669 2009-09-16 DJ Delorie <dj@redhat.com>
5670 Kaz Kojima <kkojima@gcc.gnu.org>
5672 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5673 (sh_expand_prologue): Update calls to output_stack_adjust.
5674 (sh_expand_epilogue): Likewise.
5676 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
5679 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5680 trying to limit the extent of searches in the insn stream.
5682 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
5683 Jakub Jelinek <jakub@redhat.com>
5687 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5689 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5690 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5691 (rs6000_savres_strategy): Always save FP registers inline if the
5692 target doesn't support hardware double-precision. Set the above
5693 bits in return value when needed.
5694 (rs6000_savres_routine_sym): Fix computation for cache selector.
5695 Mark the generated symbol as a function. Rename exitp argument to
5696 lr. Move code for determining the name of the symbol...
5697 (rs6000_savres_routine_name): ...here. New function. Add cases for
5698 getting the names right on AIX and 64-bit Linux.
5699 (savres_routine_name): New variable.
5700 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
5701 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
5702 on what the target routine uses as a base register. If savep && lr
5703 describe saving of r0 into memory slot.
5704 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
5705 line calls for AIX ABI.
5706 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5707 determine FP save/restore functions.
5708 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5709 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
5711 (rs6000_emit_epilogue): Adjust computation of restore_lr.
5712 Duplicate restoration of LR and execute the appropriate one
5713 depending on whether GPRs are being restored inline. Set r11 from
5714 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5715 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
5716 Fix out of line calls for AIX ABI.
5717 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5719 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5721 (*restore_gpregs_spe): Likewise.
5722 (*return_and_restore_gpregs_spe): Likewise.
5723 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5724 Define to empty string unconditionally.
5725 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5726 Define to empty string unconditionally.
5727 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5730 2009-09-15 Jan Hubicka <jh@suse.cz>
5732 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5733 * params.def (inline-insns-auto): Likewise.
5735 2009-09-15 Martin Jambor <mjambor@suse.cz>
5737 * ipa-inline.c (estimate_function_body_sizes): Dump info about
5738 individual statements only at TDF_DETAILS dump level. Format
5739 source for 80 characters per line.
5741 2009-09-15 Christian Bruel <christian.bruel@st.com>
5743 * regrename.c (do_replace): Update REG_DEAD notes.
5745 2009-09-15 Revital Eres <eres@il.ibm.com>
5747 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5748 * targhooks.c (default_builtin_support_vector_misalignment):
5749 New builtin function.
5750 * targhooks.h (default_builtin_support_vector_misalignment):
5752 * target.h (builtin_support_vector_misalignment):
5753 New field in struct gcc_target.
5754 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5755 new builtin function.
5756 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5758 * config/rs6000/rs6000.c
5759 (rs6000_builtin_support_vector_misalignment): New function.
5760 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5762 2009-09-15 Jie Zhang <jie.zhang@analog.com>
5764 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5766 (bfin_optimize_loop): Likewise.
5767 (bfin_gen_bundles): Likewise.
5768 (workaround_speculation): Likewise.
5769 (find_load): Return NULL_RTX for debug_insn.
5771 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
5773 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5776 2009-09-14 DJ Delorie <dj@redhat.com>
5778 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5779 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5782 2009-09-14 Richard Henderson <rth@redhat.com>
5783 Jakub Jelinek <jakub@redhat.com>
5785 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5786 * cfgbuild.c (make_edges): Handle asm goto.
5787 * cfglayout.c (fixup_reorder_chain): Likewise.
5788 * cfgrtl.c (patch_jump_insn): Likewise.
5789 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5790 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5791 (gimple_build_asm_vec): Add and use labels parameter.
5792 (gimple_build_asm): Remove.
5793 (walk_gimple_asm): Walk labels too.
5794 * gimple.def (GIMPLE_ASM): Update docs.
5795 * gimple.h: Update decls.
5796 (struct gimple_statement_asm): Change nc to use unsigned char;
5798 (gimple_asm_nlabels): New.
5799 (gimple_asm_label_op, gimple_asm_set_label_op): New.
5800 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5801 into gimple_build_asm_vec.
5802 * jump.c (mark_jump_label_asm): New.
5803 (mark_jump_label): Use it.
5804 (redirect_jump_1): Handle asm goto.
5805 (invert_jump_1): Soft fail if X is null.
5806 * recog.c (extract_asm_operands): New.
5807 (asm_noperands): Use it; handle asm labels.
5808 (decode_asm_operands): Use extract_asm_operands.
5809 (asm_operand_ok): Properly handle empty string.
5810 * reg-stack.c (get_asm_operands_in_out): Rename from
5811 get_asm_operand_n_inputs; use extract_asm_operands; return both
5812 inputs and outputs by reference; update all callers.
5813 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5814 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5815 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5816 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5817 (extract_asm_operands): Declare.
5818 * stmt.c (expand_asm_operands): Add and use labels parameter.
5819 (check_unique_operand_names): Likewise.
5820 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5821 (expand_asm_stmt): Handle asm labels.
5822 * tree-cfg.c (make_gimple_asm_edges): New.
5823 (make_edges): Use it.
5824 (cleanup_dead_labels): Handle asm labels.
5825 (is_ctrl_altering_stmt): Likewise.
5826 (gimple_redirect_edge_and_branch): Likewise.
5827 * tree.def (ASM_EXPR): Add 5th operand.
5828 * tree.h (ASM_LABELS): New.
5829 (resolve_asm_operand_names): Update decl.
5831 * c-parser.c (c_parser_asm_statement): Parse asm goto.
5832 (c_parser_asm_goto_operands): New.
5833 * c-tree.h (build_asm_expr): Update decl.
5834 * c-typeck.c (build_asm_expr): Add and use labels parameter.
5835 * doc/extend.texi: Document asm goto.
5837 2009-09-14 Richard Henderson <rth@redhat.com>
5839 * except.h: Update declarations.
5840 (struct pointer_map_t): Forward declare.
5841 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5842 (struct eh_landing_pad_d, eh_landing_pad): New.
5843 (struct eh_catch_d, eh_catch): New.
5844 (struct eh_region_d): Remove next_region_sharing_label, aka,
5845 label, tree_label, landing_pad, post_landing_pad, resume,
5846 may_contain_throw. Rename region_number to index. Remove
5847 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
5848 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5849 (VEC(eh_landing_pad,gc)): New.
5850 (struct eh_status): Remove last_region_number. Add lp_array,
5851 throw_stmt_table, ttype_data, ehspec_data.
5852 (ehr_next, FOR_ALL_EH_REGION_AT): New.
5853 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5854 * except.c (lang_protect_cleanup_actions): Return tree.
5855 (struct ehl_map_entry): Remove.
5856 (init_eh_for_function): Push zero entries for region and lp_array.
5857 (gen_eh_region): Add to region_array immediately.
5858 (gen_eh_region_catch): Operate on eh_catch objects.
5859 (gen_eh_landing_pad): New.
5860 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5861 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5862 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5863 (get_eh_landing_pad_from_number_fn): New.
5864 (get_eh_landing_pad_from_number): New.
5865 (get_eh_region_from_lp_number_fn): New.
5866 (get_eh_region_from_lp_number): New.
5867 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5868 (get_exception_pointer, get_exception_filter): Remove.
5869 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5870 (current_function_has_exception_handlers): Simplify.
5871 (bring_to_root, eh_region_replaceable_by_p): Remove.
5872 (replace_region, hash_type_list, hash_eh_region): Remove.
5873 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5874 (label_to_region_map, num_eh_regions): Remove.
5875 (get_next_region_sharing_label, must_not_throw_labels): Remove.
5876 (find_exception_handler_labels): Remove.
5877 (duplicate_eh_regions_0, find_prev_try): Remove.
5878 (struct duplicate_eh_regions_data): New.
5879 (duplicate_eh_regions_1): Rewrite.
5880 (duplicate_eh_regions): Return a pointer map instead of an
5882 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5883 (redirect_eh_edge_to_label): Remove.
5884 (eh_region_outermost): Rewrite using eh_region pointers
5885 instead of integers.
5886 (add_ttypes_entry): Update for ttype_data move to eh_status.
5887 (add_ehspec_entry): Rewrite with VEC instead of varray.
5888 (assign_filter_values): Likewise. Export.
5889 (build_post_landing_pads, connect_post_landing_pads): Remove.
5890 (dw2_build_landing_pads): Rewrite to use lp_array.
5891 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5892 (sjlj_assign_call_site_values): Rewrite to use lp_array.
5893 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5894 (sjlj_mark_call_sites): Update for landing pad numbers.
5895 (finish_eh_generation): Rewrite.
5896 (gate_handle_eh): Do nothing for no eh tree.
5897 (pass_rtl_eh): Move up near finish_eh_generation.
5898 (remove_eh_landing_pad): New.
5899 (remove_eh_handler): Export.
5900 (remove_eh_region, remove_eh_handler_and_replace): Remove.
5901 (for_each_eh_label): Rewrite to use lp_array.
5902 (make_reg_eh_region_note): New.
5903 (make_reg_eh_region_note_nothrow_nononlocal): New.
5904 (insn_could_throw_p): New.
5905 (copy_reg_eh_region_note_forward): New.
5906 (copy_reg_eh_region_note_backward): New.
5907 (check_handled, add_reachable_handler): Remove.
5908 (reachable_next_level, foreach_reachable_handler): Remove.
5909 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5910 (get_eh_region_and_lp_from_rtx): New.
5911 (get_eh_region_from_rtx): New.
5912 (can_throw_internal_1, can_throw_external_1): Remove.
5913 (can_throw_internal): Use get_eh_region_from_rtx.
5914 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5915 (insn_nothrow_p, can_nonlocal_goto): New.
5916 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5917 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5918 (add_action_record): Use VEC not varray.
5919 (collect_one_action_chain): Update for eh_region changes.
5920 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
5921 Use get_eh_region_and_lp_from_rtx.
5922 (gate_convert_to_eh_region_ranges): New.
5923 (pass_convert_to_eh_region_ranges): Use it.
5924 (push_uleb128, push_sleb128): Use VEC not varray.
5925 (output_one_function_exception_table): Likewise.
5926 (dump_eh_tree): Update for eh_region changes.
5927 (verify_eh_tree): Likewise.
5928 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5929 * tree-eh.c: Include target.h.
5930 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5931 Don't disallow GIMPLE_RESX; adjust argument check.
5932 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5933 (record_stmt_eh_region): Update for landing pad numbers;
5934 generate a landing pad if necessary.
5935 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5936 (remove_stmt_from_eh_lp_fn): Similarly.
5937 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5938 Update for lp numbers; don't special case missing throw_stmt_table.
5939 (lookup_expr_eh_lp): Similarly.
5940 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5941 (eh_seq, eh_region_may_contain_throw): New.
5942 (struct leh_state): Add ehp_region.
5943 (struct leh_tf_state): Remove eh_label.
5944 (emit_post_landing_pad): New.
5945 (emit_resx, emit_eh_dispatch): New.
5946 (note_eh_region_may_contain_throw): New.
5947 (frob_into_branch_around): Take eh_region not eh label;
5948 emit eh code into eh_seq.
5949 (honor_protect_cleanup_actions): Early exit for no actions. Don't
5950 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
5951 lower_eh_must_not_throw. Emit code to eh_seq.
5952 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5953 (lower_try_finally_onedest): Likewise.
5954 (lower_try_finally_copy): Likewise.
5955 (lower_try_finally_switch): Likewise.
5956 (lower_try_finally): Initialize ehp_region.
5957 (lower_catch): Update for eh_catch objects.
5958 (lower_eh_filter): Don't handle must_not_throw.
5959 (lower_eh_must_not_throw): New.
5960 (lower_cleanup): Don't set eh_label.
5961 (lower_eh_constructs_2): Resolve eh builtins.
5962 Handle GIMPLE_EH_MUST_NOT_THROW.
5963 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5964 Add eh_seq to the end of the function body.
5965 (make_eh_dispatch_edges): New.
5966 (make_eh_edge): Remove.
5967 (make_eh_edges): Simplify for landing pads.
5968 (redirect_eh_edge_1): New.
5969 (redirect_eh_edge): Use it.
5970 (redirect_eh_dispatch_edge): New.
5971 (stmt_could_throw_p): Use a switch. Allow RESX.
5972 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5973 (stmt_can_throw_internal): Likewise.
5974 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5975 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5976 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5977 (gate_refactor_eh): New.
5978 (pass_refactor_eh): Use it.
5979 (lower_resx, execute_lower_resx, pass_lower_resx): New.
5980 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5981 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5982 (remove_unreachable_handlers): Rename from
5983 tree_remove_unreachable_handlers; rewrite for landing pads;
5984 call remove_eh_handler directly.
5985 (remove_unreachable_handlers_no_lp): New.
5986 (unsplit_eh, unsplit_all_eh): New.
5987 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5988 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5989 (cleanup_empty_eh_unsplit): New.
5990 (cleanup_empty_eh): Rewrite.
5991 (cleanup_all_empty_eh): New.
5992 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
5993 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
5994 (gate_cleanup_eh): New.
5995 (pass_cleanup_eh): Use it.
5996 (verify_eh_edges): Move later in file. Expect one EH edge.
5997 (verify_eh_dispatch_edge): New.
5999 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
6000 (gtype-desc.o): Add TARGET_H.
6001 (tree.o): Use EXCEPT_H, not except.h.
6002 (cfgbuild.o): Add EXPR_H.
6003 (GTFILES): Add vecprim.h.
6004 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
6005 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
6006 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
6007 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
6008 * calls.c (emit_call_1): Use make_reg_eh_region_note.
6009 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
6010 calls to can_throw_internal.
6011 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
6012 (make_edges): Don't handle RESX; use can_nonlocal_goto.
6013 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
6014 (expand_gimple_stmt): Use make_reg_eh_region_note.
6015 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
6016 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
6017 or find_exception_handler_labels.
6018 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
6019 there is exacly one EH edge. Use can_nonlocal_goto and
6021 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
6022 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
6023 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
6024 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
6025 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
6026 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
6027 * dse.c (scan_insn): Use insn_could_throw_p.
6028 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
6029 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
6030 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
6031 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
6032 EXC_PTR_EXPR or FILTER_EXPR.
6033 (tree_expr_nonzero_warnv_p): Likewise.
6034 * function.h: Include vecprim.h, not varray.h
6035 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
6036 move ttype_data and ehspec_data members to struct eh_status; change
6037 action_record_data member to a VEC.
6038 * gcse.c (hash_scan_set): Use can_throw_internal.
6039 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
6040 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
6041 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
6042 (block_may_fallthru): Don't handle RESX_EXPR.
6043 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
6044 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
6045 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
6046 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
6047 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
6048 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
6049 (gimple_size): Likewise.
6050 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
6051 (gimple_build_resx): Use gimple_build_with_ops.
6052 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
6053 (is_gimple_val): Likewise.
6054 (is_gimple_stmt): Remove RESX_EXPR.
6055 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
6056 (GIMPLE_RESX): Reorder with other EH constructs.
6057 * gimple.h (struct gimple_statement_eh_mnt): New.
6058 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
6059 (gimple_eh_filter_must_not_throw): Remove.
6060 (gimple_eh_filter_set_must_not_throw): Remove.
6061 (gimple_eh_must_not_throw_fndecl): New.
6062 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
6063 (is_gimple_resx): New.
6064 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
6065 Don't copy EH_FILTER_MUST_NOT_THROW.
6066 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
6067 * ipa-inline.c (estimate_function_body_sizes): Don't try to
6068 handle must_not_throw_labels specially.
6069 * ipa-pure-const.c (check_call): Update debug statement for LP.
6070 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
6071 * ipa-utils.c (get_base_var): Likewise.
6072 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
6073 * lower-subreg.c (move_eh_region_note): Remove.
6074 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
6075 * omp-low.c (new_omp_context): Update for eh_lp_nr.
6076 (create_task_copyfn): Likewise.
6077 (maybe_catch_exception): Use gimple_build_eh_filter.
6078 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
6079 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
6080 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
6081 and pass_lower_resx.
6082 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
6083 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
6084 can_throw_internal, can_nonlocal_goto.
6085 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
6086 copy_reg_eh_region_note_forward.
6087 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
6088 (emit_output_reload_insns): Likewise.
6089 (copy_eh_notes): Remove.
6090 * rtl.def (RESX): Remove.
6091 * rtl.h: Update declarations.
6092 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
6093 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
6094 (update_eh_label): Remove.
6095 (cleanup_dead_labels_eh): New.
6096 (cleanup_deal_labels): Use it instead of update_eh_label.
6097 (gimple_merge_blocks): Update landing pad data structure when
6098 removing a landing pad label.
6099 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
6100 test; handle GIMPLE_EH_MUST_NOT_THROW.
6101 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
6102 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
6103 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
6104 (verify_stmt): Likewise. Verify landing pads.
6105 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
6106 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
6107 (struct move_stmt_d): Add eh_map.
6108 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
6109 (move_stmt_r): Remap eh region numbers in builtin calls,
6110 resx and eh_dispatch.
6111 (move_block_to_fn): Remove eh_offset parameter. Use
6112 maybe_duplicate_eh_stmt_fn.
6113 (find_outermost_region_in_block): Operate on eh_region pointers
6114 instead of region numbers.
6115 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
6116 duplicate_eh_regions.
6117 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
6118 test earlier. Disallow EH landing pads.
6119 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
6120 * tree-flow.h: Update declarations.
6121 (struct tree_ann_common_d): Replace rn with lp_nr.
6122 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
6123 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
6124 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
6125 resx and eh_dispatch.
6126 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
6127 (copy_edges_for_bb): Use make_eh_dispatch_edges.
6128 (copy_cfg_body): Expect eh_map instead of eh_region_offset
6129 from duplicate_eh_regions.
6130 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
6131 update RESX; handle EH_DISPATCH.
6132 (expand_call_inline): Set eh_lp_nr, not eh_region.
6133 (maybe_inline_call_in_expr): Likewise.
6134 * tree-inline.h (struct copy_body_data): Replace eh_region with
6135 eh_lp_nr, eh_region_offset with eh_map.
6136 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
6137 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
6138 * tree-pretty-print.c (dump_generic_node): Don't handle
6139 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
6140 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
6141 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
6142 EXC_PTR_EXPR, FILTER_EXPR.
6143 * tree-ssa-operands.c (get_expr_operands): Likewise.
6144 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
6145 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6146 (ao_ref_init_from_vn_reference): Likewise.
6147 * tree-ssa-sink.c (statement_sink_location): Likewise.
6148 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6149 (mark_virtual_phi_result_for_renaming): Export. Tidy.
6150 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
6151 EXC_PTR_EXPR, FILTER_EXPR.
6152 (is_exception_related): Remove.
6153 (compute_avail): Don't call it.
6154 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
6155 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
6156 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
6157 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
6159 (build_resx): Remove.
6160 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
6161 * tree.h: Update declarations.
6162 (EH_FILTER_MUST_NOT_THROW): Remove.
6163 (struct tree_label_decl): Add eh_landing_pad_nr.
6164 (EH_LANDING_PAD_NR): New.
6165 * value-prof.c (gimple_ic): Tidy variable names. Update for
6166 landing pad numbers.
6167 (gimple_stringop_fixed_value): Tidy variable names. Assert
6168 that neither call stmt can throw.
6169 * vecprim.h (uchar): New.
6170 (VEC(uchar,heap), VEC(uchar,gc)): New.
6172 * c-common.c (c_define_builtins): Update call to
6173 build_common_builtin_nodes.
6174 * c-parser.c (c_parse_file): Don't call
6175 default_init_unwind_resume_libfunc.
6177 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6179 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
6180 (mips_cprestore_address_p): Likewise.
6181 (mips_save_gp_to_cprestore_slot): Likewise.
6182 (mips_restore_gp): Rename to...
6183 (mips_restore_gp_from_cprestore_slot): ...this.
6184 (mips_must_initialize_gp_p): Declare.
6185 (mips_emit_save_slot_move): Likewise.
6186 (mips_output_load_label): Return nothing.
6187 (mips_eh_uses): Declare.
6188 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
6189 (TARGET_CPRESTORE_DIRECTIVE): New macro.
6190 (TARGET_ABSOLUTE_JUMPS): Likewise.
6191 (EH_USES): Likewise.
6192 (FIRST_PSEUDO_REGISTER): Update comment.
6193 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
6194 (MIPS_CALL): ...here.
6195 (REGISTER_NAMES): Add $cprestore.
6196 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
6197 Add load_label_length, has_inflexible_gp_insn_p,
6198 has_flexible_gp_insn_p, must_initialize_gp_p and
6199 must_restore_gp_when_clobbered_p.
6200 (mips_expand_call): Don't generate split instructions here.
6201 (mips_split_call): Update the call to mips_restore_gp after
6202 the above name change.
6203 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
6204 (mips_find_gp_ref): New function.
6205 (mips_insn_has_inflexible_gp_ref_p): Likewise.
6206 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
6207 (mips_insn_has_flexible_gp_ref_p): Likewise.
6208 (mips_cfun_has_flexible_gp_ref_p): Likewise.
6209 (mips_function_has_gp_insn): Delete.
6210 (mips_global_pointer): Drop the df_regs_ever_live_p check.
6211 Use the new functions above. Only return INVALID_REGNUM
6212 for TARGET_ABSOLUTE_JUMPS.
6213 (mips_must_initialize_gp_p): New function.
6214 (mips_get_cprestore_base_and_offset): New function, extracted from...
6215 (mips_cprestore_slot): ...here. Take a bool parameter.
6216 (mips_cfun_has_cprestore_slot_p): New function.
6217 (mips_cprestore_address_p): Likewise.
6218 (mips_save_gp_to_cprestore_slot): Likewise.
6219 (mips_restore_gp): Rename to...
6220 (mips_restore_gp_from_cprestore_slot): ...this. Assert
6221 epilogue_completed. Update the call to mips_cprestore_slot.
6222 Test cfun->machine->must_restore_gp_when_clobbered_p.
6223 (mips_direct_save_slot_move_p): New function.
6224 (mips_emit_save_slot_move): Likewise.
6225 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
6226 of cfun->machine->global_pointer.
6227 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
6228 (mips_save_reg): Use mips_emit_save_slot_move.
6229 (mips_expand_prologue): Set must_initialize_gp_p.
6230 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
6231 for all cprestore saves. Emit a use_cprestore instruction after
6232 setting up the cprestore slot.
6233 (mips_restore_reg): Use mips_emit_save_slot_move.
6234 (mips_process_load_label): New function.
6235 (mips_load_label_length): Likewise.
6236 (mips_output_load_label): Don't return asm: output it here instead.
6237 Use mips_process_load_label.
6238 (mips_adjust_insn_length): Adjust the length of branch instructions
6239 that have length MAX_PIC_BRANCH_LENGTH.
6240 (mips_output_conditional_branch): Update the call to
6241 mips_output_load_label. Assume the branch target is OPERANDS[0]
6242 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
6243 (mips_output_order_conditional_branch): Swap the meaning of
6244 OPERANDS[0] and OPERANDS[1].
6245 (mips_variable_issue): Don't count ghost instructions.
6246 (mips_expand_ghost_gp_insns): New function.
6247 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
6248 (mips_output_mi_thunk): Set must_initialize_gp_p.
6249 (mips_eh_uses): New function.
6250 * config/mips/predicates.md (cprestore_save_slot_operand)
6251 (cprestore_load_slot_operand): New predicates.
6252 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
6253 (UNSPEC_MOVE_GP): Likewise.
6254 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
6255 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
6256 (CPRESTORE_SLOT_REGNUM): New register.
6257 (MAX_PIC_BRANCH_LENGTH): New constant.
6258 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
6259 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
6260 branches. Fix commentary.
6261 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
6262 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
6263 Change type to "ghost".
6264 (loadgp_absolute_<mode>): Likewise.
6265 (loadgp_rtp_<mode>): Likewise.
6266 (copygp_mips16): Likewise.
6267 (loadgp_blockage): Remove redundant mode attribute.
6268 (potential_cprestore): New instruction.
6269 (cprestore): Turn into an unspec set.
6270 (use_cprestore): New instruction.
6271 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
6272 (*branch_fp_inverted): Likewise.
6273 (*branch_order<mode>): Likewise.
6274 (*branch_order<mode>_inverted): Likewise.
6275 (*branch_equality<mode>): Likewise.
6276 (*branch_equality<mode>_inverted): Likewise.
6277 (*branch_bit<bbv><mode>): Likewise.
6278 (*branch_bit<bbv><mode>_inverted): Likewise.
6279 (*branch_equality<mode>_mips16): Remove redundant mode.
6280 (jump): Turn into a define_expand.
6281 (*jump_absolute): New instruction.
6282 (*jump_pic): Likewise.
6283 (*jump_mips16): Rename previously-unnamed pattern. Remove
6284 redundant mode attribute.
6285 (restore_gp): Split on epilogue_completed rather than
6286 reload_completed. Change type to "ghost".
6287 (move_gp<mode>): New instruction.
6288 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
6289 Remove redundant mode attribute.
6290 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
6291 (bc1any4f, bc1any2t, bc1any2f): Likewise.
6292 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
6294 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6297 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
6298 are returned in the same register (vs34 or v2) that Altivec vector
6299 types are returned in.
6300 (rs6000_libcall_value): Ditto.
6303 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
6304 instead of explicit addsi3/adddi3 calls.
6305 (rs6000_split_multireg_move): Ditto.
6306 (rs6000_emit_allocate_stack): Ditto.
6307 (rs6000_emit_prologue): Ditto.
6308 (rs6000_output_mi_thunk): Ditto.
6310 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
6311 size is 64 bits if we can use 64-bit registers.
6313 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
6315 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
6318 From Jie Zhang <jie.zhang@analog.com>:
6319 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
6320 save FP and RETS with saveall attribute.
6321 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
6322 with saveall attribute.
6324 * config/bfin/bfin.c (bfin_expand_builtin,
6325 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
6328 From Jie Zhang <jie.zhang@analog.com>:
6329 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
6330 before use in two places.
6331 * config/bfin/bfin.md (AREG): Define mode iterator.
6332 (reload_in, reload_out): Use mode iterator AREG.
6334 2009-09-14 Richard Guenther <rguenther@suse.de>
6337 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
6338 EH personality path.
6340 2009-09-13 Richard Guenther <rguenther@suse.de>
6341 Rafael Avila de Espindola <espindola@google.com>
6343 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
6344 (LANG_HOOKS_EH_PERSONALITY): Likewise.
6345 (LANG_HOOKS_INITIALIZER): Adjust.
6346 (lhd_pass_through_t): Declare.
6347 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
6349 * langhooks.c (lhd_pass_through_t): New function.
6350 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
6351 dwarf2out_begin_prologue): Use personality from current_function_decl.
6352 * expr.h (get_personality_function): Declare.
6353 * expr.c (get_personality_function): New function.
6354 (build_personality_function): Likewise.
6355 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
6356 (eh_personality_libfunc): Remove.
6357 * optabs.c (build_libfunc_function): New function split out from ...
6358 (init_one_libfunc): ... here.
6359 * tree.h (DECL_FUNCTION_PERSONALITY): New.
6360 (tree_function_decl): Add personality.
6361 (lhd_gcc_personality): Declare.
6362 (build_personality_function): Likewise.
6363 * tree.c (gcc_eh_personality_decl): New.
6364 (lhd_gcc_personality): New function.
6365 * except.h (lang_eh_runtime_type): Remove.
6366 (enum eh_personality_kind): New.
6367 (build_personality_function): Declare.
6368 (function_needs_eh_personality): Declare.
6369 * except.c (lang_eh_runtime_type): Remove.
6370 (function_needs_eh_personality): New function.
6371 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
6372 (sjlj_emit_function_enter, output_function_exception_table):
6373 Use personality from current_function_decl.
6374 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
6375 * tree-inline.c (tree_can_inline_p): Do not inline across different
6377 (expand_call_inline): Likewise. Adjust the callers EH personality.
6378 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
6379 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
6380 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
6381 (c-parser.o): Likewise
6382 * c-tree.h (c_eh_initialized_p): Remove.
6383 (c_maybe_initialize_eh): Likewise.
6384 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
6385 (finish_decl): Don't call c_maybe_initialize_eh.
6386 (c_eh_initialized_p): Remove.
6387 (c_maybe_initialize_eh): Likewise.
6388 * c-parser.c (c_parser_omp_construct): Likewise.
6389 (c_parse_file): Initialize exception handling.
6391 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
6393 * config.gcc (tm_file): Remove i386/biarch32.h
6394 for i?86-w64-mingw* case.
6395 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
6397 * config.host: Set for x64 mingw the option
6398 use_long_long_for_widest_fast_int to yes.
6400 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
6402 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6403 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
6404 (dbxout_begin_function): Likewise.
6405 * final.c (dwarf2_debug_info_emitted_p): New predicate.
6406 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
6407 set on the function.
6408 (final_end_function): Likewise.
6409 (final_scan_insn): Likewise.
6410 (rest_of_handle_final): Likewise.
6411 * varasm.c (assemble_start_function): Likewise.
6412 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6414 2009-09-12 Jason Merrill <jason@redhat.com>
6416 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
6417 * opts.c (common_handle_option): constify.
6419 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
6421 * doc/install.texi (avr): Remove obsolete reference site.
6423 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
6425 * doc/install.texi (Binaries): Adjust AIX link.
6427 2009-09-12 Akim Demaille <demaille@gostai.com>
6429 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
6430 Use an imperative sentence.
6432 2009-09-11 Richard Henderson <rth@redhat.com>
6434 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
6435 structure-name and has-tree-operands arguments; update all entries.
6436 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
6438 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
6439 (gsstruct_code_size): New.
6440 (gss_for_code_): New.
6441 (gss_for_code): Remove.
6442 (gimple_size): Rewrite using gsstruct_code_size.
6443 (gimple_statement_structure): Move to gimple.h.
6444 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
6445 (gss_for_code, gimple_statement_structure): New.
6446 (gimple_ops): Use new arrays; tidy.
6448 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6450 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
6451 operand to be a PLUS expression.
6452 * config/pa/pa.c (pa_secondary_reload): Likewise.
6454 2009-09-11 Jakub Jelinek <jakub@redhat.com>
6456 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
6458 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
6461 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
6463 From Jie Zhang <jie.zhang@analog.com>:
6464 * doc/extend.texi (node Function Attributes): Document l2
6466 (node Blackfin Variable Attributes): Document l2 variable attributes.
6468 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
6470 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
6471 to match the system compiler's configuration at inflection point.
6472 Add comment to remark a remaining difference with system compiler.
6474 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
6475 * configure: Regenerate.
6477 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
6479 From Jie Zhang <jie.zhang@analog.com>:
6480 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
6481 (bfin_handle_l2_attribute): New.
6482 (bfin_attribute_table): Add l2 attribute.
6484 2009-09-11 Michael Matz <matz@suse.de>
6487 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
6488 on the local_decls list.
6490 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
6494 * cselib.c (cselib_expand_value_rtx_cb): Document callback
6496 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
6497 for VALUEs, to implement the documented interface.
6498 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6499 Adjust for VALUEs and anything else, to implement the
6500 documented interface.
6502 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
6504 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6505 with actual SPE/paired vector modes before using 64-bit alignment.
6506 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6508 2009-09-10 DJ Delorie <dj@redhat.com>
6510 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6513 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6514 * config/mep/mep.c (mep_legitimate_constant_p): New.
6515 * config/mep/mep-protos.h: Prototype it.
6517 2009-09-10 Richard Henderson <rth@redhat.com>
6519 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6521 2009-09-10 Jason Merrill <jason@redhat.com>
6523 * tree.c (chain_index): New fn.
6524 * tree.h: Declare it.
6526 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6528 * config/sol2-c.c (cmn_err_length_specs): Initialize
6529 scalar_identity_flag.
6531 2009-09-10 Richard Henderson <rth@redhat.com>
6533 * tree.h (struct tree_decl_common): Move align member earlier;
6534 move label_decl_uid member ...
6535 (struct tree_label_decl): ... here.
6536 (LABEL_DECL_UID): Update to match.
6538 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6541 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6542 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6544 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6545 dest_prev if the edge is complex.
6547 * tree-cfg.c (is_ctrl_stmt): Use a switch.
6549 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6550 loop latch tests earlier.
6552 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6553 before GIMPLE_RETURN, not after its predecessor; insert
6556 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6557 gimple_seq_empty_p to test for no PHI nodes.
6558 * tree-cfg.c (split_critical_edges): Likewise.
6560 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6562 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6564 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6565 introduced by the VTA branch merge.
6567 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
6569 * ira-conflicts.c: Use fputs or putc instead of fprintf
6573 * tree-switch-conversion.c: Ditto.
6575 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6577 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6578 introduced by the VTA branch merge.
6580 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
6583 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6585 PR rtl-optimization/39779
6586 * expr.c (convert_modes): Return when mode == oldmode after
6587 CONST_INTs are processed.
6589 2009-09-10 Nick Clifton <nickc@redhat.com>
6591 * config/mep/mep.c (mep_encode_section_info): Copy weakness
6592 attribute and referring decl when creating renamed symbol.
6594 2009-09-10 Richard Guenther <rguenther@suse.de>
6597 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6599 (cgraph_finalize_compilation_unit): Compute reachability
6600 before emitting thunks. Properly process aliases before
6601 possibly removing unreachable nodes.
6603 2009-09-10 Richard Guenther <rguenther@suse.de>
6606 * tree.c (struct free_lang_data_d): Add worklist member.
6607 (find_decls_types_r): Push onto the worklist instead of recursing.
6608 Handle TREE_BINFOs properly.
6609 (find_decls_types): New function wrapped around find_decls_types_r
6610 to process the worklist.
6611 (find_decls_types_in_eh_region): Use it.
6612 (find_decls_types_in_node): Likewise.
6613 (find_decls_types_in_var): Likewise.
6614 (free_lang_data_in_cgraph): Likewise. Free the worklist.
6615 * tree.h (RECORD_OR_UNION_TYPE_P): New.
6616 (AGGREGATE_TYPE_P): Adjust.
6618 2009-09-09 Jason Merrill <jason@redhat.com>
6620 * configure.ac: Check glibc version even if we have an in-tree
6623 2009-09-09 Anthony Green <green@moxielogic.com>
6625 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6626 the constant 0 when appropriate.
6627 * config/moxie/constraints.md: Add constraint O.
6629 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6630 to pass up to 6 32-bit argument values in registers.
6631 (moxie_function_arg): Ditto.
6632 (moxie_arg_partial_bytes): Ditto.
6633 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6634 (REG_PARM_STACK_SPACE): Ditto.
6635 (FUNCTION_ARG_REGNO_P): Ditto.
6637 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6638 instruction to allocate stack space.
6640 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
6642 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6643 unnecessarily stringent constraints. Fix address
6644 calculation in the splitters.
6646 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6648 PR rtl-optimization/39779
6649 * expr.c (convert_modes): Return when mode == oldmode after
6650 CONST_INTs are processed.
6652 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
6655 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6656 (ix86_expand_prologue): Take frame.padding0 into logic of
6658 (ix86_expand_epilogue): Likewise.
6660 2009-09-09 Jakub Jelinek <jakub@redhat.com>
6662 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6664 (SHLIB_LINK, SHLIB_INSTALL): Use them.
6665 * config/t-slibgcc-libgcc: New file.
6666 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6668 2009-09-09 Martin Jambor <mjambor@suse.cz>
6670 PR tree-optimization/41089
6671 * tree-sra.c (find_var_candidates): Do not consider va_lists in
6674 2009-09-09 Richard Henderson <rth@redhat.com>
6676 * gimple.h (CASE_GIMPLE_OMP): New.
6677 (is_gimple_omp): Use it.
6678 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6679 (verify_gimple_debug): Likewise.
6681 2009-09-09 Richard Guenther <rguenther@suse.de>
6683 PR tree-optimization/41101
6684 * tree-ssa-pre.c (maximal_set): Remove.
6685 (compute_antic_aux): Treat the maximal set as implicitly all ones.
6686 Defer all blocks we didn't visit at least one successor.
6687 (add_to_exp_gen): Do not add to the maximal set.
6688 (make_values_for_phi): Likewise.
6689 (compute_avail): Likewise.
6690 (init_pre): Do not allocate the maximal set.
6691 (execute_pre): Do not dump it.
6693 2009-09-09 Martin Jambor <mjambor@suse.cz>
6695 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6696 an SSA_NAME rather than a is_gimple_variable.
6698 2009-09-09 Richard Guenther <rguenther@suse.de>
6701 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6702 code dealing with plain pointer bases.
6703 (maybe_fold_offset_to_reference): Likewise.
6704 (maybe_fold_stmt_addition): Adjust.
6706 2009-09-09 Richard Guenther <rguenther@suse.de>
6708 * tree.c (free_lang_data_in_type): Do not free the type variant
6710 (free_lang_data): Merge char_type_node with its properly signed
6712 (pass_ipa_free): Collect after freeing language specific data.
6714 2009-09-09 Michael Matz <matz@suse.de>
6717 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6718 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6719 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6722 2009-09-08 DJ Delorie <dj@redhat.com>
6724 * config/mep/mep.c (conversions[]): Add "ml" pattern.
6726 2009-09-04 Jason Merrill <jason@redhat.com>
6728 * tree.c (tree_find_value): Remove.
6729 * tree.h: Remove prototype.
6730 * varasm.c (assemble_external): Use value_member instead.
6732 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6734 * toplev.c (process_options): Choose default debugging type when
6735 gtoggle enables debug info and type is unset.
6737 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6741 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6744 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6746 * configure: Rebuilt with modified libtool.m4.
6748 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6753 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6755 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6757 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6758 (remove_statement): Likewise.
6759 (rewrite_use_nonlinear_expr): Adjust.
6760 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6761 * tree-ssa.c (release_defs_bitset): ... this. New.
6762 * tree-flow.h (release_defs_bitset): Declare.
6764 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6767 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6768 in the middle block.
6770 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
6772 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6773 via intptr_t to long type.
6774 (insert_operand_rank): Cast long type via intptr_t to
6776 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6778 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6779 from pointer to unsigned via uintptr_t.
6781 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6782 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6784 * configure: Regenerated.
6785 * config.in: Regenerated
6786 * system.h (stdint.h): Add include.
6787 (inttypes.h): Likewise.
6788 * Makefile.in (aclocal): Add config/stdint.m4.
6789 * aclocal.m4: Regenerated.
6791 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
6793 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6795 (note_np_check_stores): New function.
6796 (harmless_null_pointer_p): New function.
6797 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
6798 changed. Take into account whether we're in the shadow of a condjump
6799 that tested NP_REG for NULL.
6800 Lose all code that tested for SEQUENCEs.
6801 (workaround_speculation): Avoid inserting NOPs for loads that are
6802 either always executed or a NULL pointer.
6804 2009-09-08 Jan Hubicka <jh@suse.cz>
6806 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6807 * params.def (early-inlining-insns): Likewise.
6809 2009-09-08 Jakub Jelinek <jakub@redhat.com>
6811 PR rtl-optimization/41239
6812 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6813 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6815 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6816 across calls, as the calls might not always return normally.
6817 (call_may_noreturn_p): New function.
6818 (deps_analyze_insn): Update last_function_call_may_noreturn list.
6819 (init_deps): Initialize it.
6820 (remove_from_deps): Also remove calls from
6821 last_function_call_may_noreturn list.
6823 2009-09-07 Richard Henderson <rth@redhat.com>
6825 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6826 more VR->OPERANDS than LHS operands. Free LHS before returning.
6828 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6830 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6831 (attr "addrtype"): New member "spreg".
6832 Use it if mem_spfp_address_operand is true for the address.
6833 (attr "type"): New entry "stall".
6834 (cpu_unit "load"): New.
6835 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6837 (insn_reservation "loadsp"): New.
6838 (insn_reservation "load_stall1"): New.
6839 (insn_reservation "load_stall3"): New.
6841 * config/bfin/predicates.md (const1_operand, const3_operand): New.
6842 (mem_p_address_operand): Exclude stack and frame pointer based
6844 (mem_spfp_address_operand): New; match them here.
6845 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6846 (bfin_reorg): Call it if scheduling insns.
6847 (bfin_gen_bundles): Remove dummy insns created by
6848 add_sched_insns_for_speculation.
6850 From Jie Zhang <jie.zhang@analog.com>:
6851 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6852 bfin_si_revision, bfin_workarounds): Move these ...
6853 * config/bfin/bfin.h: ... here.
6855 From Mike Frysinger <michael.frysinger@analog.com>
6856 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6857 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6858 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6859 bf547m, bf548m, and bf549m.
6860 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6861 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6862 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6863 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6864 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6865 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6866 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6867 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6868 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6869 bf542m, bf544m, bf547m, bf548m, and bf549m.
6871 From Jie Zhang <jie.zhang@analog.com>:
6872 * config/bfin/predicates.md (p_register_operand): New predicate.
6873 (dp_register_operand): New predicate.
6874 * config/bfin/bfin-protos.h (WA_05000074): Define.
6875 (ENABLE_WA_05000074): Define.
6876 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6877 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6878 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6879 (define_attr addrtype): Allow load/store register to be P register.
6880 (define_attr storereg): New.
6881 (define_cpu_unit anomaly_05000074): New.
6882 (define_insn_reservation dsp32shiftimm): New.
6883 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6884 (define_insn_reservation loadp): Cannot use slot2.
6885 (define_insn_reservation loadsp): Cannot use slot2.
6886 (define_insn_reservation storep): Cannot use slot2. Does not
6887 apply when working around 05000074.
6888 (define_insn_reservation storep_anomaly_05000074): New.
6889 (define_insn_reservation storei): Does not apply when working
6891 (define_insn_reservation storei_anomaly_05000074): New.
6892 (define_attr length): Add dsp32shiftimm case.
6893 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6894 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6895 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6896 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6897 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6899 2009-09-07 Martin Jambor <mjambor@suse.cz>
6902 * tree-sra.c (create_artificial_child_access): Return NULL if
6903 build_ref_for_offset fails.
6904 (propagate_subacesses_accross_link): Allow build_ref_for_offset
6905 and create_artificial_child_access to fail.
6907 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
6910 * unwind-dw2.c (uw_init_context_1): Mark noinline.
6911 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6912 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6914 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6916 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6917 block, ensure it has an exit edge. Emit a barrier after a jump.
6919 2009-09-07 Nick Clifton <nickc@redhat.com>
6921 * gcc.c (this_is_linker_script): New variable. Like
6922 this_is_library_file but for the %T constructor.
6923 (end_going_arg): If this_is_linker_script is set then locate the
6924 script and insert a --script switch before it
6925 (do_spec_2): Initialise this_is_linker_script.
6926 (do_spec_1): Likewise. Handle %T construct.
6927 (eval_spec_function): Preserve this_is_linker_script.
6928 * doc/invoke.texi: Document %T construct in spec files.
6929 * config/m32c/m32c.h (LIB_SPEC): Use it.
6931 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6933 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6934 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6935 when volatile flag is set.
6936 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6938 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
6941 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6942 (combine_stack_adjustments_for_block): Allow insns between stack
6943 adjustments and stores with corresponding pre-(dec|inc)rement or
6944 pre-modify operation.
6946 2009-09-06 Jakub Jelinek <jakub@redhat.com>
6949 * combine-stack-adj.c (struct csa_memlist): Rename to...
6950 (struct csa_reflist): ... this. Rename mem field to ref.
6951 (free_csa_memlist): Rename to...
6952 (free_csa_reflist): ... this.
6953 (record_one_stack_memref): Rename to...
6954 (record_one_stack_ref): ... this. Handle also REG_P.
6955 (try_apply_stack_adjustment): Handle also REG_P.
6956 (struct record_stack_memrefs_data): Rename to...
6957 (struct record_stack_refs_data): ... this. Rename memlist field to
6959 (record_stack_memrefs): Rename to...
6960 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
6961 subexpressions instead of failing when a MEM contains SP references.
6962 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6963 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6965 2009-09-06 Richard Guenther <rguenther@suse.de>
6968 * tree.c (build_array_type): Do not record types marked
6969 with structural equality in the canonical type hashtable.
6971 2009-09-06 Richard Guenther <rguenther@suse.de>
6974 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6976 2009-09-05 Richard Guenther <rguenther@suse.de>
6979 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6981 2009-09-05 Richard Guenther <rguenther@suse.de>
6984 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6986 2009-09-05 Richard Guenther <rguenther@suse.de>
6989 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6990 before comparing function argument types.
6992 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6995 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6998 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
7001 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7003 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7004 locators before emit_insn is called.
7006 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
7009 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
7010 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
7011 (reginfo_init): Don't call allocate_reg_info.
7013 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
7016 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
7017 NONDEBUG_INSN_P instead of INSN_P.
7019 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
7022 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
7024 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
7027 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
7028 pattern of the split.
7030 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
7032 * toplev.c (process_options): Move setter of flag_var_tracking
7033 before other tests that depend on it. Move down setter of
7034 flag_rename_registers. Don't enable var-tracking-assignments
7035 by default if selective scheduling is enabled. Warn if both
7038 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
7040 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
7041 comment. Use switch statement to catch overlaps between rtx
7042 and tree codes. Accept FUNCTION_DECLs in addition to those in...
7043 (IS_DECL_CODE): ... here. Remove.
7044 (check_value_is_not_decl): Remove.
7045 (dv_from_decl, dv_from_value): Check after conversion.
7047 2009-09-04 Richard Guenther <rguenther@suse.de>
7050 * (cgraph_finalize_compilation_unit): Move finalizing aliases
7051 after emitting tunks. Move emitting thunks and ctors from ...
7052 (cgraph_optimize): ... here. Remove redundant
7053 cgraph_analyze_functions.
7054 * varasm.c (find_decl_and_mark_needed): Remove no longer
7056 (finish_aliases_1): Adjust check for thunk aliases.
7058 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
7060 * config/arm/arm.md (ctzsi2): Added braces
7061 to avoid warning that broke booststrap.
7063 2009-09-04 Martin Jambor <mjambor@suse.cz>
7065 PR tree-optimization/41112
7066 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
7067 handle variable-bounded arrays.
7068 (expr_with_var_bounded_array_refs_p): New function.
7069 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
7071 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
7073 * config/s390/2097.md: Removed two incorrect bypasses.
7074 (z10_fsimpdf): Fixed latency.
7075 (z10_fhex): New insn_reservation.
7076 (z10_floaddf): Fixed latency.
7077 (z10_floadsf): Fixed latency.
7078 (z10_ftrunctf): Fixed latency.
7079 (z10_ftruncdf): Fixed latency.
7080 * config/s390/s390.c (z10_cost): Fixed values.
7081 (s390_adjust_priority): Added z10 path.
7082 * config/s390/s390.md (type): Added fhex.
7083 (*mov<mode>_64dfp): Updated type attribute.
7084 (*mov<mode>_64): Updated type attribute.
7085 (*mov<mode>_31): Updated type attribute.
7086 (*mov<mode>"): Likewise.
7087 * config/s390/2084.md (x_fsimpdf): Updated condition.
7089 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
7091 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
7092 RTXs in the predicate for operand 1.
7094 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
7096 * config/arm/arm.md (UNSPEC_RBIT): New constant.
7097 (rbitsi2): New insn.
7098 (ctzsi2): New expand.
7099 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
7101 2009-09-03 Martin Jambor <mjambor@suse.cz>
7103 * tree-sra.c (duplicate_expr_for_different_base): Removed.
7104 (create_artificial_child_access): Use build_ref_for_offset instead
7105 of duplicate_expr_for_different_base.
7106 (propagate_subacesses_accross_link): Likewise.
7108 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
7110 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
7112 (mips16e_collect_argument_saves): Skip debug instructions.
7113 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
7114 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
7115 (r10k_insert_cache_barriers): Likewise.
7116 (mips_reorg_process_insns): Likewise.
7118 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
7121 * ira.c (update_equiv_reg): Remove check on class likely spill.
7123 2009-09-03 Jakub Jelinek <jakub@redhat.com>
7126 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
7127 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
7131 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
7132 the stack slot if it is passed by invisible reference.
7133 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
7134 by invisible reference.
7136 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
7138 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7139 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7140 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
7142 * config/bfin/sync.md: New file.
7143 * config/bfin/bfin.md: Include it.
7144 (UNSPEC_ATOMIC): New.
7145 (UNSPEC_ONES): Provide a unique number.
7147 From Jie Zhang <jie.zhang@analog.com>:
7148 * config/bfin/bfin.c (ret_regs): New.
7149 (must_save_fp_p): Don't return true because of frame_pointer_needed.
7150 (must_save_rets_p): New.
7151 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
7152 current_function_is_leaf.
7153 (do_link): Likewise.
7154 (do_unlink): Likewise.
7155 (expand_interrupt_handler_prologue): Use ret_regs array.
7156 (expand_interrupt_handler_epilogue): Use ret_regs array and
7157 pass return register to gen_return_internal.
7158 (bfin_expand_epilogue): Pass return register to
7159 gen_return_internal.
7160 (bfin_expand_call): Explicitly clobber RETS.
7161 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
7162 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
7163 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
7164 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
7166 (return_internal): Take a reg rtx rather than the register number.
7168 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
7170 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
7171 when comparing against estimated_loop_iterations_int return.
7173 2009-09-03 Richard Guenther <rguenther@suse.de>
7175 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
7176 eh_personality_libfunc.
7178 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
7180 * tree-parloops.c (separate_decls_in_region): Add space.
7182 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
7184 * tree-parloops.c (separate_decls_in_region): Change the condition
7185 checking if there are reductions in the loop.
7187 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
7189 PR tree-optimization/38275
7190 * tree-parloops.c (parallelize_loops): Replace profitability condition
7191 for expected number of iterations.
7193 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
7195 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
7196 (bootstrap-debug): Explain conditions in which it becomes default.
7197 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
7200 2009-09-03 Namhyung Kim <namhyung@gmail.com>
7202 * doc/invoke.texi (Optimize Options): Move
7203 -finline-small-functions to the -O2 list.
7205 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
7207 * toplev.c (process_options): Enable var-tracking-assignments
7208 by default if var-tracking is enabled.
7210 2009-09-02 David Daney <ddaney@caviumnetworks.com>
7212 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
7214 * emit-rtl.c (prev_nonnote_insn_bb): New function.
7215 * rtl.h (prev_nonnote_insn_bb): Declare it.
7217 2009-09-03 Diego Novillo <dnovillo@google.com>
7219 * cgraph.c (cgraph_node_for_decl): New.
7220 * cgraph.h (cgraph_node_for_decl): Declare.
7221 * tree.c (host_integerp): Return 0 if T is NULL.
7223 2009-09-03 Diego Novillo <dnovillo@google.com>
7225 * tree.h (struct alias_pair): Move from varasm.c.
7226 (alias_pairs): Likewise.
7227 (TYPE_MAXVAL): Define.
7228 (TYPE_MINVAL): Define.
7229 (iterative_hash_host_wide_int): Declare.
7230 (remove_unreachable_alias_pairs): Declare.
7231 * tree-pass.h (pass_ipa_free_lang_data): Declare.
7232 * diagnostic.c (default_diagnostic_starter): Make extern.
7233 (default_diagnostic_finalizer): Make extern.
7234 * diagnostic.h (default_diagnostic_starter): Declare.
7235 (default_diagnostic_finalizer): Declare.
7236 (default_tree_printer): Declare.
7237 * toplev.c (default_tree_printer): Make extern.
7239 2009-09-03 Richard Guenther <rguenther@suse.de>
7240 Diego Novillo <dnovillo@google.com>
7242 * cgraph.c (cgraph_add_new_function): Remove gimplification.
7243 * cgraphunit.c (cgraph_expand_function): Do not emit
7244 associated thunks from here.
7245 (cgraph_emit_thunks): New.
7246 (cgraph_optimize): Call it.
7247 Return if any IPA pass finds an error.
7248 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
7251 2009-09-03 Simon Baldwin <simonb@google.com>
7252 Rafael Espindola <espindola@google.com>
7253 Richard Guenther <rguenther@suse.de>
7254 Doug Kwan <dougkwan@google.com>
7255 Diego Novillo <dnovillo@google.com>
7257 * tree.c: Include tree-pass.h, langhooks-def.h,
7258 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
7259 (free_lang_data_in_type): New.
7260 (need_assembler_name_p): New.
7261 (free_lang_data_in_block): New.
7262 (free_lang_data_in_decl): New.
7263 (struct free_lang_data_d): New.
7264 (add_tree_to_fld_list): New.
7265 (find_decls_types_r): New.
7266 (get_eh_types_for_runtime): New.
7267 (find_decls_types_in_eh_region): New.
7268 (find_decls_types_in_node): New.
7269 (find_decls_types_in_var): New.
7270 (free_lang_data_in_cgraph): New.
7271 (free_lang_data): New.
7272 (gate_free_lang_data): New.
7273 (pass_ipa_free_lang_data): New.
7275 2009-09-03 Diego Novillo <dnovillo@google.com>
7277 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
7278 * langhooks.h (struct lang_hooks): Add field free_lang_data.
7279 (lang_hooks): Remove const qualifier.
7280 * ipa.c (cgraph_remove_unreachable_nodes): Call
7281 remove_unreachable_alias_pairs.
7282 * except.c (add_type_for_runtime): Check if TYPE has
7283 already been converted.
7284 (lookup_type_for_runtime): Likewise.
7285 (check_handled): Handle converted types.
7286 * varasm.c (remove_unreachable_alias_pairs): New.
7287 * gimple.c: Include demangle.h.
7288 (gimple_decl_printable_name): New.
7289 (gimple_fold_obj_type_ref): New.
7290 * gimple.h (gimple_decl_printable_name): Declare.
7291 (gimple_fold_obj_type_ref): Declare.
7292 * passes.c (init_optimization_passes): Add pass
7293 pass_ipa_free_lang_data.
7294 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
7295 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
7297 2009-09-03 Diego Novillo <dnovillo@google.com>
7299 * c-lang.c (lang_hooks): Remove const qualifier.
7301 2009-09-02 Loren James Rittle <ljrittle@acm.org>
7303 * doc/install.texi (*-*-freebsd*): Update target information.
7305 2009-09-02 Anatoly Sokolov <aesok@post.ru>
7307 * hard-reg-set.h (call_fixed_regs): Remove.
7308 * reginfo.c (call_fixed_regs): Remove.
7309 (init_reg_sets_1): Remove initialization of call_fixed_regs.
7310 (globalize_reg): Don't use call_fixed_regs.
7311 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
7314 2009-09-01 Michael Matz <matz@suse.de>
7316 * expr.h (emit_storent_insn, expand_expr_real_1,
7317 expand_expr_real_2): Declare.
7318 * expr.c (emit_storent_insn, expand_expr_real_1,
7319 expand_expr_real_2): Export.
7320 (store_expr): Setting and evaluating dont_return_target is useless.
7321 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
7322 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
7323 * except.c (expand_resx_expr): Rename to ...
7324 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
7325 * except.h (expand_resx_stmt): Declare.
7326 * stmt.c: Add include gimple.h
7327 (expand_asm_expr): Rename to ...
7328 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
7329 (expand_case): Rewrite to take gimple statement.
7330 * tree.h (expand_asm_stmt): Declare.
7331 (expand_case): Change prototype.
7332 * Makefile.in (stmt.o): Depend on gimple.h.
7333 * builtins.c (expand_builtin_synchronize): Build gimple asm
7334 statement, not an ASM_EXPR.
7335 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
7336 gimple_to_tree, release_stmt_tree): Remove.
7337 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
7338 ggc_free, but hold comparison code and operands separately.
7339 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
7340 (expand_call_stmt, expand_gimple_stmt_1,
7341 expand_gimple_stmt): New helpers.
7342 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
7343 release_stmt_tree. Call expand_gimple_stmt instead.
7344 (expand_gimple_basic_block): Ditto.
7346 * calls.c (emit_call_1): Don't look at EH regions here, make
7347 fntree parameter useless.
7348 (expand_call): New local rettype for TREE_TYPE(exp), use it
7349 throughout. Remove local p, use addr instead.
7350 Don't look at EH regions here.
7352 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
7354 * doc/invoke.texi (-fsched-pressure): Document it.
7355 (-fsched-reg-pressure-heuristic): Remove it.
7357 * reload.c (ira.h): Include.
7358 (find_reloads): Add choosing reload on number of small spilled
7361 * haifa-sched.c (ira.h): Include.
7362 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
7363 saved_reg_pressure, curr_reg_live, saved_reg_live,
7364 region_ref_regs): New variables.
7365 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
7366 initiate_reg_pressure_info, setup_ref_regs,
7367 initiate_bb_reg_pressure_info, save_reg_pressure,
7368 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
7370 (setup_insn_reg_pressure_info): New function.
7371 (rank_for_schedule): Add pressure checking and insn issue time.
7372 Remove comparison of insn reg weights.
7373 (ready_sort): Set insn reg pressure info.
7374 (update_register_pressure, setup_insn_max_reg_pressure,
7375 update_reg_and_insn_max_reg_pressure,
7376 sched_setup_bb_reg_pressure_info): New functions.
7377 (schedule_insn): Add code for printing and updating reg pressure info.
7378 (find_set_reg_weight, find_insn_reg_weight): Remove.
7379 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
7380 (debug_ready_list): Print reg pressure info.
7381 (schedule_block): Ditto. Check insn issue time.
7382 (sched_init): Set up sched_pressure_p. Allocate and set up some
7383 reg pressure related info.
7384 (sched_finish): Free some reg pressure related info.
7385 (fix_tick_ready): Make insn always ready if pressure_p.
7386 (init_h_i_d): Don't call find_insn_reg_weight.
7387 (haifa_finish_h_i_d): Free insn reg pressure info.
7389 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7390 ira_memory_move_cost, ira_class_hard_regs,
7391 ira_class_hard_regs_num, ira_no_alloc_regs,
7392 ira_available_class_regs, ira_reg_class_cover_size,
7393 ira_reg_class_cover, ira_class_translate): Move to ira.h.
7395 * ira-lives.c (single_reg_class): Check mode to find how many
7396 registers are necessary for operand.
7397 (ira_implicitly_set_insn_hard_regs): New.
7399 * common.opt (fsched-pressure): New options.
7400 (fsched-reg-pressure-heuristic): Remove.
7402 * ira.c (setup_eliminable_regset): Rename to
7403 ira_setup_eliminable_regset. Make it external.
7404 (expand_reg_info): Pass cover class to setup_reg_classes.
7405 (ira): Call resize_reg_info instead of allocate_reg_info.
7407 * sched-deps.c: Include ira.h.
7408 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
7409 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
7410 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
7411 mark_insn_hard_regno_birth, mark_insn_reg_birth,
7412 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
7413 mark_insn_reg_store, mark_insn_reg_clobber,
7414 setup_insn_reg_pressure_info): New.
7415 (sched_analyze_1): Update implicit_reg_pending_uses.
7416 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
7417 Use them to create dependencies. Set insn reg uses and pressure
7418 info. Process reg_pending_uses in one place.
7419 (free_deps): Free implicit sets.
7420 (remove_from_deps): Remove implicit sets if necessary. Check
7421 implicit sets when clearing reg_last_in_use.
7422 (init_deps_global): Clear implicit_reg_pending_clobbers and
7423 implicit_reg_pending_uses.
7425 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7426 ira_memory_move_cost, ira_class_hard_regs,
7427 ira_class_hard_regs_num, ira_no_alloc_regs,
7428 ira_available_class_regs, ira_reg_class_cover_size,
7429 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
7430 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
7431 ira_implicitly_set_insn_hard_regs): New prototypes.
7433 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
7434 cost_elements_num): New variables.
7435 (allocno_costs, total_costs): Rename to costs and
7436 total_allocno_costs.
7437 (COSTS_OF_ALLOCNO): Rename to COSTS.
7438 (allocno_pref): Rename to pref.
7439 (allocno_pref_buffer): Rename to pref_buffer.
7440 (common_classes): Rename to regno_cover_class.
7442 (record_reg_classes): Set allocno attributes only if allocno_p.
7443 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
7444 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
7445 and COSTS_OF_ALLOCNO.
7446 (print_costs): Rename to print_allocno_costs.
7447 (print_pseudo_costs): New.
7448 (process_bb_node_for_costs): Split into 2 functions with new
7449 function process_bb_for_costs. Pass BB to process_bb_for_costs.
7450 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
7451 new parameter dump_file. Use cost_elements_num instead of
7452 ira_allocnos_num. Make one iteration if preferred classes were
7453 already calculated for scheduler. Make 2 versions of code
7454 depending on allocno_p.
7455 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
7456 regno_cover_class and COSTS instead of common_classes and
7458 (init_costs, finish_costs): New.
7459 (ira_costs): Set up allocno_p and cost_elements_num. Call
7460 init_costs and finish_costs.
7461 (ira_set_pseudo_classes): New.
7463 * rtl.h (allocate_reg_info): Remove.
7464 (resize_reg_info): Change return type.
7465 (reg_cover_class): New.
7466 (setup_reg_classes): Add new parameter.
7468 * sched-int.h (struct deps_reg): New member implicit_sets.
7469 (sched_pressure_p, sched_regno_cover_class): New external definitions.
7470 (INCREASE_BITS): New macro.
7471 (struct reg_pressure_data, struct reg_use_data): New.
7472 (struct _haifa_insn_data): Remove reg_weight. Add members
7473 reg_pressure, reg_use_list, reg_set_list, and
7474 reg_pressure_excess_cost_change.
7475 (struct deps): New member implicit_sets.
7476 (pressure_p): New variable.
7477 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
7478 (struct reg_pressure_data, struct reg_use_data): New.
7479 (INSN_REG_WEIGHT): Remove.
7480 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
7481 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
7482 (sched_init_region_reg_pressure_info,
7483 sched_setup_bb_reg_pressure_info): New prototypes.
7485 * reginfo.c (struct reg_pref): New member coverclass.
7486 (reg_cover_class): New function.
7487 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
7488 (reg_info_size): New variable.
7489 (allocate_reg_info): Make static. Setup reg_info_size.
7490 (resize_reg_info): Use reg_info_size. Return flag of resizing.
7491 (setup_reg_classes): Add a new parameter. Setup cover class too.
7493 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
7496 * sched-rgn.c (deps_join): Set up implicit_sets.
7497 (schedule_region): Set up region and basic blocks pressure
7500 * passes.c (init_optimization_passes): Move
7501 pass_subregs_of_mode_init before pass_sched.
7503 2009-09-02 Martin Jambor <mjambor@suse.cz>
7505 * tree-sra.c (struct access): New field grp_hint.
7506 (dump_access): Dump grp_hint.
7507 (sort_and_splice_var_accesses): Set grp_hint if a group is read
7509 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7510 those which have been specifically read and somehow written to.
7511 (propagate_subacesses_accross_link): Set grp_hint of right child and
7512 also possibly of the left child.
7514 2009-09-02 Jakub Jelinek <jakub@redhat.com>
7516 * tree-object-size.c (addr_object_size): Always use object_size_type
7517 0 or 2 when determining the pointer pointed object size.
7519 2009-09-02 Richard Guenther <rguenther@suse.de>
7522 2009-08-31 Richard Guenther <rguenther@suse.de>
7524 * builtins.c (fold_builtin_memory_op): Use the alias oracle
7525 to query if the memory regions for memmove overlap.
7526 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7527 asserts on pointers, instead deal with odd trees.
7528 (ptr_derefs_may_alias_p): Likewise.
7529 (refs_may_alias_p_1): Constructor bases also never alias.
7531 2009-08-01 Christian Bruel <christian.bruel@st.com>
7534 2009-07-31 Christian Bruel <christian.bruel@st.com>
7535 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7537 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
7539 * doc/invoke.texi (-fvar-tracking-assignments): New.
7540 (-fvar-tracking-assignments-toggle): New.
7541 (-fdump-final-insns=file): Mark filename as optional.
7542 (--param min-nondebug-insn-uid): New.
7543 (-gdwarf-@{version}): Mention version 4.
7544 * opts.c (common_handle_option): Accept it.
7545 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7546 * regrename.c (regrename_optimize): Drop last. Don't count debug
7547 insns as uses. Don't reject change because of debug insn.
7548 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
7549 from the chain starter, and check for inexact matches in DEBUG_INSNS.
7550 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7551 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7552 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7553 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7554 * doc/gimple.texi (is_gimple_debug): New.
7555 (gimple_debug_bind_p): New.
7556 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7557 * doc/install.texi (bootstrap-debug): More details.
7558 (bootstrap-debug-big, bootstrap-debug-lean): Document.
7559 (bootstrap-debug-lib): More details.
7560 (bootstrap-debug-ckovw): Update.
7561 (bootstrap-time): New.
7562 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7563 (insert_phi_nodes_for): Insert debug stmts.
7564 (rewrite_stmt): Take iterator. Insert debug stmts.
7565 (rewrite_enter_block): Adjust.
7566 (maybe_replace_use_in_debug_stmt): New.
7567 (rewrite_update_stmt): Use it.
7568 (mark_use_interesting): Return early for debug stmts.
7569 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7570 stmts before replacing stmt.
7571 (move_computations_stmt): Likewise.
7572 * ira-conflicts.c (add_copies): Skip debug insns.
7573 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7574 (regstat_bb_compute_ri): Skip debug insns.
7575 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7576 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7577 check_loop_closed_ssa_stmt): Skip debug stmts.
7578 * tree-tailcall.c (find_tail_calls): Likewise.
7579 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7580 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7581 (build_var_debug_value_stat): Declare.
7582 (build_var_debug_value): Define.
7583 (target_for_debug_bind): Declare.
7584 * reload.c (find_equiv_reg): Skip debug insns.
7585 * rtlanal.c (reg_used_between_p): Skip debug insns.
7586 (side_effects_p): Likewise.
7587 (canonicalize_condition): Likewise.
7588 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7589 insns never depend on debug insns.
7590 (create_ddg_dep_no_link): Likewise.
7591 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7592 Don't add inter-loop dependencies for debug insns.
7593 (build_intra_loop_deps): Likewise.
7594 (create_ddg): Count debug insns.
7595 * ddg.h (struct ddg::num_debug): New.
7596 (num_backargs): Pair up with previous int field.
7597 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7598 -fcompare-debug-second.
7599 * final.c (get_attr_length_1): Skip debug insns.
7600 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7601 * gcc.c (invoke_as): Call compare-debug-dump-opt.
7602 (driver_self_specs): Map -fdump-final-insns to
7603 -fdump-final-insns=..
7604 (get_local_tick): New.
7605 (compare_debug_dump_opt_spec_function): Test for . argument and
7606 compute output name. Compute temp output spec without flag name.
7607 Compute -frandom-seed.
7608 (OPT): Undef after use.
7609 * cfgloopanal.c (num_loop_insns): Skip debug insns.
7610 (average_num_loop_insns): Likewise.
7611 * params.h (MIN_NONDEBUG_INSN_UID): New.
7612 * gimple.def (GIMPLE_DEBUG): New.
7613 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7614 * auto-inc-dec.c (merge_in_block): Skip debug insns.
7615 (merge_in_block): Fix whitespace.
7616 * toplev.c (flag_var_tracking): Update comment.
7617 (flag_var_tracking_assignments): New.
7618 (flag_var_tracking_assignments_toggle): New.
7619 (process_options): Don't open final insns dump file if we're not
7620 going to write to it. Compute defaults for var_tracking.
7621 * df-scan.c (df_insn_rescan_debug_internal): New.
7622 (df_uses_record): Handle debug insns.
7623 * haifa-sched.c (ready): Initialize n_debug.
7624 (contributes_to_priority): Skip debug insns.
7625 (dep_list_size): New.
7627 (rank_for_schedule): Likewise. Schedule debug insns as soon as
7628 they're ready. Disregard previous debug insns to make decisions.
7629 (queue_insn): Never queue debug insns.
7630 (ready_add, ready_remove_first, ready_remove): Count debug insns.
7631 (schedule_insn): Don't reject debug insns because of issue rate.
7632 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7633 (queue_to_ready): Skip and discount debug insns.
7634 (choose_ready): Let debug insns through.
7635 (schedule_block): Check boundary debug insns. Discount debug
7636 insns, schedule them early. Adjust whitespace.
7637 (set_priorities): Check for boundary debug insns.
7638 (add_jump_dependencies): Use dep_list_size.
7639 (prev_non_location_insn): New.
7640 (check_cfg): Use it.
7641 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7643 (remove_unused_ivs): Reset debug stmts.
7644 * modulo-sched.c (const_iteration_count): Skip debug insns.
7645 (res_MII): Discount debug insns.
7646 (loop_single_full_bb_p): Skip debug insns.
7647 (sms_schedule): Likewise.
7648 (sms_schedule_by_order): Likewise.
7649 (ps_has_conflicts): Likewise.
7650 * caller-save.c (refmarker_fn): New.
7651 (save_call_clobbered_regs): Replace regs with saved mem in
7653 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
7654 Call refmarker_fn mark for hardregnos.
7655 (mark_reg_as_referenced): New.
7656 (replace_reg_with_saved_mem): New.
7657 * ipa-pure-const.c (check_stmt): Skip debug stmts.
7658 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
7660 (cse_extended_basic_block): Skip debug insns.
7661 (count_reg_usage): Likewise.
7662 (is_dead_reg): New, split out of...
7663 (set_live_p): ... here.
7664 (insn_live_p): Use it for debug insns.
7665 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7666 (execute_optimize_stdarg): Likewise.
7667 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7668 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7669 changes in debug stmts as changes.
7670 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7671 (moveup_expr): Don't move across debug insns. Don't move
7672 debug insn if it would create a bookkeeping block.
7673 (moveup_expr_cached): Don't use cache for debug insns that
7674 are heads of blocks.
7675 (compute_av_set_inside_bb): Skip debug insns.
7676 (sel_rank_for_schedule): Schedule debug insns first. Remove
7678 (block_valid_for_bookkeeping_p); Support lax searches.
7679 (create_block_for_bookkeeping): Adjust block numbers when
7680 encountering debug-only blocks.
7681 (find_place_for_bookkeeping): Deal with debug-only blocks.
7682 (generate_bookkeeping_insn): Accept no place to insert.
7683 (remove_temp_moveop_nops): New argument full_tidying.
7684 (prepare_place_to_insert): Deal with debug insns.
7685 (advance_state_on_fence): Debug insns don't start cycles.
7686 (update_boundaries): Take fence as argument. Deal with
7688 (schedule_expr_on_boundary): No full_tidying on debug insns.
7689 (fill_insns): Deal with debug insns.
7690 (track_scheduled_insns_and_blocks): Don't count debug insns.
7691 (need_nop_to_preserve_insn_bb): New, split out of...
7692 (remove_insn_from_stream): ... this.
7693 (fur_orig_expr_not_found): Skip debug insns.
7694 * rtl.def (VALUE): Move up.
7696 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7697 (nearest_common_dominator_of_uses): Take debug_stmts argument.
7698 Set it if debug stmts are found.
7699 (statement_sink_location): Skip debug stmts. Propagate
7700 moving defs into debug stmts.
7701 * ifcvt.c (first_active_insn): Skip debug insns.
7702 (last_active_insns): Likewise.
7703 (cond_exec_process_insns): Likewise.
7704 (noce_process_if_block): Likewise.
7705 (check_cond_move_block): Likewise.
7706 (cond_move_convert_if_block): Likewise.
7707 (block_jumps_and_fallthru_p): Likewise.
7708 (dead_or_predicable): Likewise.
7709 * dwarf2out.c (debug_str_hash_forced): New.
7710 (find_AT_string): Add comment.
7711 (gen_label_for_indirect_string): New.
7712 (get_debug_string_label): New.
7713 (AT_string_form): Use it.
7714 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
7715 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
7716 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7717 several operations that cannot be represented with DWARF opcodes.
7718 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
7719 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7720 (dwarf2out_var_location): Take during-call mark into account.
7721 (output_indirect_string): Update comment. Output if there are
7722 label and references.
7723 (prune_indirect_string): New.
7724 (prune_unused_types): Call it if debug_str_hash_forced.
7725 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7726 (dw_long_long_const): Remove.
7727 (struct dw_val_struct): Change val_long_long type to rtx.
7728 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7729 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7730 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
7731 component instead of HOST_BITS_PER_LONG.
7732 (output_loc_operands): Likewise. For const8* assert
7733 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7734 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7735 rather than HOST_BITS_PER_LONG is >= 64.
7736 (add_AT_long_long): Remove val_hi and val_lo arguments, add
7738 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7739 HOST_BITS_PER_LONG for dw_val_class_long_long.
7740 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
7741 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
7742 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7744 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7745 Handle DW_OP_implicit_value.
7746 (extract_int): Move prototype earlier.
7747 (mem_loc_descriptor): For SUBREG punt if inner
7748 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
7749 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
7750 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7751 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7752 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7753 instead of Pmode size.
7754 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
7755 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7756 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
7757 (concat_loc_descriptor, concatn_loc_descriptor,
7758 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7759 (add_location_or_const_value_attribute): Likewise. For single
7760 location loc_lists attempt to use add_const_value_attribute
7761 for constant decls. Add DW_AT_const_value even if
7762 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7764 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7765 (control_flow_insn_p): Likewise.
7766 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7767 (separate_decls_in_region_debug_bind): New.
7768 (separate_decls_in_region): Process debug bind stmts afterwards.
7769 * recog.c (verify_changes): Handle debug insns.
7770 (extract_insn): Likewise.
7771 (peephole2_optimize): Skip debug insns.
7772 * dse.c (scan_insn): Skip debug insns.
7773 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7775 (setup_id_for_insn): Handle debug insns.
7776 (maybe_tidy_empty_bb): Adjust whitespace.
7777 (tidy_control_flow): Skip debug insns.
7778 (sel_remove_insn): Adjust for debug insns.
7779 (sel_estimate_number_of_insns): Skip debug insns.
7780 (create_insn_rtx_from_pattern): Handle debug insns.
7781 (create_copy_of_insn_rtx): Likewise.
7782 * sel-sched-.h (sel_bb_end): Declare.
7783 (sel_bb_empty_or_nop_p): New.
7784 (get_all_loop_exits): Use it.
7785 (_eligible_successor_edge_p): Likewise.
7786 (return_nop_to_pool): Adjust.
7787 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7788 * ira-lives.c (process_bb_node_lives): Skip debug insns.
7789 * gimple-pretty-print.c (dump_gimple_debug): New.
7790 (dump_gimple_stmt): Use it.
7791 (dump_bb_header): Skip gimple debug stmts.
7792 * regmove.c (optimize_reg_copy_1): Discount debug insns.
7793 (fixup_match_2): Likewise.
7794 (regmove_backward_pass): Likewise. Simplify combined
7795 replacement. Handle debug insns.
7796 * function.c (instantiate_virtual_regs): Handle debug insns.
7797 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7798 * print-rtl.h: Include cselib.h.
7799 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
7800 * df.h (df_inns_rescan_debug_internal): Declare.
7801 * gcse.c (alloc_hash_table): Estimate n_insns.
7802 (cprop_insn): Don't regard debug insns as changes.
7803 (bypass_conditional_jumps): Skip debug insns.
7804 (one_pre_gcse_pass): Adjust.
7805 (one_code_hoisting_pass): Likewise.
7806 (compute_ld_motion_mems): Skip debug insns.
7807 (one_cprop_pass): Adjust.
7808 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7809 (if_convertible_stmt_p): Handle debug stmts.
7810 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7811 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7812 * ira-build.c (create_bb_allocnos): Skip debug insns.
7813 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7814 (has_single_use): Likewise.
7815 (single_imm_use): Likewise.
7816 (num_imm_uses): Likewise.
7817 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7818 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7819 (create_outofssa_var_map): Likewise.
7820 * lower-subreg.c (adjust_decomposed_uses): New.
7821 (resolve_debug): New.
7822 (decompose_multiword_subregs): Use it.
7823 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7824 * emit-rtl.c: Include params.h.
7825 (cur_debug_insn_uid): Define.
7826 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7827 (copy_rtx_if_shared_1): Handle debug insns.
7828 (reset_used_flags): Likewise.
7829 (set_used_flags): LIkewise.
7830 (get_max_insn_count): New.
7831 (next_nondebug_insn): New.
7832 (prev_nondebug_insn): New.
7833 (make_debug_insn_raw): New.
7834 (emit_insn_before_noloc): Handle debug insns.
7835 (emit_jump_insn_before_noloc): Likewise.
7836 (emit_call_insn_before_noloc): Likewise.
7837 (emit_debug_insn_before_noloc): New.
7838 (emit_insn_after_noloc): Handle debug insns.
7839 (emit_jump_insn_after_noloc): Likewise.
7840 (emit_call_insn_after_noloc): Likewise.
7841 (emit_debug_insn_after_noloc): Likewise.
7842 (emit_insn_after): Take loc from earlier non-debug insn.
7843 (emit_jump_insn_after): Likewise.
7844 (emit_call_insn_after): Likewise.
7845 (emit_debug_insn_after_setloc): New.
7846 (emit_debug_insn_after): New.
7847 (emit_insn_before): Take loc from later non-debug insn.
7848 (emit_jump_insn_before): Likewise.
7849 (emit_call_insn_before): Likewise.
7850 (emit_debug_insn_before_setloc): New.
7851 (emit_debug_insn_before): New.
7852 (emit_insn): Handle debug insns.
7853 (emit_debug_insn): New.
7854 (emit_jump_insn): Handle debug insns.
7855 (emit_call_insn): Likewise.
7857 (init_emit): Take min-nondebug-insn-uid into account.
7858 Initialize cur_debug_insn_uid.
7859 (emit_copy_of_insn_after): Handle debug insns.
7860 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7861 location of single rhs in place.
7862 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7863 (floor_sdiv_adjust): New.
7864 (cell_sdiv_adjust): New.
7865 (cell_udiv_adjust): New.
7866 (round_sdiv_adjust): New.
7867 (round_udiv_adjust): New.
7868 (wrap_constant): Moved from cselib.
7869 (unwrap_constant): New.
7870 (expand_debug_expr): New.
7871 (expand_debug_locations): New.
7872 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
7874 (gimple_expand_cfg): Expand debug locations.
7875 * cselib.c: Include tree-pass.h.
7876 (struct expand_value_data): New.
7877 (cselib_record_sets_hook): New.
7878 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7879 (cselib_clear_table): Move, and implemnet in terms of...
7880 (cselib_reset_table_with_next_value): ... this.
7881 (cselib_get_next_unknown_value): New.
7882 (discard_useless_locs): Don't discard preserved values.
7883 (cselib_preserve_value): New.
7884 (cselib_preserved_value_p): New.
7885 (cselib_preserve_definitely): New.
7886 (cselib_clear_preserve): New.
7887 (cselib_preserve_only_values): New.
7888 (new_cselib_val): Take rtx argument. Dump it in details.
7889 (cselib_lookup_mem): Adjust.
7890 (expand_loc): Take regs_active in struct. Adjust. Silence
7891 dumps unless details are requested.
7892 (cselib_expand_value_rtx_cb): New.
7893 (cselib_expand_value_rtx): Rename and reimplment in terms of...
7894 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
7895 without details. Copy more subregs. Try to resolve values
7896 using a callback. Wrap constants.
7897 (cselib_subst_to_values): Adjust.
7898 (cselib_log_lookup): New.
7899 (cselib_lookup): Call it.
7900 (cselib_invalidate_regno): Don't count preserved values as useless.
7901 (cselib_invalidate_mem): Likewise.
7902 (cselib_record_set): Likewise.
7903 (struct set): Renamed to cselib_set, moved to cselib.h.
7904 (cselib_record_sets): Adjust. Call hook.
7905 (cselib_process_insn): Reset table when it would be cleared.
7906 (dump_cselib_val): New.
7907 (dump_cselib_table): New.
7908 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7909 (remove_forwarder_block): Support moving debug stmts.
7910 * cselib.h (cselib_record_sets_hook): Declare.
7911 (cselib_expand_callback): New type.
7912 (cselib_expand_value_rtx_cb): Declare.
7913 (cselib_reset_table_with_next_value): Declare.
7914 (cselib_get_next_unknown_value): Declare.
7915 (cselib_preserve_value): Declare.
7916 (cselib_preserved_value_p): Declare.
7917 (cselib_preserve_only_values): Declare.
7918 (dump_cselib_table): Declare.
7919 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7920 (try_crossjump_to_edge): Likewise.
7921 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7922 dominated blocks when debug stmts are present.
7923 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7924 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7925 (set_var_live_on_entry): Likewise.
7926 * loop-invariant.c (find_invariants_bb): Skip debug insns.
7927 * cfglayout.c (curr_location, last_location): Make static.
7928 (set_curr_insn_source_location): Don't avoid bouncing.
7929 (get_curr_insn_source_location): New.
7930 (get_curr_insn_block): New.
7931 (duplicate_insn_chain): Handle debug insns.
7932 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7934 * common.opt (fcompare-debug): Move to sort order.
7935 (fdump-unnumbered-links): Likewise.
7936 (fvar-tracking-assignments): New.
7937 (fvar-tracking-assignments-toggle): New.
7938 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7939 because of debug stmts.
7940 (mark_stmt_if_obviously_necessary): Mark debug stmts.
7941 (eliminate_unnecessary_stmts): Walk dominated blocks before
7943 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7944 * ira.c (memref_used_between_p): Skip debug insns.
7945 (update_equiv_regs): Likewise.
7946 * sched-deps.c (sd_lists_size): Accept empty list.
7947 (sd_init_insn): Mark debug insns.
7948 (sd_finish_insn): Unmark them.
7949 (sd_add_dep): Reject non-debug deps on debug insns.
7950 (fixup_sched_groups): Give debug insns group treatment.
7952 (sched_analyze_reg): Don't mark debug insns for sched before call.
7953 (sched_analyze_2): Handle debug insns.
7954 (sched_analyze_insn): Compute next non-debug insn. Handle debug
7956 (deps_analyze_insn): Handle debug insns.
7957 (deps_start_bb): Skip debug insns.
7958 (init_deps): Initialize last_debug_insn.
7959 * tree-ssa.c (target_for_debug_bind): New.
7960 (find_released_ssa_name): New.
7961 (propagate_var_def_into_debug_stmts): New.
7962 (propagate_defs_into_debug_stmts): New.
7963 (verify_ssa): Skip debug bind stmts without values.
7964 (warn_uninialized_vars): Skip debug stmts.
7965 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7966 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7967 (rtx_equal_p): Likewise.
7968 * ira-costs.c (scan_one_insn): Skip debug insns.
7969 (process_bb_node_for_hard_reg_moves): Likewise.
7970 * rtl.h (DEBUG_INSN_P): New.
7971 (NONDEBUG_INSN_P): New.
7972 (MAY_HAVE_DEBUG_INSNS): New.
7973 (INSN_P): Accept debug insns.
7974 (RTX_FRAME_RELATED_P): Likewise.
7975 (INSN_DELETED_P): Likewise
7976 (PAT_VAR_LOCATION_DECL): New.
7977 (PAT_VAR_LOCATION_LOC): New.
7978 (PAT_VAR_OCATION_STATUS): New.
7979 (NOTE_VAR_LOCATION_DECL): Reimplement.
7980 (NOTE_VAR_LOCATION_LOC): Likewise.
7981 (NOTE_VAR_LOCATION_STATUS): Likewise.
7982 (INSN_VAR_LOCATION): New.
7983 (INSN_VAR_LOCATION_DECL): New.
7984 (INSN_VAR_LOCATION_LOC): New.
7985 (INSN_VAR_LOCATION_STATUS): New.
7986 (gen_rtx_UNKNOWN_VAR_LOC): New.
7987 (VAR_LOC_UNKNOWN_P): New.
7988 (NOTE_DURING_CALL_P): New.
7989 (SCHED_GROUP_P): Accept debug insns.
7990 (emit_debug_insn_before): Declare.
7991 (emit_debug_insn_before_noloc): Declare.
7992 (emit_debug_insn_beore_setloc): Declare.
7993 (emit_debug_insn_after): Declare.
7994 (emit_debug_insn_after_noloc): Declare.
7995 (emit_debug_insn_after_setloc): Declare.
7996 (emit_debug_insn): Declare.
7997 (make_debug_insn_raw): Declare.
7998 (prev_nondebug_insn): Declare.
7999 (next_nondebug_insn): Declare.
8000 (delegitimize_mem_from_attrs): Declare.
8001 (get_max_insn_count): Declare.
8002 (wrap_constant): Declare.
8003 (unwrap_constant): Declare.
8004 (get_curr_insn_source_location): Declare.
8005 (get_curr_insn_block): Declare.
8006 * tree-inline.c (insert_debug_decl_map): New.
8007 (processing_debug_stmt): New.
8008 (remap_decl): Don't create new mappings in debug stmts.
8009 (remap_gimple_op_r): Don't add references in debug stmts.
8010 (copy_tree_body_r): Likewise.
8011 (remap_gimple_stmt): Handle debug bind stmts.
8012 (copy_bb): Skip debug stmts.
8013 (copy_edges_for_bb): Likewise.
8014 (copy_debug_stmt): New.
8015 (copy_debug_stmts): New.
8016 (copy_body): Copy debug stmts at the end.
8017 (insert_init_debug_bind): New.
8018 (insert_init_stmt): Take id. Skip and emit debug stmts.
8019 (setup_one_parameter): Remap variable earlier, register debug mapping.
8020 (estimate_num_insns): Skip debug stmts.
8021 (expand_call_inline): Preserve debug_map.
8022 (optimize_inline_calls): Check for no debug_stmts left-overs.
8023 (unsave_expr_now): Preserve debug_map.
8024 (copy_gimple_seq_and_replace_locals): Likewise.
8025 (tree_function_versioning): Check for no debug_stmts left-overs.
8026 Init and destroy debug_map as needed. Split edges unconditionally.
8027 (build_duplicate_type): Init and destroy debug_map as needed.
8028 * tree-inline.h: Include gimple.h instead of pointer-set.h.
8029 (struct copy_body_data): Add debug_stmts and debug_map.
8030 * sched-int.h (struct ready_list): Add n_debug.
8031 (struct deps): Add last_debug_insn.
8032 (DEBUG_INSN_SCHED_P): New.
8033 (BOUNDARY_DEBUG_INSN_P): New.
8034 (SCHEDULE_DEBUG_INSN_P): New.
8035 (sd_iterator_cond): Accept empty list.
8036 * combine.c (create_log_links): Skip debug insns.
8037 (combine_instructions): Likewise.
8038 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
8039 return value is always unshared.
8040 (struct rtx_subst_pair): New.
8041 (auto_adjust_pair): New.
8042 (propagate_for_debug_subst): New.
8043 (propagate_for_debug): New.
8044 (try_combine): Skip debug insns. Propagate removed defs into
8046 (next_nonnote_nondebug_insn): New.
8047 (distribute_notes): Use it. Skip debug insns.
8048 (distribute_links): Skip debug insns.
8049 * tree-outof-ssa.c (set_location_for_edge): Likewise.
8050 * resource.c (mark_target_live_regs): Likewise.
8051 * var-tracking.c: Include cselib.h and target.h.
8052 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
8054 (micro_operation_type_name): New.
8055 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
8056 (struct micro_operation_def): Update comments.
8057 (decl_or_value): New type. Use instead of decls.
8058 (struct emit_note_data_def): Add vars.
8059 (struct attrs_def): Use decl_or_value.
8060 (struct variable_tracking_info_def): Add permp, flooded.
8061 (struct location_chain_def): Update comment.
8062 (struct variable_part_def): Use decl_or_value.
8063 (struct variable_def): Make var_part a variable length array.
8065 (scratch_regs): New.
8066 (cselib_hook_called): New.
8067 (dv_is_decl_p): New.
8068 (dv_is_value_p): New.
8071 (dv_as_opaque): New.
8072 (dv_onepart_p): New.
8074 (IS_DECL_CODE): New.
8075 (check_value_is_not_decl): New.
8076 (dv_from_decl): New.
8077 (dv_from_value): New.
8078 (dv_htab_hash): New.
8079 (variable_htab_hash): Use it.
8080 (variable_htab_eq): Support values.
8081 (variable_htab_free): Free from the right pool.
8082 (attrs_list_member, attrs_list_insert): Use decl_or_value.
8083 (attrs_list_union): Adjust.
8084 (attrs_list_mpdv_union): New.
8085 (tie_break_pointers): New.
8086 (canon_value_cmp): New.
8087 (unshare_variable): Return possibly-modified slot.
8088 (vars_copy_1): Adjust.
8089 (var_reg_decl_set): Adjust. Split out of...
8090 (var_reg_set): ... this.
8091 (get_init_value): Adjust.
8092 (var_reg_delete_and_set): Adjust.
8093 (var_reg_delete): Adjust.
8094 (var_regno_delete): Adjust.
8095 (var_mem_decl_set): Split out of...
8096 (var_mem_set): ... this.
8097 (var_mem_delete_and_set): Adjust.
8098 (var_mem_delete): Adjust.
8102 (variable_union): Adjust. Speed up merge of 1-part vars.
8103 (variable_canonicalize): Use unshared slot.
8104 (VALUED_RECURSED_INTO): New.
8105 (find_loc_in_1pdv): New.
8106 (struct dfset_merge): New.
8107 (insert_into_intersection): New.
8108 (intersect_loc_chains): New.
8110 (canonicalize_loc_order_check): New.
8111 (canonicalize_values_mark): New.
8112 (canonicalize_values_star): New.
8113 (variable_merge_over_cur): New.
8114 (variable_merge_over_src): New.
8115 (dataflow_set_merge): New.
8116 (dataflow_set_equiv_regs): New.
8117 (remove_duplicate_values): New.
8118 (struct dfset_post_merge): New.
8119 (variable_post_merge_new_vals): New.
8120 (variable_post_merge_perm_vals): New.
8121 (dataflow_post_merge_adjust): New.
8122 (find_mem_expr_in_1pdv): New.
8123 (dataflow_set_preserve_mem_locs): New.
8124 (dataflow_set_remove_mem_locs): New.
8125 (dataflow_set_clear_at_call): New.
8126 (onepart_variable_different_p): New.
8127 (variable_different_p): Use it.
8128 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
8129 (track_expr_p): Add need_rtl parameter. Don't generate rtl
8131 (track_loc_p): Pass it true.
8132 (struct count_use_info): New.
8133 (find_use_val): New.
8134 (replace_expr_with_values): New.
8136 (use_type): New, partially split out of...
8137 (count_uses): ... this. Count new micro-ops.
8138 (count_uses_1): Adjust.
8139 (count_stores): Adjust.
8140 (count_with_sets): New.
8141 (VAL_NEEDS_RESOLUTION): New.
8142 (VAL_HOLDS_TRACK_EXPR): New.
8143 (VAL_EXPR_IS_COPIED): New.
8144 (VAL_EXPR_IS_CLOBBERED): New.
8145 (add_uses): Adjust. Generate new micro-ops.
8146 (add_uses_1): Adjust.
8147 (add_stores): Generate new micro-ops.
8148 (add_with_sets): New.
8149 (find_src_status): Adjust.
8150 (find_src_set_src): Adjust.
8151 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
8152 Handle new micro-ops. Canonicalize value equivalances.
8153 (vt_find_locations): Compute total size of hash tables for
8154 dumping. Perform merge for var-tracking-assignments. Don't
8155 disregard single-block loops.
8156 (dump_attrs_list): Handle decl_or_value.
8157 (dump_variable): Take variable. Deal with decl_or_value.
8158 (dump_variable_slot): New.
8159 (dump_vars): Use it.
8160 (dump_dataflow_sets): Adjust.
8161 (set_slot_part): New, extended to support one-part variables
8162 after splitting out of...
8163 (set_variable_part): ... this.
8164 (clobber_slot_part): New, split out of...
8165 (clobber_variable_part): ... this.
8166 (delete_slot_part): New, split out of...
8167 (delete_variable_part): .... this.
8168 (check_wrap_constant): New.
8169 (vt_expand_loc_callback): New.
8170 (vt_expand_loc): New.
8171 (emit_note_insn_var_location): Adjust. Handle values. Handle
8172 EMIT_NOTE_AFTER_CALL_INSN.
8173 (emit_notes_for_differences_1): Adjust. Handle values.
8174 (emit_notes_for_differences_2): Likewise.
8175 (emit_notes_for_differences): Adjust.
8176 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
8177 Adjust. Handle new micro-ops.
8178 (vt_add_function_parameters): Adjust. Create and bind values.
8179 (vt_initialize): Adjust. Initialize scratch_regs and
8180 valvar_pool, flooded and perm.. Initialize and use cselib. Log
8181 operations. Move some code to count_with_sets and add_with_sets.
8182 (delete_debug_insns): New.
8183 (vt_debug_insns_local): New.
8184 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
8186 (var_tracking_main): If var-tracking-assignments is enabled
8187 but var-tracking isn't, delete debug insns and leave. Likewise
8188 if we exceed limits or fail the stack adjustments tests, and
8189 after all var-tracking processing.
8190 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
8191 (dataflow_set): Add traversed_vars.
8192 (value_chain, const_value_chain): New typedefs.
8193 (value_chain_pool, value_chains): New variables.
8194 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
8195 add_value_chains, add_cselib_value_chains, remove_value_chain,
8196 remove_value_chains, remove_cselib_value_chains): New functions.
8197 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
8198 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
8200 (shared_hash_find_slot_unshare, shared_hash_find_slot,
8201 shared_hash_find_slot_noinsert, shared_hash_find): Update.
8202 (dst_can_be_shared): New variable.
8203 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
8204 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
8205 different from set->vars, look up slot again instead of using the
8207 (dataflow_set_init): Initialize traversed_vars.
8208 (variable_union): Use shared_hash_*. Use initially NO_INSERT
8209 lookup if set->vars is shared. Don't keep slot cleared before
8210 calling unshare_variable. Unshare set->vars if needed. Adjust
8211 unshare_variable callers. Clear dst_can_be_shared if needed.
8212 Even ->refcount == 1 vars must be unshared if set->vars is shared
8213 and var needs to be modified.
8214 (dataflow_set_union): Set traversed_vars during canonicalization.
8215 (VALUE_CHANGED, DECL_CHANGED): Define.
8216 (set_dv_changed, dv_changed_p): New static inlines.
8217 (track_expr_p): Clear DECL_CHANGED.
8218 (dump_dataflow_sets): Set it.
8219 (variable_was_changed): Call set_dv_changed.
8220 (emit_note_insn_var_location): Likewise.
8221 (changed_variables_stack): New variable.
8222 (check_changed_vars_1, check_changed_vars_2): New functions.
8223 (emit_notes_for_changes): Do nothing if changed_variables is
8224 empty. Traverse changed_variables with check_changed_vars_1,
8225 call check_changed_vars_2 on each changed_variables_stack entry.
8226 (emit_notes_in_bb): Add SET argument. Just clear it at the
8227 beginning, use it instead of local &set, don't destroy it at the end.
8228 (vt_emit_notes): Call dataflow_set_clear early on all
8229 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
8230 computed set, dataflow_set_clear also VTI(bb)->in when we are
8231 done with the basic block. Initialize changed_variables_stack,
8232 free it afterwards. If ENABLE_CHECKING verify that after noting
8233 differences to an empty set value_chains hash table is empty.
8234 (vt_initialize): Initialize value_chains and value_chain_pool.
8235 (vt_finalize): Delete value_chains htab, free value_chain_pool.
8236 (variable_tracking_main): Call dump_dataflow_sets before calling
8237 vt_emit_notes, not after it.
8238 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
8239 (propagate_var_def_into_debug_stmts): Declare.
8240 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
8241 (df_set_note): Reject debug insns.
8242 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
8243 add notes to debug insns.
8244 (df_note_bb_compute): Adjust. Likewise.
8245 (df_simulate_uses): Skip debug insns.
8246 (df_simulate_initialize_backwards): Likewise.
8247 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
8248 (subst_stack_regs_pat): Reject debug insns.
8249 (convert_regs_1): Handle debug insns.
8250 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
8251 (print-rtl.o): Depend on cselib.h.
8252 (cselib.o): Depend on TREE_PASS_H.
8253 (var-tracking.o): Depend on cselib.h and TARGET_H.
8254 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
8255 (init_ready_list): Skip boundary debug insns.
8256 (add_branch_dependences): Skip debug insns.
8257 (free_block_dependencies): Check for blocks with only debug insns.
8258 (compute_priorities): Likewise.
8259 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
8260 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
8262 (gimple_build_debug_bind_stat): New.
8263 (empty_body_p): Skip debug stmts.
8264 (gimple_has_side_effects): Likewise.
8265 (gimple_rhs_has_side_effects): Likewise.
8266 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
8267 (gimple_build_debug_bind_stat): Declare.
8268 (gimple_build_debug_bind): Define.
8269 (is_gimple_debug): New.
8270 (gimple_debug_bind_p): New.
8271 (gimple_debug_bind_get_var): New.
8272 (gimple_debug_bind_get_value): New.
8273 (gimple_debug_bind_get_value_ptr): New.
8274 (gimple_debug_bind_set_var): New.
8275 (gimple_debug_bind_set_value): New.
8276 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
8277 (gimple_debug_bind_reset_value): New.
8278 (gimple_debug_bind_has_value_p): New.
8279 (gsi_next_nondebug): New.
8280 (gsi_prev_nondebug): New.
8281 (gsi_start_nondebug_bb): New.
8282 (gsi_last_nondebug_bb): New.
8283 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
8284 (print_insn): Handle DEBUG_INSN.
8285 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
8286 of first insn prevail.
8287 (first_stmt): Skip debug stmts.
8288 (first_non_label_stmt): Likewise.
8289 (last_stmt): Likewise.
8290 (has_zero_uses_1): New.
8291 (single_imm_use_1): New.
8292 (verify_gimple_debug): New.
8293 (verify_types_in_gimple_stmt): Handle debug stmts.
8294 (verify_stmt): Likewise.
8295 (debug_loop_num): Skip debug stmts.
8296 (remove_edge_and_dominated_blocks): Remove dominators last.
8297 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
8298 (linearize_expr): Likewise.
8299 * config/i386/i386.c (ix86_delegitimize_address): Call
8300 default implementation.
8301 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
8302 (group_barrier_needed): Skip debug insns.
8303 (emit_insn_group_barriers): Likewise.
8304 (emit_all_insn_group_barriers): Likewise.
8305 (ia64_variable_issue): Handle debug insns.
8306 (ia64_dfa_new_cycle): Likewise.
8307 (final_emit_insn_group_barriers): Skip debug insns.
8308 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
8309 def cfa without frame.
8310 (process_set): Likewise.
8311 (process_for_unwind_directive): Pass frame on.
8312 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8313 (rs6000_delegitimize_address): New.
8314 (rs6000_debug_adjust_cost): Handle debug insns.
8315 (is_microcoded_insn): Likewise.
8316 (is_cracked_insn): Likewise.
8317 (is_nonpipeline_insn): Likewise.
8318 (insn_must_be_first_in_group): Likewise.
8319 (insn_must_be_last_in_group): Likewise.
8320 (force_new_group): Likewise.
8321 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
8322 contains only debug insns.
8323 (rtl_merge_blocks): Skip debug insns.
8324 (purge_dead_edges): Likewise.
8325 (rtl_block_ends_with_call_p): Skip debug insns.
8326 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
8327 (mark_reg_dependencies): Skip debug insns.
8328 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
8329 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
8330 * tree-ssa-threadedge.c
8331 (record_temporary_equivalences_from_stmts): Skip debug stmts.
8332 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
8333 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
8334 (copyprop_hardreg_forward_1): Handle debug insns.
8335 * reload1.c (reload): Skip debug insns. Replace unassigned
8336 pseudos in debug insns with their equivalences.
8337 (eliminate_regs_in_insn): Skip debug insns.
8338 (emit_input_reload_insns): Skip debug insns at first, adjust
8340 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
8341 (get_indirect_ref_operands): Pass opf_no_vops on.
8342 (get_expr_operands): Likewise. Skip debug stmts.
8343 (parse_ssa_operands): Scan debug insns with opf_no_vops.
8345 2009-09-01 Richard Henderson <rth@redhat.com>
8347 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
8348 stmt_ends_pp_p statements at least once.
8349 * tree-vrp.c (vrp_initialize): Likewise.
8350 (vrp_visit_stmt): Be prepared for non-interesting stmts.
8352 2009-09-01 Dodji Seketeli <dodji@redhat.com>
8355 Fix AIX bootstrap after PR debug/30161
8356 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
8357 that is a GNU extension.
8358 (tmpl_value_parm_die_table): Move the definition of this global
8359 outside #ifdef DWARF2_DEBUGGING_INFO region.
8361 2009-09-01 Richard Guenther <rguenther@suse.de>
8363 * tree.c (tree_expr_size): New function.
8364 * tree.h (tree_expr_size): Declare.
8365 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
8366 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
8367 * langhooks.c (lhd_expr_size): Remove.
8368 * langhooks.h (struct lang_hooks): Remove expr_size.
8369 * explow.c (expr_size): Use tree_expr_size.
8370 (int_expr_size): Likewise.
8371 * langhooks-def.h (lhd_expr_size): Remove.
8372 (LANG_HOOKS_EXPR_SIZE): Likewise.
8373 (LANG_HOOKS_INITIALIZER): Adjust.
8375 2009-09-01 Richard Guenther <rguenther@suse.de>
8377 * tree-flow.h (mark_addressable): Move declaration ...
8378 * tree.h (mark_addressable): ... here.
8379 * stmt.c (expand_asm_operands): Use mark_addressable, not
8380 lang_hooks.mark_addressable.
8381 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8382 LANG_HOOKS_MARK_ADDRESSABLE.
8383 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
8384 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
8386 2009-08-31 Chris Demetriou <cgd@google.com>
8388 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
8389 vectorize if not TARGET_SSE2.
8391 2009-08-31 DJ Delorie <dj@redhat.com>
8393 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
8394 registers if no coprocessor is enabled.
8396 2009-08-31 Dodji Seketeli <dodji@redhat.com>
8399 * cgraph.h (cgraph_get_node): Declare ...
8400 * cgraph.c (cgraph_get_node): ... new function.
8401 * dwarf2out.c (gen_generic_params_dies,
8402 generic_parameter_die, tree_add_const_value_attribute_for_decl,
8403 make_ith_pack_parameter_name,
8404 append_entry_to_tmpl_value_parm_die_table,
8405 gen_remaining_tmpl_value_param_die_attribute): New functions.
8406 (gen_subprogram_die): Generate debug info for template parameters
8407 if debug info level is higher than DINFO_LEVEL_TERSE.
8408 Use tree_add_const_value_attribute_for_decl instead of
8409 tree_add_const_value_attribute.
8410 (gen_const_die): Use tree_add_const_value_attribute_for_decl
8411 instead of tree_add_const_value_attribute.
8412 (gen_struct_or_union_type_die): Generate debug
8413 info for template parameters if debug info level is higher than
8415 (tree_add_const_value_attribute): Handle integral and pointer
8416 constants. Update comment.
8417 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
8418 (dwarf_attr_name): Support DW_AT_GNU_template_name.
8419 (reference_to_unused): Fix thinko. Remove redundant predicates from
8421 (tree_add_const_value_attribute): Make this work for constant
8423 tree_add_const_value_attribute_for_decl is to be used for variable
8425 (add_location_or_const_value_attribute): Use
8426 tree_add_const_value_attribute_for_decl now.
8427 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
8428 DW_TAG_template_value_param DIEs after function DIEs have been
8430 * langhooks.h (lang_hooks_for_types): Add
8431 get_argument_pack_elems.
8432 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
8433 (lang_hooks): Added get_innermost_generic_parms,
8434 get_innermost_generic_args.
8435 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
8436 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
8437 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
8438 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
8440 2009-08-31 DJ Delorie <dj@redhat.com>
8442 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
8443 it once we start generating the prologue or epilogue.
8444 (mep_call_saves_register): If the frame is locked, re-use
8446 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
8447 (mep_expand_prologue): Call it.
8448 (mep_expand_epilogue): Likewise.
8449 (mep_start_function): Use the same logic as mep_expand_prologue.
8450 (mep_pass_by_reference): Make logic more readable.
8451 (mep_return_in_memory): Zero-sized objects are passed in memory.
8452 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
8454 2009-08-31 Richard Guenther <rguenther@suse.de>
8456 * builtins.c (fold_builtin_memory_op): Use the alias oracle
8457 to query if the memory regions for memmove overlap.
8458 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8459 asserts on pointers, instead deal with odd trees.
8460 (ptr_derefs_may_alias_p): Likewise.
8461 (refs_may_alias_p_1): Constructor bases also never alias.
8463 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
8465 * doc/install.texi (Final install): Adjust reference on where to
8466 order printed manuals.
8468 2009-08-30 Olivier Hainque <hainque@adacore.com>
8470 * dwarf2out.c (switch_to_frame_table_section): Move
8471 definition prior to first use.
8473 2009-08-30 Richard Guenther <rguenther@suse.de>
8475 PR tree-optimization/41186
8476 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
8477 (ao_ref_init_from_ptr_and_size): New function.
8478 (ref_maybe_used_by_call_p_1): Be more precise tracking
8479 used ranges for builtin functions.
8480 (ref_maybe_used_by_call_p): Adjust.
8481 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
8482 ranges for builtin functions.
8483 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
8485 2009-08-30 Alan Modra <amodra@bigpond.net.au>
8488 * fwprop.c (get_reg_use_in): Delete.
8489 (free_load_extend): New function.
8490 (forward_propagate_subreg): Use it.
8492 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
8494 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
8496 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
8499 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8502 2009-08-29 Douglas B Rupp <rupp@gnat.com>
8504 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8505 fini or fini_array section.
8507 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8509 * graphite-dependences.c (graphite_legal_transform_bb): Call
8510 pbb_remove_duplicate_pdrs.
8511 * graphite-poly.c (can_collapse_pdr): Removed.
8512 (pdr_find_duplicate): Removed.
8513 (can_collapse_pdrs): New.
8514 (pbb_remove_duplicate_pdrs): New.
8515 (new_poly_dr): Do not look for duplicates.
8516 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8517 (PBB_PDR_DUPLICATES_REMOVED): New.
8518 (pbb_remove_duplicate_pdrs): Declared.
8520 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8522 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8523 the strides by multiplying by PDR_NB_REFS.
8524 * graphite-poly.c (can_collapse_pdr): New.
8525 (pdr_find_duplicate): New.
8526 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
8527 Initialize PDR_NB_REFS.
8528 * graphite-poly.h (struct poly_dr): Add field nb_refs.
8530 (new_poly_dr): Number of subscripts is a graphite_dim_t.
8532 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8535 * graphite-poly.c (apply_poly_transforms): Remove legality test before
8538 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8540 * graphite-dependences.c (pddr_original_scattering): Return NULL
8541 for read-read dependence relations.
8542 * graphite-poly.h (enum poly_dr_type): Fix comment.
8545 (pdr_may_write_p): New.
8547 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8549 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8550 (struct poly_dr): Same.
8551 (new_poly_dr): Same.
8552 * graphite-poly.c (new_poly_dr): Same.
8553 * graphite-dependences.c (dot_deps): Disable call to system.
8555 2009-08-28 Cary Coutant <ccoutant@google.com>
8558 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8559 struct/union/enum types local to a function.
8561 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8562 Sebastian Pop <sebastian.pop@amd.com>
8564 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8565 pbb_strip_mine_time_depth. Changed the implementation so that
8566 transformation is expressed as a transformation on
8567 time (scatttering) dimensions. Also, ensures that the 2d+1
8568 scheduling format is preserved.
8569 (pbb_strip_mine_profitable_p): Profitability is based on the
8570 iteration number of a given time (scattering) dimension,
8571 and not on a original loop depth dimension.
8572 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8573 (pbb_do_strip_mine): Call psct_dynamic_dim.
8574 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8575 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8576 (pbb_nb_dynamic_scattering_transform): New.
8577 (psct_dynamic_dim): New.
8579 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8581 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8582 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8583 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8584 * graphite-interchange.c (build_linearized_memory_access): Same.
8585 (memory_stride_in_loop): Same.
8587 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8589 * graphite-dependences.c (pddr_original_scattering): New.
8590 (graphite_legal_transform_dr): Call pddr_original_scattering.
8593 * graphite-dependences.h (dot_deps): Declared.
8594 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8595 (print_pdr): Print PDR_ID.
8596 * graphite-poly.h (struct poly_dr): Add field id.
8599 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8601 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8603 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8604 not delete the original dependence relation.
8606 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8608 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8609 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8610 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8611 (free_poly_ddr): New.
8612 (pddr_is_empty): New.
8613 (dependence_polyhedron_1): Now returns a poly_ddr_p.
8614 (dependence_polyhedron): Same. Remove useless gcc_assert.
8616 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8617 (graphite_carried_dependence_level_k): Call pddr_is_empty.
8618 * graphite-dependences.h (enum poly_dependence_kind): New.
8619 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
8620 (PDRP_SOURCE): Renamed PDDR_SOURCE.
8621 (PDRP_SINK): Renamed PDDR_SINK.
8622 (PDRP_DDP): Renamed PDDR_DDP.
8624 (free_poly_ddr): Declared.
8625 * graphite-poly.c (new_scop): Use the new hash function names.
8626 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8627 into original_pddrs.
8628 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8630 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8632 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8633 bounds with LT_EXPR to make niter analysis more precise on code
8634 generated by Graphite.
8636 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8638 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8639 (graphite_legal_transform_bb): Same.
8640 (poly_drs_may_alias_p): Same.
8642 2009-08-28 Richard Guenther <rguenther@suse.de>
8644 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8646 2009-08-28 Jan Beulich <jbeulich@novell.com>
8648 * config/i386/netware.c: Include langhooks.h.
8649 (i386_nlm_encode_section_info): Simplify.
8650 (netware_override_options): Delete.
8651 * config/i386/netware.h (netware_override_options): Delete
8653 (OVERRIDE_OPTIONS): Delete definition.
8654 (SUBTARGET_OVERRIDE_OPTIONS): Define.
8655 (ASM_COMMENT_START): Define.
8656 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8658 2009-08-28 Jan Beulich <jbeulich@novell.com>
8660 * configure.ac: For in-tree ld, do a plain version check to
8661 determine whether comdat groups are supported.
8662 * configure: Regenerate.
8664 2009-08-28 Olivier Hainque <hainque@adacore.com>
8666 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8667 always defined. Reflect definition or absence of such for
8668 COLLECT_EXPORT_LIST. Readability helper.
8669 (scanfilter): New enum, to help control what symbols
8670 are to be considered or ignored by scan_prog_file.
8671 (enum pass): Rename as "scanpass", moved together with scanfilter
8672 prior to scan_prog_file's prototype.
8673 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8674 Group prototype with the scanpass/scanfilter definitions, factorize
8675 head comments for the several implementations at the prototype.
8676 (main): Reorganize the first pass link control to let AIX
8677 drag only the needed frame tables in executables. Prevent
8678 frame tables collection during the scan aimed at static ctors.
8679 Pre-link and scan for frame tables later to compensate.
8680 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8681 A C statement to issue assembly directives that create a reference
8682 to the given DWARF table identifier label from the current function
8684 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8685 to differentiate first time section entry. Only emit a .data
8686 tables start identifier label the first time around.
8687 (switch_to_frame_table_section): New function. Helper for
8688 output_call_frame_info to switch possibly BACK into the eh_frame
8689 or the debug_frame section depending on FOR_EH.
8690 (output_call_frame_info): Use helper to first enter the proper
8692 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8693 emit a link to the frame table start label from each function
8695 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8696 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8697 * config/rs6000/rs6000-protos.h: Declare it.
8698 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8700 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8702 * config/sh/sh.c (split_branches): Check the result of
8705 2009-08-27 Steve Ellcey <sje@cup.hp.com>
8707 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8708 using -pthread -fopenmp
8710 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
8712 * doc/service.texi (service directory): Update URL.
8714 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
8716 PR rtl-optimization/40861
8717 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8718 extract word from a multi-word subreg for negative byte positions.
8720 2009-08-27 Tristan Gingold <gingold@adacore.com>
8721 Douglas B Rupp <rupp@gnat.com>
8723 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8724 (SECTION_VMS_OVERLAY): Define.
8725 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
8727 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
8729 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
8730 common_object declarations.
8731 (ia64_section_type_flags): Set section flag for common_object.
8732 * config/ia64/ia64-protos.h
8733 (ia64_vms_output_aligned_decl_common): Declare.
8734 (ia64_vms_elf_asm_named_section): Declare.
8736 2009-08-27 Michael Matz <matz@suse.de>
8738 * expr.c (expand_expr_real_2): New function taking exploded
8739 unary or binary expression, split out from ...
8740 (expand_expr_real_1): ... here. Move over all unary/binary
8741 switch parts to above function, in particular these codes:
8742 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8743 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8744 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8745 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8746 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8747 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8748 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8749 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8750 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8751 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8752 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8753 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8754 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8755 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8756 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8757 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8758 VEC_PACK_FIX_TRUNC_EXPR.
8759 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8762 2009-08-27 Richard Guenther <rguenther@suse.de>
8764 * gengtype.c (main): Handle uint64_t.
8765 * ipa-utils.c (get_base_var): Indent properly.
8766 * tree-ssa-live.c (debug_scope_block): New function.
8767 * tree-flow.h (debug_scope_block): Declare.
8768 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8769 * basic-block.h (enum profile_status): Rename to
8770 enum profile_status_d.
8771 (x_profile_status): Adjust type.
8773 2009-08-27 Dodji Seketeli <dodji@redhat.com>
8776 * dwarf2out.c (get_context_die): Declare this static function.
8777 (gen_type_die_with_usage): Make sure a DIE is a generated for
8778 the context of a typedef.
8780 2009-08-26 Anatoly Sokolov <aesok@post.ru>
8782 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8785 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
8787 * config/mips/mips-protos.h (mips_output_sync): Declare.
8788 (mips_sync_loop_insns): Likewise.
8789 (mips_output_sync_loop): Replace first two parameters with an rtx.
8790 * config/mips/mips.c (mips_multi_member): New structure.
8791 (mips_multi_members): New variable.
8792 (mips_multi_start): New function.
8793 (mips_multi_add): Likewise.
8794 (mips_multi_add_insn): Likewise.
8795 (mips_multi_add_label): Likewise.
8796 (mips_multi_last_index): Likewise.
8797 (mips_multi_copy_insn): Likewise.
8798 (mips_multi_set_operand): Likewise.
8799 (mips_multi_write): Likewise.
8800 (mips_print_operand_punctuation): Remove '%|' and '%-'.
8801 (mips_init_print_operand_punct): Update accordingly.
8802 (mips_start_ll_sc_sync_block): New function.
8803 (mips_end_ll_sc_sync_block): Likewise.
8804 (mips_output_sync): Likewise.
8805 (mips_sync_insn1_template): Likewise.
8806 (mips_sync_insn2_template): Likewise.
8807 (mips_get_sync_operand): Likewise.
8808 (mips_process_sync_loop): Likewise.
8809 (mips_output_sync_loop): Use mips_process_sync_loop.
8810 (mips_sync_loop_insns): New function.
8811 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8812 (MIPS_COMPARE_AND_SWAP_12): Likewise.
8813 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8814 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8815 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8816 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8817 (MIPS_SYNC_OLD_OP_12): Likewise.
8818 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8819 (MIPS_SYNC_NEW_OP_12): Likewise.
8820 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8821 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8822 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8823 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8824 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8825 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8826 * config/mips/mips.md (sync_mem): New attribute.
8827 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8828 (sync_exclusive_mask, sync_required_oldval): Likewise.
8829 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8830 (sync_release_barrier): Likewise.
8831 (length): Handle sync loops.
8832 (sync): Use mips_output_sync.
8833 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8834 (sync_compare_and_swap<mode>): Set the new sync_* attributes
8835 and use mips_output_sync_loop.
8836 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8837 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8838 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8839 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8840 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8841 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8842 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8843 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8844 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8846 2009-08-26 Richard Guenther <rguenther@suse.de>
8849 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8850 the types to not match.
8851 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8853 * tree-ssa.c (useless_type_conversion_p): Conversions to
8854 pointers to unprototyped functions are useless.
8856 2009-08-26 Richard Guenther <rguenther@suse.de>
8858 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8859 whole-program condition, prepare to be called for non-globals.
8860 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8861 params build a representative with known type and track its fields.
8863 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
8865 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8866 clearing by a taken branch.
8867 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8868 effectively after bbro pass.
8869 (sync_nand<mode>): Ditto.
8870 (sync_old_<fetchop_name><mode>): Ditto.
8871 (sync_old_nand<mode>): Ditto.
8872 (sync_new_<fetchop_name><mode>): Dito.
8873 (sync_new_nand<mode>): Ditto.
8874 (sync_compare_and_swap<mode>_1): Ditto.
8875 (*sync_compare_and_swap<mode>): Ditto.
8876 (sync_lock_test_and_set<mode>_1): Ditto.
8877 ("sync_lock_test_and_set<mode>): Ditto.
8879 2009-08-25 Douglas B Rupp <rupp@gnat.com>
8881 * hwint.h (HOST_LONG_FORMAT): New macro
8882 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8883 Use HOST_PTR_PRINTF.
8884 * system.h (HOST_PTR_PRINTF): Resurrect old macro
8885 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8886 (HOST_PTR_PRINTF): Document.
8888 2009-08-25 Jan Hubicka <jh@suse.cz>
8890 * config/i386/bmmintrin.h: Replace by #error.
8893 Michael Meissner <michael.meissner@amd.com>
8894 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8895 Tony Linthicum <tony.linthicum@amd.com>
8897 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8898 (TARGET_ROUND): New macro for the round/ptest instructions which
8899 are shared between SSE4.1 and SSE5.
8900 (OPTION_MASK_ISA_ROUND): Ditto.
8901 (OPTION_ISA_ROUND): Ditto.
8902 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8903 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8905 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8906 (-mfused-madd): New switch to give users control over whether the
8907 compiler optimizes to use the multiply/add SSE5 instructions.
8909 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8910 (ix86_handle_option): Turn off 3dnow if -msse5.
8911 (override_options): Add SSE5 support.
8912 (print_operand): %Y prints comparison codes for SSE5 com/pcom
8914 (ix86_expand_sse_movcc): Add SSE5 support.
8915 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8916 vector type to the next largest size.
8917 (ix86_expand_sse5_pack): New function to use pperm to pack a
8918 vector type to the next smallest size.
8919 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8920 (IX86_BUILTIN_FMADDSD): Ditto.
8921 (IX86_BUILTIN_FMADDPS): Ditto.
8922 (IX86_BUILTIN_FMADDPD): Ditto.
8923 (IX86_BUILTIN_FMSUBSS): Ditto.
8924 (IX86_BUILTIN_FMSUBSD): Ditto.
8925 (IX86_BUILTIN_FMSUBPS): Ditto.
8926 (IX86_BUILTIN_FMSUBPD): Ditto.
8927 (IX86_BUILTIN_FNMADDSS): Ditto.
8928 (IX86_BUILTIN_FNMADDSD): Ditto.
8929 (IX86_BUILTIN_FNMADDPS): Ditto.
8930 (IX86_BUILTIN_FNMADDPD): Ditto.
8931 (IX86_BUILTIN_FNMSUBSS): Ditto.
8932 (IX86_BUILTIN_FNMSUBSD): Ditto.
8933 (IX86_BUILTIN_FNMSUBPS): Ditto.
8934 (IX86_BUILTIN_FNMSUBPD): Ditto.
8935 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8936 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8937 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8938 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8939 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8940 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8941 (IX86_BUILTIN_PPERM): Ditto.
8942 (IX86_BUILTIN_PERMPS): Ditto.
8943 (IX86_BUILTIN_PERMPD): Ditto.
8944 (IX86_BUILTIN_PMACSSWW): Ditto.
8945 (IX86_BUILTIN_PMACSWW): Ditto.
8946 (IX86_BUILTIN_PMACSSWD): Ditto.
8947 (IX86_BUILTIN_PMACSWD): Ditto.
8948 (IX86_BUILTIN_PMACSSDD): Ditto.
8949 (IX86_BUILTIN_PMACSDD): Ditto.
8950 (IX86_BUILTIN_PMACSSDQL): Ditto.
8951 (IX86_BUILTIN_PMACSSDQH): Ditto.
8952 (IX86_BUILTIN_PMACSDQL): Ditto.
8953 (IX86_BUILTIN_PMACSDQH): Ditto.
8954 (IX86_BUILTIN_PMADCSSWD): Ditto.
8955 (IX86_BUILTIN_PMADCSWD): Ditto.
8956 (IX86_BUILTIN_PHADDBW): Ditto.
8957 (IX86_BUILTIN_PHADDBD): Ditto.
8958 (IX86_BUILTIN_PHADDBQ): Ditto.
8959 (IX86_BUILTIN_PHADDWD): Ditto.
8960 (IX86_BUILTIN_PHADDWQ): Ditto.
8961 (IX86_BUILTIN_PHADDDQ): Ditto.
8962 (IX86_BUILTIN_PHADDUBW): Ditto.
8963 (IX86_BUILTIN_PHADDUBD): Ditto.
8964 (IX86_BUILTIN_PHADDUBQ): Ditto.
8965 (IX86_BUILTIN_PHADDUWD): Ditto.
8966 (IX86_BUILTIN_PHADDUWQ): Ditto.
8967 (IX86_BUILTIN_PHADDUDQ): Ditto.
8968 (IX86_BUILTIN_PHSUBBW): Ditto.
8969 (IX86_BUILTIN_PHSUBWD): Ditto.
8970 (IX86_BUILTIN_PHSUBDQ): Ditto.
8971 (IX86_BUILTIN_PROTB): Ditto.
8972 (IX86_BUILTIN_PROTW): Ditto.
8973 (IX86_BUILTIN_PROTD): Ditto.
8974 (IX86_BUILTIN_PROTQ): Ditto.
8975 (IX86_BUILTIN_PROTB_IMM): Ditto.
8976 (IX86_BUILTIN_PROTW_IMM): Ditto.
8977 (IX86_BUILTIN_PROTD_IMM): Ditto.
8978 (IX86_BUILTIN_PROTQ_IMM): Ditto.
8979 (IX86_BUILTIN_PSHLB): Ditto.
8980 (IX86_BUILTIN_PSHLW): Ditto.
8981 (IX86_BUILTIN_PSHLD): Ditto.
8982 (IX86_BUILTIN_PSHLQ): Ditto.
8983 (IX86_BUILTIN_PSHAB): Ditto.
8984 (IX86_BUILTIN_PSHAW): Ditto.
8985 (IX86_BUILTIN_PSHAD): Ditto.
8986 (IX86_BUILTIN_PSHAQ): Ditto.
8987 (IX86_BUILTIN_FRCZSS): Ditto.
8988 (IX86_BUILTIN_FRCZSD): Ditto.
8989 (IX86_BUILTIN_FRCZPS): Ditto.
8990 (IX86_BUILTIN_FRCZPD): Ditto.
8991 (IX86_BUILTIN_CVTPH2PS): Ditto.
8992 (IX86_BUILTIN_CVTPS2PH): Ditto.
8993 (IX86_BUILTIN_COMEQSS): Ditto.
8994 (IX86_BUILTIN_COMNESS): Ditto.
8995 (IX86_BUILTIN_COMLTSS): Ditto.
8996 (IX86_BUILTIN_COMLESS): Ditto.
8997 (IX86_BUILTIN_COMGTSS): Ditto.
8998 (IX86_BUILTIN_COMGESS): Ditto.
8999 (IX86_BUILTIN_COMUEQSS): Ditto.
9000 (IX86_BUILTIN_COMUNESS): Ditto.
9001 (IX86_BUILTIN_COMULTSS): Ditto.
9002 (IX86_BUILTIN_COMULESS): Ditto.
9003 (IX86_BUILTIN_COMUGTSS): Ditto.
9004 (IX86_BUILTIN_COMUGESS): Ditto.
9005 (IX86_BUILTIN_COMORDSS): Ditto.
9006 (IX86_BUILTIN_COMUNORDSS): Ditto.
9007 (IX86_BUILTIN_COMFALSESS): Ditto.
9008 (IX86_BUILTIN_COMTRUESS): Ditto.
9009 (IX86_BUILTIN_COMEQSD): Ditto.
9010 (IX86_BUILTIN_COMNESD): Ditto.
9011 (IX86_BUILTIN_COMLTSD): Ditto.
9012 (IX86_BUILTIN_COMLESD): Ditto.
9013 (IX86_BUILTIN_COMGTSD): Ditto.
9014 (IX86_BUILTIN_COMGESD): Ditto.
9015 (IX86_BUILTIN_COMUEQSD): Ditto.
9016 (IX86_BUILTIN_COMUNESD): Ditto.
9017 (IX86_BUILTIN_COMULTSD): Ditto.
9018 (IX86_BUILTIN_COMULESD): Ditto.
9019 (IX86_BUILTIN_COMUGTSD): Ditto.
9020 (IX86_BUILTIN_COMUGESD): Ditto.
9021 (IX86_BUILTIN_COMORDSD): Ditto.
9022 (IX86_BUILTIN_COMUNORDSD): Ditto.
9023 (IX86_BUILTIN_COMFALSESD): Ditto.
9024 (IX86_BUILTIN_COMTRUESD): Ditto.
9025 (IX86_BUILTIN_COMEQPS): Ditto.
9026 (IX86_BUILTIN_COMNEPS): Ditto.
9027 (IX86_BUILTIN_COMLTPS): Ditto.
9028 (IX86_BUILTIN_COMLEPS): Ditto.
9029 (IX86_BUILTIN_COMGTPS): Ditto.
9030 (IX86_BUILTIN_COMGEPS): Ditto.
9031 (IX86_BUILTIN_COMUEQPS): Ditto.
9032 (IX86_BUILTIN_COMUNEPS): Ditto.
9033 (IX86_BUILTIN_COMULTPS): Ditto.
9034 (IX86_BUILTIN_COMULEPS): Ditto.
9035 (IX86_BUILTIN_COMUGTPS): Ditto.
9036 (IX86_BUILTIN_COMUGEPS): Ditto.
9037 (IX86_BUILTIN_COMORDPS): Ditto.
9038 (IX86_BUILTIN_COMUNORDPS): Ditto.
9039 (IX86_BUILTIN_COMFALSEPS): Ditto.
9040 (IX86_BUILTIN_COMTRUEPS): Ditto.
9041 (IX86_BUILTIN_COMEQPD): Ditto.
9042 (IX86_BUILTIN_COMNEPD): Ditto.
9043 (IX86_BUILTIN_COMLTPD): Ditto.
9044 (IX86_BUILTIN_COMLEPD): Ditto.
9045 (IX86_BUILTIN_COMGTPD): Ditto.
9046 (IX86_BUILTIN_COMGEPD): Ditto.
9047 (IX86_BUILTIN_COMUEQPD): Ditto.
9048 (IX86_BUILTIN_COMUNEPD): Ditto.
9049 (IX86_BUILTIN_COMULTPD): Ditto.
9050 (IX86_BUILTIN_COMULEPD): Ditto.
9051 (IX86_BUILTIN_COMUGTPD): Ditto.
9052 (IX86_BUILTIN_COMUGEPD): Ditto.
9053 (IX86_BUILTIN_COMORDPD): Ditto.
9054 (IX86_BUILTIN_COMUNORDPD): Ditto.
9055 (IX86_BUILTIN_COMFALSEPD): Ditto.
9056 (IX86_BUILTIN_COMTRUEPD): Ditto.
9057 (IX86_BUILTIN_PCOMEQUB): Ditto.
9058 (IX86_BUILTIN_PCOMNEUB): Ditto.
9059 (IX86_BUILTIN_PCOMLTUB): Ditto.
9060 (IX86_BUILTIN_PCOMLEUB): Ditto.
9061 (IX86_BUILTIN_PCOMGTUB): Ditto.
9062 (IX86_BUILTIN_PCOMGEUB): Ditto.
9063 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
9064 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
9065 (IX86_BUILTIN_PCOMEQUW): Ditto.
9066 (IX86_BUILTIN_PCOMNEUW): Ditto.
9067 (IX86_BUILTIN_PCOMLTUW): Ditto.
9068 (IX86_BUILTIN_PCOMLEUW): Ditto.
9069 (IX86_BUILTIN_PCOMGTUW): Ditto.
9070 (IX86_BUILTIN_PCOMGEUW): Ditto.
9071 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
9072 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
9073 (IX86_BUILTIN_PCOMEQUD): Ditto.
9074 (IX86_BUILTIN_PCOMNEUD): Ditto.
9075 (IX86_BUILTIN_PCOMLTUD): Ditto.
9076 (IX86_BUILTIN_PCOMLEUD): Ditto.
9077 (IX86_BUILTIN_PCOMGTUD): Ditto.
9078 (IX86_BUILTIN_PCOMGEUD): Ditto.
9079 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
9080 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
9081 (IX86_BUILTIN_PCOMEQUQ): Ditto.
9082 (IX86_BUILTIN_PCOMNEUQ): Ditto.
9083 (IX86_BUILTIN_PCOMLTUQ): Ditto.
9084 (IX86_BUILTIN_PCOMLEUQ): Ditto.
9085 (IX86_BUILTIN_PCOMGTUQ): Ditto.
9086 (IX86_BUILTIN_PCOMGEUQ): Ditto.
9087 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
9088 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
9089 (IX86_BUILTIN_PCOMEQB): Ditto.
9090 (IX86_BUILTIN_PCOMNEB): Ditto.
9091 (IX86_BUILTIN_PCOMLTB): Ditto.
9092 (IX86_BUILTIN_PCOMLEB): Ditto.
9093 (IX86_BUILTIN_PCOMGTB): Ditto.
9094 (IX86_BUILTIN_PCOMGEB): Ditto.
9095 (IX86_BUILTIN_PCOMFALSEB): Ditto.
9096 (IX86_BUILTIN_PCOMTRUEB): Ditto.
9097 (IX86_BUILTIN_PCOMEQW): Ditto.
9098 (IX86_BUILTIN_PCOMNEW): Ditto.
9099 (IX86_BUILTIN_PCOMLTW): Ditto.
9100 (IX86_BUILTIN_PCOMLEW): Ditto.
9101 (IX86_BUILTIN_PCOMGTW): Ditto.
9102 (IX86_BUILTIN_PCOMGEW): Ditto.
9103 (IX86_BUILTIN_PCOMFALSEW): Ditto.
9104 (IX86_BUILTIN_PCOMTRUEW): Ditto.
9105 (IX86_BUILTIN_PCOMEQD): Ditto.
9106 (IX86_BUILTIN_PCOMNED): Ditto.
9107 (IX86_BUILTIN_PCOMLTD): Ditto.
9108 (IX86_BUILTIN_PCOMLED): Ditto.
9109 (IX86_BUILTIN_PCOMGTD): Ditto.
9110 (IX86_BUILTIN_PCOMGED): Ditto.
9111 (IX86_BUILTIN_PCOMFALSED): Ditto.
9112 (IX86_BUILTIN_PCOMTRUED): Ditto.
9113 (IX86_BUILTIN_PCOMEQQ): Ditto.
9114 (IX86_BUILTIN_PCOMNEQ): Ditto.
9115 (IX86_BUILTIN_PCOMLTQ): Ditto.
9116 (IX86_BUILTIN_PCOMLEQ): Ditto.
9117 (IX86_BUILTIN_PCOMGTQ): Ditto.
9118 (IX86_BUILTIN_PCOMGEQ): Ditto.
9119 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
9120 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
9121 (enum multi_arg_type): New enum for describing the various SSE5
9122 intrinsic argument types.
9123 (bdesc_multi_arg): New table for SSE5 intrinsics.
9124 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
9125 (ix86_expand_multi_arg_builtin): New function for creating SSE5
9127 (ix86_expand_builtin): Add SSE5 intrinsic support.
9128 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
9129 operand instructions.
9130 (ix86_expand_sse5_multiple_memory): New function to split the
9131 second memory reference from SSE5 instructions.
9132 (type_has_variadic_args_p): Delete in favor of stdarg_p.
9133 (ix86_return_pops_args): Use stdarg_p to determine if the function
9134 has variable arguments.
9135 (ix86_setup_incoming_varargs): Ditto.
9136 (x86_this_parameter): Ditto.
9138 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
9140 (ix86_expand_sse5_pack): Ditto.
9141 (ix86_sse5_valid_op_p): Ditto.
9142 (ix86_expand_sse5_multiple_memory): Ditto.
9144 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
9145 constant for SSE5 support.
9146 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
9147 (UNSPEC_SSE5_TRUEFALSE): Ditto.
9148 (UNSPEC_SSE5_PERMUTE): Ditto.
9149 (UNSPEC_SSE5_ASHIFT): Ditto.
9150 (UNSPEC_SSE5_LSHIFT): Ditto.
9151 (UNSPEC_FRCZ): Ditto.
9152 (UNSPEC_CVTPH2PS): Ditto.
9153 (UNSPEC_CVTPS2PH): Ditto.
9154 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
9156 (COM_FALSE_S): Ditto.
9157 (COM_FALSE_P): Ditto.
9158 (COM_TRUE_S): Ditto.
9159 (COM_TRUE_P): Ditto.
9160 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
9161 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
9163 (memory attribute): Ditto.
9164 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9165 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
9166 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9167 (floor<mode>2): Ditto.
9168 (ceil<mode>2): Ditto.
9169 (btrunc<mode>2): Ditto.
9170 (nearbyintdf2): Ditto.
9171 (nearbyintsf2): Ditto.
9172 (sse_setccsf): Disable if SSE5.
9173 (sse_setccdf): Ditto.
9174 (sse5_setcc<mode>): New support for SSE5 conditional move.
9175 (sse5_pcmov_<mode>): Ditto.
9177 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
9179 (SSEMODEF2P): Ditto.
9180 (ssemodesuffixf4): New mode attribute for SSE5.
9181 (ssemodesuffixf2s): Ditto.
9182 (ssemodesuffixf2c): Ditto.
9183 (sserotatemax): Ditto.
9184 (ssescalarmode): Ditto.
9185 (sse_maskcmpv4sf3): Disable if SSE5.
9186 (sse_maskcmpv2df3): Ditto.
9187 (sse_vmmaskcmpv4sf3): Ditto.
9188 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
9189 (sse5_vmfmadd<mode>4): Ditto.
9190 (sse5_fmsub<mode>4): Ditto.
9191 (sse5_vmfmsub<mode>4): Ditto.
9192 (sse5_fnmadd<mode>4): Ditto.
9193 (sse5_vmfnmadd<mode>4): Ditto.
9194 (sse5_fnmsub<mode>4): Ditto.
9195 (sse5_vmfnmsub<mode>4): Ditto.
9196 (sse5i_fmadd<mode>4): Ditto.
9197 (sse5i_fmsub<mode>4): Ditto.
9198 (sse5i_fnmadd<mode>4): Ditto.
9199 (sse5i_fnmsub<mode>4): Ditto.
9200 (sse5i_vmfmadd<mode>4): Ditto.
9201 (sse5i_vmfmsub<mode>4): Ditto.
9202 (sse5i_vmfnmadd<mode>4): Ditto.
9203 (sse5i_vmfnmsub<mode>4): Ditto.
9204 (mulv16qi3): Add SSE5 support.
9206 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
9207 (sse2_mulv4si3): Disable if SSE5.
9208 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
9209 (sse4_1_roundps): Ditto.
9210 (sse4_1_roundsd): Ditto.
9211 (sse4_1_roundss): Ditto.
9212 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
9214 (sse_maskcmpsf3): Ditto.
9215 (sse_vmmaskcmpv4sf3): Ditto.
9216 (sse2_maskcmpv2df3): Ditto.
9217 (sse2_maskcmpdf3): Ditto.
9218 (sse2_vmmaskcmpv2df3): Ditto.
9219 (sse2_eq<mode>3): Ditto.
9220 (sse2_gt<mode>3): Ditto.
9221 (sse5_pcmov_<mode>): Add SSE5 support.
9222 (vec_unpacku_hi_v16qi): Ditto.
9223 (vec_unpacks_hi_v16qi): Ditto.
9224 (vec_unpacku_lo_v16qi): Ditto.
9225 (vec_unpacks_lo_v16qi): Ditto.
9226 (vec_unpacku_hi_v8hi): Ditto.
9227 (vec_unpacks_hi_v8hi): Ditto.
9228 (vec_unpacku_lo_v8hi): Ditto.
9229 (vec_unpacks_lo_v8hi): Ditto.
9230 (vec_unpacku_hi_v4si): Ditto.
9231 (vec_unpacks_hi_v4si): Ditto.
9232 (vec_unpacku_lo_v4si): Ditto.
9233 (vec_unpacks_lo_v4si): Ditto.
9234 (sse5_pmacsww): New SSE5 intrinsic insn.
9235 (sse5_pmacssww): Ditto.
9236 (sse5_pmacsdd): Ditto.
9237 (sse5_pmacssdd): Ditto.
9238 (sse5_pmacssdql): Ditto.
9239 (sse5_pmacssdqh): Ditto.
9240 (sse5_pmacsdqh): Ditto.
9241 (sse5_pmacsswd): Ditto.
9242 (sse5_pmacswd): Ditto.
9243 (sse5_pmadcsswd): Ditto.
9244 (sse5_pmadcswd): Ditto.
9245 (sse5_pcmov_<move>): Conditional move support on SSE5.
9246 (sse5_phaddbw): New SSE5 intrinsic insn.
9247 (sse5_phaddbd): Ditto.
9248 (sse5_phaddbq): Ditto.
9249 (sse5_phaddwd): Ditto.
9250 (sse5_phaddwq): Ditto.
9251 (sse5_phadddq): Ditto.
9252 (sse5_phaddubw): Ditto.
9253 (sse5_phaddubd): Ditto.
9254 (sse5_phaddubq): Ditto.
9255 (sse5_phadduwd): Ditto.
9256 (sse5_phadduwq): Ditto.
9257 (sse5_phaddudq): Ditto.
9258 (sse5_phsubbw): Ditto.
9259 (sse5_phsubwd): Ditto.
9260 (sse5_phsubdq): Ditto.
9261 (sse5_pperm): Ditto.
9262 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
9263 (sse5_pperm_zero_v16qi_v8hi): Ditto.
9264 (sse5_pperm_sign_v8hi_v4si): Ditto.
9265 (sse5_pperm_zero_v8hi_v4si): Ditto.
9266 (sse5_pperm_sign_v4si_v2di): Ditto.
9267 (sse5_pperm_sign_v4si_v2di): Ditto.
9268 (sse5_pperm_pack_v2di_v4si): Ditto.
9269 (sse5_pperm_pack_v4si_v8hi): Ditto.
9270 (sse5_pperm_pack_v8hi_v16qi): Ditto.
9271 (sse5_perm<mode>): New SSE5 intrinsic insn.
9272 (rotl<mode>3): Ditto.
9273 (sse5_rotl<mode>3): Ditto.
9274 (sse5_ashl<mode>3): Ditto.
9275 (sse5_lshl<mode>3): Ditto.
9276 (sse5_frcz<mode>2): Ditto.
9277 (sse5s_frcz<mode>2): Ditto.
9278 (sse5_cvtph2ps): Ditto.
9279 (sse5_cvtps2ph): Ditto.
9280 (sse5_vmmaskcmp<mode>3): Ditto.
9281 (sse5_com_tf<mode>3): Ditto.
9282 (sse5_maskcmp<mode>3): Ditto.
9283 (sse5_maskcmp_uns<mode>3): Ditto.
9284 (sse5_maskcmp_uns2<mode>3): Ditto.
9285 (sse5_pcom_tf<mode>3): Ditto.
9287 * config/i386/predicates.md (sse5_comparison_float_operator):
9288 New predicate to match the comparison operators supported by
9289 the SSE5 com instruction.
9290 (ix86_comparison_int_operator): New predicate to match just the
9291 signed int comparisons.
9292 (ix86_comparison_uns_operator): New predicate to match just the
9293 unsigned int comparisons.
9295 * doc/invoke.texi (-msse5): Add documentation.
9296 (-mfused-madd): Ditto.
9298 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
9300 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
9302 (x86_64-*-*): Ditto.
9304 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
9306 * config/i386/bmmintrin.h: New file, provide common x86 compiler
9307 intrinisics for SSE5.
9309 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
9312 * config/i386/mmintrin-common.h: New file, to contain common
9313 instructions between SSE4.1 and SSE5.
9315 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
9316 FOREACH_FUNCTION_ARGS to iterate over the argument list.
9317 (gen_regparm_prefix): Ditto.
9319 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
9320 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
9321 prototype_p to determine if a function is prototyped.
9323 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
9325 * c-common.c (c_common_reswords) add the alignof keyword,
9326 with same RID as __alignof and __alignof__
9328 2009-08-25 Anatoly Sokolov <aesok@post.ru>
9330 * hooks.h (hook_bool_const_int_const_int_true): Declare.
9331 * hooks.c (hook_bool_const_int_const_int_true): New function.
9332 * target.h (struct gcc_target): Add can_eliminate field.
9333 * target-def.h (TARGET_CAN_ELIMINATE): Define.
9334 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
9335 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
9336 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
9337 (elim_table): Revise comment.
9338 * system.h (CAN_ELIMINATE): Poison.
9339 * defaults.h (CAN_ELIMINATE): Remove.
9340 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
9342 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
9343 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
9345 (alpha_vms_can_eliminate): Declare as static, change return type to
9347 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
9349 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
9350 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
9351 (arm_can_eliminate): New function.
9353 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
9354 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
9355 (avr_can_eliminate): Declare as static.
9356 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
9358 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
9359 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
9360 (bfin_can_eliminate): New function.
9362 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
9363 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
9364 (crx_can_eliminate): New function.
9366 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
9367 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
9368 (fr30_can_eliminate): New function.
9370 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
9371 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
9372 (frv_can_eliminate): New function.
9374 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
9375 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
9376 (h8300_can_eliminate): New function.
9378 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
9379 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
9380 (i386_can_eliminate): Declare as static, change return type to bool.
9381 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
9383 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
9384 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
9385 (ia64_can_eliminate): New function.
9387 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
9388 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
9389 (iq2000_can_eliminate): New function.
9391 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
9392 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
9393 (m32r_can_eliminate): New function.
9395 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
9396 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
9397 (m68hc11_can_eliminate): New function.
9399 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
9400 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
9401 (m68k_can_eliminate): New function.
9403 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
9404 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
9405 (mep_can_eliminate): New function.
9407 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
9408 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
9409 (mips_can_eliminate): New function.
9411 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
9412 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
9413 (rs6000_can_eliminate): New function.
9415 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
9416 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
9417 (s390_can_eliminate): Declare as static.
9418 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
9420 * config/score/score.h (CAN_ELIMINATE): Remove macro.
9421 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
9422 (score_can_eliminate): New function.
9424 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
9425 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
9426 (sparc_can_eliminate): Declare as static.
9427 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
9429 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
9430 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
9431 (xstormy16_can_eliminate): New function.
9433 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
9434 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
9435 (v850_can_eliminate): New function.
9437 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
9439 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
9440 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
9441 (*movdfcc_ext[1234]): Disable for IEEE mode.
9443 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
9445 * gimplify.c (prepare_gimple_addressable): New static function.
9446 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
9448 (gimplify_addr_expr): Invoke it similarly on the operand instead of
9449 manually fiddling with it.
9451 2009-08-25 Michael Matz <matz@suse.de>
9453 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
9454 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
9456 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
9457 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
9458 (do_jump): Split out code for simple binary comparisons into ...
9459 (do_jump_1): ... this, taking the individual operands and code.
9460 Change callers to helper function above accordingly.
9461 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
9464 2009-08-25 Michael Matz <matz@suse.de>
9466 * expr.h (struct separate_ops, sepops): New type for passing
9467 around an exploded simple expression.
9468 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
9469 Use this structure instead of expression tree.
9470 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
9471 expression, only its type.
9472 (expand_vec_cond_expr): Take type and individual operands instead
9474 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
9475 expand_vec_shift_expr): Change prototype accordingly.
9476 * tree-vect-stmts.c (vectorizable_condition): Change call of
9477 expand_vec_cond_expr_p to pass only type.
9478 * expr.c (do_store_flags): Change prototype and implementation
9479 to take an exploded expression.
9480 (expand_expr_real_1): New local ops initialized with details
9481 of the full expression. Use it instead of full
9482 expression in calls to do_store_flags, expand_vec_cond_expr,
9483 expand_widen_pattern_expr and expand_vec_shift_expr.
9485 2009-08-25 Michael Matz <matz@suse.de>
9487 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
9488 treeop2 initialized with first three operands of the full expression.
9489 Substitute all TREE_OPERAND (exp, [012]) calls with them.
9491 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
9493 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
9494 (__gthread_objc_condition_allocate): Mark arguments as unused.
9495 (__gthread_objc_condition_deallocate): Likewise.
9496 (__gthread_objc_condition_wait): Likewise.
9497 (__gthread_objc_condition_broadcast): Likewise.
9498 (__gthread_objc_condition_signal): Likewise.
9499 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9500 (__gthread_objc_thread_id): Likewise.
9502 2009-08-25 Janus Weil <janus@gcc.gnu.org>
9505 * tree-pretty-print.c (print_call_name): Print the correct call name
9506 for procedure pointer components.
9508 2009-08-24 Steve Ellcey <sje@cup.hp.com>
9510 * config/ia64/ia64.c (ia64_promote_function_mode): Call
9511 default_promote_function_mode when not VMS.
9513 2009-08-24 Olivier Hainque <hainque@adacore.com>
9515 * convert.c (convert_to_integer): Don't assume an input pointer is
9516 POINTER_SIZE wide. Fetch from the type instead.
9518 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9520 * configure.ac (AC_PREREQ): Bump to 2.64.
9522 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
9524 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9525 (process_command): Don't search standard_exec_prefix_1 and
9526 standard_exec_prefix_2.
9528 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9530 * config/arm/arm.c (output_return_instruction): Handle for
9533 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9535 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9537 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9539 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9540 (*arm_movdf_vfp): Likewise.
9542 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9544 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9545 (vashr<mode>3): Rename from ashr<mode>3.
9546 (vlshr<mode>3): Rename from lshr<mode>3.
9548 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
9551 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9552 (check_format_info_main): Use scalar_identify_flag.
9553 (check_format_types): Check for scalar size identity if
9554 scalar_identify_flag is set.
9555 (printf_length_specs): Extend by new field.
9556 (asm_fprintf_length_specs): Likewise.
9557 (gcc_diag_length_specs): Likewise.
9558 (scanf_length_specs): Likewise.
9559 (strfmon_length_specs): Likewise.
9560 (gcc_gfc_length_specs): Likewise.
9561 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9562 (ms_printf_flag_specs): Likewise.
9563 * c-format.h (format_length_info): Add new member scalar_identity_flag.
9565 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
9568 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9569 (*call_value_pop_1): Ditto.
9570 (*sibcall_pop_1): New insn pattern.
9571 (*sibcall_value_pop_1): Ditto.
9573 2009-08-23 Alan Modra <amodra@bigpond.net.au>
9576 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9579 2009-08-23 Alan Modra <amodra@bigpond.net.au>
9582 * fwprop.c (try_fwprop_subst): Allow multiple sets.
9583 (get_reg_use_in): New function.
9584 (forward_propagate_subreg): Propagate through subreg of zero_extend
9587 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
9589 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9590 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9592 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9594 * configure.ac: Remove --with-datarootdir, --with-docdir,
9595 --with-htmldir switches. No need to call AC_SUBST for
9596 datarootdir, docdir, htmldir any more.
9597 * configure: Regenerate.
9598 * doc/install.texi (Configuration): Document --datarootdir,
9599 --docdir, --htmldir, --pdfdir; update documentation for
9600 --infodir, --mandir.
9601 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9604 * aclocal.m4: Regenerate.
9605 * config.in: Regenerate.
9606 * configure: Regenerate.
9608 2009-08-21 Douglas B Rupp <rupp@gnat.com>
9609 Olivier Hainque <hainque@adacore.com>
9611 * config/ia64/ia64.c: Include libfuncs.h.
9612 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9613 (ia64_expand_call): Use reg 25 on VMS.
9614 (ia64_initialize_trampoline): Fix for VMS ABI.
9615 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9616 (ia64_function_arg): Initialize reg 25 on VMS.
9617 Fix OpenVMS ABI issues for varargs.
9618 For OpenVMS, emit the Argument Information register set in the
9619 incoming/sibcall case as well.
9620 (ia64_arg_type): New function.
9621 (ia64_function_arg_advance): Keep track of cum->words.
9622 Fix OpenVMS ABI issues for varargs.
9623 (ia64_function_value): On VMS, promote mode of non-aggregate types.
9624 (ia64_override_options): Set flag_no_common on VMS.
9625 (ia64_init_builtins): Disable FWRITE builtin.
9626 (ia64_asm_output_external): Call DO_CRTL_NAMES.
9627 (ia64_vms_init_libfuncs): Add decc$ routines.
9628 (ia64_vms_valid_pointer_mode): New function.
9629 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9630 (ia64_promote_function_mode): New function
9631 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9632 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9633 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9634 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9635 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9636 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9637 Suppress trailing '#' if VALUE is numeric.
9638 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9639 ia64_promote_function_mode.
9640 (TARGET_VALID_POINTER_MODE): Define.
9642 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9645 * config/rs6000/rs6000.c (rs6000_override_options): Use
9646 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9649 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9650 reporting of vector + decimal/boolean/complex error.
9652 2009-08-21 Jakub Jelinek <jakub@redhat.com>
9654 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9655 __vector double TYPE_DECL.
9657 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
9659 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
9660 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9661 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9662 to pointer to enum machine_mode. Update all callers as needed.
9664 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9666 * config/alpha/alpha.md (exception_receiver): Emit alternative
9667 GP load sequence if flag_reorder_blocks_and_partition is set.
9668 (*exception_receiver_2): Also enable when
9669 flag_reorder_blocks_and_partition is set.
9671 2009-08-20 Matt Rice <ratmice@gmail.com>
9672 Diego Novillo <dnovillo@google.com>
9674 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9677 2009-08-20 Richard Guenther <rguenther@suse.de>
9679 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9680 * c-tree.h (c_dup_lang_specific_decl): Remove.
9681 (struct lang_decl, struct lang_type): Move definitions ...
9682 * c-lang.h: ... here. New file.
9683 * c-decl.c: Include c-lang.h.
9684 (c_dup_lang_specific_decl): Remove.
9685 * c-typeck.c: Include c-lang.h.
9686 * Makefile.in (c-decl.o): Add c-lang.h dependency.
9687 (c-typeck.o): Likewise.
9688 * c-config-lang.in (gtfiles): Add c-lang.h.
9689 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9692 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
9694 * config/alpha/alpha.c (alpha_end_function): Do not clear
9695 crtl->emit structure and free insn locators if cfun->is_thunk is true,
9696 this is now handled in generic code.
9698 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9700 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9701 (s390_z10_fix_long_loop_prediction): New function.
9702 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9703 (s390_reorg): Walk over the INSNs and invoke
9704 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9706 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9708 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9709 "*brx_64bit", "*brx_31bit"): New patterns.
9710 * config/s390/s390.c ('E'): New output modifier.
9712 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9713 Richard Earnshaw <richard.earnshaw@arm.com>
9715 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9716 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9718 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9720 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9722 * pa.c (emit_move_sequence): Check if address of operand1 is valid
9723 for mode mode of operand0 when doing secondary reload for SAR.
9725 2009-08-19 Jakub Jelinek <jakub@redhat.com>
9728 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9729 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9731 2009-08-19 Jason Merrill <jason@redhat.com>
9733 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9734 supported template depth in C++0x.
9736 2009-08-19 Jakub Jelinek <jakub@redhat.com>
9738 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9739 free_after_compilation.
9740 * config/score/score7.c (score7_output_mi_thunk): Likewise.
9741 * config/score/score3.c (score3_output_mi_thunk): Likewise.
9742 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9743 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9744 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9745 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9746 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9748 2009-08-19 Ian Lance Taylor <iant@google.com>
9750 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9751 of (plus (mult (neg B) C) A).
9753 2009-08-18 Michael Matz <matz@suse.de>
9755 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9756 instead of comparing TYPE_MAIN_VARIANT for equality.
9757 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9758 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9759 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9760 * gimplify.c (goa_lhs_expr_p): Ditto and use
9761 STRIP_USELESS_TYPE_CONVERSION.
9763 2009-08-18 Michael Matz <matz@suse.de>
9765 * tree-ssa-structalias.c (create_variable_info_for): Also mark
9766 first field in a struct.
9767 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9769 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
9771 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9772 locators before emit_insn is called. Remove assert that
9774 (alpha_end_function): Clear crtl->emit structure and free insn
9775 locators if cfun->is_thunk is true.
9777 2009-08-18 Jason Merrill <jason@redhat.com>
9779 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9781 * configure.ac: Test for it.
9782 * configure, config.in: Regenerate.
9783 * doc/install.texi: Document --enable-gnu-unique-object.
9785 2009-08-18 Richard Guenther <rguenther@suse.de>
9788 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9789 pow(x,y*z) only if x is nonnegative.
9791 2009-08-18 Jakub Jelinek <jakub@redhat.com>
9793 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9797 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9798 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9800 2009-08-17 DJ Delorie <dj@redhat.com>
9802 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9803 * config/m32c/prologue.md (epilogue_freit): New.
9805 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9806 (bank_switch_p): Likewise.
9807 (fast_interrupt_p): Likewise.
9808 (interrupt_p): Likewise.
9809 (m32c_conditional_register_usage): Round memregs size up.
9810 (need_to_save): We only need to save $a0 when we use ENTER.
9811 (interrupt_p): Check for fast_interrupt too.
9812 (bank_switch_p): New.
9813 (fast_interrupt_p): New.
9814 (m32c_attribute_table): Add bank_switch and fast_interrupt.
9815 (m32c_emit_prolog): Support bank switching and fast interrupts.
9816 * doc/extend.texi (Function Attributes): Add bank_switch and
9819 2009-08-17 Douglas B Rupp <rupp@gnat.com>
9821 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9822 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9824 2009-08-16 Douglas B Rupp <rupp@gnat.com>
9826 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9827 (menu): Add IA-64/VMS Options.
9828 (IA-64/VMS Options): Likewise.
9830 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9833 * config/mips/mips.md (*lwxs): Use :P for pointer values.
9835 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9837 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9838 (mips_pop_asm_switch): Likewise.
9839 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9841 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9842 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9843 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9844 (mips_print_operand_punctuation): Use them. Check mips_noreorder
9845 instead of set_noreorder.
9846 (mips_output_function_prologue): Use the new functions.
9847 (mips_output_function_epilogue): Likewise.
9848 (mips_need_noat_wrapper_p): New function, split out from...
9849 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9850 Use mips_push_asm_switch and mips_pop_asm_switch.
9851 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9852 and mips_pop_asm_switch.
9853 (ASM_OUTPUT_REG_POP): Likewise.
9854 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9855 Use mips_pop_asm_switch.
9856 (mips_asm_switch): New structure.
9857 (set_noreorder, set_nomacro): Replace with...
9858 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9859 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9860 instead of set_nomacro.
9861 (fix_truncsfsi2_macro): Likewise.
9862 (cprestore): Likewise.
9863 (hazard): Use mips_noreorder instead of set_noreorder.
9864 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9866 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
9868 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9869 from prev_active_insn.
9871 2009-08-16 Anatoly Sokolov <aesok@post.ru>
9873 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9874 * config/avr/avr.c (avr_override_options): Initialize
9875 avr_current_arch variable.
9876 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9877 __AVR_HAVE_16BIT_SP__ according to the device type.
9878 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9880 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9881 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9883 2009-08-16 Dodji Seketeli <dodji@redhat.com>
9886 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9887 generating inlined subroutine die only. We shouldn't be
9888 called for anything else.
9889 (gen_block_die): Don't generate inline subroutine debug info for
9892 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9894 * graphite-poly.c (print_pbb): Print PBB index.
9896 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9899 * graphite-interchange.c (ppl_max_for_le): Moved...
9900 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9901 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
9902 ppl_Pointset_Powerset_C_Polyhedron_maximize.
9903 * graphite-ppl.h (ppl_max_for_le): Declared.
9905 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
9907 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9908 supported on all platforms.
9909 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9910 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9911 * c-pragma.c: Likewise.
9912 * target-def.h (TARGET_INITIALIZER): Remove
9913 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9914 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9916 2009-08-14 Douglas B Rupp <rupp@gnat.com>
9918 * config/ia64/fde-vms.c: New file.
9919 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9920 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9921 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9922 (uw_frame_state_for): Only register a personality routine if it is
9923 known to be compatible with our expectations.
9924 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9925 Declare unw_table_entry stack variable and
9926 mod all calls to _Unwind_FindTableEntry to add arg.
9927 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9928 (_Unwind_FindTableEntry): Add arg to prototype.
9930 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
9932 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9933 field 'signal_pfs_loc'.
9934 (uw_frame_state_for): Remove duplicate code dealing with leaf
9935 procedures without unwind info.
9936 If in the frame after unwinding through a signal handler, restore
9937 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9938 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9939 'pfs_loc' to the AR.PFS location in the signal context; instead
9940 set 'signal_pfs_loc'.
9941 Manually generate the unwind info for the AR.PFS register.
9942 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9943 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9944 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9945 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9946 instead set 'signal_pfs_loc'.
9947 Remove code preventing the AR.PFS register from being restored
9948 from the signal context.
9950 2009-08-14 Douglas B Rupp <rupp@gnat.com>
9951 Tristan Gingold <gingold@adacore.com>
9953 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9954 * config/ia64/t-vms: New file.
9955 * config/ia64/vms64.h: New file.
9956 * config/ia64/vms.h: New file.
9957 * config/ia64/vms-crtinit.asm: New file.
9958 * config/ia64/vms_symvec_libgcc_s.opt: New file.
9959 * config/ia64/vms-unwind.h: New file.
9961 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
9963 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9966 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9969 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9971 * real.h (do_mpc_arg2): ... here.
9972 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9975 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
9977 * final.c (add_debug_prefix_map): Don't use GC memory for
9978 old_prefix and new_prefix.
9980 2009-08-14 Richard Guenther <rguenther@suse.de>
9982 * ipa-prop.c (compute_complex_pass_through): If we cannot
9983 compute a non-varying offset for IPA_JF_ANCESTOR punt.
9985 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9987 * c-lex.c (c_lex_with_flags): Increase size of local variable
9988 to avoid memory clobber.
9990 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
9993 * config/i386/i386.c (ix86_fp_comparison_strategy):
9994 Only enable/disable sahf at function granularity.
9996 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
9998 PR rtl-optimization/41064
9999 * reload1.c (reload_as_needed): Don't call extract_insn
10000 for known invalid replacements after calling
10001 validate_replace_rtx_group and verify_changes.
10003 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
10006 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
10007 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
10008 ix86_expand_fp_vcond.
10009 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
10010 Assert that operation is supported by ix86_expand_int_vcond.
10011 (vcondu<SSEMODE124C8:mode>): Ditto.
10013 2009-08-13 DJ Delorie <dj@redhat.com>
10015 * config/i386/djgpp-stdint.h: New.
10016 * config.gcc (djgpp): Use it.
10018 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
10020 * config/sh/sh.c (sh_override_options): When flag_exceptions or
10021 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
10023 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10025 * tree-ssa-loop-prefetch.c
10026 (prune_ref_by_group_reuse): Enhance probabilistic analysis
10027 for long-stride pruning.
10028 (compute_miss_rate): New function to compute the probability
10029 that two memory references access different cache lines.
10031 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
10033 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
10035 2009-08-13 Richard Guenther <rguenther@suse.de>
10037 PR middle-end/41047
10038 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
10039 use the constant pointer type.
10040 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
10041 of CV qualifiers on the target pointer type.
10042 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
10043 conversion check before restrict check.
10045 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
10048 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
10050 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
10052 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
10054 2009-08-12 Richard Guenther <rguenther@suse.de>
10056 PR tree-optimization/41011
10057 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
10058 and reference constructing.
10060 2009-08-12 Xinliang David Li <davidxl@google.com>
10062 PR tree-optimization/41012
10063 * tree-flow.h : New external interface.
10064 * gimple-low.c (check_call_arg): Change to public function.
10065 Remove argument mismatch check in lowering.
10066 * tree-inline.h (tree_can_inline_p): Interface change.
10067 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
10068 into this function.
10069 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
10070 Call change to tree_can_inline_p function.
10071 (cgraph_decide_inlining_incrementally): Ditto.
10073 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
10075 PR tree-optimization/41031
10076 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
10077 on the partition variable rather than promote_mode on the source
10078 type. Assert that the partition variable's type has the same
10079 mode as the source value's.
10081 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
10083 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
10084 for for_return == 2.
10085 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
10087 * calls.c (expand_call): Fix typo.
10088 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
10090 * stmt.c (expand_value_return): Use promote_function_mode to copy out
10092 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
10093 * config/cris/cris.c (cris_promote_function_mode): Likewise.
10094 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
10095 * config/pa/pa.c (pa_promote_function_mode): Likewise.
10097 2009-08-12 Andrew Haley <aph@redhat.com>
10099 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
10101 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10104 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
10106 2009-08-12 Richard Guenther <rguenther@suse.de>
10108 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
10109 * gimplify.c (gimplify_modify_expr): Do not use
10110 lang_hooks.types_compatible_p.
10111 * tree-ssa.c (useless_type_conversion_p): For aggregates
10112 just return false if the canonical types differ.
10114 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10116 PR middle-end/40980
10117 * sese.c (convert_for_phi_arg): New.
10118 (add_guard_exit_phis): Use convert_for_phi_arg.
10120 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10122 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
10123 unknown subscript upper bounds.
10125 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10126 Pranav Garg <pranav.garg2107@gmail.com>
10128 * graphite-interchange.c (gather_access_strides): Removed.
10129 (ppl_max_for_le): New.
10130 (build_linearized_memory_access): New.
10131 (memory_stride_in_loop): New.
10132 (pbb_interchange_profitable_p): Reimplemented.
10133 * graphite-ppl.h (ppl_new_id_map): New.
10134 (ppl_interchange): New.
10136 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10138 * graphite-interchange.c (compute_subscript): Removed.
10139 (compute_array_size_cstr): Removed.
10140 (compute_array_size_poly): Removed.
10141 (compute_array_size): Removed.
10142 (gather_access_strides_poly): Removed.
10143 (gather_access_strides): Empty.
10145 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10147 * graphite-dependences.c (dependence_polyhedron_1): Replace
10148 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
10149 (graphite_legal_transform_dr): Same.
10150 (graphite_carried_dependence_level_k): Same.
10151 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
10152 Initialize PDR_NB_SUBSCRIPTS.
10153 (print_pdr_access_layout): Replace pdr_nb_subscripts with
10155 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
10156 (PDR_NB_SUBSCRIPTS): New.
10157 (pdr_nb_subscripts): Removed.
10158 (pdr_dim): Simplified.
10159 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
10160 with PDR_NB_SUBSCRIPTS.
10162 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10164 * graphite-interchange.c (compute_array_size): Remove use of
10165 PDR_DATA_CONTAINER.
10166 * graphite-poly.c (new_poly_dr): Remove argument data_container.
10167 Do not initialize PDR_DATA_CONTAINER.
10168 (print_pdr): Do not print PDR_DATA_CONTAINER.
10169 * graphite-poly.h (struct poly_dr): Remove data_container field.
10170 (PDR_DATA_CONTAINER): Removed.
10171 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
10172 PDR_DATA_CONTAINER.
10173 (build_poly_dr): Same.
10175 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
10176 Sebastian Pop <sebastian.pop@amd.com>
10178 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
10179 copy of the dependence polyhedron. Free the temporary objects.
10180 (graphite_carried_dependence_level_k): Free unused objects before
10183 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10185 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
10186 Early return without analyzing the data dependences if no
10187 transform has been done. Call restore_scattering if the transform
10189 (graphite-interchange.c): Same.
10190 * graphite-poly.c (print_scattering_function): Test for
10192 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
10193 (apply_poly_transforms): Do not gcc_assert that
10194 the transform is legal.
10195 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
10196 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
10197 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
10198 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
10199 * graphite-poly.h (struct poly_scattering): New.
10200 (struct poly_bb): Add original, transformed, and saved fields.
10201 Remove transformed_scattering, original_scattering,
10202 nb_local_variables and nb_scattering_transform fields.
10203 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
10204 (poly_scattering_new): New.
10205 (poly_scattering_free): New.
10206 (poly_scattering_copy): New.
10207 (store_scattering_pbb): New.
10208 (store_scattering): New.
10209 (restore_scattering_pbb): New.
10210 (restore_scattering): New.
10211 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10212 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
10214 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10216 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
10217 (print_scop): Same.
10219 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10221 * Makefile.in (graphite.o): Depends on PREDICT_H.
10222 * graphite.c: Include predict.h.
10223 (graphite_finalize): Call tree_estimate_probability.
10224 * predict.c (predict_loops): Do not call scev_initialize and
10226 (tree_estimate_probability_bb): New.
10227 (tree_estimate_probability): Do not initialize loops: move that
10228 code to the driver. Call tree_estimate_probability_bb.
10229 (tree_estimate_probability_driver): New.
10230 (pass_profile): Use tree_estimate_probability_driver.
10231 * predict.h (tree_estimate_probability): Declared.
10233 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
10235 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
10236 * graphite-dependences.c (graphite_legal_transform): Add time to
10237 TV_GRAPHITE_DATA_DEPS.
10238 (dependency_between_pbbs_p): Same.
10239 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
10241 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
10243 PR rtl-optimization/41033
10244 * alias.c (nonoverlapping_component_refs_p): Punt when strict
10245 aliasing is disabled.
10247 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
10249 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
10250 si_mask_operand, and_load_operand, low_bitmask_operand,
10251 and_reg_operand, and_operand): New predicates.
10252 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
10253 * config/mips/mips.c (and_operands_ok): New function.
10254 * config/mips/mips-protos.h (and_operands_ok): Declare it.
10255 * config/mips/mips.md (move_type): Add ext_ins and logical.
10256 (type): Handle them.
10257 (and<mode>3): Use and_reg_operand as the second operand's predicate.
10258 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
10259 shift_shift. Remove commutative constraint modifier.
10260 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
10262 (*clear_upper32_dext): Remove define_insn_and_split.
10263 (*clear_upper32): Turn this define_insn_and_split ...
10264 (splitter for ANDing register with 0xffff_ffff): .. into this.
10266 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
10268 * combine.c (try_widen_shift_mode): Factor out code to check if an
10269 integer constant is a low-order bitmask from here ...
10270 * rtlanal.c (low_bitmask_len): ... to here.
10271 * rtl.h (low_bitmask_len): Declare.
10273 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
10276 * config/alpha/alpha.md (addsi3): Remove expander.
10277 (addsi3): Rename from *addsi3_internal insn pattern.
10278 (subsi3): Remove expander.
10279 (subsi3): Rename from *subsi3_internal insn pattern.
10281 2009-08-11 Douglas B Rupp <rupp@gnat.com>
10283 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
10286 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
10287 Eric Botcazou <botcazou@adacore.com>
10288 Douglas B Rupp <rupp@gnat.com>
10290 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
10291 that records that fit in 64 bits are returned by immediate value,
10292 as required by OpenVMS Calling Standard.
10293 (function_value): Adjust for above modification.
10294 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
10295 virtual_incoming_args_rtx as base object, not next_arg.
10296 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10298 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10300 * reload.c (find_reloads_subreg_address): Check the original
10301 req_equiv_mem address to detect the case where an address is
10302 not valid in the outer mode.
10304 2009-08-11 Richard Guenther <rguenther@suse.de>
10307 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
10309 2009-08-10 Douglas B Rupp <rupp@gnat.com>
10311 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
10312 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
10314 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
10315 Douglas B Rupp <rupp@gnat.com>
10317 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
10318 PT_STACK when frame_pointer_needed on OpenVMS.
10319 (alpha_pv_save_size, alpha_using_fp): Remove.
10320 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
10321 with proper processing for PT_NULL.
10322 (alpha_vms_initial_elimination_offset): New function. Support for
10323 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
10324 (alpha_sa_size): Force procedure type to PT_STACK when
10325 frame_pointer_needed on OpenVMS.
10326 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
10327 (alpha_using_fp): Likewise.
10328 (alpha_vms_can_eliminate): Add prototype.
10329 (alpha_vms_initial_elimination_offset): Likewise.
10330 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
10331 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
10333 2009-08-10 Eric Botcazou <botcazou@adacore.com>
10334 Douglas B Rupp <rupp@gnat.com>
10336 * config/alpha/alpha.c (common_object_handler): New function.
10337 (vms_attribute_table): Declare a single attribute "common_object".
10338 (vms_output_aligned_decl_common): New global function.
10339 (SECTION_VMS_OVERLAY): Delete.
10340 (SECTION_VMS_GLOBAL): Likewise.
10341 (SECTION_VMS_INITIALIZE): Likewise.
10342 (vms_asm_named_section): Remove support for above flags.
10343 (vms_section_type_flags): Delete.
10344 (TARGET_SECTION_TYPE_FLAGS): Likewise.
10345 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
10346 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
10347 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
10349 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10352 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
10353 (sub_ddmmss): Likewise.
10355 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
10358 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
10361 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10364 * reload1.c (reload_as_needed): Use cancel_changes to completely
10365 undo a failed replacement attempt.
10367 2009-08-10 Richard Guenther <rguenther@suse.de>
10369 PR middle-end/41006
10370 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
10371 (useless_type_conversion_p): ... here. Require pointer targets
10374 2009-08-10 Dodji Seketeli <dodji@redhat.com>
10377 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
10378 loose the original type of the statement list.
10380 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10382 * config/alpha/alpha.c: Include libfuncs.h
10383 (avms_asm_output_extern): New function.
10384 (alpha_init_libfuncs): Init some decc libfuncs.
10385 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
10386 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
10387 (DO_CRTL_NAMES): Define.
10388 (LIB_SPEC): Remove.
10389 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
10390 (LONG_TYPE_SIZE): Define.
10391 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
10392 (SUBTARGET_SWITCHES): Define malloc64 switch.
10393 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
10394 (MASK_RETURN_ADDR): Define.
10395 doc/invoke.texi (mmalloc64): Document switch.
10397 2009-08-09 Olivier Hainque <hainque@adacore.com>
10398 Douglas B Rupp <rupp@gnat.com>
10400 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
10401 uses_condition_handler.
10402 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
10403 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
10404 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
10405 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
10406 (code_for_builtin): New insn codes for the new alpha_builtins.
10407 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
10408 (alpha_sa_size): Account for uses_condition_handler.
10409 (alpha_expand_prologue): Likewise.
10410 (alpha_start_function): Likewise.
10411 (alpha_expand_epilogue): Likewise.
10412 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
10413 establish/revert expanders.
10414 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
10415 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
10416 New expander, resorting to the alpha.c associated function.
10417 (builtin_revert_vms_condition_handler): Likewise.
10418 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
10419 __gcc_shell_handler, the static VMS condition handler used as
10420 an indirection wrapper to the current dynamically established
10422 * config/alpha/vms-unwind.h: Complete rewrite.
10423 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
10424 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
10426 2009-08-09 Eric Botcazou <botcazou@adacore.com>
10427 Douglas B Rupp <rupp@gnat.com>
10429 * config/alpha/alpha.c (alpha_links): Add 'target' field.
10430 (alpha_need_linkage): Handle aliases. Return function symbol.
10431 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
10432 Use ultimate alias target for the linkage name.
10433 * config/alpha/alpha.md (movmemdi): Use the symbol returned
10434 by alpha_need_linkage for the function symbol.
10435 (setmemdi): Likewise.
10437 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10439 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
10440 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
10441 (ASM_WEAKEN_LABEL): Define.
10442 (CRT_CALL_STATIC_FUNCTION): Define.
10443 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
10444 (ENDFILE_SPEC): Define.
10445 (INIT_SECTION_ASM_OP): Define.
10446 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
10447 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
10448 crtend.o crtendS.o.
10449 (MULTILIB_OSDIRNAMES): Define.
10450 (shlib_version): Define.
10451 (SHLIB_EXT): Define.
10452 (SHLIB_OBJS): Define.
10453 (SHLIB_NAME): Define.
10454 (SHLIB_MULTILIB): Define.
10455 (SHLIB_INSTALL): Define.
10456 (SHLIB_SYMVEC): Define.
10457 (SHLIB_SYMVECX2): Define.
10458 (SHLIB_LINK): Define.
10460 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10462 * config/alpha/alpha.c (alpha_initialize_trampoline):
10463 Initialize VMS trampoline IAW ABI for bounded procedure calls.
10464 (alpha_start_function): Emit transfer address on nested functions
10465 for VMS trampoline call.
10466 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
10467 since no longer used.
10468 * config/alpha/vms-tramp.asm: Remove.
10469 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
10470 since now only data initialized at runtime.
10472 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10474 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
10475 (LINK_GCC_C_SEQUENCE_SPEC): Define.
10476 (MD_EXEC_PREFIX): Remove, no longer used.
10477 (MD_STARTFILE_PREFIX): Likewise.
10478 (INCLUDE_DEFAULTS): Likewise.
10479 * config/alpha/t-vms:
10480 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
10482 2009-08-09 Richard Guenther <rguenther@suse.de>
10484 PR tree-optimization/41016
10485 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
10486 (operand_precision): Remove.
10487 (integral_operand_p): Likewise.
10488 (recognize_single_bit_test): Adjust.
10490 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
10492 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
10493 operation overflows. Likewise non-cast unary arithmetic.
10494 If one arm of a conditional expression is always taken,
10495 inhibit evaluation warnings for the other arm. Likewise inhibit
10496 evaluation warnings for the second && or || operand if the first
10497 operand is enough to determine the result.
10498 * c-typeck.c (build_conditional_expr): Apply the same inhibition
10500 (build_binary_op): Prevent duplicate evaluation warnings.
10502 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
10504 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10505 and destination have different modes, Use promote_mode to
10506 determine the signedness of the conversion. Assert that the
10507 promoted source mode matches the destination mode. Don't pass
10508 the destination and destination mode to expand_expr if the source
10509 mode is different. Simplify conversion logic.
10511 2009-08-09 Ira Rosen <irar@il.ibm.com>
10513 PR tree-optimization/41008
10514 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10515 from condition only in case it's a comparison. Adjust checks.
10517 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
10519 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10520 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10521 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10522 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10523 (dump_cand): Handle them.
10524 (struct iv_cand): New members COST_STEP and AINC_USE.
10525 (stmt_after_increment): Likewise.
10526 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
10527 callers changed. Use gimple_uid comparison instead of scanning.
10528 (add_candidate_1): When looking for identical candidates, take
10529 AINC_USE into account. Set it for new candidates.
10530 (force_expr_to_var_cost): Cast target_spill_cost to int.
10531 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10532 All callers changed. Check for availability of autoinc addressing
10533 modes, both in general for a given mode, and in the specific use case.
10534 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
10536 (get_computation_cost): Likewise.
10537 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10538 add_autoinc_candidates): New static functions.
10539 (add_candidate): Call add_autoinc_candidates for candidates based on
10541 (find_iv_candidates): Call set_autoinc_for_original_candidates.
10542 (determine_use_iv_cost_address): If we have an autoinc candidate at
10543 the matching use, verify autoinc is possible and subtract the cost
10544 of the candidate's step from the cost.
10545 (determine_iv_cost): Record the cost of the increment in the COST_STEP
10546 member of the candidate.
10547 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10548 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
10550 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10552 * config.build (ia64-hp-*vms*): New target.
10553 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10554 with ia64-hp-*vms*.
10555 * config.gcc (ia64-hp-*vms*): New target.
10556 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10557 with ia64-hp-*vms*.
10558 * config.host (ia64-hp-*vms*): New target.
10559 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10560 with ia64-hp-*vms*.
10562 2009-08-08 Richard Guenther <rguenther@suse.de>
10564 PR tree-optimization/40991
10565 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10567 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
10569 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10570 mode check. Do truncations in an integer mode.
10571 (force_to_mode): Handle subregs for all mode types. Only do
10572 arithmetic simplifications on integer modes.
10574 2009-08-07 Richard Guenther <rguenther@suse.de>
10576 PR tree-optimization/40999
10577 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10578 (maybe_fold_reference): Lookup constant initializers.
10579 (fold_gimple_assign): Likewise.
10581 2009-08-07 Richard Guenther <rguenther@suse.de>
10583 * tree-ssa.c (useless_type_conversion_p_1): Only for types
10584 that require structural equality defer to the langhook.
10586 2009-08-07 Martin Jambor <mjambor@suse.cz>
10588 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10590 (struct ipa_pass_through_data): New type.
10591 (struct ipa_ancestor_jf_data): New type.
10592 (union jump_func_value): Removed field formal_id, added fields
10593 pass_through and ancestor.
10594 (struct ipa_param_call_note): Changed type of formal_id to int from
10596 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10597 operations jump functions and ancestor jump functions.
10598 (compute_complex_pass_through): New function.
10599 (compute_scalar_jump_functions): Call compute_complex_pass_through,
10600 reflect changes in the jump function strucutre.
10601 (update_jump_functions_after_inlining): Ignore complex pass-through
10602 and ancestor jump functions.
10603 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10604 polynomial pass-through with operation jump functions.
10606 2009-08-07 Jakub Jelinek <jakub@redhat.com>
10608 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10609 fde->dw_fde_begin as begin label instead of hot/cold label.
10610 Use LLSDAC label instead of LLSDA for second section lsda.
10611 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
10612 label instead of LLSDA if it is true.
10613 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10615 * except.c (add_call_site, dw2_size_of_call_site_table): Add
10616 SECTION argument. Use it as index into crtl->eh.call_site_record
10618 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
10619 use it to determine how to print table entries instead of using
10620 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
10621 label instead of normal begin label as base.
10622 (sjlj_assign_call_site_values): Adjust add_call_site caller.
10623 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10624 ensure no EH range spans between sections and that landing pads
10625 are always in the corresponding section.
10626 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10627 for crtl->eh.call_site_record being an array rather than scalar.
10628 (output_one_function_exception_table): New function, copied
10629 from output_function_exception_table. Adjust
10630 dw2_size_of_call_site_table, dw2_output_call_site_table
10631 callers. For SECOND section use *C suffixed labels.
10632 (output_function_exception_table): Call
10633 output_one_function_exception_table and, when doing hot/cold
10634 partitioning, also another time for the second section.
10635 * opts.c: Include except.h.
10636 (decode_options): Allow -freorder-blocks-and-partition with
10637 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10638 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10639 * function.h (struct rtl_eh): Change call_site_record from
10640 scalar into array of 2 elements.
10642 2009-08-07 Martin Jambor <mjambor@suse.cz>
10644 * ipa-prop.c (count_formal_params_1): New function.
10645 (ipa_get_vector_of_formal_parms): New function.
10646 (get_vector_of_formal_parm_types): New function.
10647 (ipa_modify_formal_parameters): New function.
10648 (ipa_modify_call_arguments): New function.
10649 (index_in_adjustments_multiple_times_p): New function.
10650 (ipa_combine_adjustments): New function.
10651 (ipa_dump_param_adjustments): New function.
10652 * ipa-prop.h (struct ipa_parm_adjustment): New type.
10653 (ipa_get_vector_of_formal_parms): Declare.
10654 (ipa_modify_formal_parameters): Declare.
10655 (ipa_modify_call_arguments): Declare.
10656 (ipa_combine_adjustments): Declare.
10657 (ipa_dump_param_adjustments): Declare.
10658 (build_ref_for_offset): Declare.
10659 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10660 * tree-sra.c: Include ipa-prop.c.
10661 (build_ref_for_offset): Make public.
10663 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
10665 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10667 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
10669 * gcc/doc/extend.texi (__builtin_extract_return_address)
10670 (__builtin_frob_return_address): Document.
10672 2009-08-06 Paul Brook <paul@codesourcery.com>
10674 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10675 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10676 implementation on ARMv6-M.
10678 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10680 * doc/extend.texi (pcs): Document new attribute for ARM.
10682 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10684 * arm.c (pcs_attribute_args): Comment out unsupported attribute
10687 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10689 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10692 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10694 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10696 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10698 Merge ARM/hard_vfp_branch to trunk.
10700 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
10702 * arm.c (libcall_eq): New function.
10703 (libcall_hash): New function.
10704 (add_libcall): New function.
10705 (arm_libcall_uses_aapcs_base): New function.
10706 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10707 libcalls using the base PCS.
10708 (arm_init_cumulative_args): Likewise.
10710 2009-07-20 Joseph Myers <joseph@codesourcery.com>
10712 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10713 Use base ABI for conversion libfuncs between HFmode and SFmode.
10715 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10717 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10718 V4SImode as representatives of all 64-bit and 128-bit vector
10719 types. Allow vector types without vector modes.
10720 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10721 without vector modes like BLKmode.
10722 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10723 BLKmode. Avoid unsupported vector modes or TImode moves for
10725 (aapcs_vfp_allocate_return_reg): Likewise.
10726 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10727 V8QImode if TARGET_NEON || TARGET_IWMMXT.
10729 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10731 * config/arm/arm.c (arm_handle_pcs_attribute): New.
10732 (arm_get_pcs_model): Pass attribute arguments to
10733 arm_pcs_from_attribute.
10734 (arm_init_cumulative_args): Use base AAPCS for conversions from
10735 floating-point types to DImode.
10736 (arm_attribute_table): Add pcs attribute.
10737 (arm_handle_pcs_attribute): New.
10738 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10739 conversions from floating-point types to DImode, also declare them
10740 to use base AAPCS and declare functions they call to use base
10741 AAPCS and their RTABI names.
10743 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10745 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10746 -mfloat-abi=hard not being supported for VFP.
10748 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
10750 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10751 SYMBOL_REF to hard_libcall_value.
10753 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10754 Richard Earnshaw <rearnsha@arm.com>
10756 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10757 has been put on the stack, all remaining co-processory arguments for
10758 that co-processor also go on the stack.
10760 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10762 * config/arm/arm.c (arm_return_in_memory): Handle returning
10763 vectors of suitable size in registers also for AAPCS case.
10765 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
10767 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10769 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
10771 ARM Hard-VFP calling convention
10772 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10773 * target.h (gcc_target): Add libcall_value to table of call hooks.
10774 * targhooks.h (default_libcall_value): Default implementation.
10775 * targhooks.c (default_libcall_value): Likewise.
10776 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10777 * optabs.c (expand_unop): Use it.
10778 * expr.h (hard_libcall_value): Pass the function RTX through.
10779 * calls.c (emit_library_call_value_1): Update call to
10780 hard_libcall_value.
10781 * explow.c (hard_libcall_value): Use new target hook.
10782 * config/arm/arm.c: Include cgraph.h
10783 (TARGET_FUNCTION_VALUE): Override default hook.
10784 (arm_pcs_default): New variable.
10785 (arm_override_options): Don't fault hard calling convention with VFP.
10786 Add support for AAPCS variants.
10787 (arm_function_value): Make static. Handle AAPCS variants.
10788 (arm_libcall_value): New function.
10789 (arm_apply_result_size): Handle VFP registers in results.
10790 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10792 (pcs_attribute_args): New variable.
10793 (arm_pcs_from_attribute): New function.
10794 (arm_get_pcs_model): New function.
10795 (aapcs_vfp_cum_init): New function.
10796 (aapcs_vfp_sub_candidate): New function.
10797 (aapcs_vfp_is_return_candidate): New function.
10798 (aapcs_vfp_is_call_candidate): New function.
10799 (aapcs_vfp_allocate): New function.
10800 (aapcs_vfp_allocate_return_reg): New function.
10801 (aapcs_vfp_advance): New function.
10802 (aapcs_cp_arg_layout): New variable.
10803 (aapcs_select_call_coproc): New function.
10804 (aapcs_select_return_coproc): New function.
10805 (aapcs_allocate_return_reg): New function.
10806 (aapcs_libcall_value): New function.
10807 (aapcs_layout_arg): New function.
10808 (arm_init_cumulative_args): Initialize AAPCS args data.
10809 (arm_function_arg): Handle AAPCS variants using new interface.
10810 (arm_arg_parital_bytes): Likewise.
10811 (arm_function_arg_advance): New function.
10812 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10813 calling conventions.
10814 (arm_setup_incoming_varargs): Handle new AAPCS args data.
10815 * arm.h (NUM_VFP_ARG_REGS): Define.
10816 (LIBCALL_VALUE): Update.
10817 (FUNCTION_VALUE): Delete.
10818 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10819 (arm_pcs): New enum.
10820 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10821 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10822 (FUNCTION_ARG_REGNO_P): Add VFP regs.
10823 * arm-protos.h (arm_function_arg_advance): Add.
10824 (aapcs_libcall_value): Add.
10825 (arm_function_value): Delete.
10827 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
10828 H.J. Lu <hongjiu.lu@intel.com>
10831 * config/i386/i386.c (standard_sse_mode_p): Remove.
10832 (standard_sse_constant_p): Return 2 for integer mode
10833 vector_all_ones_operand when SSE2 is enabled.
10834 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10835 (ix86_expand_vector_move): Do not check for negative values from
10836 standard_sse_constant_p.
10838 2009-08-06 Richard Guenther <rguenther@suse.de>
10840 * tree-ssa.c (useless_type_conversion_p_1): Make function and
10841 array type comparisons frontend independent.
10842 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10843 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10844 out array reference lower bound and element size operands.
10845 (ao_ref_init_from_vn_reference): Properly compute the offset
10846 for ARRAY_RANGE_REF.
10847 (vn_reference_fold_indirect): Fill out array reference lower
10848 bound and element size operands.
10849 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10850 a non gimple valued reference operand which can happen for
10851 array reference lower bound or element size.
10852 (create_component_ref_by_pieces_1): Properly generate the
10853 element size operand for array references.
10855 2009-08-06 Richard Guenther <rguenther@suse.de>
10857 PR tree-optimization/40964
10858 * tree.c (iterative_hash_host_wide_int): Export.
10859 * tree.h (iterative_hash_host_wide_int): Declare.
10860 * tree-ssa-structalias.c (heapvar_map): New struct.
10861 (heapvar_map_eq): New function.
10862 (heapvar_map_hash): Likewise.
10863 (heapvar_lookup): Adjust.
10864 (heapvar_insert): Likewise.
10865 (make_constraint_from_heapvar): Allow multiple heap variables
10866 per decl at different offsets.
10867 (init_alias_heapvars): Adjust.
10869 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10871 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10872 * mips_output_sync_loop (mips_output_sync_loop): Only emit
10873 trailing sync if TARGET_SYNC_AFTER_SC.
10875 2009-08-05 David Daney <ddaney@caviumnetworks.com>
10877 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10878 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10879 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10880 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10881 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10882 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10883 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10884 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10885 test_and_set_12): Rewrite calls to mips_output_sync_loop.
10886 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10887 the prototype declaration match the definition.
10888 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
10889 instructions explicitly. Add barrier_before and operands
10891 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10892 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10893 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10894 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10895 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10896 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10898 2009-08-05 Andrew Pinski <pinskia@gmail.com>
10900 * tree-ssa-alias.c: Fix intervals to use [) syntax.
10902 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
10903 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
10906 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10909 2009-08-05 Jakub Jelinek <jakub@redhat.com>
10911 PR rtl-optimization/40924
10912 * dse.c (canon_address): Before calling cselib_expand_value_rtx
10913 make sure canon_rtx (mem_address) isn't simpler than
10914 canon_rtx (expanded_mem_address).
10916 2009-08-05 Li Feng <nemokingdom@gmail.com>
10918 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10919 for each poly_bb_p.
10920 (build_scop_drs): Build alias set for each SCoP.
10922 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
10924 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10925 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10926 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10927 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10928 (BASE_DRIVER_SELF_SPECS): Likewise.
10930 2009-08-04 Andrew Pinski <pinskia@gmail.com>
10932 * tree-ssa-alias.c: Fix some comment typos.
10934 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
10936 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10937 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10939 2009-08-03 Janis Johnson <janis187@us.ibm.com>
10942 * simplify-rtx.c (simplify_binary_operation_1): Disable
10943 simplifications for decimal float operations.
10945 2009-08-03 Jakub Jelinek <jakub@redhat.com>
10947 PR middle-end/40943
10948 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10949 operand of INDIRECT_REF.
10951 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
10953 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10954 constants referencing TLS symbols.
10956 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10958 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10959 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10961 2009-08-03 Richard Guenther <rguenther@suse.de>
10963 * tree.c (make_vector_type): Build a main variant first,
10964 get the canonical one and then build the variant.
10965 * tree-ssa.c (useless_type_conversion_p_1): Handle
10967 (useless_type_conversion_p): Conversions to pointers to
10968 incomplete record types are useless.
10970 2009-08-03 Richard Guenther <rguenther@suse.de>
10972 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10973 file will be created.
10974 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10975 * toplev.c (compile_file): Adjust comment.
10977 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
10979 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10980 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10981 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10982 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10983 (sh_promote_function_mode): Fix typo.
10985 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
10987 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10989 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10991 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10992 declaration arguments.
10994 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
10996 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10997 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10998 (ix86_split_ashl): Ditto.
10999 (ix86_expand_vector_init_one_nonzero): Ditto.
11000 (ix86_expand_vector_set): Ditto.
11001 (ix86_expand_reduc_v4sf): Ditto.
11003 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11005 * explow.c (promote_function_mode): Remove assert.
11006 * config/sh/sh.c (sh_promote_function_mode): Declare.
11008 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11010 * config/pa/pa.c (pa_promote_function_mode): Declare.
11011 Change to static. Fix promote_mode call.
11013 * gthr-dce.h (CONST_CAST2): Define if not defined.
11014 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
11016 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
11018 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
11020 * expr.c (store_constructor): Use promote_decl_mode. Remove
11021 now write-only variable unsignedp.
11022 (expand_expr_real_1): Use promote_decl_mode.
11023 * expr.h (promote_function_mode, promote_decl_mode): New.
11024 (promote_mode): Remove last argument.
11025 * function.c (assign_temp): Drop last argument of promote_mode.
11026 (assign_parm_find_data_types): Use promote_function_mode.
11027 (assign_parm_setup_reg): Likewise.
11028 (expand_function_end): Use promote_function_mode.
11029 * calls.c (initialize_argument_information): Use promote_function_mode.
11030 (precompute_arguments): Use promote_mode instead of checking if
11031 only PROMOTE_FUNCTION_MODE is defined.
11032 (expand_call): When making sibcall decisions, use promote_function_mode.
11033 Below, remove an if for targetm.calls.promote_function_return and
11034 and use promote_function_mode.
11035 (emit_library_call_value_1): Use promote_function_mode, fix bug
11036 where promote_mode was passed FOR_CALL == 0 for a return value in an
11038 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
11039 * explow.c (promote_function_mode, promote_decl_mode): New.
11040 (promote_mode): Keep only the FOR_CALL == 0 case.
11041 * combine.c (setup_incoming_promotion): Remove test of
11042 promote_function_args. Use promote_function_mode.
11043 * stmt.c (expand_value_return): Use promote_decl_mode.
11044 (expand_decl): Use promote_decl_mode.
11046 * expr.c (store_constructor): Use promote_decl_mode. Remove
11047 now write-only variable unsignedp.
11048 (expand_expr_real_1): Use promote_decl_mode.
11049 * expr.h (promote_function_mode, promote_decl_mode): New.
11050 (promote_mode): Remove last argument.
11051 * function.c (assign_temp): Drop last argument of promote_mode.
11052 (assign_parm_find_data_types): Use promote_function_mode.
11053 (assign_parm_setup_reg): Likewise.
11054 (expand_function_end): Use promote_function_mode.
11055 * calls.c (initialize_argument_information): Use promote_function_mode.
11056 (precompute_arguments): Use promote_mode instead of checking if
11057 only PROMOTE_FUNCTION_MODE is defined.
11058 (expand_call): When making sibcall decisions, use promote_function_mode.
11059 Below, remove an if for targetm.calls.promote_function_return and
11060 and use promote_function_mode.
11061 (emit_library_call_value_1): Use promote_function_mode, fix bug
11062 where promote_mode was passed FOR_CALL == 0 for a return value in an
11064 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
11065 * explow.c (promote_function_mode, promote_decl_mode): New.
11066 (promote_mode): Keep only the FOR_CALL == 0 case.
11067 * combine.c (setup_incoming_promotion): Remove test of
11068 promote_function_args. Use promote_function_mode.
11069 * stmt.c (expand_value_return): Use promote_decl_mode.
11070 (expand_decl): Use promote_decl_mode.
11072 * explow.c (promote_function_mode): Just call the target hook.
11073 * targhooks.c (default_promote_function_mode,
11074 default_promote_function_mode_always_promote): New.
11075 * targhooks.h (default_promote_function_mode,
11076 default_promote_function_mode_always_promote): Declare.
11077 * target.h (promote_function_args, promote_function_return): Remove.
11078 (promote_function_mode): New.
11079 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
11080 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11081 (TARGET_PROMOTE_FUNCTION_MODE): New.
11082 (TARGET_CALLS): Adjust.
11083 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
11084 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
11086 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
11087 * config/s390/s390.c (s390_promote_function_mode): ... here,
11088 with pointer handling.
11089 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11090 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11092 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
11093 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
11094 with pointer handling.
11095 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11096 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11098 * config/sh/sh-protos.h (sh_promote_function_mode): New.
11099 * config/sh/sh.c (sh_promote_function_mode): New.
11100 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11101 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11103 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
11104 * config/cris/cris.c (cris_promote_function_mode): ... here.
11105 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11106 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11108 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
11109 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
11110 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11111 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11113 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
11114 * config/arm/arm.c (arm_promote_function_mode): ... here, without
11115 complex type handling.
11116 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11117 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11119 * config/pa/pa.c (pa_promote_function_mode): New.
11120 (TARGET_PROMOTE_FUNCTION_MODE): Define.
11121 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11123 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
11124 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11125 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
11126 * config/xtensa/xtensa.c: Likewise.
11127 * config/stormy16/stormy16.c: Likewise.
11128 * config/iq2000/iq2000.c: Likewise.
11129 * config/rs6000/rs6000.c: Likewise.
11130 * config/picochip/picochip.c: Likewise.
11131 * config/arc/arc.c: Likewise.
11132 * config/mcore/mcore.c: Likewise.
11133 * config/score/score.c: Likewise.
11134 * config/mips/mips.c: Likewise.
11135 * config/bfin/bfin.c: Likewise.
11136 * config/ia64/ia64.c: Likewise (disabled though).
11138 * config/frv/frv.h: Remove pointless remark.
11140 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
11141 TARGET_PROMOTE_FUNCTION_ARGS,
11142 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
11143 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
11145 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
11147 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
11148 -floop-parallelize-all.
11149 * toplev.c (process_options): Rename flag_graphite_force_parallel to
11150 flag_loop_parallelize_all.
11151 * tree-ssa-loop.c (gate_graphite_transforms): Same.
11152 * graphite.c (graphite_transform_loops): Same.
11153 * common.opt: Same.
11154 * graphite-poly.c (apply_poly_transforms): Same.
11156 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
11158 PR tree-optimization/40914
11159 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
11160 if set, then check the delta field of the PMF record.
11161 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
11162 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
11163 call is stored in the delta.
11165 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
11167 * config/mips/mips.md (*clear_upper32_dext): New pattern.
11169 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
11171 * config/i386/bsd.h (ASM_BYTE): New define.
11172 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
11173 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
11174 .byte. Use fputs or putc instead of fprintf where appropriate.
11175 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
11176 fputs or putc instead of fprintf where appropriate.
11177 * config/i386/i386elf.h: Ditto.
11178 * config/i386/sysv4.h: Ditto.
11180 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
11181 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
11182 (*tls_global_dynamic_64): Ditto.
11184 2009-07-31 Christian Bruel <christian.bruel@st.com>
11186 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
11188 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11190 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
11191 Remove dead code for MINUS.
11193 2009-07-31 Anthony Green <green@moxielogic.com>
11195 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
11197 (moxie_expand_epilogue): Ditto for epilogue.
11198 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
11199 incoming arguments.
11200 (moxie_function_arg): Ditto.
11201 (moxie_pass_by_reference): Ditto.
11202 (moxie_arg_partial_bytes): Ditto.
11203 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
11204 (FUNCTION_ARG_ADVANCE) Ditto.
11205 (REG_PARM_STACK_SPACE) Ditto.
11206 (FUNCTION_ARG_REGNO_P) Dito.
11208 * config.gcc: Add moxie linux config support.
11209 * gcc/config/moxie/uclinux.h: New file.
11211 2009-07-31 DJ Delorie <dj@redhat.com>
11213 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11214 (UNSPECV_SP_SWITCH_E): New.
11215 (sp_switch_1): Change to an unspec.
11216 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11218 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
11219 reference the new stack's address
11221 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11223 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
11224 graphite-clast-to-gimple.o, graphite-dependences.o,
11225 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11226 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
11227 (graphite-blocking.o,
11228 graphite-clast-to-gimple.o, graphite-dependences.o,
11229 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11230 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
11231 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
11232 * cfgloop.h (struct loop): Add can_be_parallel field.
11233 * common.opt (fgraphite-identity): Moved up.
11234 (fgraphite-force-parallel): New flag.
11235 * graphite.c: Rewrite.
11236 * graphite.h: Rewrite.
11237 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
11239 * toplev.c (graphite_out_file): New file descriptor.
11240 (graphite_in_file): New.
11241 (process_options): flag_graphite_force_parallel cannot be used without
11243 * tree-ssa-loop.c: Include toplev.h.
11244 (gate_graphite_transforms): Enable flag_graphite for
11245 flag_graphite_force_parallel.
11247 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11249 * ChangeLog.graphite: New.
11250 * graphite-blocking.c: New.
11251 * graphite-clast-to-gimple.c: New.
11252 * graphite-clast-to-gimple.h: New.
11253 * graphite-dependences.c: New.
11254 * graphite-dependences.h: New.
11255 * graphite-interchange.c: New.
11256 * graphite-poly.c: New.
11257 * graphite-poly.h: New.
11258 * graphite-ppl.c: New.
11259 * graphite-ppl.h: New.
11260 * graphite-scop-detection.c: New.
11261 * graphite-scop-detection.h: New.
11262 * graphite-sese-to-poly.c: New.
11263 * graphite-sese-to-poly.h: New.
11267 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11269 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
11270 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
11272 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11274 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
11275 (scev_is_linear_expression): Return false if the evolution is not
11276 affine multivariate.
11278 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11280 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
11281 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
11283 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11285 * tree-data-ref.c (debug_data_references): New.
11286 (debug_data_reference): New.
11287 * tree-data-ref.h (debug_data_references): Declared.
11288 (debug_data_reference): Declared.
11290 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11292 * tree-data-ref.c (stmt_simple_memref_p: Removed.
11293 * tree-data-ref.h (scop_p): Removed.
11294 (struct data_reference): Remove field scop.
11295 (DR_SCOP): Removed.
11296 (stmt_simple_memref_p): Removed.
11298 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11300 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
11301 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
11304 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11306 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
11308 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11310 * doc/invoke.texi (-fgraphite-identity): Documented.
11312 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11314 * tree-scalar-evolution.c: Fix comment.
11315 (instantiate_scev_1): Return unknow from scev instantiation if the
11316 result is not above instantiate_below.
11318 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
11320 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
11321 static anymore. Instantiate the symbols that may have been introduced
11323 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
11326 2009-07-30 DJ Delorie <dj@redhat.com>
11328 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
11329 .vliw directive to VLIW sections.
11331 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11333 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
11335 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
11336 (AUTOHEADER): New variable.
11337 ($(srcdir)/cstamp-h.in): Use it.
11339 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
11340 Pat Haugen <pthaugen@us.ibm.com>
11341 Revital Eres <ERES@il.ibm.com>
11343 * config/rs6000/vector.md (VEC_F): Add VSX support.
11346 (mov<mode>): Ditto.
11347 (vector_load_<mode>): Ditto.
11348 (vector_store_<mode>): Ditto.
11349 (vector GPR move split): Ditto.
11350 (vec_reload_and_plus_<mptrsize>): Ditto.
11351 (vec_reload_and_reg_<mptrsize>): Ditto.
11352 (add<mode>3): Ditto.
11353 (sub<mode>3): Ditto.
11354 (mul<mode>3): Ditto.
11355 (neg<mode>2): Ditto.
11356 (abs<mode>2): Ditto.
11357 (smin<mode>3): Ditto.
11358 (smax<mode>3): Ditto.
11359 (vector_eq<mode>): Ditto.
11360 (vector_gt<mode>): Ditto.
11361 (vector_ge<mode>): Ditto.
11362 (vector_gtu<mode>): Ditto.
11363 (vector_select_<mode>_uns): Ditto.
11364 (vector_eq_<mode>_p): Ditto.
11365 (vector_gt_<mode>_p): Ditto.
11366 (vector_ge_<mode>_p): Ditto.
11367 (vector_gtu_<mode>_p): Ditto.
11368 (cr6_test_for_zero): Ditto.
11369 (cr6_test_for_zero_reverse): Ditto.
11370 (cr6_test_for_lt): Ditto.
11371 (cr6_test_for_lt_reverse): Ditto.
11372 (xor<mode>3): Ditto.
11373 (ior<mode>3): Ditto.
11374 (and<mode>3): Ditto.
11375 (one_cmpl<mode>2): Ditto.
11376 (nor<mode>2): Ditto.
11377 (andc<mode>2): Ditto.
11378 (float<VEC_int<mode>2): Ditto.
11379 (unsigned_float<VEC_int><mode>2): Ditto.
11380 (fix_trunc<mode><VEC_int>2): Ditto.
11381 (fixuns_trunc<mode><VEC_int>2): Ditto.
11383 (vec_set<mode>): Ditto.
11384 (vec_extract<mode>): Ditto.
11385 (vec_interleave_highv4sf): Ditto.
11386 (vec_interleave_lowv4sf): Ditto.
11387 (vec_realign_load_<mode>): Ditto.
11388 (vec_shl_<mode>): Ditto.
11389 (vec_shr_<mode>): Ditto.
11390 (div<mode>3): New patterns for VSX.
11391 (vec_interleave_highv2df): Ditto.
11392 (vec_interleave_lowv2df): Ditto.
11393 (vec_pack_trunc_v2df): Ditto.
11394 (vec_pack_sfix_trunc_v2df): Ditto.
11395 (vec_pack_ufix_trunc_v2df): Ditto.
11396 (vec_unpacks_hi_v4sf): Ditto.
11397 (vec_unpacks_lo_v4sf): Ditto.
11398 (vec_unpacks_float_hi_v4si): Ditto.
11399 (vec_unpacks_float_lo_v4si): Ditto.
11400 (vec_unpacku_float_hi_v4si): Ditto.
11401 (vec_unpacku_float_lo_v4si): Ditto.
11402 (movmisalign<mode>): Ditto.
11403 (vector_ceil<mode>2): New patterns for vectorizing math library.
11404 (vector_floor<mode>2): Ditto.
11405 (vector_btrunc<mode>2): Ditto.
11406 (vector_copysign<mode>3): Ditto.
11408 * config/rs6000/predicates.md (easy_vector_constant_msb): New
11409 predicate for setting the high bit in each word, used for copysign.
11411 * config/rs6000/ppc-asm.h (f19): Whitespace.
11412 (f32-f63): Define if VSX.
11413 (v0-v31): Define if Altivec.
11414 (vs0-vs63): Define if VSX.
11416 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
11418 * config/rs6000/power7.md: New file, provide tuning parameters for
11421 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
11422 (rs6000_cpu_cpp_builtins): Ditto.
11423 (altivec_overloaded_builtins): Ditto.
11424 (altivec_resolve_overloaded_builtin): Ditto.
11426 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
11427 debug switch to disable vectorizing simple math builtin
11430 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11431 Vectorize simple math builtin functions.
11432 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11433 hook to vectorize math builtins.
11434 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
11435 (rs6000_builtin_conversion): Add VSX/power7 support.
11436 (rs6000_builtin_vec_perm): Ditto.
11437 (vsplits_constant): Add support for loading up a vector constant
11438 with just the high bit set in each part.
11439 (rs6000_expand_vector_init): Add VSX/power7 support.
11440 (rs6000_expand_vector_set): Ditto.
11441 (rs6000_expand_vector_extract): Ditto.
11442 (rs6000_emit_move): Ditto.
11443 (bdesc_3arg): Ditto.
11444 (bdesc_2arg): Ditto.
11445 (bdesc_1arg): Ditto.
11446 (rs6000_expand_ternop_builtin): Ditto.
11447 (altivec_expand_builtin): Ditto.
11448 (rs6000_expand_unop_builtin): Ditto.
11449 (rs6000_init_builtins): Ditto.
11450 (altivec_init_builtins): Ditto.
11451 (builtin_function_type): Ditto.
11452 (rs6000_common_init_builtins): Ditto.
11453 (rs6000_handle_altivec_attribute); Ditto.
11454 (rs6000_mangle_type): Ditto.
11455 (rs6000_vector_mode_supported_p): Ditto.
11456 (rs6000_mode_dependent_address): Altivec addresses with AND -16
11457 are mode dependent.
11459 * config/rs6000/vsx.md: New file for VSX support.
11461 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
11462 identifing values with just the most significant bit set.
11463 (enum rs6000_builtins): Add builtins for VSX. Add simple math
11464 vectorized builtins.
11466 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
11467 (UNSPEC_VRFIM): Delete.
11468 (splitter for loading up vector with most significant bit): New
11469 splitter for vectorizing copysign.
11470 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
11471 vectorizing simple math functions.
11472 (altivec_vrfip): Add support for vectorizing simple math functions.
11473 (altivec_vrfim): Ditto.
11474 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
11476 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
11477 (power7.md, vsx.md): Include for power7 support.
11478 (copysigndf3): Use VSX instructions if -mvsx.
11479 (negdf2_fpr): Ditto.
11480 (absdf2_fpr): Ditto.
11481 (nabsdf2_fpr): Ditto.
11482 (adddf3_fpr): Ditto.
11483 (subdf3_fpr): Ditto.
11484 (muldf3_fpr): Ditto.
11485 (divdf3_fpr): Ditto.
11486 (fix_truncdfdi2_fpr): Ditto.
11487 (cmpdf_internal1): Ditto.
11488 (fred, fred_fpr): Convert into expander/insn to add VSX support.
11489 (btruncdf2, btruncdf2_fpr): Ditto.
11490 (ceildf2, ceildf2_fpr): Ditto.
11491 (floordf2, floordf2_fpr): Ditto.
11492 (floatdidf2, floatdidf2_fpr): Ditto.
11493 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
11494 (fmsubdf4_fpr): Ditto.
11495 (fnmadddf4_fpr_1): Ditto.
11496 (fnmadddf4_fpr_2): Ditto.
11497 (fnmsubdf4_fpr_1): Ditto.
11498 (fnmsubdf4_fpr_2): Ditto.
11499 (fixuns_truncdfdi2): Add expander for VSX support.
11500 (fix_truncdfdi2): Ditto.
11501 (fix_truncdfsi2): Ditto.
11502 (ftruncdf2): Ditto.
11503 (btruncsf2): Whitespace.
11504 (movdf_hardfloat32): Add support for VSX registers.
11505 (movdf_softfloat32): Ditto.
11506 (movdf_hardfloat64): Ditto.
11507 (movdf_hardfloat64_mfpgpr): Ditto.
11508 (movdf_softfloat64): Ditto.
11509 (movti splitters): Add check for vector registers supporting
11510 TImode in the future.
11511 (bpermd): Add power7 bpermd instruction.
11513 * config/rs6000/altivec.h (vec_div): Define if VSX.
11516 (vec_nmadd): Ditto.
11517 (vec_nearbyint): Ditto.
11520 (all predicates): Use the generic builtin function, and not the V4SF
11521 specific function so that the predicates will work with VSX's V2DF.
11522 (vec_all_*): Ditto.
11523 (vec_any_*): Ditto.
11525 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11526 Document new VSX functions and types.
11528 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11531 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11532 "wa", and "j" constraints. Modify "v" to talk about Altivec
11533 instead of just vector.
11535 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
11538 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11539 location for phi arguments.
11540 (rewrite_update_phi_arguments): Find locations for reaching defs.
11541 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11542 Add location to add_phi_arg calls.
11543 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11544 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11545 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11546 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11547 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11548 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11549 * tree-phinodes.c (make_phi_node): Initialize location.
11550 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11551 (add_phi_arg): Add location parameter.
11552 (remove_phi_arg_num): Move location when moving phi argument.
11553 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11555 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11556 slpeel_update_phi_nodes_for_guard1,
11557 slpeel_update_phi_nodes_for_guard2,
11558 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11559 vect_loop_versioning): Set locations.
11560 * tree-parloops.c (create_phi_for_local_result,
11561 transform_to_exit_first_loop, create_parallel_loop): Add locations.
11562 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11563 * tree-vect-loop.c (get_initial_def_for_induction,
11564 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11566 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
11567 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
11568 (gimple_phi_arg_set_location): New. Set locus.
11569 (gimple_phi_arg_has_location): New. Check for locus.
11570 (redirect_edge_var_map_location): New. Return locus from var_map.
11571 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11572 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11573 combining PHI arguments.
11574 (cond_store_replacement): Set location.
11575 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11576 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11577 scop_add_exit_phis_edge): Add locations.
11578 * tree-cfgcleanup.c (remove_forwarder_block,
11579 remove_forwarder_block_with_phi): Add locations.
11580 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11581 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11583 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11584 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11585 flush_pending_stmts): Add source location.
11586 * lambda-code.c (perfect_nestify): Maintain location stack with argument
11587 stack to preserve locations.
11588 * tree-vect-stmts.c (vectorizable_load): Add location.
11589 * tree-inline.c (copy_phis_for_bb): Copy locus.
11590 (setup_one_parameter): Add call locus to inlined parameter stmts.
11591 (initialize_inlined_parameters): Pass in call location as parameter
11593 (tree_function_versioning): Pass location to setup_one_parameter.
11594 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11595 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11596 copy and edge lists.
11597 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11598 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11599 locus parameter and override the stmt default if provided.
11600 (new_elim_graph, clear_elim_graph, delete_elim_graph,
11601 elim_graph_add_edge, elim_graph_remove_succ_edge,
11602 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11603 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11604 eliminate_phi): Add locus info in elimination graph for each edge and
11606 (insert_backedge_copies): Copy locus if present.
11607 * tree-flow.h (struct _edge_var_map): Add locus field.
11608 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11609 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11610 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11612 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11614 2009-07-30 Martin Jambor <mjambor@suse.cz>
11616 PR tree-optimization/40570
11617 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11618 use inlining loops.
11620 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
11622 * ssa-loop-manip.c: Include langhooks.h.
11623 (rewrite_phi_with_iv): New.
11624 (rewrite_all_phi_nodes_with_iv): New.
11625 (canonicalize_loop_ivs): Move here from tree-parloops.c.
11626 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11627 * tree-parloops.c (loop_parallel_p): Move out all conditions
11628 except dependency check.
11629 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11630 (gen_parallel_loop): Call canonicalize_loop_ivs without
11631 reduction_list argument.
11632 (build_new_reduction): New.
11633 (gather_scalar_reductions): New.
11634 (try_get_loop_niter): New.
11635 (try_create_reduction_list): New.
11636 (parallleize_loops): Change the parallel conditions check.
11637 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11638 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11640 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
11642 * opt-functions.awk (opt_args): Allow argument to be enclosed in
11644 * doc/options.texi (Option properties): Mention new quoting syntax.
11646 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11648 * config/alpha/alpha.c (alpha_start_function):
11649 Handle VMS_DEBUG_MAIN_POINTER
11650 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11651 * doc/invoke.texi: Document -mdebug-main switch.
11653 2009-07-29 Richard Henderson <rth@redhat.com>
11655 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11656 (cgraph_create_edge_including_clones): Likewise.
11657 * tree-inline.c (copy_bb): Operate on the correct edges
11658 when updating the callgraph.
11660 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11662 * config/alpha/vms-cc.c: Deleted.
11663 * config/alpha/vms-ld.c: Deleted.
11664 * config/alpha/t-vms64: Moved to config/vms
11665 * config/alpha/vms-crt0-64.c: Moved to config/vms
11666 * config/alpha/vms-crt0.c: Moved to config/vms
11667 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11668 * config/alpha/vms-psxcrt0.c: Moved to config/vms
11669 * config/alpha/xm-vms.h: Moved to config/vms
11670 * config/alpha/x-vms: Moved to config/vms
11671 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11673 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11674 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11676 * config/vms/t-vms64: Moved here from config/alpha
11677 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11678 (argc,argv,envp): Enforce 32bit malloc'ing.
11679 * config/vms/vms-psxcrt0-64.c: Likewise.
11680 * config/vms/vms-crt0.c: Moved here from config/alpha.
11681 * config/vms/vms-psxcrt0.c: Likewise.
11682 * config/vms/vms-crtl-64.h: New file.
11683 * config/vms/vms-crtl.h: New file.
11684 * config/vms/vms.opt: New file.
11685 * config/vms/xm-vms64.h: New file.
11686 * config/vms/xm-vms.h: Moved here from config/alpha.
11687 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11689 * config/vms/x-vms: Moved here from config/alpha.
11690 (version, VMS_EXTRA_PARTS): Moved to t-vms.
11691 (vms-ld.o, vms-cc.o): Removed.
11692 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11694 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11696 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11697 correct stack (obvious VMS fix).
11699 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11701 * dwarf2out.c (output_file_names): Output VMS style file name, size,
11702 date, version info if VMS_DEBUGGING_INFO defined.
11703 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11704 size, date calculating code moved here.
11706 2009-07-29 Paul Brook <paul@codesourcery.com>
11708 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11711 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
11714 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11715 to DImode when generating insq_le insn.
11717 2009-07-28 Douglas B Rupp <rupp@gnat.com>
11719 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11720 New macro set for VMS_DEBUGGGING_INFO.
11721 (AT_string_form): Use it.
11723 2009-07-28 DJ Delorie <dj@redhat.com>
11725 * config/mep/mep.c (vtext_section): New.
11726 (vftext_section): New.
11727 (ftext_section): New.
11728 (mep_select_section): Add support for functions.
11729 (mep_unique_section): Likewise.
11730 (mep_asm_init_sections): Likewise.
11731 (mep_encode_section_info): Remove it from here.
11733 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11735 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
11737 * tree.h (TREE_DEPRECATED): Document it is used for types too.
11738 (TYPE_VECTOR_OPAQUE): Use default_def_flag
11740 2009-07-28 Douglas B Rupp <rupp@gnat.com>
11742 * dwarf2out.c (output_file_names): Test new macro
11743 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11744 (add_comp_dir_attribute): Likewise.
11746 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
11748 * config/i386/mingw-w64.h (LINK_SPEC): Add
11749 separating space between commands.
11751 2009-07-28 Jan Hubicka <jh@suse.cz>
11753 PR tree-optimization/40759
11754 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11757 2009-07-27 DJ Delorie <dj@redhat.com>
11759 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11760 types are dword-aligned.
11761 (mep_expand_va_start): Likewise.
11763 2009-07-27 Olivier Hainque <hainque@adacore.com>
11764 Douglas B Rupp <rupp@gnat.com>
11766 * convert.c (convert_to_pointer): Don't assume the target
11767 pointer type is POINTER_SIZE long. Fetch its precision instead.
11769 2009-07-27 Douglas B Rupp <rupp@gnat.com>
11771 * system.h (fopen): Undefine if macro.
11773 2009-07-27 Jakub Jelinek <jakub@redhat.com>
11775 * dwarf2out.c (output_cfi_p): Removed.
11776 (output_cfis): New function.
11777 (output_fde): New function, split from output_call_frame_info.
11778 (output_call_frame_info): Use it.
11779 (dwarf2out_switch_text_section): Use output_cfis.
11781 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
11783 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11784 TARGET_BI_ARCH is specified without enabling SJLJ.
11785 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11786 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11788 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
11790 * arm.md (negdi2): Use DImode if forcing a value into a register.
11792 2009-07-26 Ira Rosen <irar@il.ibm.com>
11794 PR tree-optimization/40801
11795 * tree-vect-stmts.c (vectorizable_call): Get previous copy
11796 of vector operand from the previous copy of vector statement.
11797 Pass the correct definition type value to
11798 vect_get_vec_def_for_stmt_copy().
11800 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11802 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11803 const char ** conversion.
11805 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11807 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11808 fancy_abort() if !ENABLE_ASSERT_CHECKING.
11809 (gcc_unreachable): Invoke __builtin_unreachable() if
11810 !ENABLE_ASSERT_CHECKING.
11812 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11814 PR rtl-optimization/40445
11815 * emit-rtl.c (next_nonnote_insn_bb): New function.
11816 * rtl.h (next_nonnote_insn_bb): Declare new function.
11817 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11818 with no successors that is the successor of the ENTRY_BLOCK.
11819 Continue from the top after removing an empty fallthrough block.
11820 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11821 of next_nonnote_insn.
11823 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11825 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11827 2009-07-25 Martin Jambor <mjambor@suse.cz>
11829 * c-common.c (c_common_attribute_table): New element for noclone.
11830 (handle_noclone_attribute): New function. Forward-declare.
11831 * tree-inline.c (tree_versionable_function_p): Check for noclone
11833 * doc/extend.texi (Labels as Values): Document need for noclone.
11834 (Function Attributes): Document noclone attribute.
11836 2009-07-25 Jakub Jelinek <jakub@redhat.com>
11838 PR rtl-optimization/34999
11839 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11840 and dw_fde_switched_cold_to_hot fields.
11841 (output_cfi_p): New function.
11842 (output_call_frame_info): If fde->dw_fde_switched_sections,
11843 output 2 FDEs instead of one with corrupted header.
11844 (dwarf2out_do_cfi_startproc): New function.
11845 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
11846 and fde->dw_fde_switched_cold_to_hot.
11847 (dwarf2out_switch_text_section): Compute
11848 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
11849 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11850 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11851 Otherwise, compute fde->dw_fde_switch_cfi.
11853 2009-07-24 Cary Coutant <ccoutant@google.com>
11855 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11857 2009-07-24 Cary Coutant <ccoutant@google.com>
11859 * cfghooks.c (split_block): Copy discriminator to new block.
11860 * tree-cfg.c (assign_discriminator): Check location of last
11861 instruction in block as well as first.
11863 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
11865 * config/i386/linux.c: Use fputs or putc instead of fprintf
11867 * config/i386/gas.h: Ditto.
11868 * config/i386/x86-64.h: Ditto.
11869 * config/i386/att.h: Ditto.
11871 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11873 * expmed.c (emit_store_flag): Use a recursive call to optimize the
11876 2009-07-24 Martin Jambor <mjambor@suse.cz>
11878 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11879 (ipa_push_func_to_list_1): Declare.
11880 (ipa_push_func_to_list): New function.
11882 * ipa-prop.c (ipa_push_func_to_list_1): New function.
11883 (ipa_init_func_list): Call ipa_push_func_to_list_1.
11884 (ipa_push_func_to_list): Removed.
11885 (ipa_pop_func_from_list): Clear node_enqueued flag.
11887 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
11889 * config/s390/s390.c (override_options): Default
11890 max-unrolled-insns to 100 for z10 tuning.
11892 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
11894 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11895 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11896 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11897 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11898 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11899 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11900 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11902 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
11904 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11905 use default set in mingw32.h header.
11906 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11907 64-bit /mingw/include path.
11908 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11911 2009-07-23 Neil Vachharajani <nvachhar@google.com>
11913 PR rtl-optimization/40209
11914 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11916 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
11918 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
11919 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11920 with the rest of string where appropriate. Use fputs or putc
11921 instead of fprintf where appropriate.
11923 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11924 Pat Haugen <pthaugen@us.ibm.com>
11925 Revital Eres <ERES@il.ibm.com>
11927 * config/rs6000/vector.md: New file. Move most of the vector
11928 expander support here from altivec.md to allow for the VSX vector
11929 unit in the future. Add support for secondary_reload patterns.
11930 Rewrite the patterns for vector comparison, and vector comparison
11931 predicate instructions so that the RTL expresses the desired
11932 behavior, instead of using unspec.
11934 * config/rs6000/constraints.md ("f" constraint): Use
11935 rs6000_constraints to hold the precalculated register class.
11936 ("d" constraint): Ditto.
11937 ("wd" constraint): New constraint for VSX.
11938 ("wf" constraint): Ditto.
11939 ("ws" constraint): Ditto.
11940 ("wa" constraint): Ditto.
11941 ("wZ" constraint): Ditto.
11942 ("j" constraint): Ditto.
11944 * config/rs6000/predicates.md (vsx_register_operand): New
11946 (vfloat_operand): New predicate for vector.md.
11947 (vint_operand): Ditto.
11948 (vlogical_operand): Ditto.
11949 (easy_fp_constant): If VSX, 0.0 is an easy constant.
11950 (easy_vector_constant): Add VSX support.
11951 (altivec_indexed_or_indirect_operand): New predicate for
11952 recognizing Altivec style memory references with AND -16.
11954 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11955 for vector secondary reload support.
11956 (rs6000_vector_reg_class): Delete, replacing it with
11957 rs6000_constraints.
11958 (rs6000_vsx_reg_class): Ditto.
11959 (rs6000_constraints): New array to hold the register classes of
11960 each of the register constraints that can vary at runtime.
11961 (builtin_mode_to_type): New static array for builtin function type
11963 (builtin_hash_table): New static hash table for builtin function
11965 (TARGET_SECONDARY_RELOAD): Define target hook.
11966 (TARGET_IRA_COVER_CLASSES): Ditto.
11967 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11968 registers are 128 bits if VSX memory reference instructions are used.
11969 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11970 unit is being used.
11971 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11972 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11973 Print several of the scheduling related parameters.
11974 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11975 rs6000_constraints instead of rs6000_vector_reg_class. Move
11976 -mdebug=reg code to rs6000_debug_reg_global. Add support for
11977 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
11978 Altivec. Add VSX support. Setup for secondary reload support on
11979 Altivec/VSX registers.
11980 (rs6000_override_options): Make power7 set the scheduling groups
11981 like the power5. Add support for new debug switches to override
11982 the scheduling defaults. Temporarily disable -mcpu=power7 from
11983 setting -mvsx. Add support for debug switches -malways-hint,
11984 -msched-groups, and -malign-branch-targets.
11985 (rs6000_buitlin_conversion): Add support for returning unsigned
11986 vector conversion functions to fix regressions due to stricter
11988 (rs6000_builtin_mul_widen_even): Ditto.
11989 (rs6000_builtin_mul_widen_odd): Ditto.
11990 (rs6000_builtin_vec_perm): Ditto.
11991 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11992 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11993 to zero a register.
11994 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11995 generated upstream.
11996 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
11997 VSX types for bit operations. Changes to accomidate vector.md.
11998 (bdesc_2arg): Ditto.
11999 (bdesc_1arg): Ditto.
12000 (struct builtin_description_predicates): Rewrite predicate
12001 handling so that RTL describes the operation, instead of passing
12002 the instruction to be used as a string argument.
12003 (bdesc_altivec_preds): Ditto.
12004 (altivec_expand_predicate_builtin): Ditto.
12005 (altivec_expand_builtin): Ditto.
12006 (rs6000_expand_ternop_builtin): Use a switch instead of an if
12007 statement for vsldoi support.
12008 (altivec_expand_ld_builtin): Change to use new names from vector.md.
12009 (altivec_expand_st_builtin): Ditto.
12010 (paired_expand_builtin): Whitespace changes.
12011 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
12012 builtin_mode_to_type table for secondary reload. Call
12013 builtin_function_type to build random builtin functions.
12014 (altivec_init_builtins): Change to use builtin_function_type to
12015 create builtin function types dynamically as we need them.
12016 (builtin_hash_function): New support for hashing the tree types
12017 for builtin function as we need it, rather than trying to build
12018 all of the trees that we need. Add initial preliminary VSX support.
12019 (builtin_function_type): Ditto.
12020 (builtin_function_eq): Ditto.
12021 (builtin_hash_struct): Ditto.
12022 (rs6000_init_builtins): Ditto.
12023 (rs6000_common_init_builtins): Ditto.
12024 (altivec_init_builtins): Ditto.
12025 (rs6000_common_init_builtins): Ditto.
12026 (enum reload_reg_type): New enum for simplifing reg classes.
12027 (rs6000_reload_register_type): Simplify register classes into GPR,
12028 Vector, and other registers. Altivec and VSX addresses in reload.
12029 (rs6000_secondary_reload_inner): Ditto.
12030 (rs6000_ira_cover_classes): New target hook, that returns the
12031 appropriate cover classes, based on -mvsx being used or not.
12032 (rs6000_secondary_reload_class): Add VSX support.
12033 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
12034 (get_vsel_insn): Ditto.
12035 (rs6000_emit_vector_compare): Rewrite vector conditional support
12036 so that where we can, we use RTL operators, instead of blindly use
12038 (rs6000_emit_vector_select): Ditto.
12039 (rs6000_emit_vector_cond_expr): Ditto.
12040 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
12041 (create_TOC_reference): Add -mdebug=addr support.
12042 (emit_frame_save): VSX loads/stores need register indexed addressing.
12044 * config/rs6000/rs6000.md: Include vector.md.
12046 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
12048 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12049 support for V2DI, V2DF in logical, permute, select operations.
12051 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
12052 switch for vsx/power7.
12053 (-mvsx-scalar-memory): Ditto.
12054 (-mvsx-align-128): Ditto.
12055 (-mallow-movmisalign): Ditto.
12056 (-mallow-df-permute): Ditto.
12057 (-msched-groups): Ditto.
12058 (-malways-hint): Ditto.
12059 (-malign-branch-targets): Ditto.
12061 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
12063 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
12064 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
12065 (rs6000_vector_reg_class): Delete.
12066 (rs6000_vsx_reg_class): Ditto.
12067 (enum rs6000_reg_class_enum): New enum for the constraints that
12068 vary based on target switches.
12069 (rs6000_constraints): New array to hold the register class for all
12070 of the register constraints that vary based on the switches used.
12071 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
12072 (enum rs6000_builtins): Add unsigned varients for the builtin
12073 declarations returned by target hooks for expanding multiplies,
12074 select, and permute operations. Add VSX builtins.
12075 (enum rs6000_builtin_type_index): Add entries for VSX.
12076 (V2DI_type_node): Ditto.
12077 (V2DF_type_node): Ditto.
12078 (unsigned_V2DI_type_node): Ditto.
12079 (bool_long_type_node): Ditto.
12080 (intDI_type_internal_node): Ditto.
12081 (uintDI_type_internal_node): Ditto.
12082 (double_type_internal_node): Ditto.
12084 * config/rs6000/altivec.md (whole file): Move all expanders to
12085 vector.md from altivec.md. Rename insn matching functions to be
12087 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
12088 (altivec_vcmp*): Ditto.
12089 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
12090 (VM): New iterator for moves that includes the VSX types.
12091 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
12092 (altivec_vperm_<mode>_uns): New, for unsigned types.
12093 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
12094 (altivec_eq<mode>): Ditto.
12095 (altivec_gt<mode>): Ditto.
12096 (altivec_gtu<mode>): Ditto.
12097 (altivec_eqv4sf): Ditto.
12098 (altivec_gev4sf): Ditto.
12099 (altivec_gtv4sf): Ditto.
12100 (altivec_vcmpbfp_p): Ditto.
12102 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
12104 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
12107 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
12110 * config/i386/i386.c (output_387_ffreep): Rewrite to use
12111 ASM_SHORT instead of .word.
12112 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
12113 instead of .word in asm template.
12115 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
12118 * ira-lives.c (bb_has_abnormal_call_pred): New function.
12119 (process_bb_node_lives): Use it.
12121 * ira.c (setup_cover_and_important_classes): Don't setup
12122 ira_important_class_nums. Add cover classes to the end of
12124 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
12126 (find_reg_class_closure): Use reorder_important_classes.
12128 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
12130 * config/i386/i386.c (i386_ira_cover_classes): New function.
12131 (TARGET_IRA_COVER_CLASSES): Redefine.
12133 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
12134 importance of order of cover classes in the array.
12136 2009-07-22 Diego Novillo <dnovillo@google.com>
12138 * tree-pass.h (TDF_EH): Define.
12139 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
12140 contains TDF_EH, print the EH region number holding GS.
12141 * tree-dump.c (dump_options): Add "eh".
12142 * doc/invoke.texi: Document it.
12144 2009-07-22 Doug Kwan <dougkwan@google.com>
12146 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
12148 2009-07-22 Michael Matz <matz@suse.de>
12150 PR tree-optimization/35229
12151 PR tree-optimization/39300
12153 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
12154 (inhibit_phi_insertion): New function.
12155 (insert_into_preds_of_block): Call it for REFERENCEs.
12156 (init_pre): Initialize and finalize scalar evolutions.
12157 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
12159 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
12161 * config/i386/predicates.md (zero_extended_scalar_load_operand):
12162 Use CONST_VECTOR_NUNITS to determine number of elements.
12164 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
12166 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
12167 (U, W): Constraints are now deprecated and will be removed if we
12168 run out of letters.
12169 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
12171 ("prefetch"): Add the stcmh instruction for prefetching.
12172 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
12174 (s390_short_displacement): Return always true if compiling for
12175 machines not providing the long displacement facility.
12176 (s390_mem_constraint): Support the new constraint letter Z.
12177 (s390_check_qrst_address): New function.
12179 2009-07-21 DJ Delorie <dj@redhat.com>
12181 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
12184 2009-07-21 Jason Merrill <jason@redhat.com>
12186 * c-common.c (max_tinst_depth): Increase default to 1024.
12188 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
12190 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
12191 (vec_unpacku_float_lo_v4si): Ditto.
12193 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
12196 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
12197 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
12198 (builtin_description): Add __builtin_ia32_cvtudq2ps.
12199 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
12201 2009-07-21 Jakub Jelinek <jakub@redhat.com>
12203 PR tree-optimization/40813
12204 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
12207 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
12209 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
12210 with a NOP_EXPR if needed.
12212 2009-07-21 Paul Brook <paul@codesourcery.com>
12214 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
12215 Terminate debug dump with newline.
12217 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12219 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
12220 Cast "1" to unsigned HOST_WIDE_INT.
12221 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
12222 deposit length to the maximum length - lsb. Extend length if
12223 HOST_BITS_PER_WIDE_INT is 32.
12225 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
12227 * cgraph.h (constant_pool_htab): New function.
12228 (constant_descriptor_tree): Move from varasm.c.
12229 * varasm.c (constant_pool_htab): New function.
12230 (constant_descriptor_tree): Move to cgraph.h.
12232 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
12234 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
12236 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
12238 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
12241 2009-07-20 Xinliang David Li <davidxl@google.com>
12243 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
12245 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
12247 * config/mips/mips.md (move_type): Add arith.
12248 (type): Handle arith.
12249 (zero_extendsidi2): Rename this into ...
12250 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
12251 (zero_extendsidi2): New expander.
12252 (*zero_extendsidi2_dext): New pattern.
12254 2009-07-20 Nick Clifton <nickc@redhat.com>
12256 * config.gcc (mips64-*-*): Add definition of tm_defines in order
12257 to set MIPS_ABI_DEFAULT.
12258 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
12260 2009-07-20 Jakub Jelinek <jakub@redhat.com>
12262 * tree-object-size.c (addr_object_size): Handle unions with
12263 array in it as last field of structs in __bos (, 1) as __bos (, 0).
12265 PR tree-optimization/40792
12266 * tree.c (build_function_type_skip_args): Remove bogus assert.
12268 2009-07-20 Jan Hubicka <jh@suse.cz>
12269 Martin Jambor <mjambor@suse.cz>
12271 * cgraph.h (combined_args_to_skip): New field.
12272 * cgraph.c (cgraph_create_virtual_clone): Properly handle
12273 combined_args_to_skip and args_to_skip.
12274 * tree-inline.c (update_clone_info): New function.
12275 (tree_function_versioning): Call update_clone_info.
12276 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
12278 (cgraph_materialize_all_clones): More extensive dumping, working
12279 with combined_args_to_skip rather than args_to_skip.
12281 2009-07-20 Ira Rosen <irar@il.ibm.com>
12283 * tree-vectorizer.h (vectorizable_condition): Add parameters.
12284 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
12285 (get_initial_def_for_reduction): Likewise.
12286 (vectorizable_reduction): Skip the check of first operand in case
12287 of COND_EXPR. Add check that it is outer loop vectorization if
12288 nested cycle was detected. Call vectorizable_condition() for
12289 COND_EXPR. If reduction epilogue cannot be created do not fail for
12290 nested cycles (if it is not double reduction). Assert that there
12291 is only one type in the loop in case of COND_EXPR. Call
12292 vectorizable_condition() to vectorize COND_EXPR.
12293 * tree-vect-stmts.c (vectorizable_condition): Update comment.
12294 Add parameters. Allow nested cycles if called from
12295 vectorizable_reduction(). Use reduction vector variable if provided.
12296 (vect_analyze_stmt): Call vectorizable_reduction() before
12297 vectorizable_condition().
12298 (vect_transform_stmt): Update call to vectorizable_condition().
12300 2009-07-20 Christian Bruel <christian.bruel@st.com>
12302 * config/sh/sh.opt (-mfmovd): Resurrect and document.
12303 * doc/invoke.texi (-mfmovd): Likewise.
12304 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
12306 2009-07-20 Jan Hubicka <jh@suse.cz>
12308 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
12309 when handling SSA name.
12311 2009-07-19 Jan Hubicka <jh@suse.cz>
12313 PR tree-optimization/40676
12314 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
12315 virtual PHIs in empty BBs.
12317 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
12319 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
12320 re-expanded the compound use gen_lowpart instead to convert to the
12323 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
12325 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
12326 OUTER_CONST arguments.
12327 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
12328 the new wider mode will be masked off.
12329 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
12331 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
12333 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
12334 high-order bits are zero.
12336 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
12338 * combine.c (simplify_shift_const_1): Split code to determine
12339 shift_mode into ...
12340 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
12341 new bits shifted in are identical to the old sign bit.
12343 2009-07-18 Richard Guenther <rguenther@suse.de>
12346 * gimplify.c (gimplify_call_expr): Reject code using results from
12347 functions returning void.
12349 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
12351 * doc/md.texi: Document the new PowerPC "es" constraint.
12352 Document that "m" can include automodified addresses on this target,
12353 and explain how %U must be used. Extend the "Q" and "Z" documentation
12354 to suggest "es" as well as "m".
12355 * config/rs6000/constraints.md (es): New memory constraint.
12356 (Q, Z): Update strings to match new documentation.
12358 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
12360 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
12361 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
12362 * config/rs6000/predicates.md (volatile_mem_operand): Use
12363 offsettable_nonstrict_memref_p.
12364 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
12365 (*floatunssidf2_internal): Likewise.
12366 (*fix_truncdfsi2_internal): Likewise.
12367 (*fix_trunctfsi2_internal): Likewise.
12369 2009-07-17 Anatoly Sokolov <aesok@post.ru>
12371 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
12372 atmega32u2 devices.
12373 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12375 2009-07-17 Richard Guenther <rguenther@suse.de>
12378 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
12379 (pass_warn_unused_result): Likewise.
12380 (TODO_set_props): Remove.
12381 * omp-low.c (diagnose_omp_structured_block_errors): Change to
12383 (pass_diagnose_omp_blocks): Define.
12384 * c-decl.c (pop_file_scope): Do not finalize the CU here.
12385 (c_gimple_diagnostics_recursively): Remove.
12386 (finish_function): Do not call it.
12387 (c_write_global_declarations): Continue after errors.
12388 Finalize the CU here.
12389 * c-gimplify.c (c_genericize): Do not gimplify here.
12390 * c-common.c (c_warn_unused_result): Move ...
12391 * tree-cfg.c (do_warn_unused_result): ... here.
12392 (run_warn_unused_result): New function.
12393 (gate_warn_unused_result): New function.
12394 (pass_warn_unused_result): New pass.
12395 * c-common.h (c_warn_unused_result): Remove.
12396 * flags.h (flag_warn_unused_result): Declare.
12397 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
12398 * opts.c (flag_warn_unused_result): Initialize to false.
12399 * toplev.c (compile_file): Add comment.
12400 * omp-low.c (create_omp_child_function): Do not register
12401 the function with the frontend.
12402 (diagnose_omp_structured_block_errors): Prepare to be
12403 called as optimization pass.
12404 (gate_diagnose_omp_blocks): New function.
12405 (pass_diagnose_omp_blocks): New pass.
12406 * cgraph.h (cgraph_optimize): Remove.
12407 (cgraph_analyze_function): Likewise.
12408 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
12409 * cgraphunit.c (cgraph_lower_function): Lower nested functions
12410 before their parents here.
12411 (cgraph_finalize_function): Not here.
12412 (cgraph_analyze_function): Gimplify functions here.
12413 (cgraph_finalize_compilation_unit): Continue after errors.
12414 Optimize the callgraph from here.
12415 (cgraph_optimize): Make static.
12416 * langhooks.c (write_global_declarations): Finalize the CU.
12417 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
12418 (gimplify_function_tree): Assert we gimplify only once.
12419 Set PROP_gimple_any property.
12420 * tree-nested.c (gimplify_all_functions): New function.
12421 (lower_nested_functions): Gimplify all nested functions.
12422 * gimple.h (diagnose_omp_structured_block_errors): Remove.
12423 * passes.c (init_optimization_passes): Add pass_warn_unused_result
12424 and pass_diagnose_omp_blocks after gimplification. Do not
12425 set TODO_set_props on all_lowering_passes.
12426 (execute_one_pass): Do not handle TODO_set_props.
12427 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
12428 (gimplify.o): Add tree-pass.h dependency.
12429 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
12430 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
12431 (unsave_r): Likewise.
12432 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
12433 temporary variable.
12435 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
12437 * doc/service.texi (Service): Restore previously removed link,
12438 which isn't broken after all.
12440 2009-07-17 Richard Guenther <rguenther@suse.de>
12442 PR tree-optimization/40321
12443 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
12444 PHI nodes to the maximal set.
12445 (make_values_for_phi): Add PHI arguments to the maximal set.
12446 (execute_pre): Dump PHI_GEN and the maximal set.
12448 2009-07-17 Jakub Jelinek <jakub@redhat.com>
12451 * gimplify.c (gimplify_conversion): Don't change non-conversions into
12454 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
12456 * doc/extend.texi (Nested Functions): Replace broken link with
12458 * doc/service.texi (Service): Remove broken link.
12460 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
12463 * builtins.c (expand_builtin_memcmp): Use loc instead of
12464 EXPR_LOCATION (exp).
12465 (expand_builtin_strncmp): Likewise.
12467 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
12468 Manuel López-Ibáñez <manu@gcc.gnu.org>
12471 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
12472 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
12473 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
12474 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
12475 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
12476 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
12477 tree-inline.c, c-common.c, c-common.h, gimple.c,
12478 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
12479 convert.c: Add location argument to fold_{unary,binary,ternary},
12480 fold_build[123], build_call_expr, build_size_arg,
12481 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
12482 fold_build1_initializer, fold_build2_initializer,
12483 fold_build3_initializer, fold_build_call_array,
12484 fold_build_call_array_initializer, fold_single_bit_test,
12485 omit_one_operand, omit_two_operands, invert_truthvalue,
12486 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
12487 combine_comparisons, fold_builtin_*, fold_call_expr,
12488 build_range_check, maybe_fold_offset_to_address, round_up,
12491 2009-07-16 Jason Merrill <jason@redhat.com>
12494 * c-common.c (c_common_reswords): Add __is_standard_layout
12496 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
12497 * doc/implement-cxx.texi: New.
12498 * doc/gcc.texi: Include it.
12500 2009-07-16 DJ Delorie <dj@redhat.com>
12502 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12503 compares that may be indirectly affected by previous instructions.
12505 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12507 * builtins.c (do_mpc_arg2): New.
12508 (fold_builtin_2): Fold builtin cpow.
12509 * real.h (HAVE_mpc_pow): New.
12511 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
12513 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12514 comparison to skip unprofitable schedule
12516 2009-07-16 Simon Baldwin <simonb@google.com>
12518 * gcc.c (option_map): New flag -no-canonical-prefixes.
12519 * (display_help): Print help text for new flag.
12520 * (process_command): Move options translation and language specifics
12521 and handle new flag early. Use it to set a function pointer to a
12522 prefix builder. Replace make_relative_prefix calls with calls to
12523 the function pointed to. Ignore new flag in regular options handling.
12524 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12526 2009-07-15 DJ Delorie <dj@redhat.com>
12528 * config/mep/mep.md (sibcall_internal): Change register to avoid
12529 argument registers.
12530 (sibcall_value_internal): Likewise.
12532 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
12534 PR rtl-optimization/40710
12535 * resource.c (mark_target_live_regs): Reset DF problem to LR.
12537 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
12539 * config/mips/mips.md (*extenddi_truncate<mode>,
12540 *extendsi_truncate<mode>): Change type attribute to move_type
12541 with shift_shift. Split out code handling exts from here ...
12542 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12544 (*extendhi_truncateqi): Change type attribute to move_type with
12545 shift_shift. Split out code handling exts from here ...
12546 (*extendhi_truncateqi_exts): ... to this new pattern.
12548 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
12550 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12551 instead of "and" with inverted sign bit mask value. Use
12552 "nonimmediate_operand" for operand 1 and operand 2 predicate.
12553 Allocate registers only for operand 4 and operand 5.
12555 2009-07-15 Jakub Jelinek <jakub@redhat.com>
12557 PR middle-end/40747
12558 * fold-const.c (fold_cond_expr_with_comparison): When folding
12559 < and <= to MIN, make sure the MIN uses the same type as the
12560 comparison's operands.
12562 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
12564 * arm.md (ior_xor): New code iterator.
12565 (split for ior/xor with shift and zero-extend): New split pattern.
12566 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12568 2009-07-15 Richard Guenther <rguenther@suse.de>
12570 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12573 2009-07-15 Richard Guenther <rguenther@suse.de>
12575 PR middle-end/40753
12576 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12578 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12580 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12581 handle 2.6.30 kernel.
12583 2009-07-15 DJ Delorie <dj@redhat.com>
12585 * config/mep/mep.md (sibcall_internal): Change register to allow
12586 for 24-bit addresses.
12587 (sibcall_value_internal): Likewise.
12589 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
12591 * doc/invoke.texi: Added descriptions of the scheduling heuristics
12592 that are enabled/disabled by the flags introduced by a previous patch.
12594 2009-07-14 DJ Delorie <dj@redhat.com>
12596 * config/mep/mep.md (sibcall_internal): Include non-toggling
12598 (sibcall_value_internal): Likewise.
12600 2009-07-14 Taras Glek <tglek@mozilla.com>
12601 Rafael Espindola <espindola@google.com>
12603 * doc/sourcebuild.texi: Document install-plugin target.
12604 * configure.ac: Added install-plugin target to language makefiles.
12605 * configure: Regenerate.
12606 * Makefile.in (install-plugin): Install more headers,
12607 depend on lang.install-plugin.
12609 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12611 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12614 2009-07-14 DJ Delorie <dj@redhat.com>
12616 * config/mep/mep.c (mep_vliw_jmp_match): New function.
12617 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12618 * config/mep/mep.md (sibcall_internal): Change test from
12619 mep_vliw_mode_match to mep_vliw_jmp_match.
12620 (sibcall_value_internal): Likewise.
12622 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
12624 * config/i386/sse.md (copysign<mode>3): New expander.
12625 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12626 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12627 Use ix86_build_const_vector.
12628 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12629 IX86_BUILTIN_CPYSGNPD.
12630 (builtin_description): Add __builtin_ia32_copysignps and
12631 __builtin_ia32_copysignpd.
12632 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12633 and BUILT_IN_COPYSIGNF.
12635 2009-07-13 Jason Merrill <jason@redhat.com>
12637 * builtins.c (can_trust_pointer_alignment): New fn.
12638 (get_pointer_alignment): Factor it out from here.
12639 * tree.h: Declare it.
12641 2009-07-14 David Edelsohn <edelsohn@gnu.org>
12643 * config/rs6000/predicates.md (offsettable_mem_operand): Test
12646 2009-07-14 Dodji Seketeli <dodji@redhat.com>
12650 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12652 2009-07-14 Richard Guenther <rguenther@suse.de>
12653 Andrey Belevantsev <abel@ispras.ru>
12655 PR middle-end/40745
12656 * cfgexpand.c (partition_stack_vars): Do not bother to update
12657 alias information when not optimizing.
12659 2009-07-14 Richard Guenther <rguenther@suse.de>
12660 Andrey Belevantsev <abel@ispras.ru>
12662 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12663 (pt_solution_set): Likewise.
12664 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12665 * tree-ssa-structalias.c (pt_solution_set): New function.
12666 * final.c (rest_of_clean_state): Free SSA data structures.
12667 * print-rtl.c (print_decl_name): Remove.
12668 (print_mem_expr): Implement in terms of print_generic_expr.
12669 * alias.c (ao_ref_from_mem): New function.
12670 (rtx_refs_may_alias_p): Likewise.
12671 (true_dependence): Query alias-export info.
12672 (canon_true_dependence): Likewise.
12673 (write_dependence_p): Likewise.
12674 * tree-dfa.c (get_ref_base_and_extent): For void types leave
12676 * emit-rtl.c (component_ref_for_mem_expr): Remove.
12677 (mem_expr_equal_p): Use operand_equal_p.
12678 (set_mem_attributes_minus_bitpos): Do not use
12679 component_ref_for_mem_expr.
12680 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12681 (update_alias_info_with_stack_vars): Likewise.
12682 (partition_stack_vars): Call update_alias_info_with_stack_vars.
12683 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12684 explicitly nor clear stmt operands.
12685 Free the decl-to-pointer map.
12686 * tree-optimize.c (execute_free_datastructures): Do not free
12687 SSA data structures here.
12688 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12689 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12690 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12692 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12694 2009-07-13 DJ Delorie <dj@redhat.com>
12696 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12697 unrolling at the right iteration count.
12699 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12702 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
12704 * haifa-sched.c (rank_for_schedule): Introduced flags to
12705 enable/disable individual scheduling heuristics.
12706 * common.opt: Introduced flags to enable/disable individual
12707 heuristics in the scheduler.
12708 * doc/invoke.texi: Introduced flags to enable/disable individual
12709 heuristics in the scheduler.
12711 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
12713 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12714 config/i386/mingw-tls.c.
12715 * config/i386/mingw-tls.c: Removed.
12717 2009-07-13 Ira Rosen <irar@il.ibm.com>
12719 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12720 checks access only relevant statements.
12721 (vectorizable_reduction): Likewise.
12723 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
12725 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12726 just for 32-bit case.
12728 2009-07-12 Jan Hubicka <jh@suse.cz>
12730 PR tree-optimization/40585
12731 * except.c (expand_resx_expr): When there already is resume
12732 instruction, produce linked list.
12733 (build_post_landing_pads): Assert that resume is empty.
12734 (connect_post_landing_pads): Handle resume lists.
12735 (dump_eh_tree): Dump resume list.
12737 2009-07-12 Ira Rosen <irar@il.ibm.com>
12739 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12740 with additional argument.
12741 * tree-vectorizer.h (enum vect_def_type): Add
12742 vect_double_reduction_def.
12743 (vect_is_simple_reduction): Add argument.
12744 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12746 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12747 vect_is_simple_reduction with additional argument.
12748 (vect_analyze_loop_operations): Handle exit phi nodes in case of
12750 (reduction_code_for_scalar_code): Handle additional codes by
12751 returning ERROR_MARK for them. Fix comment and indentation.
12752 (vect_is_simple_reduction): Fix comment, add argument to specify
12753 double reduction. Detect double reduction.
12754 (get_initial_def_for_induction): Fix indentation.
12755 (get_initial_def_for_reduction): Fix comment and indentation.
12756 Handle double reduction. Create initial definitions that do not
12757 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12758 (vect_create_epilog_for_reduction): Fix comment, add argument to
12759 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12760 epilogue result extraction. Create double reduction phi node and
12761 replace relevant uses.
12762 (vectorizable_reduction): Call vect_is_simple_reduction with
12763 additional argument. Fix indentation. Update epilogue code treatment
12764 according to the changes in reduction_code_for_scalar_code. Check
12765 for double reduction. Call vect_create_epilog_for_reduction with
12766 additional argument.
12767 * tree-vect-stmts.c (process_use): Handle double reduction, update
12769 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12770 (vect_get_vec_def_for_operand): Likewise.
12772 2009-07-12 Danny Smith <dansmister@gmail.com>
12774 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12775 dllexport if !TREE_PUBLIC.
12776 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12778 2009-07-11 Anatoly Sokolov <aesok@post.ru>
12780 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12781 (avr_extra_arch_macro) Remove declatation.
12782 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12783 (avr_extra_arch_macro) Declare as static.
12784 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12786 2009-07-11 Jan Hubicka <jh@suse.cz>
12788 PR middle-end/48388
12789 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12791 2009-07-11 Jakub Jelinek <jakub@redhat.com>
12794 * dwarf2out.c (dw_fde_struct): Add in_std_section and
12795 cold_in_std_section bits.
12796 (dwarf2out_begin_prologue): Initialize them.
12797 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12798 if already covered by text_section or cold_text_section range.
12800 PR rtl-optimization/40667
12801 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12802 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12803 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12804 * config/i386/i386.c (ix86_minimum_alignment): New function.
12805 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12806 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12807 * emit-rtl.c (gen_reg_rtx): Likewise.
12808 * function.c (assign_parms): Likewise. If nominal_type needs
12809 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12810 rather than passed_type's alignment.
12813 * function.c (assign_parm_setup_stack): Adjust
12814 MEM_OFFSET (data->stack_parm) if promoted_mode is different
12815 from nominal_mode on big endian.
12817 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
12819 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12821 2009-07-10 DJ Delorie <dj@redhat.com>
12823 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12825 2009-07-10 Mark Mitchell <mark@codesourcery.com>
12827 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12829 (thumb2_cbnz): Likewise.
12831 2009-07-10 David Daney <ddaney@caviumnetworks.com>
12834 * config.gcc (supported_defaults): Add synci.
12835 (with_synci): Add validation.
12836 (all_defaults): Add synci.
12837 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12840 * config/mips/mips.opt (msynci): New option.
12841 * config/mips/mips.c (mips_override_options): Warn on use of
12842 -msynci for targets that do now support it.
12843 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12845 * gcc/doc/invoke.texi (-msynci): Document the new option.
12846 * doc/install.texi (--with-synci): Document the new option.
12848 2009-07-10 Richard Guenther <rguenther@suse.de>
12850 PR tree-optimization/40496
12851 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12852 the PHI result with a compatible type.
12854 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
12858 * c.opt (Wunused-result): New.
12859 * doc/invoke.texi: Document it.
12860 * c-common.c (c_warn_unused_result): Use it.
12862 2009-07-09 DJ Delorie <dj@redhat.com>
12864 * targhooks.c (default_target_can_inline_p): Rename from
12865 default_target_option_can_inline_p.
12866 * targhooks.h (default_target_can_inline_p): Likewise.
12867 * target-def.h (TARGET_CAN_INLINE_P): Rename from
12868 TARGET_OPTION_CAN_INLINE_P.
12869 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12870 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12871 (mep_target_can_inline_p): Rename from
12872 mep_target_option_can_inline_p.
12875 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12876 registers used to pass vectors.
12878 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12880 2009-07-09 Tom Tromey <tromey@redhat.com>
12882 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12883 * config/mmix/mmix.c: Include dwarf2.h.
12884 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12885 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12886 * config/sh/sh.c: Include dwarf2.h.
12887 * config/i386/i386.c: Include dwarf2.h.
12888 * Makefile.in (DWARF2_H): Remove 'elf'.
12889 * except.c: Include dwarf2.h.
12890 * unwind-dw2.c: Include dwarf2.h.
12891 * dwarf2out.c: Include dwarf2.h.
12892 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12893 * unwind-dw2-fde.c: Include dwarf2.h.
12894 * dwarf2asm.c: Include dwarf2.h.
12896 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12898 * haifa-sched.c (insn_finishes_cycle_p): New static function.
12899 (max_issue): Use it.
12900 * sched-int.h (struct sched_info: insn_finishes_block_p): New
12902 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12903 (region_sched_info): Update.
12904 * sched-ebb.c (ebb_sched_info): Update.
12905 * modulo-sched.c (sms_sched_info): Update.
12906 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12908 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12910 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12912 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
12914 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12916 2009-07-09 Jakub Jelinek <jakub@redhat.com>
12918 PR middle-end/40692
12919 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12920 arg1 with arg01 if arg1 is already INTEGER_CST.
12922 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12924 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12925 Transform (and (truncate)) into (truncate (and)).
12927 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12929 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12930 creating LHS paradoxical subregs. Fix surrounding returns to
12931 use NULL_RTX rather than 0.
12933 2009-07-08 DJ Delorie <dj@redhat.com>
12935 * config/mep/mep.c (mep_option_can_inline_p): New.
12936 (TARGET_OPTION_CAN_INLINE_P): Define.
12938 2009-07-08 Mark Wielaard <mjw@redhat.com>
12941 * dwarf2out.c (add_data_member_location_attribute): When we have
12942 only a constant offset don't emit a new location description using
12943 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12946 2009-07-08 Richard Henderson <rth@redhat.com>
12949 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12950 (enum reg_class): Add CLOBBERED_REGS.
12951 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12952 * config/i386/i386.c (ix86_conditional_register_usage): Moved
12953 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12954 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
12955 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
12956 force 64-bit sibcalls into R11.
12957 * config/i386/constraints.md (U): New constraint.
12958 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12959 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12960 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12962 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
12964 * basic-block.h (dump_regset, debug_regset): Remove duplicate
12966 * c-objc-common.h (c_initialize_diagnostics): Ditto.
12967 * ebitmap.h (dump_ebitmap): Ditto.
12968 * optabs.h (optab_libfunc): Ditto.
12969 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12970 * tree-flow.h (vect_can_force_dr_alignment_p,
12971 get_vectype_for_scalar_type): Ditto.
12972 (vectorize_loops): Move prototype to ...
12973 * tree-vectorizer.h: ... here. Also, adjust comment.
12974 (vect_set_verbosity_level): Remove duplicate prototype.
12975 * tree-ssa-loop.c: Include tree-vectorizer.h.
12976 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12978 2009-07-08 Nick Clifton <nickc@redhat.com>
12980 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12983 2009-07-08 DJ Delorie <dj@redhat.com>
12985 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12986 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12987 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
12989 * config/mep/intrinsics.md: Regenerated.
12990 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12991 registers when asm() or calls are detected.
12993 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12996 * gimplify.c (gimplify_expr): Propagate no_warning flag when
12998 * gimple (gimple_build_call_from_tree): Likewise.
12999 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
13000 no_warning flag before warning.
13002 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
13004 * tree.c (set_expr_locus): Remove.
13005 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
13006 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
13008 * gimplify.c (internal_get_tmp_var): Likewise.
13009 (gimplify_call_expr): Likewise.
13010 (gimplify_one_sizepos): Likewise.
13012 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
13015 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
13016 to variables for debugging purposes.
13018 2009-06-23 Mark Loeser <mark@halcy0n.com>
13021 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
13023 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
13025 * pretty-print.c (pp_base_format): Remove %J.
13026 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
13027 gcc_cxxdiag_char_table): Likewise.
13028 (init_dynamic_diag_info): Likewise.
13030 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
13032 * pretty-print.c (pp_base_format): Remove %H.
13033 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
13034 gcc_cxxdiag_char_table): Likewise.
13035 (init_dynamic_diag_info): Likewise.
13036 * config/mep/mep.c (mep_select_section): Likewise.
13038 2009-07-07 Duncan Sands <baldrick@free.fr>
13040 * final.c (pass_clean_state): Give the pass a name.
13041 * passes.c (pass_rest_of_compilation): Likewise.
13042 * tree-optimize.c (pass_all_optimizations): Likewise.
13044 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
13046 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
13047 an extra 'decl' for error_at.
13049 2009-07-07 Jakub Jelinek <jakub@redhat.com>
13051 PR middle-end/40669
13052 * tree-tailcall.c (adjust_return_value_with_ops,
13053 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
13054 if it has complex or vector type.
13056 2009-07-07 Olivier Hainque <hainque@adacore.com>
13058 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
13061 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
13063 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
13065 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
13067 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
13068 * c-decl.c: Likewise.
13069 * function.c: Likewise.
13070 * varasm.c: Likewise.
13071 * tree-ssa.c: Likewise.
13072 * c-common.c: Likewise.
13073 * tree-cfg.c: Likewise.
13074 * config/spu/spu.c: Likewise.
13075 * config/ia64/ia64.c: Likewise.
13076 * config/v850/v850.c: Likewise.
13078 2009-07-06 DJ Delorie <dj@redhat.com>
13080 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
13081 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
13082 unspecified accesses to control registers.
13083 * config/mep/intrinsics.md: Regenerate.
13084 * config/mep/intrinsics.h: Regenerate.
13085 * config/mep/mep-intrin.h: Regenerate.
13087 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
13089 * c-lex.c: Replace %H by an explicit location. Update all calls.
13090 * c-common.c: Likewise.
13091 * c-decl.c: Likewise.
13092 * c-typeck.c: Likewise.
13093 * fold-const.c: Likewise.
13094 * gimplify.c: Likewise.
13095 * stmt.c: Likewise.
13096 * tree-cfg.c: Likewise.
13097 * tree-ssa-loop-niter.c: Likewise.
13098 * tree-vrp.c: Likewise.
13099 * value-prof.c: Likewise.
13101 2009-07-06 Diego Novillo <dnovillo@google.com>
13103 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
13104 if it has one. Handle cases where VAR does not have an
13105 annotation or cfun is NULL.
13107 2009-07-06 Diego Novillo <dnovillo@google.com>
13109 * tree.c: Include debug.h.
13110 (initialize_tree_contains_struct): New.
13111 (init_ttree): Call it.
13112 (tree_node_structure_for_code): Factor out of ...
13113 (tree_node_structure): ... here.
13114 * treestruct.def (TS_PHI_NODE): Remove.
13115 (TS_GIMPLE_STATEMENT): Remove.
13117 2009-07-06 Diego Novillo <dnovillo@google.com>
13119 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
13120 (debug_tree_chain): Handle cycles.
13122 2009-07-06 Nick Clifton <nickc@redhat.com>
13123 DJ Delorie <dj@redhat.com>
13125 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13126 __FMOVD_ENABLED__ is defined.
13128 (TARGET_FMOVD): Provide a default definition.
13129 (MASK_FMOVD): Likewise.
13130 (TARGET_CPU_CPP_BUILTINS): Define
13131 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13132 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13133 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
13134 (split for DF load from memory into register): Also handle
13135 MEMs which consist of REG+DISP addressing.
13136 (split for DF store from register to memory): Likewise.
13137 (movsf_ie): Always use single fp_mode.
13138 * config/sh/sh.c (sh_override_options): Do not automatically
13139 enable TARGET_MOVD for the SH2A when supporting doubles - leave
13140 that to the -mfmovd command line switch.
13141 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
13142 (fldi_ok): Always allow.
13143 * config/sh/sh.opt (mfmovd): Remove this switch.
13144 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13146 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
13147 Kaz Kojima <kkojima@gcc.gnu.org>
13149 PR rtl-optimization/30807
13150 * postreload.c (reload_combine): For every new use of REG_SUM,
13151 record the use of BASE.
13153 2009-07-06 Jan Hubicka <jh@suse.cz>
13155 * params.def: Revert my accidental commit at 2009-06-30.
13157 2009-07-04 Ian Lance Taylor <iant@google.com>
13160 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
13162 (mingw_format_attribute_overrides): Likewise.
13164 2009-07-04 Jakub Jelinek <jakub@redhat.com>
13167 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
13168 don't check cfa.reg. Instead of cfa.indirect use
13169 fde && fde->drap_reg != INVALID_REGNUM test.
13171 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
13173 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
13175 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
13178 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
13180 2009-07-03 Richard Guenther <rguenther@suse.de>
13182 PR tree-optimization/40640
13183 * tree-switch-conversion.c (build_arrays): Perform arithmetic
13186 2009-07-03 Jan Hubicka <jh@suse.cz>
13188 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
13189 for size, reduce amount of inlining.
13191 2009-07-03 Richard Guenther <rguenther@suse.de>
13193 PR middle-end/34163
13194 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
13195 if t +- x is known to not overflow and the conversion widens the
13197 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
13199 2009-07-03 Jan Hubicka <jh@suse.cz>
13201 * ipa-pure-const.c (analyze): Update loop optimizer init.
13202 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
13203 try_remove_empty_loop, remove_empty_loops): Remove.
13204 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
13205 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
13206 to mark regular loops as neccesary.
13207 (degenerate_phi_p): New function.
13208 (propagate_necessity, remove_dead_phis): Use it.
13209 (forward_edge_to_pdom): Likewise.
13210 (eliminate_unnecessary_stmts): Take care to remove uses of results of
13211 virtual PHI nodes that became unreachable.
13212 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
13213 * tree-flow.h (remove_empty_loops): Remove.
13214 * passes.c (init_optimization_passes): Remove.
13216 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
13218 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
13219 can_create_pseudo_p.
13220 (*fix_trunc<mode>_i387_1): Ditto.
13221 (*floathi<mode>2_1): Ditto.
13222 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
13223 (*fistdi2_1): Ditto.
13224 (*fist<mode>2_1): Ditto.
13225 (frndintxf2_floor): Ditto.
13226 (*fist<mode>2_floor_1): Ditto.
13227 (frndintxf2_ceil): Ditto.
13228 (*fist<mode>2_ceil_1): Ditto.
13229 (frndintxf2_trunc): Ditto.
13230 (frndintxf2_mask_pm): Ditto.
13231 (fxam<mode>2_i387_with_temp): Ditto.
13232 * config/i386/sse.md (mulv16qi3): Ditto.
13233 (*sse2_mulv4si3): Ditto.
13235 (sse4_2_pcmpestr): Ditto.
13236 (sse4_2_pcmpistr): Ditto.
13238 2009-07-03 Jan Hubicka <jh@suse.cz>
13240 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
13241 (mark_stmt_necessary): Set it.
13242 (mark_operand_necessary): Set it.
13243 (mark_control_dependent_edges_necessary): Set it.
13244 (mark_virtual_phi_result_for_renaming): New function.
13245 (get_live_post_dom): New function.
13246 (forward_edge_to_pdom): New function.
13247 (remove_dead_stmt): Fix handling of control dependences.
13248 (tree_dce_init): Init new bitmap.
13249 (tree_dce_done): Free it.
13251 2009-07-02 Richard Guenther <rguenther@suse.de>
13254 * tree-ssa-structalias.c (new_var_info): Initialize
13257 2009-07-02 Jan Hubicka <jh@suse.cz>
13259 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
13262 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
13264 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
13265 instead of recomputing it. Adjust calls.
13266 (emit_store_flag): Adjust recursive calls.
13268 2009-07-02 Richard Guenther <rguenther@suse.de>
13270 * tree-ssa-live.c (remove_unused_locals): Do not remove
13272 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
13273 of DECL_EXTERNAL for HEAP variables.
13274 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
13275 HEAP variables. Do not adjust RESTRICT vars.
13276 (find_what_var_points_to): Nobody cares if something
13277 points to READONLY.
13279 2009-07-02 Ben Elliston <bje@au.ibm.com>
13281 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
13282 pc_low and pc_high declarations to the top of the function.
13284 2009-07-01 DJ Delorie <dj@redhat.com>
13286 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
13287 registers as fixed.
13288 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
13289 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
13290 unspecified accesses to control registers.
13291 * config/mep/intrinsics.md: Regenerate.
13292 * config/mep/intrinsics.h: Regenerate.
13293 * config/mep/mep-intrin.h: Regenerate.
13295 2009-07-01 Anthony Green <green@moxielogic.com>
13297 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
13298 instruction when possible.
13299 (moxie_expand_prologue): Ditto. Also, save an instruction and
13300 some complexity by popping off of $r12 instead of $sp.
13301 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
13304 2009-07-01 Richard Henderson <rth@redhat.com>
13307 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
13308 contained no insns, reposition note before last insn.
13310 2009-07-01 Richard Henderson <rth@redhat.com>
13313 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
13314 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
13316 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13319 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
13320 darwin9 for printing reg addresses with %y.
13322 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
13324 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
13325 truncation from operands in binary operations.
13327 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
13330 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
13331 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
13332 subreg of op0 to the original op0.
13334 * expmed.c (store_bit_field_1): Use a temporary as the destination
13335 instead of a paradoxical subreg when we need to truncate the result.
13337 2009-07-01 DJ Delorie <dj@redhat.com>
13339 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
13340 names to VLIW variants.
13341 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
13342 * config/mep/intrinsics.md: Regenerate.
13343 * config/mep/intrinsics.h: Regenerate.
13344 * config/mep/mep-intrin.h: Regenerate.
13346 2009-07-01 Jakub Jelinek <jakub@redhat.com>
13349 * jump.c (returnjump_p): Revert last patch.
13350 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
13352 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13355 * pa.md (casesi32p): Use jump table label to determine the offset
13357 (casesi64p): Likewise.
13359 * pa.c (forward_branch_p): Return bool type. Use instruction
13360 addresses when available. Assert that INSN has a jump label.
13361 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
13364 2009-07-01 Richard Guenther <rguenther@suse.de>
13366 PR tree-optimization/19831
13367 * tree-ssa-dce.c (propagate_necessity): Calls to functions
13368 that only act as barriers do not make any previous stores necessary.
13369 * tree-ssa-structalias.c (handle_lhs_call): Delay making
13370 HEAP variables global, do not add a constraint from nonlocal.
13371 (find_func_aliases): Handle escapes through return statements.
13372 (compute_points_to_sets): Make escaped HEAP variables global.
13374 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
13377 * expmed.c (emit_store_flag): Perform a conversion if necessary,
13378 after reducing a DImode cstore to SImode.
13380 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
13382 * expr.c (expand_expr_real_1): Reinstate fallthrough to
13383 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
13385 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
13387 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
13388 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
13390 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
13391 and umod_optab if TARGET_BSD_DIVMOD.
13392 * config/vax/lib1funcs.asm: New file.
13393 * config/vax/t-linux: New file.
13394 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
13396 2009-06-30 Jakub Jelinek <jakub@redhat.com>
13399 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
13400 to type arguments that have void type.
13403 * dwarf2out.c (gen_formal_parameter_die): Call
13404 equate_decl_number_to_die if node is different from origin.
13406 2009-06-30 Anthony Green <green@moxielogic.com>
13408 Clean up moxie port for --enable-build-with-cxx.
13409 * config/moxie/moxie.c (moxie_function_value): First two
13410 parameters are const_tree, not tree.
13411 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
13412 (REG_CLASS_NAMES): Ditto.
13413 (REGNO_REG_CLASS): Ditto.
13414 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
13415 (moxie_function_value): Fix constyness of arguments.
13417 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
13419 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
13420 finalize_size_functions before further processing.
13421 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
13422 (variable_size): Call self_referential_size on size expressions
13423 that contain a PLACEHOLDER_EXPR.
13424 (size_functions): New static variable.
13425 (copy_self_referential_tree_r): New static function.
13426 (self_referential_size): Likewise.
13427 (finalize_size_functions): New global function.
13428 * tree.c: Include tree-inline.h.
13429 (push_without_duplicates): New static function.
13430 (find_placeholder_in_expr): New global function.
13431 (substitute_in_expr) <tcc_declaration>: Return the replacement object
13433 <tcc_expression>: Likewise.
13434 <tcc_vl_exp>: If the replacement object is a constant, try to inline
13435 the call in the expression.
13436 * tree.h (finalize_size_functions): Declare.
13437 (find_placeholder_in_expr): Likewise.
13438 (FIND_PLACEHOLDER_IN_EXPR): New macro.
13439 (substitute_placeholder_in_expr): Update comment.
13440 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
13442 (copy_tree_body_r): Likewise.
13443 (copy_tree_body): New static function.
13444 (maybe_inline_call_in_expr): New global function.
13445 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
13446 (maybe_inline_call_in_expr): Declare.
13447 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
13448 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
13451 2009-06-30 Richard Guenther <rguenther@suse.de>
13453 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
13455 (propagate_necessity): Do not mark reaching defs of stores
13458 2009-06-30 Jan Hubicka <jh@suse.cz>
13460 * cfgloopanal.c (check_irred): Move into ...
13461 (mark_irreducible_loops): ... here; return true if ireducible
13463 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
13464 (analyze_function): Try to prove loop finiteness.
13465 * cfgloop.h (mark_irreducible_loops): Update prototype.
13466 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
13468 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
13470 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
13472 2009-06-30 Ira Rosen <irar@il.ibm.com>
13474 PR tree-optimization/40542
13475 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
13478 2009-06-30 Martin Jambor <mjambor@suse.cz>
13480 PR tree-optimization/40582
13481 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
13482 than useless_type_conversion_p.
13483 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
13486 2009-06-30 Martin Jambor <mjambor@suse.cz>
13488 PR middle-end/40554
13489 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
13491 2009-06-30 Richard Guenther <rguenther@suse.de>
13493 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
13494 use ao_ref references.
13495 (walk_aliased_vdefs): Likewise.
13496 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
13497 * tree-ssa-dce.c (struct ref_data): Remove.
13498 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13499 (mark_aliased_reaching_defs_necessary): Adjust.
13500 (mark_all_reaching_defs_necessary_1): Likewise.
13502 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
13505 * expmed.c (emit_cstore): New name of emit_store_flag_1.
13506 (emit_store_flag_1): Extract from emit_store_flag, adjust
13507 calls to (what now is) emit_cstore.
13508 (emit_store_flag): Call emit_store_flag_1 and also use it
13509 for what used to be recursive calls.
13511 2009-06-30 Wei Guozhi <carrot@google.com>
13514 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13515 if the target bb post dominates from bb.
13516 * config/i386/i386.c (memory_address_length): Check existence of base
13517 register before using it.
13519 2009-06-30 Nick Clifton <nickc@redhat.com>
13520 DJ Delorie <dj@redhat.com>
13522 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13523 __FMOVD_ENABLED__ is defined.
13525 (TARGET_FMOVD): Provide a default definition.
13526 (MASK_FMOVD): Likewise.
13527 (TARGET_CPU_CPP_BUILTINS): Define
13528 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13529 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13530 two fmov instructions depending upon whether TARGET_FMOVD is
13532 (split for DF load from memory into register): Also handle
13533 MEMs which consist of REG+DISP addressing.
13534 (split for DF store from register to memory): Likewise.
13535 * config/sh/sh.opt (mfmovd): Remove this switch.
13536 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13537 * config/sh/sh.c (sh_override_options): Do not automatically
13538 enable TARGET_MOVD for the SH2A when supporting doubles - leave
13539 that to the -mfmovd command line switch.
13541 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13543 (fldi_ok): Always allow.
13544 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13546 2009-06-29 DJ Delorie <dj@redhat.com>
13548 * doc/install.texi (mep-x-elf): Correct chip's full name.
13550 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
13552 * doc/extend.texi: Fix typo.
13554 2009-06-29 Tom Tromey <tromey@redhat.com>
13556 * dwarf2.h: Remove.
13557 * Makefile.in (DWARF2_H): New variable.
13558 (except.o): Use it.
13559 (dwarf2out.o): Likewise.
13560 (dwarf2asm.o): Likewise.
13561 * config/i386/t-i386: Use DWARF2_H.
13562 * except.c: Include elf/dwarf2.h.
13563 * unwind-dw2.c: Include elf/dwarf2.h.
13564 * dwarf2out.c: Include elf/dwarf2.h.
13565 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13566 <dtprel>: New field.
13567 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13568 (size_of_loc_descr): Likewise.
13569 (output_loc_operands_raw): Likewise.
13570 (output_loc_operands): Handle new dtprel field.
13571 (loc_checksum): Update.
13572 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13573 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13574 * unwind-dw2-fde.c: Include elf/dwarf2.h.
13575 * dwarf2asm.c: Include elf/dwarf2.h.
13576 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13577 * config/mmix/mmix.c: Include elf/dwarf2.h.
13578 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13579 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13580 * config/sh/sh.c: Include elf/dwarf2.h.
13581 * config/i386/i386.c: Include elf/dwarf2.h.
13583 2009-06-29 DJ Delorie <dj@redhat.com>
13585 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13587 * doc/extend.texi: Add MeP attributes and pragmas.
13588 * doc/invoke.text: Add MeP Options.
13589 * doc/contrib.texi: Add MeP contribution.
13590 * doc/md.texi: Add MeP constraints.
13591 * doc/install.texi: Add MeP target.
13593 2009-06-30 Anatoly Sokolov <aesok@post.ru>
13595 * target.h (struct gcc_target): Add frame_pointer_required field.
13596 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13597 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13598 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13600 * reload1.c (update_eliminables): (Ditto.).
13601 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13602 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13603 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13605 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13607 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13608 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13609 (arm_frame_pointer_required): New function.
13611 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13612 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13613 (avr_frame_pointer_required_p): Declare as static.
13614 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13616 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13617 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13618 (bfin_frame_pointer_required): Make as static, change return type
13620 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13622 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13623 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13624 (cris_frame_pointer_required): New function.
13626 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13628 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13629 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13630 (fr30_frame_pointer_required): New function.
13632 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13633 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13634 (frv_frame_pointer_required): Make as static, change return type
13636 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13638 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13639 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13640 (ix86_frame_pointer_required): Make as static, change return type to
13642 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13644 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13645 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13647 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13649 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13651 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13653 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13654 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13655 (mips_frame_pointer_required): Make as static.
13656 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13658 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13659 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13660 (mmix_frame_pointer_required): Mew function.
13662 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13663 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13665 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13667 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13669 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13671 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13672 (CAN_ELIMINATE): Redefine.
13673 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13674 (sparc_frame_pointer_required): New function.
13675 (sparc_can_eliminate): New function.
13676 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13678 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13679 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13681 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13682 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13683 (xtensa_frame_pointer_required): Make as static, change return type
13685 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13688 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
13690 * doc/plugins.texi: Document PLUGIN_START_UNIT.
13691 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13692 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13693 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13694 (register_callback): Handle PLUGIN_START_UNIT.
13695 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13697 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
13699 * tree.c (process_call_operands): Propagate TREE_READONLY from the
13701 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13702 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13704 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
13706 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13709 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
13711 * doc/extend.texi (Additional Floating Types): __float128 is also
13712 supported on i386 targets.
13714 2009-06-29 Richard Guenther <rguenther@suse.de>
13716 PR middle-end/14187
13717 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13719 (pt_solutions_same_restrict_base): Declare.
13720 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13722 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13723 (make_constraint_from, make_copy_constraint): Move earlier.
13724 (make_constraint_from_heapvar): New function.
13725 (make_constraint_from_restrict): Likewise.
13726 (handle_lhs_call): Use it.
13727 (find_func_aliases): Use it to track conversions to restrict
13728 qualified pointers.
13729 (struct fieldoff): Add only_restrict_pointers flag.
13730 (push_fields_onto_fieldstack): Initialize it.
13731 (create_variable_info_for): Track global restrict qualified pointers.
13732 (intra_create_variable_infos): Use make_constraint_from_heapvar.
13733 Track restrict qualified pointer arguments.
13734 (set_uids_in_ptset): Use varinfo is_global_var flag.
13735 (find_what_var_points_to): Set the vars_contains_restrict flag.
13736 Always create the points-to solution for sets including restrict tags.
13737 (pt_solutions_same_restrict_base): New function.
13738 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13739 qualified pointers use pt_solutions_same_restrict_base as
13740 additional source for disambiguation.
13742 2009-06-29 Richard Guenther <rguenther@suse.de>
13744 PR middle-end/38212
13745 * alias.c (find_base_decl): Remove.
13746 (get_deref_alias_set_1): Remove restrict handling.
13747 * c-common.c (c_apply_type_quals_to_decl): Do not set
13748 DECL_POINTER_ALIAS_SET.
13749 * gimplify.c (find_single_pointer_decl_1): Remove.
13750 (find_single_pointer_decl): Likewise.
13751 (internal_get_tmp_var): Remove restrict handling.
13752 (gimple_regimplify_operands): Likewise.
13753 * omp-low.c (expand_omp_atomic_pipeline): Do not set
13754 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13755 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13756 * tree.c (restrict_base_for_decl): Remove.
13757 (init_ttree): Do not allocate it.
13758 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
13759 LABEL_DECL_UID for label decls.
13760 (copy_node_stat): Do not copy restrict information.
13761 (decl_restrict_base_lookup): Remove.
13762 (decl_restrict_base_insert): Likewise.
13763 (print_restrict_base_statistics): Likewise.
13764 (dump_tree_statistics): Do not call print_restrict_base_statistics.
13765 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13766 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13767 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13768 (LABEL_DECL_UID): Adjust.
13769 (DECL_BASED_ON_RESTRICT_P): Remove.
13770 (DECL_GET_RESTRICT_BASE): Likewise.
13771 (SET_DECL_RESTRICT_BASE): Likewise.
13772 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13774 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13775 instead of DECL_POINTER_ALIAS_SET.
13776 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13777 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13778 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13780 2009-06-29 Richard Guenther <rguenther@suse.de>
13782 PR tree-optimization/40579
13783 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13784 the IL to simplify has constants that overflowed.
13786 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
13788 PR tree-optimization/40550
13789 * tree-vect-generic.c (expand_vector_operations_1): Compute in
13790 vector_compute_type only when the size of vector_compute_type is
13791 less than the size of type.
13793 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
13795 * fold-const.c (contains_label_1): Fix comments.
13796 (contains_label_p): Do not walk trees multiple time.
13798 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13800 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13801 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13802 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13803 ix86_fp_comparison_operator.
13804 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13805 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13806 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13807 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13808 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13809 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13810 (related splits): Change predicate to ix86_fp_comparison_operator.
13811 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13812 instead of ix86_fp_comparison_codes.
13813 (ix86_trivial_fp_comparison_operator,
13814 ix86_fp_comparison_operator): New.
13815 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13816 (ix86_expand_compare): Eliminate last two parameters.
13817 (ix86_fp_jump_nontrivial_p): Kill.
13818 * config/i386/i386.c (put_condition_code): Eliminate call to
13819 ix86_fp_comparison_codes and subsequent assertion.
13820 (ix86_fp_comparison_codes): Eliminate.
13821 (ix86_fp_swap_condition): New.
13822 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13823 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13824 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13825 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13826 and ix86_fp_swap_condition.
13827 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13828 Use ix86_fp_comparison_strategy.
13829 (ix86_expand_compare): Likewise. Eliminate last two arguments.
13830 (ix86_fp_jump_nontrivial_p): Eliminate.
13831 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
13832 call to ix86_expand_compare.
13833 (ix86_split_fp_branch, ix86_expand_setcc,
13834 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13835 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13837 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13839 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13840 related to jump_clobbers.
13841 * config/arm/arm.md (conds): Remove jump_clob case.
13842 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13843 splits): Change comparison_operator to arm_comparison_operator.
13844 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13847 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13849 * dojump.c (do_compare_rtx_and_jump): Try swapping the
13850 condition for floating point modes.
13851 * expmed.c (emit_store_flag_1): Move here a bigger part
13852 of emit_store_flag.
13853 (emit_store_flag): Try swapping the condition for floating point
13855 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13857 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13859 * expr.c (expand_expr_real_1): Just use do_store_flag.
13860 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
13861 emit_store_flag_force.
13862 * expmed.c (emit_store_flag_force): Copy here trick
13863 previously in expand_expr_real_1. Try reversing the comparison.
13864 (emit_store_flag_1): Work if target is NULL.
13865 (emit_store_flag): Work if target is NULL, using the result mode
13866 from the comparison. Use split_comparison, restructure final part
13867 to simplify conditionals.
13869 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13871 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13872 * dojump.c (do_jump): Change handling of floating-point
13873 ops to use just do_compare_and_jump.
13874 (split_comparison): New.
13875 (do_compare_rtx_and_jump): Add here logic coming previously
13876 in do_jump, using split_comparison.
13878 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
13881 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13883 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13885 * tree-ssa-alias.c: Fix unintentional commit.
13887 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13889 * passes.c (execute_one_pass): Fix unintentional commit.
13891 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13893 * df-problems.c (df_set_seen, df_unset_seen): Delete.
13894 (df_rd_local_compute, df_md_local_compute): Inline them.
13896 (df_md_scratch): New.
13897 (df_md_alloc, df_md_free): Allocate/free it.
13898 (df_md_local_compute): Only include live registers in init.
13899 (df_md_transfer_function): Prune the in-set computed by
13900 the confluence function, and the gen-set too.
13902 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13904 PR rtl-optimization/26854
13905 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13906 * df-problems.c (df_rd_add_problem): Fix comment.
13907 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13908 df_md_simulate_artificial_defs_at_top,
13909 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13910 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13911 df_md_transfer_function, df_md_init, df_md_confluence_0,
13912 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13913 problem_MD, df_md_add_problem): New.
13914 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13915 df_md_get_bb_info): New.
13916 (DF_LAST_PROBLEM_PLUS1): Adjust.
13918 * Makefile.in (fwprop.o): Include domwalk.h.
13919 * fwprop.c: Include domwalk.h.
13920 (reg_defs, reg_defs_stack): New.
13921 (bitmap_only_bit_between): Remove.
13922 (process_defs): New.
13923 (process_uses): Use reg_defs and local_md instead of
13924 bitmap_only_bit_between and local_rd.
13925 (single_def_use_enter_block): New, from build_single_def_use_links.
13926 (single_def_use_leave_block): New.
13927 (build_single_def_use_links): Remove code moved to
13928 single_def_use_enter_block, invoke domwalk.
13929 (use_killed_between): Adjust comment.
13931 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13933 * bitmap.h (bitmap_ior_and_into): New.
13934 * bitmap.c (bitmap_ior_and_into): New.
13936 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13938 * domwalk.h (struct dom_walk_data): Remove all callbacks except
13939 before_dom_children_before_stmts and after_dom_children_after_stmts.
13940 Rename the two remaining callbacks to just before_dom_children and
13941 after_dom_children. Remove other GIMPLE statement walking bits.
13942 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13943 * graphite.c: Do not include domwalk.h.
13944 * tree-into-ssa.c (interesting_blocks): New global.
13945 (struct mark_def_sites_global_data): Remove it and names_to_rename.
13946 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13947 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13948 now that they're not domwalk callbacks.
13949 (rewrite_initialize_block): Rename to...
13950 (rewrite_enter_block): ... this, place after called functions. Test
13951 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13952 (rewrite_finalize_block): Rename to...
13953 (rewrite_leave_block): ... this, place after called functions.
13954 (rewrite_update_init_block): Rename to...
13955 (rewrite_update_enter_block): ... this, place after called functions.
13956 Test interesting_blocks, call rewrite_update_stmt and
13957 rewrite_update_phi_arguments.
13958 (rewrite_update_fini_block): Rename to...
13959 (rewrite_leave_block): ... this, place after called functions.
13960 (rewrite_blocks): Remove last argument, simplify initialization of
13962 (mark_def_sites_initialize_block): Rename to...
13963 (mark_def_sites_block): ... this, call mark_def_sites.
13964 (mark_def_sites_blocks): Remove argument, simplify initialization of
13966 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13967 (update_ssa): Likewise.
13968 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13970 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13971 (dom_opt_initialize_block): Rename to...
13972 (dom_opt_enter_block): ... this, place after called functions. Walk
13973 statements here, inline propagate_to_outgoing_edges.
13974 (dom_opt_finalize_block): Rename to...
13975 (dom_opt_leave_block): ... this, place after called functions.
13976 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13978 (dse_enter_block, dse_record_phi): New.
13979 (dse_record_phis): Delete.
13980 (dse_finalize_block): Rename to...
13981 (dse_leave_block): ... this.
13982 (tree_ssa_dse): Simplify initialization of walk_data.
13983 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13984 Adjust initialization of walk_data.
13985 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13986 * tree-ssa-loop-phiopt.c (get_non_trapping):
13987 Adjust initialization of walk_data.
13988 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13989 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13990 it's not a domwalk callback.
13991 (uncprop_initialize_block): Rename to...
13992 (dse_enter_block): ... this, call uncprop_into_successor_phis.
13993 (dse_finalize_block): Rename to...
13994 (dse_leave_block): ... this.
13995 (tree_ssa_uncprop): Simplify initialization of walk_data.
13996 * Makefile.in: Adjust dependencies.
13998 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
14000 * arm.md (casesi): Fix test for Thumb1.
14001 (thumb1_casesi_internal_pic): Likewise.
14002 (thumb1_casesi_dispatch): Likewise.
14004 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
14006 * config/arm/arm-cores.def: Added core cortex-m0.
14007 * config/arm/arm-tune.md: Regenerated.
14008 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
14010 2009-06-26 DJ Delorie <dj@redhat.com>
14012 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
14014 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
14015 the scheduler doesn't tag jump insns.
14017 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
14019 * c-decl.c (merge_decls): Re-indent.
14021 2009-06-26 Janis Johnson <janis187@us.ibm.com>
14024 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
14025 Special-case decimal float constants.
14027 2009-06-26 Richard Henderson <rth@redhat.com>
14029 * function.h (struct function): Add cannot_be_copied_reason,
14030 and cannot_be_copied_set.
14031 * tree-inline.c (has_label_address_in_static_1): Rename from
14032 inline_forbidden_p_2; don't set inline_forbidden_reason here.
14033 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
14034 don't set inline_forbidden_reason.
14035 (copy_forbidden): New function, split out of inline_forbidden_p.
14036 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
14037 (inline_forbidden_p): Use copy_forbidden.
14038 (tree_versionable_function_p): Likewise.
14039 (inlinable_function_p): Merge into tree_inlinable_function_p.
14040 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
14041 * ipa-cp.c (ipcp_versionable_function_p): New function.
14042 (ipcp_cloning_candidate_p): Use it.
14043 (ipcp_node_modifiable_p): Likewise.
14045 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
14047 * builtins.c (expand_builtin_alloca): Handle builtin alloca
14048 that is marked not to be inlined. Remove flag_mudflap use.
14049 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
14050 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
14052 2009-06-26 Steve Ellcey <sje@cup.hp.com>
14055 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
14056 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
14058 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
14060 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
14062 (__mingwthr_remove_key_dtor): Likewise.
14064 2009-06-26 Richard Guenther <rguenther@suse.de>
14066 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
14068 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
14070 PR middle-end/40525
14071 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
14072 try the non-cond_exec path also.
14074 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14077 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
14078 (output_cbranch): Use new functions.
14079 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
14082 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
14083 Pat Haugen <pthaugen@us.ibm.com>
14084 Revital Eres <ERES@il.ibm.com>
14086 * config/rs6000/rs6000.c (print_operand): Correct lossage message
14087 for %c error. Add %x support to print VSX registers as a unified
14088 register set, instead of separate float and altivec registers.
14089 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
14090 %y case, and add support for VSX pre-modify addresses.
14091 (output_toc): Add assert for CONST containing an integer constant
14093 (rs6000_adjust_cost): Add POWER7 support.
14094 (insn_must_be_first_in_group): Ditto.
14095 (insn_must_be_last_in_group): Ditto.
14096 (rs6000_emit_popcount): Ditto.
14097 (rs6000_vector_mode_supported_p): Ditto.
14099 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
14100 Change some of the functions called by macros to being called
14101 through a pointer, so debug functions can be inserted if
14102 -mdebug=addr or -mdebug=cost.
14103 (rs6000_preferred_reload_class_ptr): Ditto.
14104 (rs6000_secondary_reload_class_ptr): Ditto.
14105 (rs6000_secondary_memory_needed_ptr): Ditto.
14106 (rs6000_cannot_change_mode_class_ptr): Ditto.
14107 (rs6000_secondary_reload_inner): Ditto.
14108 (rs6000_legitimize_reload_address): Ditto.
14109 (rs6000_legitimize_reload_address_ptr): Ditto.
14110 (rs6000_mode_dependent_address): Ditto.
14111 (rs6000_mode_dependent_address_ptr): Ditto.
14113 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
14114 function to return true if the mode allows reg + integer
14116 (virtual_stack_registers_memory_p): New function to return true if
14117 the address refers to a virtual stack register.
14118 (rs6000_legitimate_offset_address_p): Move code to say whether a
14119 mode supports reg+int addressing to reg_offset_addressing_ok_p and
14121 (rs6000_legitimate_address_p): Add checks for modes that only can
14122 do reg+reg addressing. Start adding VSX support.
14123 (rs6000_legitimize_reload_address): Ditto.
14124 (rs6000_legitimize_address): Ditto.
14125 (rs6000_debug_legitimate_address_p): New debug functions for
14126 -mdebug=addr and -mdebug=cost.
14127 (rs6000_debug_rtx_costs): Ditto.
14128 (rs6000_debug_address_costs): Ditto.
14129 (rs6000_debug_adjust_cost): Ditto.
14130 (rs6000_debug_legitimize_address): Ditto.
14131 (rs6000_legitimize_reload_address_ptr): Point to call normal
14132 function or debug function. Make functions called via pointer
14134 (rs6000_mode_dependent_address_ptr): Ditto.
14135 (rs6000_secondary_reload_class_ptr): Ditto.
14136 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
14137 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
14138 into a friendlier error.
14139 (rs6000_init_builtins): Add initial VSX support.
14140 (rs6000_adjust_cost): Fix some spacing issues.
14142 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
14143 (REG_CLASS_NAMES): Ditto.
14144 (REG_CLASS_CONTENTS): Ditto.
14145 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
14146 pointer, to add -mdebug=addr support.
14147 (CANNOT_CHANGE_MODE_CLASS): Ditto.
14148 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
14149 -mdebug=addr support.
14150 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
14151 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
14152 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
14154 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
14156 (bswapsi*): Set attribute types for load/store. Add combiner
14157 patterns to eliminate zero extend on 64-bit.
14158 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
14159 stdbrx if the hardware supports those instructions.
14161 2009-06-25 Ian Lance Taylor <iant@google.com>
14163 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
14164 (Link Options): Document -static-libstdc++.
14166 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
14169 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
14170 DATA_ALIGNMENT instead.
14172 2009-06-25 Richard Guenther <rguenther@suse.de>
14174 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
14175 indirect references against the callused/escaped solutions.
14176 (call_may_clobber_ref_p_1): Likewise.
14178 2009-06-25 Martin Jambor <mjambor@suse.cz>
14180 PR tree-optimization/40493
14181 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
14182 (enum unscalarized_data_handling): New type.
14183 (handle_unscalarized_data_in_subtree): Return what has been done.
14184 (load_assign_lhs_subreplacements): Handle left flushes differently.
14185 (sra_modify_assign): Use unscalarized_data_handling, simplified
14186 condition determining whether to remove the statement.
14188 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
14190 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
14191 excerpt - @ should be doubled for texinfo.
14193 2009-06-24 Ian Lance Taylor <iant@google.com>
14195 * config/arc/arc.c: Include "df.h".
14196 (arc_attribute_table): Make static. Move higher in file.
14197 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
14198 (output_shift): Initialize n later to avoid warning.
14199 * config/arm/arm.c (arm_attribute_table): Make static. Move
14201 * config/avr/avr.c (avr_attribute_table): Make static. Move
14203 (reg_class_tab): Change array type from int to enum reg_class.
14204 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
14206 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
14207 (lshrhi3_out): Likewise.
14208 (class_likely_spilled_p): Change return type to bool.
14209 (avr_rtx_costs): Use local code variable with enum type.
14210 * config/avr/avr.md (movmemhi): Use add_reg_note.
14211 (andhi3, andsi3): Don't use AS2 with "and".
14212 (iorhi3, iorsi3): Don't use AS2 with "or".
14213 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
14214 * config/crx/crx.c: Include "df.h".
14215 (crx_attribute_table): Make static.
14216 * config/m32r/m32r.c: Include "df.h".
14217 (m32r_attribute_table): Make static. Move higher in file.
14218 (pop): Use add_reg_note.
14219 (block_move_call): Change 0 to LCT_NORMAL in function call.
14220 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
14221 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
14222 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
14223 declare, not just when TREE_CODE is defined.
14224 * config/m68hc11/m68hc11.c: Include "expr.h".
14225 (m68hc11_attribute_table): Make static. Move higher in file.
14226 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
14228 (m68hc11_register_indirect_p): Likewise.
14229 (m68hc11_function_arg_padding): Change return type to enum
14231 (emit_move_after_reload): Use add_reg_note.
14232 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
14233 (m68hc11_split_logical): Likewise.
14234 (m68hc11_rtx_costs): Add local code_and outer_code variables with
14236 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
14237 to VOIDmode in function call.
14238 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
14240 (m68hc11_split_logical): Update declaration.
14241 (m68hc11_function_arg_padding): Update declaration.
14242 * config/mcore/mcore.c (regno_reg_class): Change form array of int
14243 to array of enum reg_class.
14244 (mcore_attribute_table): Make static. Move higher in file.
14245 (mcore_rtx_costs): Add cast to enum type.
14246 * config/mcore/mcore.h (regno_reg_class): Update declaration.
14247 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
14248 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
14250 * config/sh/predicates.md (trapping_target_operand): Rename and to
14252 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
14254 * config/spu/spu.c (spu_attribute_table): Make static. Move
14256 * config/v850/v850.c (v850_attribute_table): Make static. Move
14258 (v850_rtx_costs): Use local code with enum type.
14259 (expand_epilogue): Add cast.
14260 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
14262 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
14265 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
14266 -m2a-single-only and -m2a-nofpu.
14267 * config/sh/sh.opt: Document m2a generates FPU code.
14269 2009-06-24 Anatoly Sokolov <aesok@post.ru>
14271 * defaults.h (CAN_ELIMINATE): Provide default.
14272 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
14273 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
14274 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
14275 * config/spu/spu.h (CAN_ELIMINATE): Delete.
14276 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
14277 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
14278 * config/cris/cris.h (CAN_ELIMINATE): Delete.
14279 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
14280 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
14281 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
14283 2009-06-24 DJ Delorie <dj@redhat.com>
14285 * mep-ext-cop.cpu: Fix copyright notice.
14286 * mep-default: Fix copyright notice.
14287 * mep-core: Fix copyright notice.
14288 * mep: Fix copyright notice.
14289 * mep-ivc2: Fix copyright notice.
14290 * mep-c5: Fix copyright notice.
14292 2009-06-24 Denis Chertykov <chertykov@gmail.com>
14294 * doc/contrib.texi (Contributors):
14296 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
14298 PR middle-end/40501
14299 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
14300 src and dst operands if necessary.
14302 2009-06-23 DJ Delorie <dj@redhat.com>
14305 * config.gcc: Add mep support.
14306 * recog.c: Resurrect validate_replace_rtx_subexp().
14307 * recog.h: Likewise.
14308 * config/mep/: Add new port:
14309 * config/mep/constraints.md: New file.
14310 * config/mep/default.h: New file.
14311 * config/mep/intrinsics.h: New file.
14312 * config/mep/intrinsics.md: New file.
14313 * config/mep/ivc2-template.h: New file.
14314 * config/mep/mep-c5.cpu: New file.
14315 * config/mep/mep-core.cpu: New file.
14316 * config/mep/mep-default.cpu: New file.
14317 * config/mep/mep-ext-cop.cpu: New file.
14318 * config/mep/mep-intrin.h: New file.
14319 * config/mep/mep-ivc2.cpu: New file.
14320 * config/mep/mep-lib1.asm: New file.
14321 * config/mep/mep-lib2.c: New file.
14322 * config/mep/mep-pragma.c: New file.
14323 * config/mep/mep-protos.h: New file.
14324 * config/mep/mep-tramp.c: New file.
14325 * config/mep/mep.c: New file.
14326 * config/mep/mep.cpu: New file.
14327 * config/mep/mep.h: New file.
14328 * config/mep/mep.md: New file.
14329 * config/mep/mep.opt: New file.
14330 * config/mep/predicates.md: New file.
14331 * config/mep/t-mep: New file.
14333 2009-06-23 Ian Lance Taylor <iant@google.com>
14335 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
14336 from loose_warn into c_loose_warn and from strict_warn into
14337 c_strict_warn. Set and substitute warn_cxxflags. Check for
14338 --enable-build-with-cxx. Set and substitute
14339 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
14340 * Makefile.in (CXXFLAGS): New variable.
14341 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
14342 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
14343 the default is the same as $(STRICT_WARN).
14344 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
14345 (CXX): New variable.
14346 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
14347 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
14348 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
14349 (HOST_LIBS): New variable.
14350 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
14351 (ALL_CXXFLAGS): New variable.
14352 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
14353 * doc/install.texi (Configuration): Document
14354 --enable-build-with-cxx, --with-stage1-ldflags,
14355 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
14356 * configure: Rebuild.
14358 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14360 * config/arm/arm.c (arm_override_options): Fix braces and formatting
14361 from previous commit.
14363 2009-06-23 Ian Lance Taylor <iant@google.com>
14365 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
14367 2009-06-23 Ian Lance Taylor <iant@google.com>
14369 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
14370 with ATTRIBUTE_UNUSED.
14372 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14373 Pat Haugen <pthaugen@us.ibm.com>
14374 Revital Eres <eres@il.ibm.com>
14376 * config.in (HAVE_AS_POPCNTD): Add default definition.
14377 (HAVE_AS_LWSYNC): Ditto.
14379 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
14381 (gcc_cv_as_powerpc_cmpb): Ditto.
14382 (gcc_cv_as_powerpc_dfp): Ditto.
14383 (gcc_cv_as_powerpc_vsx): Ditto.
14384 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
14385 supporting the popcntd/lwsync instructions.
14386 (gcc_cv_as_powerpc_lwsync): Ditto.
14387 * configure: Regenerate.
14389 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
14390 -mcpu=native and -mcpu=power7.
14391 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
14393 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
14394 a variable instead of a mask to reduce the number of mask bits.
14395 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
14396 (-mbit-word): Ditto.
14397 (-mregnames): Ditto.
14398 * config/rs6000/rs6000.opt (-mupdate): Ditto.
14399 (-mfused-madd): Ditto.
14401 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
14403 (-mvsx): New switch for VSX instructions.
14404 (-misel): Move from a variable to a mask to allow it to be set by
14407 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
14408 function declaration to an array declaration.
14409 (rs6000_hard_regno_nregs): New external array declaration.
14411 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
14412 files included by rs6000.md.
14414 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14415 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
14417 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
14419 (rs6000_debug_reg): New -mdebug= variables.
14420 (rs6000_debug_addr): Ditto.
14421 (rs6000_debug_cost): Ditto.
14422 (rs6000_pmode): New variable to hold Pmode.
14423 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
14424 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
14425 calculated at compiler start.
14426 (rs6000_hard_regno_nregs): Change function to an array which holds
14427 HARD_REGNO_NREGS calculated at compiler start.
14428 (rs6000_explicit_options): Delete isel field.
14429 (rs6000_vector_unit): New array to hold which vector unit
14430 supports arithmetic options for a given type.
14431 (rs6000_vector_mem): New array to hold which vector unit supports
14432 memory reference operations for a given type.
14433 (rs6000_vector_align): New array to given the alignment of each
14435 (power7_cost): New basic costs for power7.
14436 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
14437 (rs6000_hard_regno_nregs_internal): New function, moved from
14438 HARD_REGNO_NREGS, to calculate the number of registers each hard
14439 register takes for each type.
14440 (rs6000_debug_reg_print): New function for -mdebug=reg support.
14441 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
14442 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
14443 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
14444 unit information here so it is calculated once at compiler startup
14446 (rs6000_override_options): Make -misel a target mask. Add more
14447 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
14448 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
14450 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
14451 (rs6000_handle_option): Move -misel from variable to target mask.
14452 (rs6000_builtin_mask_for_load): Add VSX support.
14453 (rs6000_conditional_register_usage): Ditto.
14454 (USE_ALTIVEC_FOR_ARG_P): Ditto.
14455 (function_arg_boundary): Ditto.
14456 (rs6000_expand_builtin): Ditto.
14457 (def_builtin): Make abort message a little friendlier.
14458 (rs6000_emit_int_cmove): Add support for 64-bit isel.
14460 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
14461 assembler support the popcntd instruction instead of a vsx
14462 instruction to enable power7 support.
14463 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
14464 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
14465 option to the assembler if -mcpu=native.
14466 (ASM_CPU_NATIVE_SPEC): Ditto.
14467 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
14469 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
14470 the lwsync instruction.
14471 (enum processor_type): Add PROCESSOR_POWER7.
14472 (rs6000_debug_reg): New -mdebug= options.
14473 (rs6000_debug_addr): Ditto.
14474 (rs6000_debug_cost): Ditto.
14475 (rs6000_isel): Delete.
14476 (enum rs6000_vector): New enum to say what vector unit we have.
14477 (VECTOR_UNIT_*): New macros to say which vector unit has
14478 arithmetic operations for a given type.
14479 (VECTOR_MEM_*): New macros to say which vector unit has memory
14480 operations for a given type.
14481 (TARGET_LDBRX): Whether the machine supports the ldbrx
14483 (TARGET_ISEL): Delete, -misel moved to be a mask.
14484 (TARGET_ISEL64): New macro for 64-bit isel support.
14485 (UNITS_PER_VSX_WORD): New macro.
14486 (POINTER_SIZE): Move to be an external variable, rather than
14487 calculating whether we are generating 32 ot 64-bit code.
14489 (STACK_BOUNDARY): Add VSX support.
14490 (LOCAL_ALIGNMENT): Ditto.
14491 (SLOW_UNALIGNED_ACCESS): Ditto.
14492 (VSX_REGNO_P): New macro for VSX support.
14493 (VFLOAT_REGNO_P): Ditto.
14494 (VINT_REGNO_P): Ditto.
14495 (VLOGICAL_REGNO_P): Ditto.
14496 (VSX_VECTOR_MODE): Ditto.
14497 (VSX_SCALAR_MODE): Ditto.
14499 (VSX_MOVE_MODE): Ditto.
14500 (VSX_REG_CLASS_P): Ditto.
14501 (HARD_REGNO_NREGS): Instead of calling a function, use an array
14503 (UNITS_PER_SIMD_WORD): Add VSX support.
14504 (MODES_TIEABLE_P): Ditto.
14505 (STARTING_FRAME_OFFSET): Ditto.
14506 (STACK_DYNAMIC_OFFSET): Ditto.
14507 (EPILOGUE_USES): Ditto.
14508 (REGNO_REG_CLASS): Move to array lookup.
14509 (CLASS_MAX_NREGS): Ditto.
14510 (rs6000_vector_reg_class): Add declaration.
14511 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14512 overlap with the floating point and Altivec registers.
14514 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14516 * config/rs6000/driver-rs6000.c (asm_names): New static array to
14517 give the appropriate asm switches if -mcpu=native.
14518 (host_detect_local_cpu): Add support for "asm".
14519 (host_detect_local_cpu): Follow GNU code guidelines for name.
14521 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14522 -mbit-word to a variable instead of being a target mask.
14524 * config/rs6000/sync.md (lwsync): If the assembler supports it,
14525 emit the lwsync instruction instead of emitting the instruction as
14526 an integer constant.
14528 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14529 fixuns_trundfsi2, move expander into rs6000.md.
14531 * config/rs6000/rs6000.md (cpu): Add power7.
14532 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14533 (logical predicate patterns): Change the single instruction
14534 primitives that set CR0 to be fast_compare instead of compare.
14536 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14537 (popcntddi2): Ditto.
14538 (popcount<mode>): Ditto.
14539 (floating multiply/add insns): Name the floating point
14540 multiply/add insns.
14541 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14542 (isel_unsigned_<mode>): Ditto.
14543 (fixuns_trundfsi2): Move expander here from spe.md.
14544 (smindi3): Define if we have -misel on 64-bit systems.
14549 2009-06-23 Anatoly Sokolov <aesok@post.ru>
14551 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14553 * config/avr/avr.c (avr_current_device): New variable.
14554 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14555 (avr_arch, mcu_type_s): Move to avr.h.
14556 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14557 default_data_section_start fields.
14558 (avr_arch): Moved from avr.c.
14559 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14560 library_name fields.
14561 (avr_current_device, avr_mcu_types, avr_arch_types,
14562 avr_device_to_arch, avr_device_to_data_start,
14563 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14564 (EXTRA_SPEC_FUNCTIONS): Define.
14565 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14566 options mapping. Use device_to_arch and device_to_data_start insted.
14567 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14568 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14569 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14570 * config/avr/driver-avr.c: New file.
14571 * config/avr/avr-devices.c: New file.
14573 2009-06-23 Jakub Jelinek <jakub@redhat.com>
14575 * var-tracking.c (unshare_variable): Force initialized to
14576 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14577 (set_variable_part): Likewise.
14578 (struct variable_union_info): Remove pos_src field.
14579 (vui_vec, vui_allocated): New variables.
14580 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14581 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
14582 == 1 use a simpler sorting algorithm. Compute pos field right
14583 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
14584 Avoid quadratic comparison if !flag_var_tracking_uninit.
14585 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14586 unshare_variable unconditionally.
14587 (dataflow_set_different_2): Removed.
14588 (dataflow_set_different): Don't traverse second hash table.
14589 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14590 unconditionally to var_reg_set or var_mem_set.
14591 (emit_notes_in_bb): Likewise.
14592 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14594 (emit_note_insn_var_location): Don't set initialized to
14595 VAR_INIT_STATUS_INITIALIZED early.
14596 (vt_finalize): Free vui_vec if needed, clear vui_vec and
14598 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14600 * tree-object-size.c (addr_object_size): Instead of checking
14601 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14602 are no FIELD_DECLs following it.
14604 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
14606 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14607 order to match bswaps with signed source operands.
14609 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14611 * sdbout.c (sdbout_one_type): Fix braces in switch.
14613 2009-06-23 Richard Guenther <rguenther@suse.de>
14615 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14617 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14618 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14619 var_callused, callused_tree, var_storedanything, storedanything_tree,
14620 var_integer, integer_tree): Remove global variables.
14621 (new_var_info): Do not pass new id, append the new var to the
14622 global variable vector.
14623 (do_ds_constraint): Use is_global_var member of the variable-info.
14624 (new_scalar_tmp_constraint_exp): Adjust.
14625 (create_function_info_for): Likewise.
14626 (create_variable_info_for): Likewise.
14627 (find_what_var_points_to): Remove dead code.
14628 (init_base_vars): Simplify.
14629 (compute_points_to_sets): Adjust.
14631 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14633 * combine.c (try_combine): Dump information about the insns we're
14636 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14638 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14639 check when calling force_to_mode on TRUNCATE's operand.
14641 2009-06-22 Ian Lance Taylor <iant@google.com>
14643 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14645 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14647 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14649 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14651 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14652 override library linkage flags such as -static-libgcc or
14655 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14657 * config/m68k/m68k-devices.def: Add line for MCF5221x.
14659 2009-06-22 Ian Lance Taylor <iant@google.com>
14661 * config/linux.opt: Put mglibc ahead of muclibc.
14663 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14664 for duplicate decls.
14666 2009-06-22 Matthias Klose <doko@ubuntu.com>
14668 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14670 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14673 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14674 instead of NULL if a parser error occurs.
14676 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14678 * dwarf2out.c (dwarf2_debug_hooks): Initialize
14679 non-DWARF2_DEBUGGING_INFO version.
14681 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
14683 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14684 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14686 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14687 (LIBGCC2_TF_CEXT): Define.
14690 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14693 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14695 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14697 * config/arm/arm.c (arm_override_options): Disable
14698 -mcaller-super-interworking and -mcallee-super-interworking.
14699 * doc/invoke.texi (ARM Options): Document this.
14701 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
14703 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14704 * config/arm/constraints.md (j): New constraint for movw operands.
14705 (N): Remove thumb2 meaning.
14706 * config/arm/arm.md (*arm_movw): Delete.
14707 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14708 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14709 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14711 2009-06-22 Martin Jambor <mjambor@suse.cz>
14713 PR tree-optimization/40492
14714 * tree-sra.c (sra_modify_assign): Pass zero offsets to
14715 build_ref_for_offset.
14717 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
14719 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14720 JUMP_TABLE_DATA_P predicates where applicable.
14721 * auto-inc-dec.c: Ditto.
14722 * builtins.c: Ditto.
14723 * caller-save.c: Ditto.
14725 * cfgcleanup.c: Ditto.
14726 * cfglayout.c: Ditto.
14728 * combine.c: Ditto.
14729 * combine-stack-adj.c: Ditto.
14733 * df-scan.c: Ditto.
14735 * dwarf2asm.c: Ditto.
14736 * dwarf2out.c: Ditto.
14737 * emit-rtl.c: Ditto.
14743 * function.c: Ditto.
14746 * genpreds.c: Ditto.
14747 * genrecog.c: Ditto.
14749 * ira-costs.c: Ditto.
14750 * ira-lives.c: Ditto.
14752 * loop-iv.c: Ditto.
14753 * lower-subreg.c: Ditto.
14754 * modulo-sched.c: Ditto.
14756 * postreload.c: Ditto.
14757 * print-rtl.c: Ditto.
14759 * reginfo.c: Ditto.
14760 * regmove.c: Ditto.
14761 * reload1.c: Ditto.
14764 * rtlanal.c: Ditto.
14766 * sched-vis.c: Ditto.
14768 * sel-sched-ir.c: Ditto.
14769 * simplify-rtx.c: Ditto.
14770 * targhooks.c: Ditto.
14771 * var-tracking.c: Ditto.
14772 * vmsdbgout.c: Ditto.
14774 2009-06-22 Matthias Klose <doko@ubuntu.com>
14776 * Makefile.in (install-plugin): Always use DESTDIR.
14778 2009-06-22 Olivier Hainque <hainque@adacore.com>
14780 * config/pa/pa.c (output_call): Don't optimize post call jumps
14781 into return address adjustments if the call may throw.
14783 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
14785 * arm.c (thumb1_output_casesi): New function.
14786 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14787 optimizing for size or PIC.
14788 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14789 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14790 (casesi): Handle Thumb-1 when optimizing for size or PIC.
14791 (thumb1_casesi_internal_pic): New expand rule.
14792 (thumb1_casesi_dispatch): New pattern.
14793 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14795 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14796 in the text seciton when PIC or optimizing for size.
14797 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14798 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14799 preservation properties of code.
14800 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14801 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14802 (__gnu_thumb1_case_si): New function.
14803 * t-arm (LIB1ASMSRC): Define here.
14804 (LIB1ASMFUNCS): Add some common functions.
14805 * t-arm-elf (LIB1ASMSRC): Delete.
14806 (LIB1ASMFUNCS): Append to existing set.
14807 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14808 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14809 * t-symbian (LIB1ASMFUNCS): Likewise.
14810 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14811 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14813 2009-06-21 Richard Guenther <rguenther@suse.de>
14815 PR tree-optimization/38729
14816 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14817 to loops with a single exit if -fno-expensive-optimizations.
14819 2009-06-21 Jakub Jelinek <jakub@redhat.com>
14821 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14822 (dataflow_set): Change vars type from htab_t to shared_hash.
14823 (shared_hash_pool, empty_shared_hash): New variables.
14824 (vars_clear): Removed.
14825 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14826 shared_hash_find_slot_unshare, shared_hash_find_slot,
14827 shared_hash_find_slot_noinsert, shared_hash_find): New
14829 (shared_hash_unshare, shared_hash_destroy): New functions.
14830 (unshare_variable): Unshare set->vars if shared, use
14832 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14833 (get_init_value, find_src_set_src, dump_dataflow_set,
14834 clobber_variable_part, emit_notes_for_differences): Use
14836 (dataflow_set_init): Remove second argument, set vars to
14837 empty_shared_hash instead of creating a new htab.
14838 (dataflow_set_clear): Call shared_hash_destroy and set vars
14839 to empty_shared_hash instead of calling vars_clear.
14840 (dataflow_set_copy): Don't call vars_copy, instead just share
14841 the src htab with dst.
14842 (variable_union): Use shared_hash_*, use initially NO_INSERT
14843 lookup if set->vars is shared. Don't keep slot cleared before
14844 calling unshare_variable. Unshare set->vars if needed.
14845 Even ->refcount == 1 vars must be unshared if set->vars is shared
14846 and var needs to be modified.
14847 (variable_canonicalize): New function.
14848 (dataflow_set_union): If dst->vars is empty, just share src->vars
14849 with dst->vars and traverse with variable_canonicalize to canonicalize
14850 and unshare what is needed.
14851 (dataflow_set_different): If old_set and new_set use the same shared
14852 htab, they aren't different. If number of htab elements is different,
14853 htabs are different. Use shared_hash_*.
14854 (dataflow_set_destroy): Call shared_hash_destroy instead of
14856 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14857 second argument to dataflow_set_init.
14858 (vt_initialize): Likewise. Initialize shared_hash_pool and
14859 empty_shared_hash, move bb in/out initialization afterwards.
14860 Use variable_htab_free instead of NULL as changed_variables del hook.
14861 (variable_was_changed): Change type of second argument to pointer to
14862 dataflow_set. When inserting var into changed_variables, bump
14863 refcount. Unshare set->vars if set is shared htab and slot needs to
14865 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14866 lookup if set->vars is shared. Unshare set->vars if needed.
14867 Even ->refcount == 1 vars must be unshared if set->vars is shared
14868 and var needs to be modified. Adjust variable_was_changed caller.
14869 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
14870 vars must be unshared if set->vars is shared and var needs to be
14871 modified. Adjust variable_was_changed caller.
14872 (emit_note_insn_var_location): Don't pool_free var.
14873 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14875 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14876 free_alloc_pool on shared_hash_pool.
14878 2009-06-20 Anthony Green <green@moxielogic.com>
14880 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14881 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14883 2009-06-20 Richard Guenther <rguenther@suse.de>
14885 * tree-ssa-structalias.c (find_func_aliases): For memset use
14886 a constraint from NULL if we memset to zero.
14887 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14888 we explicitly handle that do not read from memory.
14889 (call_may_clobber_ref_p_1): Properly handle builtins that may
14892 2009-06-20 Richard Guenther <rguenther@suse.de>
14894 PR tree-optimization/40495
14895 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14896 (new_scalar_tmp_constraint_exp): New function.
14897 (process_constraint): Do not create temporary decls.
14898 (process_all_all_constraints): Likewise.
14899 (handle_const_call): Likewise.
14900 (create_function_info_for): Do not set decl.
14902 2009-06-19 Ian Lance Taylor <iant@google.com>
14904 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14905 (rs6000_attribute_table): Make static; move before use.
14907 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
14909 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14910 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14911 Propagate the TREE_READONLY flag without overwriting it.
14912 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14913 Propagate the TREE_READONLY flag onto the result.
14914 (process_call_operands): Move around. Use correct constant value.
14916 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14919 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14920 * config/arm/arm.md: Likewise.
14922 2009-06-19 Ian Lance Taylor <iant@google.com>
14924 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14925 to GIMPLE_ERROR_MARK.
14927 * c-typeck.c (build_conditional_expr): Add op1_original_type and
14928 op2_original_type parameters. Warn about using different enum types.
14929 * c-parser.c (c_parser_conditional_expression): Pass original
14930 types to build_conditional_expr.
14931 * c-tree.h (build_conditional_expr): Update declaration.
14933 2009-06-19 Ian Lance Taylor <iant@google.com>
14935 * config/i386/i386.c (ix86_function_specific_save): Test that
14936 fields match values, rather than testing the values are in a
14939 2009-06-19 Richard Guenther <rguenther@suse.de>
14941 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14942 ADDR_EXPR pointers.
14943 (ptr_derefs_may_alias_p): Likewise.
14944 (ptr_deref_may_alias_ref_p_1): New function.
14945 (ptr_deref_may_alias_ref_p): Likewise.
14946 (ref_maybe_used_by_call_p_1): Handle builtins that are not
14947 covered by looking at the ESCAPED solution.
14948 (call_may_clobber_ref_p_1): Likewise.
14949 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14950 Handle NULL_TREE offset. Do not produce redundant constraints.
14951 (process_all_all_constraints): New helper function.
14952 (do_structure_copy): Use it.
14953 (handle_lhs_call): Likewise.
14954 (find_func_aliases): Handle some builtins with pointer arguments
14955 and/or return values explicitly.
14957 2009-06-19 Ian Lance Taylor <iant@google.com>
14959 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14961 2009-06-19 Ian Lance Taylor <iant@google.com>
14963 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14965 2009-06-19 Ian Lance Taylor <iant@google.com>
14967 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14968 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14971 * c-decl.c (finish_decl): If -Wc++-compat, warn about
14972 uninitialized const.
14974 2009-06-19 Ian Lance Taylor <iant@google.com>
14976 * dse.c (struct store_info): Rename bitmap field to bmap. Change
14979 * c-decl.c (in_struct, struct_types): Remove.
14980 (struct c_binding): Add in_struct field.
14981 (c_binding_ptr): Define type, along with VEC.
14982 (struct c_struct_parse_info): Define.
14983 (struct_parse_info): New static variable.
14984 (bind): Initialize in_struct field.
14985 (start_struct): Remove enclosing_in_struct and
14986 enclosing_struct_types parameters. Add
14987 enclosing_struct_parse_info parameter. Change all callers. Set
14988 struct_parse_info rather than in_struct and struct_types.
14989 (grokfield): If -Wc++-compat and there is a symbol binding for the
14990 field name, set the in_struct flag and push it on the
14991 struct_parse_info->fields vector.
14992 (warn_cxx_compat_finish_struct): New static function.
14993 (finish_struct): Remove enclosing_in_struct and
14994 enclosing_struct_types parameters. Add
14995 enclosing_struct_parse_info parameter. Change all callers. Don't
14996 set C_TYPE_DEFINED_IN_STRUCT here. Call
14997 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
14998 parameter. Only push on struct_types if warn_cxx_compat.
14999 (finish_enum): Only push on struct_types if warn_cxx_compat.
15000 (declspecs_add_type): Add loc parameter. Change all callers.
15001 Change all error calls to error_at. Pass loc, not input_location,
15002 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
15003 defined in a struct. If -Wc++-compat and parsing a struct, record
15004 that a typedef name was used.
15005 * c-parser.c (c_parser_declspecs): Get location to pass to
15006 declspecs_add_type.
15007 (c_parser_struct_or_union_specifier): Update calls to start_struct
15009 * c-tree.h (struct c_struct_parse_info): Declare.
15010 (finish_struct, start_struct): Update declarations.
15011 (declspecs_add_type): Update declaration.
15013 2009-06-19 Ian Lance Taylor <iant@google.com>
15015 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
15016 variable with an anonymous type.
15018 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
15020 * see.c: Remove for real.
15022 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
15024 * optabs.h (enum optab_index): Add new OTI_significand.
15025 (significand_optab): Define corresponding macro.
15026 * optabs.c (init_optabs): Initialize significand_optab.
15027 * genopinit.c (optabs): Implement significand_optab using
15028 significand?f2 patterns.
15029 * builtins.c (expand_builtin_mathfn): Handle
15030 BUILT_IN_SIGNIFICAND{,F,L}.
15031 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
15032 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
15034 * config/i386/i386.md (significandxf2, significand<mode>2): New
15035 expanders to implement significandf, significand and significandl
15036 built-ins as inline x87 intrinsics.
15038 2009-06-18 Anatoly Sokolov <aesok@post.ru>
15040 * config/avr/avr.c (avr_override_options): Remove setting value of
15041 PARAM_INLINE_CALL_COST.
15043 2009-06-18 Richard Henderson <rth@redhat.com>
15046 * tree-pass.h (TDF_ASMNAME): New.
15047 * tree-dump.c (dump_options): Add asmname.
15048 * doc/invoke.texi: Document it.
15050 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
15051 (dump_decl_name): ...here.
15052 (dump_function_name): New flags arg; mind TDF_ASMNAME.
15053 (dump_generic_node): Update dump_function_name calls.
15054 (print_call_name): New flags arg; update all dump calls.
15055 * diagnostic.h (print_call_name): Update.
15056 * gimple-pretty-print.c (dump_gimple_call): Update.
15058 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
15061 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
15063 2009-06-18 Diego Novillo <dnovillo@google.com>
15065 * doc/plugins.texi: Document plugin_is_GPL_compatible.
15066 * plugin.c (str_license): Declare.
15067 (try_init_one_plugin): Assert that the symbol
15068 'plugin_is_GPL_compatible' exists.
15070 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
15073 * Makefile.in (OBJS-common): Remove see.o.
15075 * common.opt (fsee): Mark as preserved for backward compatibility.
15076 * opts.c (common_handle_option): Add OPT_fsee to the backward
15077 compatibility section.
15078 * passes.c (init_optimization_passes, pass_see): Remove pass.
15079 * timevar.def (TV_SEE): Remove.
15080 * tree-pass.h (pass_see): Remove declaration.
15081 * doc/invoke.texi (-fsee): Remove documentation.
15083 2009-06-18 Martin Jambor <mjambor@suse.cz>
15085 * tree-sra.c: Include statistics.h
15086 (sra_stats): New variable.
15087 (sra_initialize): Clear sra_stats.
15088 (create_access_replacement): Increment sra_stats.replacements.
15089 (get_access_replacement): Do not return twice.
15090 (analyze_all_variable_accesses): Increment statistics counter by the
15091 number of scalarized aggregates.
15092 (generate_subtree_copies): Increment sra_stats.subtree_copies.
15093 (sra_modify_expr): Increment sra_stats.exprs.
15094 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
15095 (sra_modify_assign): Increment sra_stats.exprs,
15096 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
15097 (perform_intra_sra): Update statistics counters.
15098 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
15100 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
15102 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
15103 (arm_scalar_mode_supported_p): New function.
15105 2009-06-18 Paul Brook <paul@codesourcery.com>
15106 Sandra Loosemore <sandra@codesourcery.com>
15108 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
15109 (__extendhfsf2, __truncsfhf2): Define.
15110 * config/arm/fp16.c: New file.
15111 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
15112 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
15114 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
15116 * doc/extend.texi (Half-Precision): New section.
15117 * doc/invoke.texi (Option Summary): List -mfp16-format.
15118 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
15119 * config/arm/arm.opt (mfp16-format=): New.
15120 * config/arm/arm.c: Include intl.h.
15121 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
15122 (TARGET_INVALID_RETURN_TYPE): Redefine.
15123 (TARGET_PROMOTED_TYPE): Redefine.
15124 (TARGET_CONVERT_TO_TYPE): Redefine.
15125 (arm_fp16_format): Define.
15126 (all_fpus): Add entry for neon-fp16.
15127 (fp_model_for_fpu): Likewise.
15128 (struct fp16_format): Declare.
15129 (all_fp16_formats): Define.
15130 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
15132 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
15134 (arm_legitimate_index_p): Treat HFmode like HImode.
15135 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
15136 (coproc_secondary_reload_class): Special-case HFmode.
15137 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
15138 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
15139 (arm_init_fp16_builtins): New.
15140 (arm_init_builtins): Call it.
15141 (arm_invalid_parameter_type): New.
15142 (arm_invalid_return_type): New.
15143 (arm_promoted_type): New.
15144 (arm_convert_to_type).
15145 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
15147 (arm_emit_fp16_const): New function.
15148 (arm_mangle_type): Mangle __fp16 as "Dh".
15149 * config/arm/arm.h (TARGET_VFPD32): Make it know about
15151 (TARGET_NEON_FP16): New.
15152 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
15153 (enum fputype): Add FPUTYPE_NEON_FP16.
15154 (enum arm_fp16_format_type): Declare.
15155 (arm_fp16_format): Declare.
15156 (LARGEST_EXPONENT_IS_NORMAL): Define.
15157 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
15158 * config/arm/arm-modes.def (HFmode): Define.
15159 * config/arm/vfp.md (*movhf_vfp): New.
15160 (extendhfsf2): New.
15162 * config/arm/arm.md (fpu): Add neon_fp16.
15163 (floatsihf2, floatdihf2): New.
15164 (fix_trunchfsi2, fix_trunchfdi2): New.
15166 (extendhfdf2): New.
15168 (*arm32_movhf): New.
15169 (*thumb1_movhf): New.
15170 (consttable_2): Add check for HFmode constants.
15171 (consttable_4): Handle HFmode constants.
15173 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
15175 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
15177 2009-06-17 Olivier Hainque <hainque@adacore.com>
15179 * collect2.c (main): Use CONST_CAST2 to perform char ** to
15180 const char ** conversion in AIX specific section.
15182 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
15184 * config/i386/i386.c (ix86_special_builtin_type): Remove
15185 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
15186 (bdesc_special_args): Updated.
15187 (ix86_init_mmx_sse_builtins): Likewise.
15188 (ix86_expand_special_args_builtin): Likewise.
15190 2009-06-17 Richard Henderson <rth@redhat.com>
15192 * tree-pretty-print.c (maybe_dump_asm_name): New.
15193 (dump_decl_name): Use it.
15194 (PRINT_FUNCTION_NAME): Merge into...
15195 (dump_function_name): ... here. Use maybe_dump_asm_name.
15197 2009-06-17 Cary Coutant <ccoutant@google.com>
15199 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
15201 * debug.c (struct gcc_debug_hooks): Change placeholder for
15203 (debug_nothing_int_charstar_int): Replaced by...
15204 (debug_nothing_int_charstar_int_bool): ...this.
15205 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
15206 source_line prototype.
15207 (debug_nothing_int_charstar_int): Replaced by...
15208 (debug_nothing_int_charstar_int_bool): ...this.
15209 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
15210 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
15211 Output is_stmt operand when necessary.
15212 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
15213 (notice_source_line): Add is_stmt parameter.
15214 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
15215 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
15217 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
15218 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
15220 2009-06-17 Ian Lance Taylor <iant@google.com>
15222 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
15224 (struct store_by_pieces_d): Rename from store_by_pieces. Change
15227 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
15229 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
15230 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
15231 tree_strip_sign_nop_conversions and
15232 tree_ssa_strip_useless_type_conversions rather than stripping
15233 the operations here.
15234 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
15236 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
15237 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
15238 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
15239 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
15242 2009-06-17 Michael Eager <eager@eagercon.com>
15244 * config/rs6000/constraints.md (register_constraint "d"): New.
15245 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
15246 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15247 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
15248 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
15249 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15250 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
15251 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
15252 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
15253 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
15254 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
15256 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
15257 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
15258 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
15259 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
15260 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
15261 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
15262 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
15263 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
15264 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
15265 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
15266 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
15267 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
15268 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
15269 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
15271 2009-06-16 Ian Lance Taylor <iant@google.com>
15273 * profile.c (total_num_never_executed): Don't define.
15274 (compute_branch_probabilities): Don't count or print
15275 num_never_executed.
15276 (init_branch_prob): Don't set total_num_never_executed.
15277 (end_branch_prob): Don't print total_num_never_executed.
15279 2009-06-17 David Daney <ddaney@caviumnetworks.com>
15281 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
15283 2009-06-17 David Edelsohn <edelsohn@gnu.org>
15285 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
15286 (nabstd2_fpr): Same.
15288 2009-06-17 Steve Ellcey <sje@cup.hp.com>
15290 * expr.c (expand_assignment): Change complex type check.
15292 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
15294 * doc/plugins.texi (Building GCC plugins): Added new section.
15296 2009-06-17 Ian Lance Taylor <iant@google.com>
15298 * c-pch.c (get_ident): Don't set size of templ array.
15299 (pch_init): Don't set size of partial_pch array.
15301 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
15302 string constant to intialize an array whose size is the length of
15305 2009-06-17 Richard Guenther <rguenther@suse.de>
15307 PR tree-optimization/40389
15308 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
15309 to addressable types.
15310 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
15312 2009-06-17 Richard Guenther <rguenther@suse.de>
15314 PR middle-end/40460
15315 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
15316 if there is no evolution of left in the loop bail out.
15317 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
15318 chrec_fold_multiply.
15320 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
15321 Janis Johnson <janis187@us.ibm.com>
15324 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
15325 for the symbol ref of a constant that is the source of a move
15326 - nor for any other not-obvious-label-ref constants.
15328 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
15330 * plugin.c (position_pass): Skip newly inserted pass during list
15331 traversal to avoid repeated insertion.
15333 2009-06-16 Ian Lance Taylor <iant@google.com>
15335 * vec.h (VEC_stack_alloc): Define different version if
15336 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
15337 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
15338 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
15339 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15341 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
15343 * config.gcc (extra_headers): Add ia32intrin.h for x86.
15345 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
15346 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
15347 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
15348 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
15349 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
15350 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15351 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15352 (bdesc_special_args): Add __builtin_ia32_rdtsc and
15353 __builtin_ia32_rdtscp.
15354 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
15355 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
15356 and __builtin_ia32_rorhi.
15357 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
15358 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15359 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15360 (ix86_expand_args_builtin): Likewise.
15361 (ix86_expand_special_args_builtin): Likewise.
15363 * config/i386/i386.md (UNSPECV_RDTSCP): New.
15364 (UNSPECV_RDTSC): Likewise.
15365 (UNSPECV_RDPMC): Likewise.
15366 (*bsr): Renamed to ...
15368 (*bsr_rex64): Renamed to ...
15371 (*rdpmc): Likewise.
15372 (*rdpmc_rex64): Likewise.
15374 (*rdtsc): Likewise.
15375 (*rdtsc_rex64): Likewise.
15376 (rdtscp): Likewise.
15377 (*rdtscp): Likewise.
15378 (*rdtscp_rex64): Likewise.
15380 * config/i386/ia32intrin.h: New.
15382 * config/i386/x86intrin.h: Include <ia32intrin.h>.
15384 2009-06-16 Ian Lance Taylor <iant@google.com>
15386 * ira-build.c (copy_info_to_removed_store_destinations):
15387 Initialize parent_a.
15389 2009-06-16 Ian Lance Taylor <iant@google.com>
15391 * c-decl.c (grokdeclarator): Change size_varies to bool.
15393 2009-06-16 Ian Lance Taylor <iant@google.com>
15395 * sel-sched.c: Make forward declarations of move_op_hooks and
15396 fur_hooks explicitly extern.
15398 2009-06-16 Ian Lance Taylor <iant@google.com>
15400 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
15401 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
15403 2009-06-16 Ian Lance Taylor <iant@google.com>
15405 * resource.c (mark_referenced_resources): Change
15406 include_delayed_effects parameter to bool. Change all callers.
15407 (mark_end_of_function_resources): Likewise.
15408 * reorg.c (insn_references_resource_p): Likewise.
15409 (insn_sets_resource_p): Likewise.
15410 * resource.h (mark_referenced_resources): Update declaration.
15411 (mark_end_of_function_resources): Update declaration.
15413 2009-06-16 David Edelsohn <edelsohn@gnu.org>
15415 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
15417 2009-06-16 David Edelsohn <edelsohn@gnu.org>
15419 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
15420 GCC can bootstrap on AIX with GNU Binutils 2.20.
15422 2009-06-16 Ian Lance Taylor <iant@google.com>
15424 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
15426 2009-06-16 Ian Lance Taylor <iant@google.com>
15428 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
15429 inline, not extern inline.
15430 (exact_log2): Likewise.
15431 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
15433 (exact_log2): Likewise, but don't test CTZ_HWI.
15435 2009-06-16 Ian Lance Taylor <iant@google.com>
15437 * bitmap.c (bitmap_clear): Don't declare as inline.
15438 * gimple.c (gimplify_assign): Likewise.
15439 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15440 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
15441 (sched_scan_info): Remove duplicate definition.
15443 2009-06-16 Ian Lance Taylor <iant@google.com>
15445 * c-common.c (skip_evaluation): Don't define.
15446 (c_inhibit_evaluation_warnings): Define global variable.
15447 (overflow_warning): Check c_inhibit_evaluation_warnings rather
15448 than skip_evaluation.
15449 (convert_and_check, warn_for_div_by_zero): Likewise.
15450 * c-common.h (skip_evaluation): Don't declare.
15451 (c_inhibit_evaluation_warnings): Declare.
15452 * c-parser.c (c_parser_typeof_specifier): Set
15453 c_inhibit_evaluation_warnings rather than skip_evaluation.
15454 (c_parser_conditional_expression): Likewise.
15455 (c_parser_binary_expression): Likewise.
15456 (c_parser_sizeof_expression): Likewise.
15457 (c_parser_alignof_expression): Likewise.
15458 * c-typeck.c (build_indirect_ref): Check
15459 c_inhibit_evaluation_warnings rather than skip_evaluation.
15460 (build_conditional_expr, build_binary_op): Likewise.
15462 2009-06-16 Richard Guenther <rguenther@suse.de>
15464 * tree-ssa-alias.c (is_escape_site): Remove.
15465 * tree-ssa-alias.h (enum escape_type): Remove.
15466 (is_escape_site): Likewise.
15467 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
15468 via casts and asms without deferring to is_escape_site.
15470 2009-06-16 Jakub Jelinek <jakub@redhat.com>
15472 PR middle-end/40446
15473 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
15474 use gen_lowpart if op0 has complex mode.
15476 2009-06-16 Richard Guenther <rguenther@suse.de>
15478 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
15479 variables add them to ESCAPED.
15480 (find_func_aliases): Do not make all indirectly stored values escaped.
15482 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
15484 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
15485 make_decl_one_only.
15487 2009-06-16 Martin Jambor <mjambor@suse.cz>
15489 PR tree-optimization/40432
15490 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
15491 check whether we need to force gimple register operand.
15493 2009-06-16 Martin Jambor <mjambor@suse.cz>
15495 PR tree-optimization/40413
15496 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
15497 build_ref_for_offset.
15498 (propagate_subacesses_accross_link): Fix a typo in a comment.
15500 2009-06-16 Ira Rosen <irar@il.ibm.com>
15502 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15503 with additional parameter.
15504 * tree-vectorizer.h (enum vect_def_type): Add new value
15506 (enum vect_relevant): Add comments.
15507 (vect_is_simple_reduction): Add new argument.
15508 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15509 Detect nested cycles.
15510 (vect_is_simple_reduction): Update documentation, add an argument to
15511 distinguish inner-loop reduction from nested cycle, detect nested
15512 cycles, fix printings and indentation, don't swap operands in case
15514 (get_initial_def_for_reduction): Handle subtraction.
15515 (vect_create_epilog_for_reduction): Add new argument to specify
15516 reduction variable.
15517 (vect_finalize_reduction): Handle subtraction, fix comments.
15518 (vectorizable_reduction): Handle nested cycles. In case of nested
15519 cycle keep track of the reduction variable position. Call
15520 vect_is_simple_reduction with additional parameter. Use original
15521 statement code in reduction epilogue for nested cycle. Call
15522 vect_create_epilog_for_reduction with additional parameter.
15523 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15524 inner-loop vectorization.
15525 (vect_recog_widen_sum_pattern): Likewise.
15526 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15528 (vect_mark_stmts_to_be_vectorized): Likewise.
15529 (vect_get_vec_def_for_operand): Handle nested cycles.
15531 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15533 * doc/invoke.texi (Debugging Options): Fix option index entries
15534 for -fdump-statistics, -frandom-seed add entries for
15535 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15536 (FRV Options): Fix entries for -mTLS, -mtls.
15537 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15538 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15539 (M68hc1x Options): Fix @itemx for -mnominmax.
15540 (MCore Options): Fix entry for -mno-lsim.
15541 (MMIX Options): Fix entry for -mabi=mmixware.
15542 (PDP-11 Options): Fix entry for -mbcopy-builtin.
15544 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
15546 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15547 Mention the plugin mode of gengtype.
15548 * doc/gty.texi (Source Files Containing Type Information): Likewise.
15549 * gengtype.c: Updated copyright.
15550 (plugin_files, nb_plugin_files) Added new static variables.
15551 (measure_input_list) Care about plugin_files.
15552 (write_rtx_next): Added early return in plugin mode.
15553 (create_file): Updated copyright year in generated file. Added
15555 (oprintf): Added early return if NULL outf.
15556 (get_output_file_with_visibility): Care of plugin_files.
15557 (get_output_file_name): May return null.
15558 (write_local): Added early return.
15559 (put_mangled_filename): Ditto.
15560 (finish_root_table): Added check for base_files.
15561 (write_roots): Care about null when plugins.
15562 (main): Added plugin mode.
15564 2009-06-15 Ian Lance Taylor <iant@google.com>
15566 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15567 * gcov.c (read_count_file): Add braces around variables declared
15570 * c.opt (Wjump-misses-init): New warning.
15571 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15572 -Wall and -Wc++-compat if not already set.
15573 (c_common_post_options): Clear warn_jump_misses_init if it was not
15575 * c-decl.c (struct c_binding): Change type field to a union with
15576 new label field. Make it the first field in the struct. Update
15577 references to type to use u.type instead.
15578 (struct c_spot_bindings): Define.
15579 (struct c_goto_bindings): Define.
15580 (c_goto_bindings_p): Define, along with VECs.
15581 (struct c_label_vars): Define.
15582 (struct c_scope): Add has_label_bindings field.
15583 (bind_label, set_spot_bindings): New static functions.
15584 (decl_jump_unsafe, update_spot_bindings): New static functions.
15585 (update_label_decls): New static function.
15586 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
15587 Update binding u.label field to shadowed field.
15588 (c_binding_start_stmt_expr): New function.
15589 (c_binding_end_stmt_expr): New function.
15590 (pushdecl): Don't call c_begin_vm_scope.
15591 (make_label): Add defining and p_label_vars parameters. Change
15593 (lookup_label): Correct test for whether a label has not yet been
15594 defined. Call bind_label rather than bind.
15595 (warn_about_goto): New static function.
15596 (lookup_label_for_goto): New function.
15597 (declare_label): Call bind_label rather than bind.
15598 (check_earlier_gotos): New static function.
15599 (define_label): Don't give errors about jumping into statement
15600 expressions or scopes of variably modified types. Call
15601 set_spot_bindings and check_earlier_gotos. Call bind_label
15602 instead of bind. Don't set label_context_stack_se or
15603 label_context_stack_vm.
15604 (c_get_switch_bindings): New function.
15605 (c_release_switch_bindings): New function.
15606 (c_check_switch_jump_warnings): New function.
15607 (start_function): Don't set label_context_stack_se or
15608 label_context_stack_vm.
15609 (finish_function): Likewise.
15610 * c-typeck.c (label_context_stack_se): Don't define.
15611 (label_context_stack_vm): Don't define.
15612 (c_finish_goto_label): Call lookup_label_for_goto rather than
15613 lookup_label. Don't give errors about jumping into a statement
15614 expression or the scope of a variably modified type. Don't set
15615 label_context_stack_se or label_context_stack_vm.
15616 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15617 fields. Add bindings field.
15618 (c_start_case): Don't set deleted fields. Set bindings field.
15619 (do_case): Rework order of tests. Don't check blocked_stmt_expr
15620 or blocked_vm. Call c_check_switch_jump_warnings.
15621 (c_finish_case): Don't test blocked_stmt_expr field. Call
15622 c_release_switch_bindings.
15623 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15624 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15625 set label_context_stack_se. Call c_bindings_start_stmt_expr.
15626 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15627 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15628 set label_context_stack_se. Call c_bindings_end_stmt_expr.
15629 (c_begin_vm_scope, c_end_vm_scope): Don't define.
15630 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15631 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15632 (C_DECL_UNJUMPABLE_VM): Don't define.
15633 (C_DECL_UNDEFINABLE_VM): Don't define.
15634 (struct c_label_list): Don't define.
15635 (struct c_label_context_se): Don't define.
15636 (struct c_label_context_vm): Don't define.
15637 (struct c_spot_bindings): Declare.
15638 (c_bindings_start_stmt_expr): Declare.
15639 (c_bindings_end_stmt_expr): Declare.
15640 (lookup_label_for_goto): Declare.
15641 (c_get_switch_bindings, c_release_switch_bindings): Declare.
15642 (c_check_switch_jump_warnings): Declare.
15643 (label_context_stack_se, label_context_stack_vm): Don't declare.
15644 (c_finish_goto_label): Update declaration.
15645 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15646 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15647 (Warning Options): Document -Wjump-misses-init.
15649 2009-06-15 Jakub Jelinek <jakub@redhat.com>
15651 * tree-object-size.c (addr_object_size): Fix a pasto in the last
15654 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
15656 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15658 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
15660 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15662 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
15664 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15666 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
15668 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15669 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15670 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15671 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15672 * dwarf2asm.c (dw2_force_const_mem): Update call to
15673 make_decl_one_only.
15674 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15675 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15676 * langhooks.c (lhd_comdat_group): Remove.
15677 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15678 * tree.h (DECL_COMDAT_GROUP): New.
15679 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15680 (tree_decl_with_vis): Add comdat_group. Remove one_only.
15681 (make_decl_one_only): Change signature.
15682 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15683 make_decl_one_only.
15684 (make_decl_one_only): Change signature.
15685 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15687 2009-06-15 Richard Guenther <rguenther@suse.de>
15689 PR middle-end/40439
15690 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15692 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15694 * tree-ssa-math-opts.c: Remove extra divide.
15696 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15698 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15700 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15702 * passes.c: Add bswap pass.
15703 * tree-pass.h: Add pass_optimize_bswap declaration.
15704 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15705 Include rtl.h, expr.h and optabs.h for optab_handler check.
15706 (struct symbolic_number, pass_optimize_bswap): New definition.
15707 (do_shift_rotate, verify_symbolic_number_p): New functions.
15708 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15709 (gate_optimize_bswap): New function.
15710 * tree.c (widest_int_cst_value): New function.
15711 * tree.h (widest_int_cst_value): Prototype added.
15713 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
15715 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15716 REG_EQUAL/REG_EQUIV notes.
15718 2009-06-14 Richard Guenther <rguenther@suse.de>
15720 PR middle-end/40389
15721 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15722 has its address taken if NRV was applied and it is addressable.
15723 * tree-ssa-structalias.c (get_constraint_for_address_of): New
15724 function split out from ...
15725 (get_constraint_for_1): ... here.
15726 (handle_rhs_call): Use it to mark the return slot escaped if
15727 it is addressable and NRV was applied.
15729 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
15731 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15732 Change first argument type to location_t.
15733 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15734 Do not set input_location.
15735 Use loc instead of input_location throughout.
15737 2009-06-13 Richard Guenther <rguenther@suse.de>
15739 PR tree-optimization/40421
15740 * tree-predcom.c (should_unroll_loop_p): Remove.
15741 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15743 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15745 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15746 Add location argument.
15748 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
15750 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15752 * config/s390/s390.c (s390_build_builtin_va_list): Same.
15753 (s390_gimplify_va_arg): Pass location to create_artificial_label.
15754 * config/spu/spu-protos.h: Add location to
15755 spu_resolve_overloaded_builtin.
15756 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15757 spu_build_builtin_va_list.
15758 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15759 argument. Pass location to build_function_call_vec.
15760 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15762 (emit_fpu_switch): Same.
15763 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15764 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15765 to build_decl and create_artificial_label.
15766 (xtensa_gimplify_va_arg_expr): Same.
15767 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15768 (xstormy16_gimplify_va_arg_expr): Same.
15769 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15770 * config/arm/arm.c (arm_build_builtin_va_list): Same.
15771 * config/mips/mips.c (mips_build_builtin_va_list): Same.
15772 (mips16_build_function_stub): Same.
15773 (mips16_build_call_stub): Same.
15775 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
15778 * arm/constraints.md (Pa, Pb): New constraints.
15779 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
15780 split pattern to deal with them.
15782 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
15784 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15785 fix index entry for -Xpreprocessor.
15787 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
15789 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15790 Add location argument to build_decl call.
15791 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15792 (rs6000_init_builtins): Same.
15793 (spe_init_builtins): Same.
15794 (rs6000_gimplify_va_arg): Add location argument to
15795 create_artificial_label call.
15797 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
15799 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15800 * combine-stack-adj.c (pass_stack_adjustments): Use it.
15801 * Makefile.in: Fix GGC dependency for gcse.o.
15803 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
15805 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15806 * gimple-pretty-print.c (dump_gimple_stmt): Same.
15807 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15809 * c-parser.c (c_parser_binary_expression): Use current column while
15810 building binary operations.
15811 * common.opt (fshow-column): Enable by default.
15812 * tree-vrp.c (check_array_ref): Use warning_at.
15813 (check_array_bounds): Use location from call back if expr has no
15815 * tree.h: Add location argument to maybe_fold_*.
15816 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15817 (maybe_fold_offset_to_array_ref): Add location argument and use it.
15818 (maybe_fold_offset_to_component_ref): Same.
15819 (maybe_fold_offset_to_reference): Same.
15820 (maybe_fold_offset_to_address): Same.
15821 (maybe_fold_stmt_indirect): Same.
15822 (maybe_fold_stmt_addition): Same.
15823 (fold_stmt_r): Pass location to maybe_fold_*.
15824 (fold_gimple_assign): Same.
15825 * c-tree.h: Add location argument to finish_decl,
15826 default_function_array_conversion, store_init_value.
15827 * c-decl.c (define_label): Use error_at.
15828 (c_make_fname_decl): Pass location to finish_decl.
15829 (finish_decl): New location argument.
15830 (build_compound_literal): Pass location to store_init_value.
15831 (grokdeclarator): Pass location to finish_decl.
15833 * c-typeck.c (array_to_pointer_conversion): New location argument.
15834 (function_to_pointer_conversion): Same.
15835 (default_function_array_conversion): Same.
15836 (parser_build_unary_op): Pass location to overflow_warning.
15837 (parser_build_binary_op): Same. Use warning_at.
15838 (build_unary_op): Pass location to array_to_pointer_conversion.
15839 (build_c_cast): Pass location to digest_init.
15840 (build_modify_expr): New location argument.
15841 (convert_for_assignment): Same.
15842 (store_init_value): Same.
15843 (digest_init): Same.
15844 (output_init_element): Pass location to digest_init and
15845 array_to_pointer_conversion.
15846 (c_finish_return): Pass location to convert_for_assignment.
15847 * gimplify.c (gimplify_conversion): Pass location to
15848 maybe_fold_offset_to_address.
15849 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15850 to maybe_fold_stmt_addition.
15851 * c-omp.c (c_finish_omp_atomic): Pass new location to
15853 (c_finish_omp_for): Same.
15854 * c-common.c (overflow_warning): New argument.
15855 * c-common.h: New argument to build_modify_expr, overflow_warning.
15856 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15858 (c_parser_initializer): Pass location to
15859 default_function_array_conversion.
15860 (c_parser_initelt): Same.
15861 (c_parser_initval): Same.
15862 (c_parser_asm_operands): Same.
15863 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
15864 (c_parser_conditional_expression): Same.
15865 (c_parser_binary_expression): Add location info to stack. Use it.
15866 (c_parser_unary_expression): Pass location to
15867 default_function_array_conversion, parser_build_unary_op,
15868 build_indirect_ref, c_parser_postfix_expression_after_primary.
15869 (c_parser_postfix_expression_after_primary): New location argument.
15871 (c_parser_expression_conv): Pass location to
15872 default_function_array_conversion.
15873 (c_parser_expr_list): Same.
15874 (c_parser_omp_atomic): Same.
15875 (c_parser_omp_for_loop): Same.
15876 * c-tree.h (struct c_declarator): Add comment to id_loc.
15877 (build_array_declarator): New argument.
15878 * c-decl.c (build_array_declarator): Add location argument.
15879 (grokdeclarator): Set id_loc for cdk_array.
15880 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15881 build_array_declarator.
15882 * tree.c (build_omp_clause): Add location argument.
15883 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15884 (OMP_CLAUSE_LOCATION): New macro.
15885 (struct tree_omp_clause): Add location field.
15886 (build_omp_clause): Add argument.
15887 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15889 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15890 (cp_parser_omp_clause_collapse): Same.
15891 (cp_parser_omp_clause_default): Same.
15892 (cp_parser_omp_clause_if): Same.
15893 (cp_parser_omp_clause_nowait): Same.
15894 (cp_parser_omp_clause_num_threads): Same.
15895 (cp_parser_omp_clause_ordered): Same.
15896 (cp_parser_omp_clause_schedule): Same.
15897 (cp_parser_omp_clause_untied): Same.
15898 (cp_parser_omp_for_loop): Same.
15899 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15900 * c-tree.h (c_start_case): Add location argument.
15901 (c_process_expr_stmt): Same.
15902 (c_finish_goto_*): Same.
15903 * tree-parloops.c (initialize_reductions): Pass location to
15905 (create_parallel_loop): Same.
15906 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15907 (gfc_trans_omp_reduction_list): Same.
15908 (gfc_trans_omp_clauses): Same.
15909 (gfc_trans_omp_do): Same.
15910 * c-typeck.c (c_finish_goto_label): Same.
15911 (c_finish_goto_ptr): New location argument.
15912 (c_start_case): Same.
15913 (emit_side_effect_warnings): Same.
15914 (c_process_expr_stmt): Same.
15915 (c_finish_stmt_expr): Same.
15916 (c_finish_omp_clauses): Use error_at instead of error.
15917 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15919 * c-omp.c (c_split_parallel_clauses): New location argument.
15920 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15921 to build_omp_clause.
15922 (convert_local_reference_stmt): Same.
15923 (convert_gimple_call): Same.
15924 * c-common.h (c_split_parallel_clauses): New argument.
15925 * c-parser.c (c_parser_statement_after_labels): Pass location to
15926 c_finish_goto_label.
15927 (c_parser_switch_statement): Pass location to c_start_case.
15928 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15929 and c_process_expr_stmt.
15930 (c_parser_omp_variable_list): Add location argument.
15931 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15932 (c_parser_omp_clause_default): Same.
15933 (c_parser_omp_clause_if): Same.
15934 (c_parser_omp_clause_num_threads): Same.
15935 (-c_parser_omp_clause_ordered): Same.
15936 (c_parser_omp_clause_reduction): Pass location to
15937 c_parser_omp_variable_list.
15938 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15939 (c_parser_omp_clause_untied): Same.
15940 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15941 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15943 * c-tree.h (check_for_loop_decls, undeclared_variable,
15944 build_component_ref, build_array_ref, build_external_ref,
15945 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15946 build_conditional_expr, build_compound_expr, c_cast_expr,
15947 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15948 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15950 * c-semantics.c (build_stmt): Same.
15951 (build_case_label): Same.
15952 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15953 (undeclared_variable): New argument.
15954 (make_label): Same.
15955 (lookup_label): Pass location on down.
15956 (define_label): Same.
15957 (finish_decl): Same.
15958 (build_compound_literal): Same.
15959 (finish_struct): Same.
15960 (finish_function): Do not set location here.
15961 (check_for_loop_decls): New argument.
15962 * tree.c (save_expr): Set location.
15963 (build_empty_stmt): New argument.
15964 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15965 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15966 * builtins.c (gimplify_va_arg_expr): Use locations.
15967 (expand_builtin_sync_operation): Same.
15968 * c-typeck.c (build_component_ref): New argument.
15969 (build_array_ref): Same.
15970 (build_external_ref): Same.
15971 (c_expr_sizeof_expr): Same.
15972 (c_expr_sizeof_type): Same.
15973 (parser_build_unary_op): Same.
15974 (build_conditional_expr): Same.
15975 (build_compound_expr): Pass location on down.
15976 (build_compound_expr): New argument.
15977 (build_c_cast): Same.
15978 (c_cast_expr): Same.
15979 (build_asm_expr): Same.
15980 (c_finish_return): Same.
15981 (c_process_expr_stmt): Pass location on down.
15982 (c_finish_stmt_expr): New argument.
15983 (push_clenaup): Same.
15984 (c_finish_omp_parallel): Same.
15985 (c_finish_omp_task): Same.
15986 * gimplify.c (gimplify_call_expr): Pass location on down.
15987 * c-omp.c (c_finish_omp_master): New argument.
15988 (c_finish_omp_critical): Same.
15989 (c_finish_omp_ordered): Same.
15990 (c_finish_omp_barrier): Same.
15991 (-c_finish_omp_taskwait): Same.
15992 (c_finish_omp_atomic): Same.
15993 (c_finish_omp_flush): Same.
15994 * tree-inline.c (copy_tree_body_r): Pass location on down.
15995 (inline_forbidden_p): Remove use of input_location.
15996 * c-gimplify.c (c_build_bind_expr): New argument.
15997 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15998 (c_sizeof_or_alignof_type): New argument.
15999 (c_alignof_expr): Same.
16000 (build_va_arg): Same.
16001 (c_add_case_label): Same.
16002 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
16003 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
16004 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
16005 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
16006 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
16007 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
16009 * stub-objc.c (objc_build_selector_expr): Same.
16010 (objc_build_throw_stmt): Same.
16011 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
16012 (c_parser_initelt): Same.
16013 (c_parser_compound_statement): Same.
16014 (c_parser_compound_statement_nostart): Same.
16015 (c_parser_label): Same.
16016 (c_parser_statement_after_labels): Same.
16017 (c_parser_if_body): Same.
16018 (c_parser_else_body): Same.
16019 (c_parser_if_statement): Same.
16020 (c_parser_switch_statement): Same.
16021 (c_parser_while_statement): Same.
16022 (c_parser_do_statement): Same.
16023 (c_parser_for_statement): Same.
16024 (c_parser_asm_statement): Same.
16025 (c_parser_conditional_expression): Same.
16026 (c_parser_binary_expression): Same.
16027 (c_parser_cast_expression): Same.
16028 (c_parser_unary_expression): Same.
16029 (c_parser_sizeof_expression): Same.
16030 (c_parser_alignof_expression): Same.
16031 (c_parser_postfix_expression): Same.
16032 (c_parser_expression): Same.
16033 (c_parser_objc_receiver): Same.
16034 (c_parser_omp_variable_list): Same.
16035 (c_parser_omp_structured_block): Same.
16036 (c_parser_omp_atomic): New argument.
16037 (c_parser_omp_barrier): Same.
16038 (c_parser_omp_critical): Same.
16039 (c_parser_omp_flush): Pass location on down.
16040 (c_parser_omp_for_loop): New argument.
16041 (c_parser_omp_for): Same.
16042 (c_parser_omp_master): Same.
16043 (c_parser_omp_ordered): Same.
16044 (c_parser_omp_sections_scope): Same.
16045 (c_parser_omp_sections): Same.
16046 (c_parser_omp_parallel): Same.
16047 (c_parser_omp_single): Same.
16048 (c_parser_omp_task): Same.
16049 (c_parser_omp_taskwait): Pass location on down.
16050 (c_parser_omp_construct): Same.
16051 (c_parser_omp_threadprivate): Same.
16052 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
16053 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
16054 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
16055 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
16056 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
16057 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
16058 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
16059 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
16060 config/i386/i386.c, stmt.c:
16061 Add location argument to the following function definitions and/or
16062 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
16063 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
16064 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
16065 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
16066 do_case, c_finish_bc_stmt, build_compound_literal,
16067 build_function_call.
16068 * c-decl.c (build_compound_literal): Add location argument.
16069 Make all diagnostic calls use location.
16070 (start_struct): Same.
16071 (finish_struct): Same.
16072 (start_enum): Same.
16073 (build_enumerator): Same.
16074 (start_function): Same.
16075 (grokdeclarator): Make all diagnostic calls use location.
16076 (store_parm_decls_oldstyle): Same.
16077 * c-typeck.c (build_function_call): Add location argument.
16078 Make all diagnostic calls use location.
16080 (c_finish_bc_stmt): Same.
16081 * tree-nested.c (get_trampoline_type): Add argument.
16082 Pass location to build_decl.
16083 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
16084 * rtl.h (RTL_LOCATION): New.
16085 * c-common.c (c_add_case_label): Add location argument.
16086 Make all diagnostic calls use location.
16087 * c-common.h: Add location argument to make_fname_decl, do_case,
16088 c_add_case_label, build_function_call, resolve_overloaded_builtin.
16089 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
16090 Set it appropriately for every case. Pass enum_loc to start_enum
16091 call. Pass value_loc first to build_enumerator. Pass enum_loc to
16093 (c_parser_struct_or_union_specifier): Save location. Use it for
16094 start_struct, finish_struct, and parser_xref_tag.
16096 2009-06-12 Ian Lance Taylor <iant@google.com>
16098 * fold-const.c (fold_unary): Rename local variable and to and_expr.
16100 * c-opts.c (c_common_handle_option): For -Wc++-compat set
16101 cpp_opts->warn_cxx_operator_names.
16103 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
16106 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
16107 is returns NULL and OP is a VCE, look through the VCE.
16109 2009-06-12 Ian Lance Taylor <iant@google.com>
16112 * collect2.c (main): Use CONST_CAST2 in code inside #if
16113 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
16115 2009-06-12 Joey Ye <joey.ye@intel.com>
16117 PR middle-end/39146
16118 * cfgexpand.c (get_decl_align_unit): Update
16119 max_used_stack_slot_alignment with align instead of
16120 stack_alignment_needed.
16122 * function.c (assign_stack_local_1): Update
16123 max_used_stack_slot_alignment with alignment_in_bits instead
16124 of stack_alignment_needed.
16125 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
16128 2009-06-12 Jakub Jelinek <jakub@redhat.com>
16130 * dwarf2out.c (last_var_location_insn): New variable.
16131 (dwarf2out_end_epilogue): Clear last_var_location_insn.
16132 (dwarf2out_var_location): Don't record anything after last real
16133 insn. Only change labels if there were any real instructions
16134 in between last note and this one, or if changed sections.
16136 2009-06-11 Richard Henderson <rth@redhat.com>
16138 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
16139 note when storing the frame pointer in a register.
16140 (FRP): Don't redefine to nothing for epilogue.
16141 (alpha_expand_epilogue): Mark register and sp restores.
16142 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
16144 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
16145 when gen_lowpart is needed.
16147 2009-06-11 Richard Henderson <rth@redhat.com>
16149 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
16151 * dwarf2out.c (need_data_align_sf_opcode): New.
16152 (div_data_align): Move earlier.
16153 (def_cfa_1, reg_save): Use it.
16155 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
16157 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
16158 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
16159 (ix86_handle_option): Handle OPT_mcrc32.
16160 (ix86_target_string): Add -mcrc32.
16161 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
16163 * config/i386/i386.h (TARGET_CRC32): New.
16165 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
16166 (sse4_2_crc32di): Likewise.
16168 * config/i386/i386.opt (mcrc32): New.
16170 * doc/invoke.texi: Document -mcrc32.
16172 2009-06-11 Richard Henderson <rth@redhat.com>
16174 * common.opt (gdwarf-): Accept a version number.
16175 * doc/invoke.texi (gdwarf-): Update docs.
16176 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
16177 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
16178 version level, and record it.
16180 * dwarf2.h (DW_CIE_VERSION): Remove.
16181 * dwarf2out.c (DWARF_VERSION): Remove.
16182 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
16183 (output_call_frame_info): Use CIE version 3 for dwarf3,
16184 or if the return register column is out of range for version 1.
16185 (dwarf_stack_op_name): Add all dwarf3 values.
16186 (DEBUG_PUBTYPES_SECTION): New.
16187 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
16188 encoding change for dwarf3.
16189 (output_die) [dw_val_class_die_ref]: Likewise.
16190 (output_compilation_unit_header): Emit correct version for dwarf3.
16191 (output_line_info): Likewise.
16192 (output_pubnames): Update for DWARF_VERSION removal.
16193 (output_aranges): Likewise.
16194 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
16195 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
16196 (dwarf2out_finish): Likewise.
16198 2009-06-11 David Daney <ddaney@caviumnetworks.com>
16200 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
16203 2009-06-11 David Daney <ddaney@caviumnetworks.com>
16206 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
16207 * builtins.c (expand_builtin_unreachable): New function.
16208 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
16209 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
16210 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
16212 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
16213 searching for missing barriers.
16215 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16217 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
16218 when -fprofile-generate* was passed.
16219 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
16221 2009-06-11 Anthony Green <green@moxielogic.com>
16223 * config/moxie/moxie.md: Define length attribute for all instructions.
16225 (*b<cond:code>): Support limited branch ranges for new PC-relative
16226 branch instructions.
16227 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
16229 2009-06-11 Jakub Jelinek <jakub@redhat.com>
16231 * config/i386/i386.c (min_insn_size): Use get_attr_length
16232 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
16233 For __asm return 0.
16235 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
16236 instead of emit_insn_before.
16238 2009-06-10 Ian Lance Taylor <iant@google.com>
16241 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
16244 2009-06-10 Revital Eres <eres@il.ibm.com>
16246 * passes.c (init_optimization_passes): Reschedule
16247 predictive-commoning pass before complete unroll pass.
16249 2009-06-10 Martin Jambor <mjambor@suse.cz>
16251 * cgraph.c (cgraph_node_can_be_local_p): New function.
16252 (cgraph_make_node_local): New function.
16253 * cgraph.h (cgraph_node_can_be_local_p): Declare.
16254 (cgraph_make_node_local): Declare.
16256 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
16258 * tree.h (tree_base): Add packed_flag and user_align fields.
16259 Decrease size of spare field.
16260 (TYPE_USER_ALIGN): Use user_align from tree_base.
16261 (DECL_USER_ALIGN): Likewise.
16262 (TYPE_PACKED): Use packed_flag from tree_base.
16263 (DECL_PACKED): Likewise.
16264 (tree_type): Delete packed_flag and user_align fields. Widen
16265 precision field. Widen mode field and shuffle fields to align
16266 mode on an 8-bit boundary.
16267 (tree_decl_common): Delete decl_flag_1 and user_align fields.
16268 Renumber decl_flag_* fields. Fix comments. Widen
16269 decl_common_unused field.
16270 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
16271 (DECL_EXTERNAL): Likewise.
16272 (DECL_BIT_FIELD): Likewise.
16273 (DECL_NONADDRESSABLE_P): Likewise.
16274 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
16275 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
16277 2009-06-10 Ian Lance Taylor <iant@google.com>
16279 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
16280 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
16281 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
16282 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
16283 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
16284 DEF_VEC_ALLOC_FUNC_P.
16285 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
16286 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
16287 DEF_VEC_ALLOC_FUNC_O.
16288 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
16289 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
16290 DEF_VEC_ALLOC_FUNC_I.
16291 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
16292 (vec_stack_p_reserve_exact_1): Declare.
16293 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
16294 (vec_stack_free): Declare.
16295 (VEC_stack_alloc): Define.
16296 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
16297 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
16298 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
16299 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
16301 (stack_vecs): New static variable.
16302 (vec_stack_p_reserve_exact_1): New function.
16303 (vec_stack_o_reserve_1): New static function.
16304 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
16305 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
16306 (vec_stack_free): New function.
16307 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
16308 (VEC_df_ref_stack_alloc): Define.
16309 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
16310 DEF_VEC_ALLOC_P_STACK.
16311 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
16312 (struct df_collection_rec): Change _vec fields to VEC. Remove
16314 (df_free_collection_rec): Adjust for new fields.
16315 (df_insn_rescan): Use new df_collection_rec fields.
16316 (df_notes_rescan, df_canonize_collection_rec): Likewise.
16317 (df_ref_create_structure, df_ref_record): Likewise.
16318 (df_get_conditional_uses, df_get_call_refs): Likewise.
16319 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
16320 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
16321 (df_record_exit_block_uses, df_bb_verify): Likewise.
16322 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
16323 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
16324 Remove count parameter. Change return type to void. Change all
16326 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
16327 Remove count parameter. Change return type to void. Change all
16329 (df_install_refs): Change old_vec parameter to VEC. Remove count
16330 parameter. Change all callers.
16331 (df_install_mws): Change old_vec parameter to VEC. Remove count
16332 parameter. Change all callers.
16333 (df_refs_verify): Change new_rec parameter to VEC. Change call
16335 (df_mws_verify): Likewise.
16337 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
16339 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
16341 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
16343 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
16345 2009-06-10 Anthony Green <green@moxielogic.com>
16347 * config/moxie/crti.asm: New file.
16348 * config/moxie/crtn.asm: New file.
16349 * config/moxie/moxie.c: New file.
16350 * config/moxie/moxie.h: New file.
16351 * config/moxie/sfp-machine.h: New file.
16352 * config/moxie/moxie-protos.h: New file.
16353 * config/moxie/t-moxie: Created.
16354 * config/moxie/t-moxie-softfp: Created.
16355 * config/moxie/moxie.md: Created.
16356 * config/moxie/constraints.md: Created.
16357 * config.gcc: Add moxie support.
16358 * doc/md.texi (Machine Constraints): Add moxie constraints.
16359 * doc/contrib.texi (Contributors): Mention moxie port.
16360 * doc/install.texi (Specific): Mention the moxie port.
16362 2009-06-09 Ian Lance Taylor <iant@google.com>
16364 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
16365 compiling with C++.
16366 * optabs.c (optab_table): Only use designated initializers if
16367 HAVE_DESIGNATED_INITIALIZERS is defined.
16368 (convert_optab_table): Likewise.
16369 (init_optabs): Always call init_insn_codes if
16370 HAVE_DESIGNATED_INITIALIZERS is not defined.
16372 2009-06-09 Ian Lance Taylor <iant@google.com>
16374 * targhooks.c (default_builtin_vectorized_function): Change fn
16375 parameter to unsigned int.
16376 (default_builtin_vectorized_conversion): Change code parameter to
16378 (default_builtin_reciprocal): Change fn parameter to unsigned int.
16379 * targhooks.h: Update declarations.
16380 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
16381 parameter to unsigned int.
16383 * c-typeck.c (comptypes_check_enum_int): New static function.
16384 (comptypes_internal): Add enum_and_int_p parameter. Change all
16386 (comp_target_types): Add location parameter. Change all callers.
16387 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
16388 Change all callers.
16389 (function_types_compatible_p, type_lists_compatible_p): Likewise.
16390 (build_conditional_expr): Add colon_loc parameter. Change all
16392 (convert_for_assignment): Add location parameter. Change all callers.
16393 * c-parser.c (c_parser_conditional_expression): Pass location of
16394 colon to build_conditional_expr.
16395 * c-tree.h (build_conditional_expr): Update declaration.
16397 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
16399 * graphite.c: Revert previous patch.
16401 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
16404 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
16406 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
16408 * tree-ssa-loop-prefetch.c
16409 (loop_prefetch_arrays): Fixed a portability problem in printf format
16412 2009-06-09 Martin Jambor <mjambor@suse.cz>
16414 PR tree-optimization/40351
16415 * tree-sra.c (propagate_subacesses_accross_link): Check that a
16416 refrence to a potential artifical subaccess can be constructed.
16418 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16420 * config/sh/sh-protos.h (sh_optimization_options): Declare.
16421 (sh_override_options): Likewise.
16422 * config/sh/sh.c: Include params.h.
16423 (sh_optimization_options): New.
16424 (sh_override_options): Likewise.
16425 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
16426 (OVERRIDE_OPTIONS): Use sh_override_options.
16428 2009-06-08 Jakub Jelinek <jakub@redhat.com>
16430 * dwarf2out.c (emit_cfa_remember): New variable.
16431 (add_fde_cfi): If emit_cfa_remember, recurse to add
16432 DW_CFA_remember_state first.
16433 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
16434 instead just set emit_cfa_remember.
16436 2009-06-08 Jan Hubicka <jh@suse.cz>
16439 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
16441 2009-06-08 Jan Hubicka <jh@suse.cz>
16443 PR middle-end/39834
16444 * cgraphunit.c (save_inline_function_body): Do not copy transform
16445 hooks for saved inline bodies.
16446 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
16447 for given function.
16449 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
16451 * jump.c (returnjump_p): Handle delayed branches. Add missing
16454 2009-06-08 Jan Hubicka <jh@suse.cz>
16456 PR middle-end/40102
16457 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
16458 original node might've been modified.
16459 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
16461 2009-06-08 Jakub Jelinek <jakub@redhat.com>
16463 * tree-object-size.c (addr_object_size): Add OSI argument.
16464 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
16465 (compute_builtin_object_size, expr_object_size): Adjust callers.
16466 (plus_stmt_object_size): Call addr_object_size instead of
16467 compute_builtin_object_size.
16469 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
16470 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
16472 * tree-ssa-loop-prefetch.c
16473 (gather_memory_references): Introduced a counter for the number of
16475 (anything_to_prefetch_p): Introduced a counter for the number of
16477 (is_loop_prefetching_profitable): New function with a cost model
16479 (loop_prefetch_arrays): Use the new cost model to determine if
16480 prefetching is profitable.
16481 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
16482 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16483 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
16484 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16485 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
16486 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16488 2009-06-08 Michael Matz <matz@suse.de>
16491 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
16492 partitions use the same.
16493 (expand_one_var): Deal with DECL_RTL sometimes begin set also
16494 for basevars of SSA_NAMEs.
16495 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
16496 to not expand them twice.
16497 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16500 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
16502 * common.opt (fcompare-debug=, fcompare-debug-second): New.
16503 (fdump-final-insns=, gtoggle): New.
16504 * doc/invoke.texi: Document them.
16505 * final.c (rest_of_clean_state): Dump final insn stream.
16506 * gcc.c (invoke_as): Hook in -fcompare-debug.
16507 (static_spec_functions): Add compare-debug-dump-opt,
16508 compare-debug-self-opt and compare-debug-auxbase-opt.
16509 (compare_debug, compare_debug_second, compare_debug_opt): New.
16510 (switches_debug_check, n_switches_debug_check): New.
16511 (debug_auxbase_opt, debug_check_temp_file): New.
16512 (process_command): Handle -fno-compare-debug, -fcompare-debug and
16514 (do_self_spec): Handle arguments after switches.
16515 (do_spec_1): Add .gk extension to temp file basenames for compare.
16516 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16517 (cc1_options): Use it instead of normal auxbase computation for
16518 the second compare-debug compilation.
16519 (compare_files): New.
16520 (main): Set up and implement compare debug mode.
16521 (compare_debug_dump_opt_spec_function): New.
16522 (compare_debug_self_opt_spec_function): New.
16523 (compare_debug_auxbase_opt_spec_function): New.
16524 * toplev.c (process_options): Handle flag_gtoggle,
16525 flag_dump_final_insns.
16526 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16527 during -fcompare-debug-second compilation.
16529 2009-06-07 Ian Lance Taylor <iant@google.com>
16531 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16532 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16534 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16535 with no default node. Change warning with %H to warning_at.
16536 Don't clear warn_switch around case checking.
16537 * doc/invoke.texi (Warning Options): Clarify distinction between
16538 -Wswitch and -Wswitch-enum.
16540 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16542 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16544 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16546 * gbl-ctors.h: Add header guard.
16548 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16550 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16551 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16552 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16553 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16554 prototypes for removed functions.
16555 (expressions_equal_p): Move to ...
16556 * tree-ssa-sccvn.h: ... here and ...
16557 * matrix-reorg.c: ... adjust includes.
16559 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16561 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16563 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16565 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16566 (finish_function): Remove erroneous whitespace.
16568 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16570 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16571 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16573 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16575 * errors.c (internal_error): Commentary typo fix.
16576 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16577 * tree-ssa-pre.c: Ditto.
16579 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16581 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16582 them is supposed to hold actual statements.
16584 2009-06-06 Ian Lance Taylor <iant@google.com>
16586 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16587 empty statements can now have attributes.
16589 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
16591 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16592 * config/mips/mips.md: Ditto.
16594 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16596 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16598 (__eabi_uconvert): Likewise.
16600 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16602 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16603 CFI_* definitions with IN_GCC.
16605 2009-06-05 David Edelsohn <edelsohn@gnu.org>
16607 * xcoffout.h (xcoffout_source_line): Update prototype.
16609 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16611 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16612 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16614 2009-06-05 Jakub Jelinek <jakub@redhat.com>
16616 PR middle-end/40340
16617 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16618 inlined_function_outer_scope_p blocks for artificial inlines
16620 * tree.c (tree_nonartificial_location): Rewrite using
16621 block_nonartificial_location.
16623 2009-06-05 Revital Eres <eres@il.ibm.com>
16624 Leehod Baruch <leehod@il.ibm.com>
16626 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16627 (expand_expr_real_1): Remove comment.
16628 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16629 Vectorize misaligned access when the target supports it.
16630 (vect_supportable_dr_alignment): Check for unaligned access support.
16631 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16634 2009-06-05 Julian Brown <julian@codesourcery.com>
16636 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16637 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16639 2009-06-05 Richard Guenther <rguenther@suse.de>
16642 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16643 as possibly unused.
16645 2009-06-05 Jakub Jelinek <jakub@redhat.com>
16647 * config/s390/s390.c (global_not_special_regno_p): New static inline.
16648 (save_gprs): Don't tell unwinder when a global register is saved.
16649 (s390_emit_epilogue): Emit needed epilogue unwind info.
16651 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
16653 * dwarf2out.c (deferred_asm_name): New.
16654 (add_name_and_src_coords_attributes): Defer creation of
16655 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16657 (move_linkage_attr): New.
16658 (dwarf2out_finish): Revisit deferrals and emit attributes at the
16661 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
16663 * tree-nested.c (finalize_nesting_tree_1): Declare the
16664 frame_decl in the binding tree.
16666 2009-06-04 Cary Coutant <ccoutant@google.com>
16668 * basic-block.h (struct basic_block_def): Add discriminator field.
16669 * dbxout.c (dbxout_source_line): Add new parameter. Change all
16671 * debug.c (do_nothing_debug_hooks): Add additional entry.
16672 (debug_nothing_int_charstar_int): New function.
16673 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16674 (debug_nothing_int_charstar_int): New declaration.
16675 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
16676 discriminator value in .loc directive.
16677 * final.c (last_discriminator): New variable.
16678 (discriminator): New variable.
16679 (final_start_function): Initialize above variables, pass current
16680 discriminator to debug hook.
16681 (notice_source_line): Check for discriminator change.
16682 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16683 * sdbout.c (sdbout_source_line): New parameter.
16684 * tree-cfg.c (struct locus_discrim_map): New structure type.
16685 (discriminator_per_locus): New hash table.
16686 (build_gimple_cfg): Allocate and free discriminator hash table.
16687 (make_edges): Call assign_discriminator.
16688 (locus_map_hash): New function.
16689 (locus_map_eq): New function.
16690 (next_discriminator_for_locus): New function.
16691 (same_line_p): New function.
16692 (assign_discriminator): New function.
16693 (make_cond_expr_edges): Call assign_discriminator.
16694 (make_gimple_switch_edges): Likewise.
16695 (first_non_label_stmt): New function.
16696 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
16698 * xcoffout.c (xcoffout_source_line): Add new parameter.
16700 * configure.ac (gcc_cv_as_discriminator): New configury check for
16701 gas support for discriminator.
16702 * configure: Regenerate.
16703 * config.in: Regenerate.
16705 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16707 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16708 val after checking for integers.
16710 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
16712 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16714 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16715 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16716 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16717 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16718 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
16719 X64_SSE_REGPARM_MAX.
16720 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16721 X64_SSE_REGPARM_MAX.
16723 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16725 * gcc.c (report_times_to_file): New.
16726 (execute): Implement it.
16727 (process_command): Support -time=.
16728 * doc/invoke.texi: Document it.
16730 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16732 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16733 that have value exprs.
16735 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16737 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16738 declarations for constants until...
16739 (dw2_output_indirect_constant_1): ... this point.
16741 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
16744 * arm.md (arm_addsi3): Don't try to split an add with an
16745 eliminable register until after reload has completed.
16747 2009-06-03 Ian Lance Taylor <iant@google.com>
16749 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16750 * genattrtab.c (write_length_unit_log): Likewise.
16751 * genchecksum.c (dosum): Likewise.
16752 * gengtype.c (write_rtx_next): Likewise.
16753 (finish_root_table, write_roots): Likewise.
16754 * gimple.c (gimple_ops_offset_): Likewise.
16755 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16756 * config/arc/arc.c (arc_attribute_table): Likewise.
16757 * config/arm/arm.c (arm_attribute_table): Likewise.
16758 * config/avr/avr.c (avr_attribute_table): Likewise.
16759 * config/crx/crx.c (crx_attribute_table): Likewise.
16760 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16761 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16762 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16763 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16764 * config/sh/sh.c (sh_attribute_table): Likewise.
16765 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16766 * config/spu/spu.c (spu_attribute_table): Likewise.
16767 * config/v850/v850.c (v850_attribute_table): Likewise.
16769 * config/alpha/alpha.c (vms_attribute_table): Make static.
16770 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16771 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16772 * config/mips/mips.c (mips_attribute_table): Likewise.
16774 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16776 (cc1-checksum.o): Likewise.
16778 2009-06-03 Steve Ellcey <sje@cup.hp.com>
16780 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16782 2009-06-03 Jakub Jelinek <jakub@redhat.com>
16784 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16785 insn if it is changing sp. Use gen_add3_insn instead of
16786 conditionally gen_addsi3 and gen_adddi3.
16787 (offset_below_red_zone_p): New static inline function.
16788 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16789 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16790 * config/rs6000/ppc-asm.h: Include auto-host.h.
16791 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16792 CFI_RESTORE): Define.
16793 * config/rs6000/crtresxgpr.asm: Add unwind info.
16794 * config/rs6000/crtresxfpr.asm: Likewise.
16795 * config/rs6000/crtresgpr.asm: Likewise.
16796 * config/rs6000/crtresfpr.asm: Likewise.
16797 * config/rs6000/crtsavgpr.asm: Likewise.
16798 * config/rs6000/crtsavfpr.asm: Likewise.
16800 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16801 argument of DWARF2_FRAME_REG_OUT macros.
16803 2009-06-03 Julian Brown <julian@codesourcery.com>
16805 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16806 words or less (including TImode) in core registers.
16808 2009-06-03 Richard Guenther <rguenther@suse.de>
16810 PR middle-end/40328
16811 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16813 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
16815 * statistics.c (statistics_counter_event): Do not record event
16816 in pass dump if its number == -1.
16817 (curr_statistics_hash): Add assert that we never get passes
16818 with static number == -1.
16820 2009-06-03 Richard Guenther <rguenther@suse.de>
16821 Andrey Belevantsev <abel@ispras.ru>
16823 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16824 non-BLKmode arrays addressable.
16826 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
16828 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16829 * config/m68k/m68k.h: ... here.
16831 2009-06-03 Martin Jambor <mjambor@suse.cz>
16833 PR tree-optimization/40323
16834 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16837 2009-06-03 Richard Guenther <rguenther@suse.de>
16839 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16842 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
16844 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16845 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16846 JUMP_TABLE_DATA_P where applicable.
16847 * config/sh/sh.c: Ditto.
16848 * config/sh/sh.h: Ditto.
16849 * config/sh/sh.md: Ditto.
16850 * config/sh/symbian.c: Ditto.
16852 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
16854 * config/i386/driver-i386.c (describe_cache): Optimize
16855 concatenation of strings. Use snprintf instead of sprintf.
16856 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
16857 target when not compiling with GCC.
16859 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16861 * config/sh/sh.c: Revert last change.
16862 (sh_expand_epilogue): Emit a blockage insn before the frame
16863 pointer adjustment unconditionally.
16865 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16867 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16868 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16869 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16870 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16871 to COLLECT_GCC_OPTIONS.
16873 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16875 * collect2.c (target_system_root): New variable.
16876 (main): Handle --sysroot=.
16877 (ignore_library): Strip the sysroot from the library path.
16879 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16881 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16882 (collect2.o): Depend on collect2-aix.h.
16883 (collect2-aix.o): New rule.
16884 * collect2-aix.h: New file.
16885 * collect2-aix.c: Likewise.
16886 * collect2.c: Include collect2-aix.h. Don't undefine
16887 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16888 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16889 Use TARGET_AIX_VERSION instead of _AIX51.
16890 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16891 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16892 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16893 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16894 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16896 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16898 * collect2.c (ignore_library): Avoid premature post-increment
16899 and null deference.
16901 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16903 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16904 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16905 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16906 CROSS_DIRECTORY_STRUCTURE too.
16907 (LINK_LIBG_SPEC): Likewise.
16908 (LIB_SPEC): Add %R to sysroot paths.
16909 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16910 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16911 * config/rs6000/aix51.h: As for aix43.h.
16912 * config/rs6000/aix52.h: Likewise.
16913 * config/rs6000/aix53.h: Likewise.
16914 * config/rs6000/aix61.h: Likewise.
16915 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16916 to the beginning of sysroot paths.
16918 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16920 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16921 INSN_LISTs that are out of the REG_NOTE range.
16923 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16925 * loop-unroll.c (struct iv_to_split): Add pointer to next.
16926 (struct var_to_expand): Likewise.
16927 (struct opt_info): Add head and tail for linked lists of the above.
16928 (analyze_insn_to_expand_var): Initialize next.
16929 (analyze_iv_to_split_insn): Likewise.
16930 (analyze_insns_in_loop): Create linked lists.
16931 (allocate_basic_variable): Simplify for use without hash table.
16932 (insert_var_expansion_initialization): Likewise, make it type-safer.
16933 (combine_var_copies_in_loop_exit): Likewise.
16934 (apply_opt_in_copies): Walk lists rather than hash tables.
16935 (release_var_copies): Simplified and inlined by hand into...
16936 (free_opt_info): ... this function.
16938 2009-06-02 Richard Guenther <rguenther@suse.de>
16940 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16943 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16945 * cfgexpand.c (gimple_expand_cfg): Discard the source location
16946 only for builtins that are not overridden.
16948 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16950 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16953 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16955 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16957 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16959 * combine.c (move_deaths): Compare LUIDs within the same BB only.
16961 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16963 * common.opt (fdump-unnumbered-links): New.
16964 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16965 * print-rtl.c (flag_dump_unnumbered_links): New.
16966 (print_rtx): Test it.
16968 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
16970 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16971 push/pop multiple to 8-byte alignment.
16973 2009-06-01 Jakub Jelinek <jakub@redhat.com>
16975 * config/i386/i386.c (queued_cfa_restores): New static variable.
16976 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16978 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16979 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16980 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16981 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16982 note unconditionally.
16983 (ix86_emit_restore_regs_using_mov): Likewise.
16984 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16985 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16986 it through to ix86_emit_restore_reg_using_pop.
16987 (ix86_emit_leave): Add RED_OFFSET argument. Call
16988 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
16989 instead of adding REG_CFA_OFFSET note unconditionally.
16990 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16991 the above functions. Call ix86_add_queued_cfa_restore_notes when
16994 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16995 force output of the label even for dwarf2out_do_cfi_asm.
16996 (add_fde_cfi): If -g2 and above and cfi might change CFA,
16997 force creation of CFI label and chain DW_CFA_set_loc jumping to it
16998 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
17000 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
17001 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
17002 dwarf2out_cfi_label callers.
17003 * tree.h (dwarf2out_cfi_label): Adjust prototype.
17004 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
17005 Adjust dwarf2out_cfi_label callers.
17006 * config/vax/vax.c (vax_output_function_prologue): Likewise.
17008 * config/i386/i386.h (struct machine_cfa_state,
17009 struct machine_function): Guard with ifndef USED_FOR_TARGET
17010 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
17013 * emutls.c (__emutls_get_address): Change arr->size to mean number
17014 of allocated arr->data entries instead of # of slots + 1.
17016 PR middle-end/40316
17017 * recog.c (peep2_reinit_state): New function.
17018 (peephole2_init_state): Use it at the end of a basic block and also
17019 when seeing a RTX_FRAME_RELATED_P insn.
17021 2009-06-01 Steve Ellcey <sje@cup.hp.com>
17023 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
17024 fixuns_truncrfdi2): New.
17025 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
17026 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
17027 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
17028 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
17029 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
17030 *recip_approx): Remove.
17031 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
17032 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
17033 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
17035 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
17038 2009-06-01 Ian Lance Taylor <iant@google.com>
17040 * attribs.c (register_attribute): Use CONST_CAST.
17041 * collect2.c (main): Use CONST_CAST2.
17042 (scan_prog_file): Likewise.
17043 * gcc.c (process_command, main): Likewise.
17044 * toplev.c (toplev_main): Likewise.
17046 * c-typeck.c (handle_warn_cast_qual): New static function,
17047 partially broken out of build_c_cast.
17048 (build_c_cast): Call handle_warn_cast_qual.
17049 * doc/invoke.texi (Warning Options): Document new effect of
17052 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
17054 * diagnostic.c (diagnostic_build_prefix): Always print columns.
17055 (diagnostic_report_current_module): Print columns.
17056 * common.opt (flag_show_column): Enable by default.
17058 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
17060 * alias.c (find_base_term): Check for NULL term before returning.
17062 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
17064 Revert due to PR40320:
17065 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
17066 * calls.c (emit_library_call_value_1): Don't force_operand for move
17069 2009-06-01 Olivier Hainque <hainque@adacore.com>
17070 Eric Botcazou <ebotcazou@adacore.com>
17072 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
17073 to be processed as a bitfield for constructor output purposes.
17074 * output.h (initializer_constant_valid_for_bitfield_p): Declare
17076 * varasm.c (oc_local_state): New type, output_constructor
17077 local state to support communication with helpers.
17078 (oc_outer_state): New type, output_constructor outer state of
17079 relevance in recursive calls.
17080 (output_constructor_array_range): New output_constructor helper,
17081 extracted code for an array range element.
17082 (output_constructor_regular_field): New output_constructor helper,
17083 extracted code for an element that is not a bitfield.
17084 (output_constructor_bitfield): New output_constructor helper,
17085 extracted code for a bitfield element. Accept an OUTER state
17086 argument for recursive processing. Recurse on record or array
17087 CONSTRUCTOR values, possibly past noop conversions.
17088 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
17089 VALUE is a valid constant-valued expression for use in a static
17090 bit-field initializer.
17091 (output_constructor): Rework to use helpers. Accept and honor an
17092 OUTER state argument for recursive calls. Return total size. Be
17093 prepared for nested constructors initializing bitfields.
17094 (output_constant): Feed OUTER in calls to output_constructor.
17096 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
17098 * calls.c (emit_library_call_value_1): Don't force_operand for move
17101 2009-06-01 Nick Clifton <nickc@redhat.com>
17103 * doc/invoke.texi (IA-64 Options): Fix typo.
17105 2009-06-01 Ira Rosen <irar@il.ibm.com>
17107 PR tree-optimization/39129
17108 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
17110 (vect_do_peeling_for_loop_bound): Use
17111 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17112 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17113 (vect_loop_versioning): Likewise.
17114 (vect_create_cond_for_alias_checks): Fix indentation.
17115 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
17117 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
17118 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
17119 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
17120 "control flow in loop".
17121 (vect_estimate_min_profitable_iters): Use
17122 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17123 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17124 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17125 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
17126 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
17127 statement belongs to a group of strided accesses with the exact code
17129 (vectorizable_load): Likewise.
17130 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
17131 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17133 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
17135 * config/freebsd-stdint.h: New file.
17136 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
17137 Add freebsd-stdint.h to tm_file.
17139 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
17141 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
17142 (thumb2_extendhidi2): Likewise.
17144 2009-05-31 Ian Lance Taylor <iant@google.com>
17146 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
17148 2009-05-31 Ian Lance Taylor <iant@google.com>
17150 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
17151 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
17152 (ipa-reference.o): Depend upon gt-ipa-reference.h.
17154 2009-05-31 Jason Merrill <jason@redhat.com>
17156 * tree-pretty-print.c (print_call_name): Take the callee, not the
17157 call itself. Make non-static. Use dump_function_name for functions.
17158 (dump_generic_node): Adjust.
17159 * diagnostic.h: Declare print_call_name.
17160 * gimple-pretty-print.c (dump_gimple_call): Use it.
17162 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
17164 * config/sh/sh.md (ashldi3_std): New define_expand.
17167 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
17170 * config/sh/sh.c: Include debug.h.
17171 (sh_expand_epilogue): Emit a blockage insn before the frame
17172 pointer adjustment also when dwarf2out_do_frame returns true.
17174 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
17176 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
17177 (thumb2_extendqidi2): New pattern.
17179 2009-05-31 Ira Rosen <irar@il.ibm.com>
17181 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
17182 mark phis for renaming.
17183 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
17184 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
17185 Call mark_sym_for_renaming.
17186 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
17187 * tree-vect-loop.c (vect_transform_loop): Remove
17188 vect_memsyms_to_rename initialization and a call to
17189 mark_set_for_renaming.
17191 2009-05-31 Jakub Jelinek <jakub@redhat.com>
17193 PR middle-end/40304
17194 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
17195 frame related even if !set_cfa && style < 0.
17197 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
17199 * config/i386/mingw-tls.c: New file.
17200 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
17201 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
17202 defining _WIN32 but not __CYGWIN__.
17204 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17206 * configure.ac: Add MPC support.
17208 * config.in, configure: Regenerate.
17210 2009-05-29 Richard Henderson <rth@redhat.com>
17212 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
17213 NOTE_INSN_BASIC_BLOCK.
17214 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
17215 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
17216 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
17218 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
17220 (add_cfi): Disable check redefining cfa away from drap.
17221 (lookup_cfa_1): Add remember argument; handle remember/restore.
17222 (lookup_cfa): Pass remember argument.
17223 (cfa_remember): New.
17224 (compute_barrier_args_size_1): Remove sibcall check.
17225 (dwarf2out_frame_debug_def_cfa): New.
17226 (dwarf2out_frame_debug_adjust_cfa): New.
17227 (dwarf2out_frame_debug_cfa_offset): New.
17228 (dwarf2out_frame_debug_cfa_register): New.
17229 (dwarf2out_frame_debug_cfa_restore): New.
17230 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
17231 (dwarf2out_begin_epilogue): New.
17232 (dwarf2out_frame_debug_restore_state): New.
17233 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
17234 DW_CFA_restore_state.
17235 (output_cfi_directive): Likewise.
17236 (convert_cfa_to_fb_loc_list): Likewise.
17237 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
17238 * dwarf2out.h: Update.
17239 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
17240 (copy_insn_1): Early out for null.
17241 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
17242 and dwarf2out_frame_debug_restore_state.
17243 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
17244 (prologue_insn_hash, epilogue_insn_hash): New.
17245 (free_after_compilation): Adjust freeing accordingly.
17246 (record_insns): Create hash table if needed; push insns into
17247 hash instead of array.
17248 (maybe_copy_epilogue_insn): New.
17249 (contains): Search hash table instead of array.
17250 (sibcall_epilogue_contains): Remove.
17251 (thread_prologue_and_epilogue_insns): Split eh_return insns
17252 and mark them as epilogues.
17253 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
17254 scanning in terms of basic blocks.
17255 * insn-notes.def (CFA_RESTORE_STATE): New.
17256 * jump.c (returnjump_p_1): Accept EH_RETURN.
17257 (eh_returnjump_p_1, eh_returnjump_p): New.
17258 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
17259 CFA_REGISTER, CFA_RESTORE): New.
17260 * rtl.def (EH_RETURN): New.
17261 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
17263 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
17264 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
17266 * config/i386/i386.c (gen_push): Update cfa state.
17267 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
17268 add a CFA_ADJUST_CFA note.
17269 (ix86_dwarf_handle_frame_unspec): Remove.
17270 (ix86_expand_prologue): Update cfa state.
17271 (ix86_emit_restore_reg_using_pop): New.
17272 (ix86_emit_restore_regs_using_pop): New.
17273 (ix86_emit_leave): New.
17274 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
17275 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
17276 * config/i386/i386.h (struct machine_cfa_state): New.
17277 (ix86_cfa_state): New.
17278 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
17279 (eh_return_internal): Merge from eh_return_<mode>,
17280 use eh_return rtx, split w/ epilogue.
17282 2009-05-29 Ian Lance Taylor <iant@google.com>
17284 * builtins.c (validate_gimple_arglist): Don't use va_arg with
17286 * calls.c (emit_library_call_value_1): Likewise.
17288 * c-typeck.c (c_build_va_arg): New function.
17289 * c-tree.h (c_build_va_arg): Declare.
17290 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
17291 instead of build_va_arg.
17293 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
17295 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
17296 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
17297 (ptr_difference_cost): Use affine combinations to compute it.
17298 (difference_cost): Likewise.
17299 (get_computation_cost_at): Compute more accurate cost for addresses
17300 if the ratio is a multiplier allowed in addresses.
17301 For non-addresses, consider that an additional offset or symbol is
17304 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17306 * config/i386/i386.c (ix86_decompose_address): Avoid useless
17307 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
17309 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
17310 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
17311 (prefix_rex): For UNIT_MMX don't imply the prefix by default
17313 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
17314 to 1 for TYPE_SSE{IADD1,CVT1}.
17315 (prefix_vex_imm8): Removed.
17316 (length_vex): Only pass 1 as second argument to
17317 ix86_attr_length_vex_default if prefix_extra is 0.
17318 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
17319 (length): For prefix vex computation use length_immediate
17320 attribute instead of prefix_vex_imm8.
17321 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
17322 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
17323 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
17324 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
17325 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
17326 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
17327 a space in between the operands.
17328 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
17329 if one operand is 0xff and the other one si, di, bp or sp.
17330 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
17331 other one si, di, bp or sp.
17332 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
17333 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
17334 type and mode attributes.
17335 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
17336 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
17337 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
17338 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
17339 prefix_data16 attribute iff MODE_DF.
17340 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
17341 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
17342 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
17343 constm128_operand in length_immediate computation.
17344 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
17345 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
17346 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
17347 length_immediate attribute to 1.
17348 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
17349 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
17350 for certain alternatives.
17351 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
17352 prefix_data16 attribute if MODE_V1DF.
17353 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
17354 length_immediate to 1.
17355 (set_got_rex64, set_rip_rex64): Remove length attribute, set
17356 length_address to 4, set mode attribute to MODE_DI.
17357 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
17358 (fxam<mode>2_i387): Set length attribute to 4.
17359 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
17360 *prefetch_3dnow_rex): Override length_address attribute.
17361 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
17363 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
17364 (constm128_operand): Removed.
17365 * config/i386/i386.c (memory_address_length): For
17366 disp && !index && !base in 64-bit mode account for SIB byte if
17367 print_operand_address can't optimize disp32 into disp32(%rip)
17368 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
17369 for fs: or gs: segment.
17370 (ix86_attr_length_immediate_default): When checking if shortform
17371 is possible, truncate immediate to the length of the non-shortened
17373 (ix86_attr_length_address_default): Ignore MEM_P operands
17375 (ix86_attr_length_vex_default): Only check for DImode on
17376 GENERAL_REG_P operands.
17377 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
17378 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
17379 (sse_cvttps2pi): Clear prefix_rep attribute.
17380 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
17382 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
17383 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
17384 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
17385 iff operand 2 is const_int_operand.
17386 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
17387 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
17388 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
17390 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
17392 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
17393 prefix_data16 attribute for movlpd and movhpd instructions.
17394 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
17395 length_immediate for shufpd instruction.
17396 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
17397 (avx_cmpp<avxmodesuffixf2c><mode>3,
17398 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
17399 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
17400 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
17401 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
17402 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
17403 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
17404 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
17405 prefix_data16 attribute for the first alternative to 1.
17406 (*avx_loadlps): Override length_immediate for the first alternative.
17407 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
17408 attributes for second alternative.
17409 (*vec_concatv2sf_sse4_1): Override length_immediate and
17410 prefix_data16 attributes for second alternative.
17411 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
17412 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
17413 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
17414 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
17415 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
17416 prefix_data16 and length_immediate to 1.
17417 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
17419 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
17420 prefix_extra attribute for variants that don't have 0f prefix alone.
17421 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
17422 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
17423 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
17424 *sse4_1_pextrd): Set length_immediate to 1.
17425 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
17426 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
17428 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
17429 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
17430 length_immediate to 1 for second alternative.
17431 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
17432 prefix_extra and length_immediate attributes for the first
17434 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
17436 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
17437 to 1 for the first and third alternative.
17438 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
17440 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
17442 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
17444 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
17445 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
17446 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
17447 *avx_psign<mode>3): Set prefix_extra attribute to 1.
17448 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
17449 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
17450 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
17451 ssse3_psign<mode>3): Override prefix_rex attribute.
17452 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
17453 (ssse3_palignrti): Override length_immediate to 1.
17454 (ssse3_palignrdi): Override length_immediate to 1, override
17455 prefix_rex attribute.
17456 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
17457 (sse4a_extrqi): Override length_immediate to 2.
17458 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
17459 (sse4a_insertq): Override prefix_data16 to 0.
17460 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
17461 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
17462 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
17463 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
17464 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
17465 and length_immediate to 1.
17466 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
17467 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
17468 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
17469 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
17470 and length_immediate to 1.
17471 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
17472 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
17473 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
17474 avx_ptest256): Override prefix_extra to 1.
17475 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
17476 Override prefix_data16 and length_immediate to 1.
17477 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
17478 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
17479 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
17480 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
17481 prefix_data16 to 0 and prefix_extra to 2.
17482 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
17483 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
17485 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
17486 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
17487 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
17488 and prefix_extra to 2.
17489 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
17490 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
17491 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
17492 avx_vpermilvar<mode>3,
17493 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
17494 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
17495 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
17496 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
17497 Override prefix_extra to 1.
17498 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17499 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17500 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17501 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17502 prefix_extra and length_immediate to 1.
17503 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17505 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17506 to 1 for the first alternative.
17507 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17508 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17510 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17511 *movv2sf_internal_avx, *movv2sf_internal): Override
17512 prefix_rep attribute for certain alternatives.
17513 (*mov<mode>_internal): Override prefix_rep or prefix_data16
17514 attributes for certain alternatives.
17515 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17516 attributes for certain alternatives.
17517 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17518 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17519 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17520 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17521 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17522 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17523 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17524 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17525 length_immediate to 1 if operand 2 is const_int_operand.
17526 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17527 *vec_extractv2si_1): Set length_immediate attribute to 1.
17528 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17529 using old 3DNOW insn rather than SSE/3DNOW_A.
17530 (mmx_emms, mmx_femms): Clear modrm attribute.
17532 2009-05-29 Martin Jambor <mjambor@suse.cz>
17534 * tree-sra.c: New implementation of SRA.
17536 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17537 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17538 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17539 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17540 (SRA_MAX_STRUCTURE_COUNT): Removed.
17541 (SRA_FIELD_STRUCTURE_RATIO): Removed.
17542 * doc/invoke.texi (sra-max-structure-size): Removed.
17543 (sra-field-structure-ratio): Removed.
17545 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17547 PR middle-end/40291
17548 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17551 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
17553 PR rtl-optimization/40101
17554 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17555 seqno. Adjust comment.
17556 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17557 inserting bookkeeping before a jump, the jump is not scheduled.
17558 When no positive seqno found, provide a value. Add comment.
17560 2009-05-29 Richard Guenther <rguenther@suse.de>
17562 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17563 short-cutting on the first component.
17565 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17567 PR middle-end/39958
17568 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17569 for trees other than decls/types.
17571 2009-05-29 Richard Guenther <rguenther@suse.de>
17573 * tree-ssa-operands.c (get_expr_operands): Do not handle
17574 INDIRECT_REFs in the handled-component case. Remove
17575 unused get_ref_base_and_extent case.
17576 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17577 tree_low_cst and host_integerp where possible.
17578 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17579 codes for equivalence.
17580 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17582 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
17584 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17585 to tmake_file for i[34567]86-*-cygwin*.
17587 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17590 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17591 (altivec_categorize_keyword, init_vector_keywords,
17592 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17595 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
17597 * tree.c (handle_dll_attribute): Check if node is
17598 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17600 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
17602 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17604 (thumb2_zero_extendqidi2): Likewise.
17606 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
17608 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17609 instead of gen_movrt.
17610 * config/sh/sh.md (movrt): Remove.
17612 2009-05-28 Steve Ellcey <sje@cup.hp.com>
17614 * doc/invoke.texi (IA-64 Options):
17615 Add -msdata, -mfused-madd, -mno-inline-float-divide,
17616 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17617 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17618 -msched-prefer-non-control-spec-insns,
17619 -msched-stop-bits-after-every-cycle,
17620 -msched-count-spec-in-critical-path,
17621 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17622 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17623 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17624 and -msched-spec-verbose.
17626 2009-05-28 Joseph Myers <joseph@codesourcery.com>
17628 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17629 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17631 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17633 2009-05-28 Richard Guenther <rguenther@suse.de>
17635 * tree-ssa-alias.c (ao_ref_init): New function.
17636 (ao_ref_base): Likewise.
17637 (ao_ref_base_alias_set): Likewise.
17638 (ao_ref_alias_set): Likewise.
17639 (refs_may_alias_p_1): Change signature.
17640 (refs_may_alias_p): Adjust.
17641 (refs_anti_dependent_p): Likewise.
17642 (refs_output_dependent_p): Likewise.
17643 (call_may_clobber_ref_p_1): Change signature.
17644 (call_may_clobber_ref_p): Adjust.
17645 (stmt_may_clobber_ref_p_1): New function split out from ...
17646 (stmt_may_clobber_ref_p): ... here.
17647 (maybe_skip_until): Adjust signature.
17648 (get_continuation_for_phi): Likewise.
17649 (walk_non_aliased_vuses): Likewise.
17650 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17651 (ao_ref_init): Declare.
17652 (ao_ref_base): Likewise.
17653 (ao_ref_alias_set): Likewise.
17654 (stmt_may_clobber_ref_p_1): Likewise.
17655 (walk_non_aliased_vuses): Adjust.
17656 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17657 (get_ref_from_reference_ops): remove.
17658 (vn_reference_lookup_2): Adjust signature.
17659 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
17660 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17661 (vn_reference_lookup): Adjust.
17662 (vn_reference_insert): Likewise.
17663 (vn_reference_insert_pieces): Adjust signature.
17664 (visit_reference_op_call): Adjust.
17665 * tree-ssa-pre.c (get_expr_type): Simplify.
17666 (phi_translate_1): Adjust.
17667 (compute_avail): Likewise.
17668 (translate_vuse_through_block): Do not re-build trees.
17669 (value_dies_in_block_x): Likewise.
17670 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17672 (vn_reference_lookup_pieces): Adjust declaration.
17673 (vn_reference_insert_pieces): Likewise.
17675 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
17677 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17678 with checking disabled.
17680 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
17684 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
17685 macro definition for support of three-operand format aligned
17686 .comm directive in assembler on cygwin/pe/mingw target OS.
17687 * configure: Regenerate.
17688 * config.h: Regenerate.
17690 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
17691 aligned form of .comm directive if -mpe-aligned-commons is in effect.
17692 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
17694 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
17695 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
17697 2009-05-28 Ira Rosen <irar@il.ibm.com>
17699 PR tree-optimization/40254
17700 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17701 in analysis of basic blocks.
17703 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
17705 PR middle-end/33699
17706 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
17707 * target-def.h (TARGET_CONST_ANCHOR): New macro.
17708 (TARGET_INITIALIZER): Use it.
17709 * cse.c (CHEAPER): Move it up to the other macros.
17710 (insert): Rename this ...
17711 (insert_with_costs): ... to this. Add cost parameters. Update
17713 (insert): New function. Call insert_with_costs.
17714 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17715 find_reg_offset_for_const, try_const_anchors): New functions.
17716 (cse_insn): Call try_const_anchors. Adjust cost of src_related
17717 when using a const-anchor. Call insert_const_anchors.
17718 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17719 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17721 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
17723 * tree-inline.c (remap_decls): Enable nonlocalized variables
17724 when not optimizing.
17726 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
17728 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17729 Simplify other tests involving optimize.
17731 2009-05-27 Tom Tromey <tromey@redhat.com>
17733 * unwind-dw2.c (_Unwind_DebugHook): New function.
17734 (uw_install_context): Call _Unwind_DebugHook.
17736 2009-05-27 Tom Tromey <tromey@redhat.com>
17738 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17740 2009-05-27 Ian Lance Taylor <iant@google.com>
17742 * Makefile.in (LINKER, LINKER_FLAGS): Define.
17743 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17744 (ALL_LINKERFLAGS): Define.
17745 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17746 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17747 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17748 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17749 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17750 $(LINKER_FOR_BUILD).
17751 (build/gcov-iov$(build_exeext)): Likewise.
17753 2009-05-27 Julian Brown <julian@codesourcery.com>
17755 * gcse.c (target.h): Include.
17756 (can_assign_to_reg_without_clobbers_p): Check that the target allows
17757 copy of argument to a pseudo register.
17759 2009-05-27 Diego Novillo <dnovillo@google.com>
17761 * tree-ssa-live.c (dump_scope_block): Document arguments.
17762 (dump_scope_blocks): Document.
17763 (debug_scope_blocks): New.
17764 * tree-flow.h (debug_scope_blocks): Declare.
17766 2009-05-21 Denis Chertykov <denisc@overta.ru>
17768 * doc/contrib.texi (Contributors): Add myself to the list.
17770 2009-05-27 Olivier Hainque <hainque@adacore.com>
17772 * expr.c (target_align): New function. Alignment the TARGET of an
17773 assignment may be assume to have.
17774 (highest_pow2_factor_for_target): Use it instead of relying on
17775 immediate tree attributes of TARGET, not necessarily honored when
17776 intermediate bitfields are involved.
17778 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
17781 * config/i386/driver-i386.c (host_detect_local_cpu): Support
17782 AVX, SSE4, AES, PCLMUL and POPCNT.
17784 2009-05-27 Diego Novillo <dnovillo@google.com>
17786 * tree-pretty-print.c (dump_location): New.
17787 (dump_generic_node): Call it.
17788 Factor code to handle BLOCK nodes ...
17789 (dump_block_node): ... here.
17791 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
17793 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17795 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17797 * gcc-plugin.h: Include config.h and system.h.
17798 (IN_GCC): Define if not defined.
17800 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
17802 PR middle-end/40249
17803 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17806 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
17808 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17810 * config/m32r/m32r.h: Ditto.
17811 * config/m32r/m32r.md: Ditto.
17812 * config/m32r/predicates.md: Ditto.
17814 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
17816 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17818 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
17821 (Loading plugins): typo.
17822 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17823 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17824 (Interacting with the GCC Garbage Collector): Added new section.
17825 (Giving information about a plugin): Added new section for
17827 * ggc.h (ggc_register_root_tab): Added declaration.
17828 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17829 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17830 (register_callback): Improved comment in declaration.
17831 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17832 (extra_root_vec) Added static variable for dynamic roots registration.
17833 (ggc_register_root_tab) Added new routine.
17834 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17835 PLUGIN_GGC_MARKING event.
17836 * ggc-zone.c: Include plugin.h.
17837 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17838 * ggc-page.c: Include plugin.h.
17839 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17840 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17841 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17842 (register_callback): check lack of callbacks for
17843 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17844 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17845 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17846 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17847 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17848 dependency on plugin.h.
17849 (plugin.o): Added dependency on ggc.h...
17851 2009-05-26 Richard Guenther <rguenther@suse.de>
17853 PR middle-end/40248
17855 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17856 with mismatched comparison modes.
17858 * expr.c (expand_expr_real_1): Expand the operand of a
17859 VIEW_CONVERT_EXPR in its natural mode.
17861 2009-05-26 Ian Lance Taylor <iant@google.com>
17863 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17864 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17865 (ALL_COMPILERFLAGS): Define.
17866 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17867 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17868 (collect2$(exeext), collect2.o): Likewise.
17869 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17870 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17871 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17872 (libbackend.o, intl.o, cppdefault.o): Likewise.
17873 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17874 (build/%.o): Use $(COMPILER_FOR_BUILD).
17875 (build/gen%$(build_exeext)): Likewise.
17876 (build/gcov-iov$(build_exeext)): LIkewise.
17877 * config/t-darwin (darwin.o): Use $(COMPILER).
17878 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17879 * config/t-sol2 (sol2-c.o): Likewise.
17880 (sol2.o): Likewise.
17881 * config/t-vxworks (vxworks.o): Likewise.
17882 * config/x-darwin (host-darwin.o): Likewise.
17883 * config/x-hpux (host-hpux.o): Likewise.
17884 * config/x-linux (host-linux.o): Likewise.
17885 * config/x-solaris (host-solaris.o): Likewise.
17886 * config/alpha/x-alpha (driver-alpha.o): Likewise.
17887 * config/arm/t-arm (arm-c.o): Likewise.
17888 * config/arm/t-pe (pe.o): Likewise.
17889 * config/arm/t-wince-pe (pe.o): Likewise.
17890 * config/i386/t-cygming (winnt.o): Likewise.
17891 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17892 * config/i386/t-cygwin (cygwin1.o): Likewise.
17893 (cygwin2.o): Likewise.
17894 * config/i386/t-i386 (i386-c.o): Likewise.
17895 * config/i386/t-interix (winnt.o): Likewise.
17896 * config/i386/t-netware (netware.o): Likewise.
17897 * config/i386/t-nwld (nwld.o): Likewise.
17898 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17899 * config/i386/x-i386 (driver-i386.o): Likewise.
17900 * config/i386/x-cygwin (host-cygwin.o): Likewise.
17901 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17902 * config/ia64/t-ia64 (ia64-c.o): Likewise.
17903 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17904 * config/mips/x-native (driver-native.o): Likewise.
17905 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17906 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17907 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17908 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17909 * config/score/t-score-elf (score7.o): Likewise.
17910 (score3.o): Likewise.
17911 * config/sh/t-sh (sh-c.o): Likewise.
17912 * config/sh/t-symbian (sh-c.o): Likewise.
17913 (symbian.o): Likewise.
17914 * config/spu/t-spu-elf (spu-c.o): Likewise.
17915 * config/v850/t-v850 (v850-c.o): Likewise.
17916 * config/v850/t-v850e (v850-c.o): Likewise.
17918 2009-05-26 Richard Guenther <rguenther@suse.de>
17920 PR tree-optimization/40122
17921 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17922 VECTOR_CSTs if possible.
17923 (fold_gimple_assign): Likewise.
17925 2009-05-26 Richard Guenther <rguenther@suse.de>
17927 PR middle-end/40252
17928 * fold-const.c (fold_binary): Use the correct types for building
17931 2009-05-26 Richard Guenther <rguenther@suse.de>
17933 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17934 redundant calls to merge_alias_info.
17935 (bump_vector_ptr): Likewise.
17936 * tree-ssa-copy.c (merge_alias_info): Remove.
17937 (replace_exp_1): Remove call to merge_alias_info.
17938 (propagate_tree_value): Likewise.
17939 (fini_copy_prop): Propagate points-to info.
17940 * tree-flow.h (merge_alias_info): Remove.
17942 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
17944 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17946 2009-05-25 Jan Hubicka <jh@suse.cz>
17948 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17949 * cgraph.h (struct inline_summary): New filed self_wize,
17950 size_inlining_benefit, self_time and time_inlining_benefit.
17951 (struct cgraph_global_info): Replace insns by time ans size fields.
17952 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17953 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17954 (ipcp_update_callgraph): Do not touch function bodies.
17955 * ipa-inline.c: Include except.h
17956 (MAX_TIME): New constant.
17957 (overall_insns): Remove.
17958 (leaf_node_p): New.
17959 (overall_size, max_benefit): New static variables.
17960 (cgraph_estimate_time_after_inlining): New function.
17961 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17962 (cgraph_clone_inlined_nodes): Update size.
17963 (cgraph_mark_inline_edge): Update size.
17964 (cgraph_estimate_growth): Use size info.
17965 (cgraph_check_inline_limits): Check size.
17966 (cgraph_default_inline_p): Likewise.
17967 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17968 (cgraph_decide_recursive_inlining): Check size.
17969 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17971 (cgraph_decide_inlining): Likewise.
17972 (cgraph_decide_inlining_incrementally): Likewise; honor
17973 PARAM_EARLY_INLINING_INSNS.
17974 (likely_eliminated_by_inlining_p): New predicate.
17975 (estimate_function_body_sizes): New function.
17976 (compute_inline_parameters): Use it.
17977 * except.c (must_not_throw_labels): New function.
17978 * except.h (must_not_throw_labels): Declare.
17979 * tree-inline.c (init_inline_once): Kill inlining_weigths
17980 * tree-ssa-structalias.c: Avoid uninitialized warning.
17981 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17982 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17983 (PARAM_INLINE_CALL_COST): Remove.
17984 (PARAM_EARLY_INLINING_INSNS): New.
17986 2009-05-25 Richard Guenther <rguenther@suse.de>
17988 PR tree-optimization/36327
17989 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17990 callback for reference translation or lookup at the point of may-defs.
17991 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17992 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17993 for union COMPONENT_REFs.
17994 (vn_reference_lookup_3): New callback. Lookup from memset
17995 and CONSTRUCTOR assignment, translate through struct copies.
17996 (vn_reference_lookup_pieces): Make sure to not free the
17997 passed operands array. Adjust walk_non_aliased_vuses call.
17998 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17999 make sure we do not leak memory.
18001 2009-05-25 Richard Guenther <rguenther@suse.de>
18003 * tree-ssa-alias.h (dump_points_to_solution): Declare.
18004 * tree-inline.c (expand_call_inline): Reset the escaped and
18005 callused solutions.
18006 * tree-ssa-structalias.c (pass_build_ealias): New.
18007 * tree-pass.h (pass_build_ealias): Declare.
18008 * passes.c (init_optimization_passes): Add PTA during
18009 early optimizations.
18010 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
18011 and CALLUSED solutions.
18012 (dump_points_to_solution): New function, split out from ...
18013 (dump_points_to_info_for): ... here.
18014 * tree-parloops.c (parallelize_loops): Reset the escaped and
18015 callused solutions.
18017 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18020 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
18021 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
18023 2009-05-25 Ira Rosen <irar@il.ibm.com>
18025 PR tree-optimization/40238
18026 * tree-vect-stmts.c (vect_init_vector): Insert initialization
18027 statements after basic block's labels.
18028 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
18029 to free the allocated memory.
18031 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
18033 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
18034 return address with a USE.
18036 2009-05-24 Richard Guenther <rguenther@suse.de>
18038 PR middle-end/40233
18039 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
18040 array type from the main variant of the inner type.
18042 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18044 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
18045 definition to bool (from int) to un-break build.
18046 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
18048 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
18050 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
18051 discard_stmt_changes): Delete.
18052 * tree-ssa-operands.c (scb_stack): Delete.
18053 (init_ssa_operands): Do not initialize it.
18054 (fini_ssa_operands): Do not free it.
18055 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
18057 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
18058 update_stmt, remove the others. Fix comments.
18059 * tree-dfa.c (optimize_stack_restore): Likewise.
18060 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
18061 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
18062 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
18063 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
18065 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18066 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
18067 (dom_opt_finalize_block): Likewise, adjusting access to
18069 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
18070 (stmts_to_rescan): Change item type to gimple.
18071 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
18073 2009-05-24 Ira Rosen <irar@il.ibm.com>
18075 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
18076 * tree-pass.h (pass_slp_vectorize): New pass.
18077 * params.h (SLP_MAX_INSNS_IN_BB): Define.
18078 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
18079 * tree-vectorizer.c (timevar.h): Include.
18080 (user_vect_verbosity_level): Declare.
18081 (vect_location): Fix comment.
18082 (vect_set_verbosity_level): Update user_vect_verbosity_level
18083 instead of vect_verbosity_level.
18084 (vect_set_dump_settings): Add an argument. Ignore user defined
18085 verbosity if dump flags require higher level of verbosity. Print to
18086 stderr only for loop vectorization.
18087 (vectorize_loops): Update call to vect_set_dump_settings.
18088 (execute_vect_slp): New function.
18089 (gate_vect_slp): Likewise.
18090 (struct gimple_opt_pass pass_slp_vectorize): New.
18091 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
18092 access its members.
18093 (vec_info_for_bb): New function.
18094 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
18095 (VECTORIZATION_ENABLED): New macro.
18096 (SLP_ENABLED, SLP_DISABLED): Likewise.
18097 (vect_is_simple_use): Add bb_vec_info argument.
18098 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
18099 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
18100 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
18101 vect_schedule_slp, vect_analyze_slp): Likewise.
18102 (vect_analyze_stmt): Add slp_tree argument.
18103 (find_bb_location): Declare.
18104 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
18105 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
18106 (vect_analyze_loop_operations, vect_analyze_loop,
18107 get_initial_def_for_induction, vect_create_epilog_for_reduction,
18108 vect_finalize_reduction, vectorizable_reduction,
18109 vectorizable_live_operation, vect_transform_loop): Likewise.
18110 * tree-data-ref.c (dr_analyze_innermost): Update comment,
18111 skip evolution analysis if analyzing a basic block.
18112 (dr_analyze_indices): Likewise.
18113 (initialize_data_dependence_relation): Skip the test whether the
18114 object is invariant for basic blocks.
18115 (compute_all_dependences): Skip dependence analysis for data
18116 references in basic blocks.
18117 (find_data_references_in_stmt): Don't fail in case of invariant
18118 access in basic block.
18119 (find_data_references_in_bb): New function.
18120 (find_data_references_in_loop): Move code to
18121 find_data_references_in_bb and add a call to it.
18122 (compute_data_dependences_for_bb): New function.
18123 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
18124 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
18126 (vect_analyze_data_ref_dependence): Check for interleaving in case of
18127 unknown dependence in basic block and fail in case of dependence in
18129 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
18130 dependence instances from either loop or basic block vectorization
18132 (vect_compute_data_ref_alignment): Check if it is loop vectorization
18133 before calling nested_in_vect_loop_p.
18134 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
18135 dependence instances from either loop or basic block vectorization
18137 (vect_verify_datarefs_alignment): Likewise.
18138 (vect_enhance_data_refs_alignment): Adjust function calls.
18139 (vect_analyze_data_refs_alignment): Likewise.
18140 (vect_analyze_group_access): Fix printing. Skip different checks if
18141 DR_STEP is 0. Keep strided stores either in loop or basic block
18142 vectorization data structure. Fix indentation.
18143 (vect_analyze_data_ref_access): Fix comments, allow zero step in
18145 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
18146 dependence instances from either loop or basic block vectorization
18148 (vect_analyze_data_refs): Update comment. Call
18149 compute_data_dependences_for_bb to analyze basic blocks.
18150 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
18151 case of loop vectorization. In case of basic block vectorization use
18152 data-ref itself as a base.
18153 (vect_create_data_ref_ptr): In case of basic block vectorization:
18154 don't advance the pointer, add new statements before the current
18155 statement. Adjust function calls.
18156 (vect_supportable_dr_alignment): Support only aligned accesses in
18157 basic block vectorization.
18158 * common.opt (ftree-slp-vectorize): New flag.
18159 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
18160 (vect_pattern_recog_1): Likewise.
18161 * tree-vect-stmts.c (process_use): Likewise.
18162 (vect_init_vector): Add new statements in the beginning of the basic
18163 block in case of basic block SLP.
18164 (vect_get_vec_def_for_operand): Adjust function calls.
18165 (vect_finish_stmt_generation): Likewise.
18166 (vectorizable_call): Add assert that it is loop vectorization, adjust
18168 (vectorizable_conversion, vectorizable_assignment): Likewise.
18169 (vectorizable_operation): In case of basic block SLP, take
18170 vectorization factor from statement's type and skip the relevance
18171 check. Adjust function calls.
18172 (vectorizable_type_demotion): Add assert that it is loop
18173 vectorization, adjust function calls.
18174 (vectorizable_type_promotion): Likewise.
18175 (vectorizable_store): Check for outer loop only in case of loop
18176 vectorization. Adjust function calls. For basic blocks, skip the
18177 relevance check and don't advance pointers.
18178 (vectorizable_load): Likewise.
18179 (vectorizable_condition): Add assert that it is loop vectorization,
18180 adjust function calls.
18181 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
18182 that it is not reduction, get vector type, call only supported
18183 functions, skip loop specific parts.
18184 (vect_transform_stmt): Check for outer loop only in case of loop
18186 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
18187 (vect_is_simple_use): Fix comment, add new argument, fix conditions
18188 for external definition.
18189 * passes.c (pass_slp_vectorize): New pass.
18190 * tree-vect-slp.c (find_bb_location): New function.
18191 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
18192 check for patterns only in loops.
18193 (vect_build_slp_tree): Add argument, adjust function calls, fail in
18194 case of multiple types in basic block SLP.
18195 (vect_mark_slp_stmts_relevant): New function.
18196 (vect_supported_load_permutation_p): Fix comment.
18197 (vect_analyze_slp_instance): Add argument. In case of basic block
18198 SLP, take vectorization factor from statement's type, check that
18199 unrolling factor is 1. Adjust function call. Save SLP instance in
18200 either loop or basic block vectorization structure. Return FALSE,
18202 (vect_analyze_slp): Add argument. Get strided stores groups from
18203 either loop or basic block vectorization structure. Return FALSE
18204 if basic block SLP failed.
18205 (new_bb_vec_info): New function.
18206 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
18207 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
18208 (vect_schedule_slp): Add argument. Get SLP instances from either
18209 loop or basic block vectorization structure. Set vectorization factor
18210 to be 1 for basic block SLP.
18211 (vect_slp_transform_bb): New function.
18212 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
18214 2009-05-23 Mark Mitchell <mark@codesourcery.com>
18216 * final.c (shorten_branches): Do not align labels for jump tables.
18217 (final_scan_insn): Use JUMP_TABLE_DATA_P.
18219 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
18221 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
18222 Remove outdated reference to flow.c and fix nits.
18223 * doc/gccint.texi: Tweak RTL description.
18224 * doc/rtl.texi: Likewise.
18226 2009-05-23 Denis Chertykov <chertykov@gmail.com>
18228 * config/avr/avr.c: Change my email address.
18229 * config/avr/avr.h: Likewise.
18230 * config/avr/avr.md: Likewise.
18231 * config/avr/avr-protos.h: Likewise.
18232 * config/avr/libgcc.S: Likewise.
18234 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
18236 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
18237 (spu_split_load, spu_split_store): Change return type to int.
18238 (spu_split_convert): Declare.
18239 * config/spu/predicates.md (spu_mem_operand): Remove.
18240 (spu_mov_operand): Update.
18241 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
18242 * config/spu/spu.c (regno_aligned_for_load): Remove.
18243 (reg_aligned_for_addr, spu_expand_load): Define.
18244 (spu_expand_extv): Reimplement and handle MEM.
18245 (spu_expand_insv): Handle MEM.
18246 (spu_sched_reorder): Handle insn's with length 0.
18247 (spu_legitimate_address_p): Reimplement.
18248 (store_with_one_insn_p): Return TRUE for any mode with size
18249 larger than 16 bytes.
18250 (address_needs_split): Define.
18251 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
18253 (spu_convert_move): Define.
18254 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
18255 (spu_split_store): Change all MEM's to TImode.
18256 (spu_init_expanders): Preallocate registers that correspond to
18257 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
18259 (spu_split_convert): Define.
18260 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
18261 (_move<mode>, _movdi, _movti): Update predicate and condition.
18262 (load, store): Change to define_split.
18263 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
18265 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
18266 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
18267 define_insn_and_split of lshr<mode>3.
18268 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
18269 (<v>ashr<mode>3_imm): Define.
18270 (extv, extzv, insv): Allow MEM operands.
18271 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
18272 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
18273 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
18274 (_spu_convert2): Change to define_insn_and_split and remove the
18275 corresponding define_peephole2.
18276 (stack_protect_set, stack_protect_test, stack_protect_test_si):
18277 Change predicates to memory_operand.
18279 2009-05-22 Mark Mitchell <mark@codesourcery.com>
18281 * config/arm/thumb2.md: Add 16-bit multiply instructions.
18283 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18285 PR tree-optimization/40219
18286 * tree.c (iterative_hash_expr): Make sure the builtin function is
18287 a normal builtin function and not a front end or back end builtin
18288 before indexing into the built_in_decls array.
18290 2009-05-22 Richard Guenther <rguenther@suse.de>
18292 PR middle-end/38964
18293 * alias.c (write_dependence_p): Do not use TBAA for answering
18294 anti-dependence or output-dependence.
18295 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
18296 (emit_pointer_definition): Remove.
18297 (emit_alias_warning): Likewise.
18298 (find_what_var_points_to): Remove TBAA pruning code.
18299 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
18301 (compute_points_to_sets): Remove code computing the set of
18302 dereferenced pointers.
18303 * tree-data-ref.c (dr_may_alias_p): Properly use the split
18304 oracle for querying anti and output dependencies.
18305 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
18306 if TBAA may be applied.
18307 (refs_anti_dependent_p): New function.
18308 (refs_output_dependent_p): Likewise.
18309 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
18310 (refs_output_dependent_p): Likewise.
18311 * doc/tree-ssa.texi (Memory model): New section.
18312 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18313 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18314 * cfgexpand.c (expand_gimple_basic_block): Do not handle
18315 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
18316 * expr.c (expand_expr_real_1): Likewise.
18317 * gimple-low.c (lower_stmt): Likewise.
18318 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
18319 (dump_gimple_cdt): Remove.
18320 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18321 (gimple_size): Likewise.
18322 (walk_gimple_op): Likewise.
18323 (is_gimple_stmt): Likewise.
18324 (walk_stmt_load_store_addr_ops): Likewise.
18325 (gimple_build_cdt): Remove.
18326 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18327 * gimple.h (gimple_cdt_new_type): Remove.
18328 (gimple_cdt_new_type_ptr): Likewise.
18329 (gimple_cdt_set_new_type): Likewise.
18330 (gimple_cdt_location): Likewise.
18331 (gimple_cdt_location_ptr): Likewise.
18332 (gimple_cdt_set_location): Likewise.
18333 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18334 * tree-cfg.c (remove_useless_stmts_1): Do not handle
18335 GIMPLE_CHANGE_DYNAMIC_TYPE.
18336 (verify_types_in_gimple_stmt): Likewise.
18337 * tree-inline.c (estimate_num_insns): Likewise.
18338 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
18339 (copy_decl_to_var): Likewise.
18340 (copy_result_decl_to_var): Likewise.
18341 * tree-pretty-print.c (dump_generic_node): Do not handle
18342 CHANGE_DYNAMIC_TYPE_EXPR.
18343 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18344 * tree-ssa-operands.c (get_expr_operands): Likewise.
18345 * tree-ssa-structalias.c (struct variable_info): Remove
18346 no_tbaa_pruning member.
18347 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
18348 (unify_nodes): Do not copy it.
18349 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18350 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
18351 (set_uids_in_ptset): Do not check it.
18352 (find_what_var_points_to): Likewise.
18353 (compute_tbaa_pruning): Remove.
18354 (compute_points_to_sets): Do not call it.
18355 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18356 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18357 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
18358 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
18359 (DECL_NO_TBAA_P): Likewise.
18360 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
18361 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
18362 (expand_omp_atomic_pipeline): Do not set it.
18363 * print-tree.c (print_node): Do not dump it.
18364 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18367 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
18370 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
18373 2009-05-22 Mark Mitchell <mark@codesourcery.com>
18375 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
18378 2009-05-22 Ben Elliston <bje@au.ibm.com>
18380 * Makefile.in (bversion.h, s-bversion): New targets.
18381 (TOPLEV_H): Add bversion.h.
18382 * toplev.h: Include "bversion.h".
18383 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
18384 the __format__ attribute only if compiling with the same version
18385 of GCC as the sources (the "build version").
18387 2009-05-22 Ben Elliston <bje@au.ibm.com>
18389 * c-format.c (handle_format_attribute): Fix comment typo.
18391 2009-05-21 Steve Ellcey <sje@cup.hp.com>
18394 * config/ia64/ia64.opt (mfused-madd): New.
18395 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
18396 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
18397 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
18398 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
18399 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
18400 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
18401 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
18402 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
18403 instruction if !TARGET_FUSED_MADD.
18404 (fpma, fpms): Remove colon from name.
18406 2009-05-22 Richard Guenther <rguenther@suse.de>
18408 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
18409 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
18410 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18412 (create_expression_by_pieces): Only convert if necessary.
18413 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
18414 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
18416 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
18418 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
18419 regular pattern from a template and rename it ...
18420 (*extzv_truncsi_exts): ... to this.
18422 2009-05-21 Richard Guenther <rguenther@suse.de>
18424 * cgraph.h (struct cgraph_node): Remove inline_decl member.
18425 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
18426 (cgraph_default_inline_p): Likewise.
18427 (cgraph_decide_inlining_incrementally): Likewise.
18429 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
18430 Uros Bizjak <ubizjak@gmail.com>
18432 * config/i386/cpuid.h (bit_MOVBE): New.
18434 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
18436 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
18437 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
18438 (ix86_handle_option): Handle OPT_mmovbe.
18439 (ix86_target_string): Add -mmovbe.
18440 (pta_flags): Add PTA_MOVBE.
18441 (processor_alias_table): Add PTA_MOVBE to "atom".
18442 (override_options): Handle PTA_MOVBE.
18444 * config/i386/i386.h (TARGET_MOVBE): New.
18446 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
18447 (*bswapsi_movbe): New.
18448 (*bswapdi_movbe): Likewise.
18449 (bswapdi2): Renamed to ...
18450 (*bswapdi_1): This.
18451 (bswapdi2): New expander.
18453 * config/i386/i386.opt (mmovbe): New.
18455 * doc/invoke.texi: Document -mmovbe.
18457 2009-05-21 Taras Glek <tglek@mozilla.com>
18459 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
18460 * gcc-plugin.h (plugin_init): Updated signature.
18461 * gcc-plugin.h (plugin_name_args): Moved to this header.
18462 * doc/plugins.texi (plugin_init): Updated documention to reflect
18464 * doc/plugins.texi (plugin_name_args): Added to documention.
18466 2009-05-21 Mark Mitchell <mark@codesourcery.com>
18468 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
18469 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
18471 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
18473 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
18474 JUMP_TABLE_DATA_P predicates where applicable.
18475 * config/i386/predicates.md: Ditto.
18476 * config/i386/sse.md: Ditto.
18478 2009-05-21 Jakub Jelinek <jakub@redhat.com>
18480 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
18481 operand2 -128 override length_immediate attribute to 1.
18482 * config/i386/predicates.md (constm128_operand): New predicate.
18484 * config/i386/i386.c (memory_address_length): Handle %r12
18485 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
18487 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
18488 mode look through optional ZERO_EXTEND and SUBREG.
18489 * config/i386/i386.md (R12_REG): New define_constant.
18490 (prefix_data16): For sse unit set also for MODE_TI insns.
18491 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
18492 insns set if operand 1 is ext_QIreg_operand.
18493 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
18494 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
18496 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
18497 mode from MODE_DI to MODE_SI.
18498 (movdi_1_rex64): Override modrm and length_immediate attributes
18499 only for movabs (TYPE_IMOV, alternative 2).
18500 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18501 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18502 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18503 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18504 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18505 prefix_rex attribute if DImode.
18506 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18507 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18508 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18509 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18510 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18511 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18512 Likewise. For TYPE_IMOV clear length_immediate attribute.
18513 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18514 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18515 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18516 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18517 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18518 or one operand TYPE_ISHIFT.
18519 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18520 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18521 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18522 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18523 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18524 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18525 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18526 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18527 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18528 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18529 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18530 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18531 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18532 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18533 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18534 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18535 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18536 set mode attribute, don't override length attribute.
18537 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18539 (return_internal_long): Set length attribute to 2 instead of 1.
18540 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18541 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18542 prefix_rex attribute.
18543 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18545 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18547 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18549 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18551 2009-05-20 Ian Lance Taylor <iant@google.com>
18553 * tree.c (build_tree_list_vec_stat): New function.
18554 (ctor_to_vec): New function.
18555 (build_nt_call_vec): New function.
18556 (build_call_array): Change args to be a const pointer.
18557 (build_call_vec): New function.
18558 * tree.h (build_nt_call_vec): Declare.
18559 (build_tree_list_vec_stat): Declare.
18560 (build_tree_list_vec): Define.
18561 (build_call_array): Update declaration.
18562 (build_call_vec): Declare.
18563 (ctor_to_vec): Declare.
18564 * c-common.c (tree_vector_cache): New static variable.
18565 (make_tree_vector): New function.
18566 (release_tree_vector): New function.
18567 (make_tree_vector_single): New function.
18568 (make_tree_vector_copy): New function.
18569 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18570 (make_tree_vector_single, make_tree_vector_copy): Declare.
18571 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18572 (c_parser_expr_list): Don't manage cache here, instead call
18574 (c_parser_release_expr_list): Remove static function.
18575 (c_parser_vec_to_tree_list): Remove static function.
18576 (c_parser_attributes): Call build_tree_list_vec instead of
18577 c_parser_vec_to_tree_list. Call release_tree_vector instead of
18578 c_parser_release_expr_list.
18579 (c_parser_postfix_expression_after_primary): Likewise.
18580 (c_parser_objc_keywordexpr): Likewise.
18582 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
18584 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18585 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18586 TARGET_CONVERT_TO_TYPE.
18587 * hooks.c (hook_tree_const_tree_null): Define.
18588 * hooks.h (hook_tree_const_tree_null): Declare.
18589 * target.h (struct gcc_target): Add invalid_parameter_type,
18590 invalid_return_type, promoted_type, and convert_to_type fields.
18591 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18592 (TARGET_INVALID_RETURN_TYPE): Define.
18593 (TARGET_PROMOTED_TYPE): Define.
18594 (TARGET_CONVERT_TO_TYPE): Define.
18595 (TARGET_INITIALIZER): Update for new fields.
18596 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18597 (grokparms): Check targetm.invalid_parameter_type.
18598 * c-typeck.c (default_conversion): Check targetm.promoted_type.
18599 * c-convert.c (convert): Check targetm.convert_to_type.
18601 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
18603 * config/mips/mips.md (*extenddi_truncate<mode>,
18604 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
18606 (*extendhi_truncateqi): New define_insn_and_sptit.
18608 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18610 PR middle-end/40204
18611 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18612 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18614 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
18616 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18617 the operand of VIEW_CONVERT_EXPR.
18619 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
18621 * config/i386/driver-i386.c (host_detect_local_cpu): Check
18622 extended family and model for Intel processors. Support Intel Atom.
18624 2009-05-20 Olivier Hainque <hainque@adacore.com>
18626 * gstab.h (stab_code_type): Define, to be used instead of the
18627 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
18629 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18630 occurrences by stab_code_type.
18631 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18633 2009-05-20 Martin Jambor <mjambor@suse.cz>
18635 * tree-flow.h (insert_edge_copies_seq): Undeclare.
18636 (sra_insert_before): Likewise.
18637 (sra_insert_after): Likewise.
18638 (sra_init_cache): Likewise.
18639 (sra_type_can_be_decomposed_p): Likewise.
18640 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18641 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18642 (sra_insert_before): Likewise.
18643 (sra_insert_after): Likewise.
18644 (sra_init_cache): Likewise.
18645 (insert_edge_copies_seq): Made static and moved upwards.
18647 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18650 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18652 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18653 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18656 2009-05-20 Richard Guenther <rguenther@suse.de>
18658 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18659 with mismatched comparison modes.
18661 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18663 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18664 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18665 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18666 with shifts for Thumb2.
18667 (orsi_notsi): New for orn.
18668 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18669 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18670 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18671 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18672 Don't invert remainder for IOR.
18674 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
18676 PR tree-optimization/40087
18677 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18678 number_of_iterations_ne): Rename never_infinite argument.
18679 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18680 number_of_iterations_le): Handle pointer-type ivs when
18681 exit_must_be_taken is false.
18682 (number_of_iterations_cond): Do not always assume that
18683 exit_must_be_taken if the control variable is a pointer.
18685 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
18687 * c-typeck.c (build_binary_op): Allow % on integal vectors.
18688 * doc/extend.texi (Vector Extension): Document that % is allowed too.
18690 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
18692 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18693 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18695 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18698 * c.opt (Wlogical-op): Disabled by default.
18699 * c-opt (c_common_post_options): Do not enable Wlogical-op with
18701 * doc/invoke.texi (Wlogical-op): Likewise.
18703 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
18705 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18707 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18708 Propagate the type of the first operand.
18709 <ASSERT_EXPR>: Simplify.
18710 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18711 Rewrite using the RHS code as discriminant.
18712 <NOP_EXPR>: Turn into CASE_CONVERT.
18713 <PLUS_EXPR>: Propagate the type of the first operand.
18715 2009-05-19 Steve Ellcey <sje@cup.hp.com>
18717 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18718 (ia64_dconst_0_375): New.
18719 * config/ia64/ia64.c (ia64_override_options): Remove
18720 -minline-sqrt-min-latency warning.
18721 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18722 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18723 * config/ia64/ia64.md (*sqrt_approx): Remove.
18724 (sqrtsf2): Remove #if 0.
18725 (sqrtsf2_internal_thr): Rewrite and move to div.md.
18726 (sqrtdf): Remove assert.
18727 (sqrtdf2_internal_thr): Rewrite and move to div.md.
18728 (sqrtxf2): Remove #if 0.
18729 (sqrtxf2_internal_thr): Rewrite and move to div.md.
18730 * div.md (sqrt_approx_rf): New.
18731 (sqrtsf2_internal_thr): New implementation.
18732 (sqrtsf2_internal_lat): New.
18733 (sqrtdf2_internal_thr: New implementation.
18734 (sqrtxf2_internal): New implementation.
18736 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
18737 Hans-Peter Nilsson <hp@axis.com>
18739 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18740 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18741 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18742 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18743 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18744 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18745 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18746 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18747 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18748 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18749 * c-common.c: ...from here.
18751 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18753 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18755 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18757 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18759 2009-05-19 Ben Elliston <bje@au.ibm.com>
18761 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18762 assignments with memcpy calls.
18763 (add_fdes): Likewise.
18764 (binary_search_unencoded_fdes): Likewise.
18765 (linear_search_fdes): Eliminate type puns.
18767 2009-05-19 Richard Guenther <rguenther@suse.de>
18769 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18770 not falsely claim to have propagated into all uses.
18772 2009-05-19 Ben Elliston <bje@au.ibm.com>
18774 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18777 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18779 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18780 * config/sh/sh.c (sh_legitimate_address_p): Make static.
18781 (TARGET_LEGITIMATE_ADDRESS_P): New.
18782 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18783 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18785 2009-05-18 Dodji Seketeli <dodji@redhat.com>
18788 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18789 child of the containing namespace's DIE.
18791 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
18793 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18794 *zero_extendhi_truncqi): Move after the zero_extend patterns.
18795 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18798 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
18801 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18802 gen_align with gen_pad.
18803 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18804 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18806 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18807 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18809 * config/i386/i386.md (align): Renamed to ...
18810 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18811 ASM_OUTPUT_MAX_SKIP_PAD.
18813 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
18815 * config.gcc: Fix variable syntax.
18818 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18819 before calling exact_log2.
18820 (output_iorsi3): Likewise.
18821 (output_xorsi3): Likewise.
18823 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18825 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18826 for the none zero constant operand except for EQ and NE
18827 comprisons even when the first operand is R0.
18829 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
18831 * config/s390/2064.md: Remove trailing whitespaces.
18832 * config/s390/2084.md: Likewise.
18833 * config/s390/constraints.md: Likewise.
18834 * config/s390/fixdfdi.h: Likewise.
18835 * config/s390/libgcc-glibc.ver: Likewise.
18836 * config/s390/s390-modes.def: Likewise.
18837 * config/s390/s390-protos.h: Likewise.
18838 * config/s390/s390.c: Likewise.
18839 * config/s390/s390.h: Likewise.
18840 * config/s390/s390.md: Likewise.
18841 * config/s390/tpf-unwind.h: Likewise.
18843 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18845 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18847 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18850 * configure.ac (m68k-*-*): Check if binutils support TLS.
18851 * configure: Regenerate.
18852 * config/m68k/predicates.md (symbolic_operand): Extend comment.
18853 * config/m68k/constraints.md (Cu): New constraint.
18854 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18855 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18856 (movsi): Handle TLS symbols.
18857 (addsi3_5200): Handle XTLS symbols, indent.
18858 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18859 (m68k_tls_reference_p): Declare.
18860 (m68k_legitimize_address): Declare.
18861 (m68k_unwrap_symbol): Declare.
18862 * config/m68k/m68k.opt (mxtls): New option.
18863 * config/m68k/m68k.c (ggc.h): Include.
18864 (m68k_output_dwarf_dtprel): Implement hook.
18865 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18866 (m68k_expand_prologue): Load GOT pointer when function needs it.
18867 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18868 (m68k_legitimate_constant_address_p): Same.
18869 (m68k_decompose_address): Handle TLS references.
18870 (m68k_get_gp): New static function.
18871 (enum m68k_reloc): New contants.
18872 (TLS_RELOC_P): New macro.
18873 (m68k_wrap_symbol): New static function.
18874 (m68k_unwrap_symbol): New function.
18875 (m68k_final_prescan_insn_1): New static function.
18876 (m68k_final_prescan_insn): New function.
18877 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18879 (legitimize_pic_address): Handle TLS references..
18880 (m68k_tls_get_addr, m68k_get_tls_get_addr)
18881 (m68k_libcall_value_in_a0_p)
18882 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18883 (m68k_call_m68k_read_tp): Helper variables and functions for ...
18884 (m68k_legitimize_tls_address): Handle TLS references.
18885 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18887 (m68k_legitimize_address): Handle TLS symbols.
18888 (m68k_get_reloc_decoration): New static function.
18889 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18891 (m68k_output_dwarf_dtprel): Implement hook.
18892 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18893 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18894 m68k_call_* routines.
18895 (sched_attr_op_type): Handle TLS symbols.
18896 (gt-m68k.h): Include.
18897 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18898 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18900 2009-05-18 Martin Jambor <mjambor@suse.cz>
18902 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18903 (visit_store_addr_for_mod_analysis): New function.
18904 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18905 (determine_cst_member_ptr): Use gimple_assign_single_p.
18906 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18907 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18908 operands. Don't check number of operands of a NOP_EXPR.
18910 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
18912 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18914 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
18917 * c-common.c (warn_logical_operator): Don't warn if one of
18918 expression isn't always true or false.
18920 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
18922 * config/i386/biarch32.h: New file.
18923 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18925 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
18927 * config/mips/mips.md (*zero_extend<mode>_trunchi,
18928 *zero_extend<mode>_truncqi): Merge these into ...
18929 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18930 Name the pattern following this as *zero_extendhi_truncqi.
18932 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
18934 PR middle-end/39301
18935 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18936 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18937 (output_info): Make field HOST_WIDEST_INT.
18938 (print_statistics): Use HOST_WIDEST_INT_PRINT.
18939 (dump_bitmat_statistics): Same.
18941 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
18943 * config.gcc (use_gcc_stdint): Set to wrap.
18944 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18945 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18946 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18947 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18948 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18949 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18950 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18951 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18953 2009-05-16 Joseph Myers <joseph@codesourcery.com>
18955 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18957 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18958 Move definitions earlier.
18959 (OPT_ARCH64, OPT_ARCH32): Define.
18960 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18963 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
18966 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18969 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
18971 * arm.md (movdi2): Copy non-reg values to DImode registers.
18973 2009-05-16 Jakub Jelinek <jakub@redhat.com>
18976 * final.c (label_to_max_skip): New function.
18977 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18978 CODE_LABEL_NUMBER <= max_labelno.
18979 * output.h (label_to_max_skip): New prototype.
18980 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18981 (ix86_avoid_jump_mispredicts): ... this. Don't define if
18982 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
18983 Handle CODE_LABELs with >= 16 byte alignment or with
18984 max_skip == (1 << align) - 1.
18985 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18986 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18989 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18990 .p2align 3 if MAX_SKIP is smaller than 7.
18991 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18993 2009-05-15 Ian Lance Taylor <iant@google.com>
18995 * alias.c (struct alias_set_entry_d): Rename from struct
18996 alias_set_entry. Change all uses.
18997 * except.c (struct call_site_record_d): Rename from struct
18998 call_site_record. Change all uses.
18999 * except.h (struct eh_region_d): Rename from struct eh_region.
19001 * gcse.c (struct hash_table_d): Rename from struct hash_table.
19003 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
19004 ivtype_map_elt. Change all uses.
19005 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
19007 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
19008 * graphite.h (struct name_tree_d): Rename from struct name_tree.
19010 (struct sese_d): Rename from struct sese. Change all uses.
19011 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
19012 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
19013 * optabs.h (struct optab_d): Rename from struct optab. Change all
19015 (struct convert_optab_d): Rename from struct convert_optab.
19017 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
19018 ipa_opt_pass. Change all uses.
19019 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
19022 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
19023 defined as a typedef.
19024 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
19027 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
19030 * fold-const.c (make_range,build_range_check,merge_ranges): Move
19032 (merge_ranges): Returns bool.
19033 * tree.h (make_range): .. to here.
19034 (build_range_check): Likewise.
19035 (merge_ranges): Likewise. Renamed from merge_ranges.
19036 * c-typeck.c (parser_build_binary_op): Update calls to
19037 warn_logical_operator.
19038 * c-common.c (warn_logical_operator): Add new warning.
19039 * c-common.h (warn_logical_operator): Update declaration.
19041 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
19043 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
19045 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19047 * doc/install.texi: Document MPC requirements, flags etc.
19049 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
19050 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
19051 Evaluate constant arguments.
19052 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
19053 (fold_builtin_1): Likewise, also evaluate constant arguments.
19054 Remove superfluous break.
19055 (do_mpc_ckconv): New.
19056 * real.h: Include mpc.h.
19057 * toplev.c (print_version): Output MPC version info if available.
19059 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
19061 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
19063 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
19065 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
19068 2009-05-15 Jan Hubicka <jh@suse.cz>
19070 * doc/invoke.texi (max-early-inliner-iterations): New flag.
19071 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
19072 (try_inline): Fix return value.
19073 (cgraph_decide_inlining_incrementally): Honor new value.
19074 (cgraph_early_inlining): Handle indirect inlining.
19075 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
19077 2009-05-15 Jan Hubicka <jh@suse.cz>
19079 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
19080 * cgraphunit.c (cgraph_finalize_function): Set it.
19081 (cgraph_expand_function): Use it.
19083 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
19085 * real.c (encode_ieee_half): Define.
19086 (decode_ieee_half): Define.
19087 (ieee_half_format): Define.
19088 (arm_half_format): Define.
19089 * real.h (ieee_half_format): Declare.
19090 (arm_half_format): Declare.
19092 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
19094 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
19095 swapped, and reversed optabs exist before trying to use them.
19097 2009-05-15 Paul Brook <paul@codesourcery.com>
19098 Sandra Loosemore <sandra@codesourcery.com>
19100 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
19101 loads. Allow PRE_DEC.
19102 (output_move_neon): Handle PRE_DEC.
19103 (arm_print_operand): Add 'A' for neon structure loads.
19104 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
19105 * config/arm/neon.md (neon_mov): Update comment.
19106 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
19108 (Um): New constraint.
19110 2009-05-15 Jan Hubicka <jh@suse.cz>
19112 Revert the following patch until testsuite fallout is fixed:
19113 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19114 * cgraph.h (struct inline_summary): New filed self_wize,
19115 size_inlining_benefit, self_time and time_inlining_benefit.
19116 (struct cgraph_global_info): Replace insns by time ans size fields.
19117 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19118 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19119 (ipcp_update_callgraph): Do not touch function bodies.
19120 * ipa-inline.c: Include except.h
19121 (MAX_TIME): New constant.
19122 (overall_insns): Remove
19123 (overall_size, max_benefit): New static variables.
19124 (cgraph_estimate_time_after_inlining): New function.
19125 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19126 (cgraph_clone_inlined_nodes): Update size.
19127 (cgraph_mark_inline_edge): Update size.
19128 (cgraph_estimate_growth): Use size info.
19129 (cgraph_check_inline_limits): Check size.
19130 (cgraph_default_inline_p): Likewise.
19131 (cgraph_edge_badness): Compute badness based on benefit and size cost.
19132 (cgraph_decide_recursive_inlining): Check size.
19133 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19135 (cgraph_decide_inlining): Likewise.
19136 (cgraph_decide_inlining_incrementally): Likewise; honor
19137 PARAM_EARLY_INLINING_INSNS.
19138 (likely_eliminated_by_inlining_p): New predicate.
19139 (estimate_function_body_sizes): New function.
19140 (compute_inline_parameters): Use it.
19141 * except.c (must_not_throw_labels): New function.
19142 * except.h (must_not_throw_labels): Declare.
19143 * tree-inline.c (init_inline_once): Kill inlining_weigths
19144 * tree-ssa-structalias.c: Avoid uninitialized warning.
19145 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19146 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19147 (PARAM_INLINE_CALL_COST): Remove.
19148 (PARAM_EARLY_INLINING_INSNS): New.
19150 2009-05-15 Richard Guenther <rguenther@suse.de>
19152 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
19153 not TODO_update_ssa.
19155 2009-05-15 Richard Guenther <rguenther@suse.de>
19157 PR tree-optimization/39999
19158 * gimple.h (gimple_expr_type): Use the expression type looking
19159 through useless conversions.
19160 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
19161 (vn_nary_op_insert_stmt): Likewise.
19162 (simplify_binary_expression): Likewise.
19164 2009-05-15 Richard Guenther <rguenther@suse.de>
19166 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19167 New options, enabled by default.
19168 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19170 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
19171 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
19172 * tree-ssa-structalias.c (gate_tree_pta): New function.
19173 (pass_build_alias): Use it.
19175 2009-05-15 Joseph Myers <joseph@codesourcery.com>
19177 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
19178 recurse on an invariant address if a conversion from a pointer
19179 type to a wider integer type is involved.
19181 2009-05-15 Jan Hubicka <jh@suse.cz>
19183 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19184 * cgraph.h (struct inline_summary): New filed self_wize,
19185 size_inlining_benefit, self_time and time_inlining_benefit.
19186 (struct cgraph_global_info): Replace insns by time ans size fields.
19187 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19188 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19189 (ipcp_update_callgraph): Do not touch function bodies.
19190 * ipa-inline.c: Include except.h
19191 (MAX_TIME): New constant.
19192 (overall_insns): Remove
19193 (overall_size, max_benefit): New static variables.
19194 (cgraph_estimate_time_after_inlining): New function.
19195 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19196 (cgraph_clone_inlined_nodes): Update size.
19197 (cgraph_mark_inline_edge): Update size.
19198 (cgraph_estimate_growth): Use size info.
19199 (cgraph_check_inline_limits): Check size.
19200 (cgraph_default_inline_p): Likewise.
19201 (cgraph_edge_badness): Compute badness based on benefit and size cost.
19202 (cgraph_decide_recursive_inlining): Check size.
19203 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19205 (cgraph_decide_inlining): Likewise.
19206 (cgraph_decide_inlining_incrementally): Likewise; honor
19207 PARAM_EARLY_INLINING_INSNS.
19208 (likely_eliminated_by_inlining_p): New predicate.
19209 (estimate_function_body_sizes): New function.
19210 (compute_inline_parameters): Use it.
19211 * except.c (must_not_throw_labels): New function.
19212 * except.h (must_not_throw_labels): Declare.
19213 * tree-inline.c (init_inline_once): Kill inlining_weigths
19214 * tree-ssa-structalias.c: Avoid uninitialized warning.
19215 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19216 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19217 (PARAM_INLINE_CALL_COST): Remove.
19218 (PARAM_EARLY_INLINING_INSNS): New.
19219 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
19220 (inline-call-cost): Remove.
19221 (early-inlining-insns): New.
19223 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
19225 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
19227 (print_int_cst_bounds_in_octal_p): Likewise.
19228 (dbxout_type): Adjust calls to above functions. Be prepared to deal
19230 * dwarf2out.c (base_type_die): Likewise.
19231 (is_subrange_type): Delete.
19232 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
19233 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
19234 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
19235 if the destination type is boolean.
19236 (build_range_check): Do not special-case subtypes.
19237 (fold_sign_changed_comparison): Likewise.
19238 (fold_unary): Likewise.
19239 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
19240 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
19241 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
19242 * tree.c (subrange_type_for_debug_p): New predicate based on the
19243 former is_subrange_type.
19244 * tree.h (subrange_type_for_debug_p): Declare.
19245 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
19246 (convert_affine_scev): Remove call to above function.
19247 (chrec_convert_aggressive): Likewise.
19248 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
19249 false for conversions involving subtypes.
19250 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
19251 (vrp_val_min): Likewise.
19252 (needs_overflow_infinity): Likewise.
19253 (extract_range_from_unary_expr): Likewise.
19255 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
19257 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
19258 * config/frv/frv.c: Likewise.
19259 * config/s390/s390.c: Likewise.
19260 * config/sparc/sparc.h: Likewise.
19261 * config/i386/i386.h: Likewise.
19262 * config/i386/i386.c: Likewise.
19263 * config/crx/crx.c: Likewise.
19264 * config/m68hc11/m68hc11.h: Likewise.
19265 * config/iq2000/iq2000.c: Likewise.
19266 * config/mn10300/mn10300.h: Likewise.
19267 * config/mn10300/mn10300.c: Likewise.
19268 * config/m68k/m68k.c: Likewise.
19269 * config/rs6000/rs6000.c: Likewise.
19270 * config/rs6000/xcoff.h: Likewise.
19271 * config/rs6000/linux64.h: Likewise.
19272 * config/rs6000/sysv4.h: Likewise.
19273 * config/score/score3.c: Likewise.
19274 * config/score/score7.c: Likewise.
19275 * config/score/score.c: Likewise.
19276 * config/arm/arm.md: Likewise.
19277 * config/mips/mips.c: Likewise.
19278 * config/mips/mips.md: Likewise.
19279 * config/bfin/bfin.h: Likewise.
19280 * config/pa/pa.c: Likewise.
19281 * config/pa/constraints.md: Likewise.
19283 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
19284 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
19285 * config/pdp11/pdp11.h: Use memory_address_p instead.
19287 2009-05-14 Ian Lance Taylor <iant@google.com>
19289 * passes.c (finish_optimization_passes): Change i to int.
19290 * plugin.c (plugins_active_p): Change event to int.
19291 (dump_active_plugins): Likewise.
19292 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
19294 * tree.c (tree_range_check_failed): Change c to unsigned int.
19295 (omp_clause_range_check_failed): Likewise.
19296 (build_common_builtin_nodes): Change mode to int. Add cast.
19297 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
19298 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
19300 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
19301 ++ or -- with a variable of enum type.
19303 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
19306 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
19308 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
19310 * store-motion.c: Do not include params.h
19311 * Makefile.in: Fix dependencies for various files.
19313 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
19315 * auto-inc-dec.c: Fix pass description, remove apparent
19316 accidental duplication.
19318 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
19320 PR middle-end/40147
19321 * ipa-utils.h (memory_identifier_string): Moved to ...
19322 * tree.h (memory_identifier_string): Here. Add GTY(()).
19324 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
19326 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
19327 in the former documentation of...
19328 (GO_IF_LEGITIMATE_ADDRESS): ... this.
19329 * ira-conflicts.c (get_dup_num): Use address_operand.
19330 * targhooks.c (default_legitimate_address_p): New.
19331 * targhooks.h (default_legitimate_address_p): New.
19332 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
19334 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
19335 * target.h (struct target): Add legitimate_address_p.
19336 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
19337 (TARGET_INITIALIZER): Include it.
19339 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19340 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
19341 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
19342 (TARGET_LEGITIMATE_ADDRESS_P): New.
19344 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19345 (REG_OK_STRICT_P): Delete.
19346 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
19347 (frv_legitimate_address_p_1): ... this.
19348 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
19349 (frv_legitimate_address_p_1): ... the renamed old
19350 frv_legitimate_address_p.
19351 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
19352 (TARGET_LEGITIMATE_ADDRESS_P): New.
19354 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19355 * config/s390/s390-protos.h (legitimate_address_p): Remove.
19356 * config/s390/s390.c (legitimate_address_p): Rename to...
19357 (s390_legitimate_address_p): ... this, make static.
19358 (legitimize_address): Adjust call.
19359 (TARGET_LEGITIMATE_ADDRESS_P): New.
19360 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
19362 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19363 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
19364 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
19365 (TARGET_LEGITIMATE_ADDRESS_P): New.
19367 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19368 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
19369 * config/spu/spu.c (spu_legitimate_address): Rename to...
19370 (spu_legitimate_address_p): ... this, make static.
19371 (TARGET_LEGITIMATE_ADDRESS_P): New.
19373 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19374 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
19375 * config/sparc/sparc.c (legitimate_address_p): Rename to...
19376 (sparc_legitimate_address_p): ... this, make static and return bool.
19377 (legitimize_address): Adjust call.
19378 (TARGET_LEGITIMATE_ADDRESS_P): New.
19380 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19381 * config/i386/i386-protos.h (legitimate_address_p): Remove.
19382 * config/i386/i386.c (legitimate_address_p): Rename to...
19383 (ix86_legitimate_address_p): ... this, make static.
19384 (constant_address_p): Move after it, adjust call.
19385 (TARGET_LEGITIMATE_ADDRESS_P): New.
19387 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19388 * config/avr/avr-protos.h (legitimate_address_p): Remove.
19389 * config/avr/avr.c (legitimate_address_p): Rename to...
19390 (avr_legitimate_address_p): ... this, make static.
19391 (legitimize_address): Adjust call.
19392 (TARGET_LEGITIMATE_ADDRESS_P): New.
19394 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19395 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
19396 * config/crx/crx.c (crx_legitimate_address_p): Make static.
19397 (TARGET_LEGITIMATE_ADDRESS_P): New.
19399 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19400 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
19401 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
19402 (TARGET_LEGITIMATE_ADDRESS_P): New.
19404 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19405 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
19407 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19409 (TARGET_LEGITIMATE_ADDRESS_P): New.
19411 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19412 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
19414 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
19416 (m68hc11_legitimate_address_p): ... this, make static.
19417 (go_if_legitimate_address_internal): Rename to...
19418 (m68hc11_legitimate_address_p_1): ... this.
19419 (legitimize_address): Adjust call.
19420 (TARGET_LEGITIMATE_ADDRESS_P): New.
19422 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19423 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
19424 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
19425 (TARGET_LEGITIMATE_ADDRESS_P): New.
19427 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19428 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
19429 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
19430 (mn10300_legitimate_address_p): ... this, make static.
19431 (TARGET_LEGITIMATE_ADDRESS_P): New.
19433 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19434 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
19435 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
19436 (TARGET_LEGITIMATE_ADDRESS_P): New.
19438 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19439 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
19440 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
19441 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19442 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
19443 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
19444 (rs6000_legitimate_address_p): ... this, make static.
19445 (TARGET_LEGITIMATE_ADDRESS_P): New.
19446 (REG_MODE_OK_FOR_BASE_P): Delete.
19447 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
19449 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19450 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
19452 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
19453 static, adjust types.
19454 (TARGET_LEGITIMATE_ADDRESS_P): New.
19456 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19457 * config/score/score.c (score_address_p): Rename to...
19458 (score_legitimate_address_p): ... this.
19459 (TARGET_LEGITIMATE_ADDRESS_P): New.
19460 * config/score/score3.c (score3_address_p): Rename to...
19461 (score3_legitimate_address_p): ... this.
19462 * config/score/score7.c (score7_address_p): Rename to...
19463 (score7_legitimate_address_p): ... this.
19465 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
19466 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
19467 GO_IF_LEGITIMATE_ADDRESS): Delete.
19468 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
19469 thumb2_legitimate_address_p): Delete.
19470 (arm_legitimate_address_p): Rename to...
19471 (arm_legitimate_address_outer_p): ... this.
19472 * config/arm/constraints.md ("Uq"): Adjust call.
19473 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
19474 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
19476 (arm_legitimate_address_outer_p): ... this.
19477 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
19479 (TARGET_LEGITIMATE_ADDRESS_P): New.
19481 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19482 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
19483 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
19484 (TARGET_LEGITIMATE_ADDRESS_P): New.
19486 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19487 * config/vax/vax-protos.h (legitimate_address_p): Remove.
19488 * config/vax/vax.c (legitimate_address_p): Rename to...
19489 (vax_legitimate_address_p): ... this, make static.
19490 (TARGET_LEGITIMATE_ADDRESS_P): New.
19492 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19493 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
19494 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
19495 (TARGET_LEGITIMATE_ADDRESS_P): New.
19497 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19498 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19499 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19500 (mmix_legitimate_address_p): ... this, make static.
19501 (TARGET_LEGITIMATE_ADDRESS_P): New.
19503 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19504 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19505 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19506 (TARGET_LEGITIMATE_ADDRESS_P): New.
19508 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
19510 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19511 of MODE_COMPLEX_INT.
19513 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19515 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19516 LCT_NORMAL in function call.
19517 * mips-tdump.c (print_file_desc): Add cast to enum type.
19518 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19519 (mark_stabs): Add casts to enum types.
19520 (parse_stabs_common): Add casts to enum types.
19522 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19524 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19525 Check for invalid values of LETTER.
19527 2009-05-13 Taras Glek <tglek@mozilla.com>
19529 * attribs.c (register_attribute): moved out attribute registration
19530 into register_attribute.
19531 * doc/plugins.texi: Documented register_attribute and
19533 * gcc-plugin.h: Added forward decl for register_attribute.
19534 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19535 * plugin.c (register_callback, invoke_plugin_callbacks): Added
19536 PLUGIN_ATTRIBUTES boilerplate.
19538 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
19540 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
19541 values even in sentinel and empty entries.
19542 (ms_printf_flag_specs): Likewise.
19543 (ms_scanf_flag_specs): Likewise.
19544 (ms_strftime_flag_specs): Likewise.
19545 (ms_print_char_table): Likewise.
19546 (ms_scan_char_table): Likewise.
19547 (ms_time_char_table): Likewise.
19549 2009-05-13 Doug Kwan <dougkwan@google.com>
19551 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19553 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19555 * config/mips/mips.md (store): Add attributes for QI and HI.
19557 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19558 (truncdi<mode>2): ... this new pattern.
19560 2009-05-13 Brad Hards <bradh@kde.org>
19562 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19564 2009-05-14 Jakub Jelinek <jakub@redhat.com>
19565 Ben Elliston <bje@au.ibm.com>
19567 PR middle-end/40035
19568 * dse.c (check_mem_read_rtx): Guard against width == -1.
19570 2009-05-13 Michael Matz <matz@suse.de>
19572 PR middle-end/39976
19573 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19574 (trivially_conflicts_p): New function.
19575 (insert_backedge_copies): Use it.
19577 2009-05-13 Janis Johnson <janis187@us.ibm.com>
19579 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19580 (handle_stdc_pragma): Use new enum constant names.
19581 (handle_pragma_float_const_decimal64): Ditto.
19583 2009-05-13 Ian Lance Taylor <iant@google.com>
19585 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19588 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
19590 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19591 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19593 * config/m68k/m68k.h (FL_UCLINUX): Define.
19595 2009-05-13 Jan Hubicka <jh@suse.cz>
19597 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19599 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19601 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19602 unless -fschedule-insns is specified.
19604 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19607 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19608 TARGET_EXPAND_CBRANCHDI4.
19609 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19610 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19611 (cmpeqdi): Fix comment.
19613 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19615 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19616 (sh_legitimate_address_p): Likewise.
19617 * config/sh/sh.c (sh_legitimate_index_p): New.
19618 (sh_legitimate_address_p): Likewise.
19619 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19620 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19621 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19622 (MAYBE_BASE_REGISTER_RTX_P): New macro.
19623 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19624 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19625 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19626 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19627 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19629 2009-05-12 Jan Hubicka <jh@suse.cz>
19631 * tree-inline.c (estimate_operator_cost): Add operands;
19632 when division happens by constant, it is cheap.
19633 (estimate_num_insns): Loads and stores are not having cost of 0;
19634 EH magic stuff is cheap; when computing runtime cost of switch,
19635 use log2 base of amount of its cases; builtin_expect has cost of 0;
19636 compute cost for moving return value of call.
19637 (init_inline_once): Initialize time_based flags.
19638 * tree-inline.h (eni_weights_d): Add time_based flag.
19640 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19642 * df-core.c: Update head documentation.
19644 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19647 * rs6000.c (rs6000_generate_compare): Use op1b instead of
19648 shadowing exisiting variable op1.
19650 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
19653 * config/i386/driver-i386.c (processor_signatures): New enum.
19654 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19655 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19656 processor signature to detect geode processor.
19658 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19662 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19664 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19665 causes spurious differences between trunk and cond-optab branch.
19667 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19669 * dojump.c (compare_from_rtx): Delete.
19670 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
19671 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
19672 if the comparison does not satisfy the predicate; test predicates for
19673 operands 2 and 3 of a cstore pattern. Don't try cstore optab
19674 further if one existing pattern fails.
19675 * expr.h (compare_from_rtx): Delete.
19676 (prepare_operand): Declare it.
19677 * optabs.c: Change "lib call" to "libcall" throughout.
19678 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19679 HAVE_conditional_trap, emit_cmp_insn): Delete.
19680 (can_compare_p): Delete cmp_optab case.
19681 (prepare_float_lib_cmp): Return an rtx and a machine mode.
19682 Accept other parameters by value.
19683 (prepare_operand): Make non-static.
19684 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
19685 other parameters by value. Try to widen operands here based on
19686 an optab_methods argument and looking at cbranch_optab.
19687 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19688 loop. Use cbranch_optab directly.
19689 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
19690 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19692 (emit_conditional_move, emit_conditional_add): Inline what's needed
19693 of compare_from_rtx, using new prepare_cmp_insn for the rest.
19694 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19695 with COMPARE. Move cmov_optab and cstore_optab above
19696 with cbranch_optab, move cmp_optab down with ucmp_optab,
19697 remove tst_otpab. Do not initialize trap_rtx.
19698 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
19699 for trap code. Do not check HAVE_conditional_trap. Use
19700 prepare_cmp_insn. Accept no predicate for operand 3.
19701 * optabs.h (OTI_cmp): Mark as used only for libcalls.
19702 (OTI_ctrap, ctrap_optab): New.
19703 (tst_optab): Delete.
19704 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19705 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19706 with lookup of ctrap_optab.
19707 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19709 (ctrap_optab): New.
19711 * combine.c (combine_simplify_rtx, simplify_set): Do not
19712 special case comparing against zero for cc0 machines.
19713 * simplify-rtx.c (simplify_binary_operation_1): Never remove
19714 COMPARE on cc0 machines.
19715 (simplify_relational_operation): Return a new expression when
19716 a COMPARE could be removed.
19717 * final.c (final_scan_insn): Compare cc_status values
19718 against LHS of a (compare FOO (const_int 0)) cc0 source.
19719 Also check if cc_status.value is the full compare.
19721 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19722 (cstoreMM4): Document.
19723 (conditional_trap): Document ctrapMM4 instead.
19724 (sync_compare_and_swapMM): Refer to cbranchcc4.
19725 (Dependent Patterns): Eliminate obsolete information referring to
19726 the old jump optimization phase.
19727 (Canonicalization): Include cbranchcc4 case, omit canonicalization
19728 of compares with 0 on cc0 machines.
19729 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19730 avoiding references to cc0. Remove text about storing operands
19732 * doc/tm.texi (Condition Codes): Include blurb on different
19733 condition code representations, separate into subsections for
19734 CC0, MODE_CC and conditional execution.
19736 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19737 alpha_emit_setcc): Accept operands and a machine mode.
19738 * config/alpha/alpha.c (alpha_emit_conditional_branch):
19739 Get code/op0/op1 from operands, use machine mode argument
19740 instead of alpha_compare.fp_p. Emit the branch here.
19741 (alpha_emit_setcc): Likewise, and return boolean.
19742 (alpha_emit_conditional_move): Likewise. Assert that
19743 cmp_op_mode == cmp_mode, and simplify accordingly.
19744 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19745 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19746 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19748 (stack probe test): Use cbranchdi4.
19749 * config/alpha/predicates.md (alpha_cbranch_operator): New.
19751 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19752 * config/arc/arc.h (movsicc, movsfcc): Use it.
19753 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19754 (cbranchsi4, cstoresi4): New.
19755 (cmpsi, bCC and sCC expanders): Remove.
19757 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19758 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19759 * config/arm/predicates.md (arm_comparison_operator): Only include
19760 floating-point operators if there is a hardware floating-point unit.
19761 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19762 deferring to cbranch_cc and cstore_cc respectively.
19763 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19764 cbranch_cc, cstore_cc): New.
19765 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19767 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19769 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19770 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19772 (adjust_insn_length): Adjust calls.
19773 (avr_reorg): Handle (compare (foo) (const_int 0)).
19774 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19775 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19776 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19777 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19779 (cbranchqi4, cbranchhi4, cbranchsi4): New.
19780 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19782 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19783 (cbranchsi4, cstorebi4, cstoresi4): New.
19784 (movbisi): This insn is duplicate, split it to zero_extend.
19785 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19786 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
19787 (bfin_optimize_loop): Use cbranch expander.
19788 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19789 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19790 (bfin_bimode_comparison_operator): ... this.
19791 (bfin_direct_comparison_operator): New.
19793 * config/cris/cris.c (cris_normal_notice_update_cc): Look
19794 inside (compare FOO (const_int 0)).
19795 (cris_rtx_costs): Handle ZERO_EXTRACT.
19796 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19797 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19798 (*tstdi_v32): Delete.
19799 (*cmpdi_non_v32): Add M alternative for operand 1.
19800 (cmpsi, cmp<mode>): Make private.
19801 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19803 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19805 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19806 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19807 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19808 (cc_reg_operand): New.
19809 (any_cond): Delete.
19810 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19811 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19812 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19813 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19814 crx_expand_scond): Delete.
19816 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19818 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19819 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19821 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19822 cstoresi4, cstoresf4, cstoredf4): New.
19823 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19824 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19825 Receive the entire operands array.
19826 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19827 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19828 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19829 Get test/op0/op1 from the operands array.
19830 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19832 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19833 (h8300_expand_store): New.
19834 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19836 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
19837 (h8300_expand_store): New.
19838 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19839 or do not try to produce (set (cc0) REG).
19840 (peepholes): Wrap arguments with COMPARE. Add a peephole to
19841 change a compare into a move to a scratch register. Disable some
19842 peepholes when comparing with zero.
19843 (tstsi, tsthi, tstsi, cmpqi): Make private.
19845 (bCC, sCC): Delete.
19846 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19849 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19850 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19851 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19852 (ix86_emit_i387_log1p): Use cbranchxf2.
19853 (ix86_expand_setcc): Return void.
19854 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19855 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19856 cmp<MODEF>, cmpcc): Remove.
19857 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19858 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19859 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19860 (sCC and bCC expanders): Remove.
19861 (stack_protect_test): Use cbranchcc4.
19863 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19865 (ia64_expand_compare): Accept three rtx by reference and return void.
19866 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19867 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
19868 from *expr. Update *expr with the BImode comparison to do.
19869 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19870 cmptf, bCC, sCC, conditional_trap): Delete.
19871 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19872 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19873 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19874 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19875 * config/ia64/predicates.md (ia64_cbranch_operator): New.
19877 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19878 type of last argument.
19879 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19880 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19881 use machine mode argument instead of branch_type. Remove dead
19882 code for floating-point comparisons.
19883 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19884 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19886 (cbranchsi4, cstoresi4): New.
19887 * config/iq2000/predicates.md (reg_or_const_operand): New.
19889 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19890 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19891 (b<code>_op): Rewrite to...
19892 (bcc_op): ... this, using match_operator.
19893 (s<code>_op): Rewrite to...
19894 (scc_op): ... this, using match_operator.
19895 (s<code>_24_op): Rewrite to...
19896 (scc_op_24): ... this, using match_operator.
19897 (s<code>_<mode>): Rewrite to...
19898 (cstore<mode>4): ... this, using match_operator.
19899 (s<code>_<mode>_24): Rewrite to...
19900 (cstore<mode>4_24): ... this, using match_operator.
19901 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19902 m32c_unpend_compare, m32c_expand_scc): Delete.
19903 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19904 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19905 (m32c_expand_movcc): Change NE to EQ if necessary.
19906 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19908 * config/m32r/m32r-protos.h (gen_cond_store): New.
19909 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19910 (gen_cond_store): New, from sCC patterns.
19911 (m32r_expand_block_move): Use cbranchsi4.
19912 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19913 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19914 (cbranchsi4, cstoresi4): New.
19916 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19918 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19919 (m68hc11_notice_update_cc): Look into a compare with 0.
19920 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19922 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19923 cmphi, cmpqi, bCC): Delete.
19924 (cbranchsi4, cbranchhi4, cbranchqi4): New.
19925 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19926 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19929 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19930 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19931 * config/m68k/constraints.md (H): New.
19932 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19933 the define_insn below.
19934 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19935 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19936 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19937 patterns): Wrap RHS with COMPARE.
19938 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19939 (*cmpdi_internal): Name this pattern.
19940 (cmpdi): Change to define_insn.
19941 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19942 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19943 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19945 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19946 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19947 (conditional_trap): Change to...
19948 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19949 (*conditional_trap): Use the ordered_comparison_operator and
19950 const1_operand predicates.
19951 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19952 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19953 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19954 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19956 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19957 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19958 (mcore_gen_compare): New.
19959 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19960 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19961 (mcore_gen_compare): ... this.
19962 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19963 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19964 (stack probe pattern): Use cbranchsi4.
19966 * config/mips/predicates.md (mips_cstore_operator): New.
19967 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19968 * config/mips/mips.md (any_cond): Delete.
19969 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
19971 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19972 fixuns_truncsfdi2): Use cbranch patterns.
19973 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19974 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19975 Adjust call to mips_expand_conditional_branch.
19976 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19978 * config/mips/mips-protos.h (mips_expand_conditional_branch,
19979 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19980 * config/mips/mips.c (cmp_operands): Delete.
19981 (mips_emit_compare): Get comparison operands from *op0/*op1.
19982 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
19983 that it succeeds. Use op0/op1 instead of cmp_operands.
19984 (mips_expand_conditional_branch, mips_expand_conditional_move,
19985 mips_expand_conditional_trap): Likewise.
19986 (mips_block_move_loop): Use cbranch patterns.
19987 * config/mips/mips.h (cmp_operands): Delete.
19989 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19990 (mmix_gen_compare_reg): Just return a register in the right CC mode.
19991 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19992 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19993 (*cmpcc_folded): Rename to...
19994 (*cmpdi_folded): this.
19995 (*cmpcc): Rename to...
19997 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
20000 (cbranchdf4): New. Handle invalid comparisons here.
20001 * config/mmix/predicates.md (float_comparison_operator): New.
20003 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
20004 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
20005 * config/mn10300/mn10300.md (tst): Delete.
20006 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
20007 Name these patterns and wrap RHS in a compare.
20008 (*cmpsi): Make this pattern private. Include tst.
20009 (*cmpsf): Make this pattern private.
20010 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
20011 (compare with zero peepholes): Likewise.
20013 (cbranchsi4, cbranchsf4): New.
20014 (casesi): Use cbranchsi4.
20016 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
20017 hppa_branch_type): Delete.
20018 (return_addr_rtx): Use cbranchsi4.
20019 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
20020 Emit CCFPmode comparison here.
20021 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
20022 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
20023 hppa_branch_type): Delete.
20024 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
20025 (movsicc, movdicc): Remove references to hppa_compare_op0,
20026 hppa_compare_op1 and compare_from_rtx.
20027 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
20028 (casesi): Use cbranchsi4.
20030 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
20031 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
20032 * config/pdp11/pdp11.md (register_or_const0_operand): New.
20033 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
20034 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
20036 (cbranchdf4, cbranchhi4, cbranchqi4): New.
20037 (*branch, *branch_inverted): New.
20039 * config/picochip/picochip.md (cbranchhi4): Use
20040 ordered_comparison_operator.
20041 (cmphi, bCC): Remove.
20043 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
20044 (trap_comparison_operator): Delete.
20045 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
20046 rs6000_emit_cbranch): Accept mode and operands.
20047 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
20048 rs6000_compare_fp_p): Delete.
20049 (rs6000_generate_compare): Accept mode and comparison. Extract code
20050 and op0/op1 from there. Replace references to rs6000_compare_op0
20051 and rs6000_compare_op1.
20052 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
20053 extract result from passed operands.
20054 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
20055 extract loc from passed operands.
20056 (rs6000_emit_cmove): Likewise.
20057 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
20058 rs6000_compare_fp_p): Delete.
20059 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
20060 (cbranch<GPR>4, cbranch<FP>4): New.
20061 (cstore<mode>4): New. Consolidate here all choices about when to use
20062 portable or specialized sCC sequences.
20063 (stack_protect_test): Use cbranchsi4.
20064 (conditional_trap): Replace with ctrap<GPR>4.
20065 (conditional trap insn): Replace trap_comparison_operator with
20066 ordered_comparison_operator.
20068 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
20069 (s390_emit_prologue): Use ctrap.
20070 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
20071 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
20072 New predicates replacing...
20073 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
20074 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
20075 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
20076 (add<mode>cc): Do not use s390_compare_op0/op1.
20077 (s<code>): Change to...
20078 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
20079 (seq): Change to...
20080 (cstorecc4): ... this. Handle EQ or NE equally.
20081 (*sne): Un-privatize for use in cstorecc4.
20082 (b<code>): Change to...
20083 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
20084 (conditional_trap): Replace with...
20085 (ctrap<GPR>4, ctrap<FP>4): ... these.
20086 (stack_protect): Use cbranchcc4.
20088 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
20089 * config/score/score-protos.h (score_gen_cmp): Delete.
20090 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
20091 (score_block_move-loop): Use cbranchsi4.
20092 * config/score/score.md (cbranchsi4): New.
20093 (cmpsi, bCC): Delete.
20094 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
20095 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20096 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
20097 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20098 * config/score/score3.h (score3_gen_cmp): Delete.
20099 * config/score/score7.h (score7_gen_cmp): Delete.
20101 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
20102 (sh_emit_scc_to_t): ... this. Return void.
20103 (from_compare): Rename to...
20104 (sh_emit_compare_and_branch): ... this.
20105 (sh_emit_compare_and_set): New.
20106 (sh_expand_t_scc): Accept operands.
20107 * config/sh/predicates.md (sh_float_comparison_operator): New.
20108 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
20109 (prepare_scc_operands): Rename to...
20110 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
20112 (sh_emit_cheap_store_flag): New.
20113 (sh_emit_set_t_insn): New.
20114 (from_compare): Rename to...
20115 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
20116 handling of TARGET_SH2E floating point to avoid recursive call.
20117 Generate branch here.
20118 (sh_emit_compare_and_set): New.
20119 (sh_expand_t_scc): Get op0/op1 from arguments.
20120 (sh_emit_cheap_store_flag): New.
20121 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
20123 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
20124 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
20125 (movsicc, movdicc): Do nothing when it recreated operands from
20126 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
20127 prepare_scc_operands (now sh_emit_scc_to_t).
20128 (udivdi3): Use cstoresi4.
20129 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
20130 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
20131 (cbranchint4_media, cbranchfp4_media): New.
20132 (casesi): Use cbranchdi4.
20133 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
20135 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
20136 (movnegt): Remove second operand.
20137 (cbranchsf4, cbranchdf4): New.
20138 (stack_protect): Use cbranchdi4/cbranchsi4.
20140 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
20141 (gen_compare_reg): Accept comparison, extract part of it to...
20142 (gen_compare_reg_1): ... this.
20143 (gen_compare_operator): Delete.
20144 (gen_v9_scc): Accept separate destination, comparison code and arms.
20145 Do not use sparc_compare_op0/sparc_compare_op1.
20146 (emit_scc_insn, emit_conditional_branch_insn): New.
20147 (emit_v9_brxx): Make static. Remove useless assertion.
20148 (sparc_emit_float_lib_cmp): Return RTL instead of calling
20150 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
20151 * config/sparc/sparc-protos.h (gen_compare_reg,
20152 sparc_emit_float_lib_cmp): Adjust prototype.
20153 (emit_scc_insn, emit_conditional_branch_insn): New.
20154 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
20155 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
20156 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
20157 iterators to the top.
20158 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
20159 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
20160 snedi_special_trunc): Delete.
20161 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
20162 and snedi_special_trunc.
20163 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
20164 cbranchdi4, cbranch<F:mode>4): New.
20165 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
20166 here. Use gen_compare_reg instead of gen_compare_operator.
20167 (conditional_trap): Replace with...
20168 (ctrapsi4, ctrapdi4): ... this.
20169 (stack_protect_test): Use cbranchcc4.
20171 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
20173 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
20174 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
20175 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
20176 from operands[0] or operands[3] depending on is_set.
20177 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
20178 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
20179 cmpdf, bCC), sCC: Remove.
20180 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
20181 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
20183 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
20184 spu_emit_branch_or_set.
20186 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
20188 * config/stormy16/stormy16.h (xstormy16_compare_op0,
20189 xstormy16_compare_op1): Delete.
20190 * config/stormy16/stormy16.c (xstormy16_compare_op0,
20191 xstormy16_compare_op1): Delete.
20192 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
20194 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
20195 (cmphi, cmpsi, bCC): Remove.
20197 * config/v850/v850.md (tstsi, cmpsi): Fold into...
20198 (*cmpsi): ... this one.
20199 (cbranchsi4, cstoresi4): New.
20200 (bCC expanders): Delete.
20201 (sCC insns): Fold into...
20202 (*setcc): ... this one.
20203 (casesi): Do not use gen_cmpsi and gen_bgtu.
20204 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
20205 (movsicc): Simplify.
20206 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
20208 * config/vax/vax-protos.h (cond_name): New.
20209 (vax_output_conditional_branch): Remove.
20210 * config/vax/vax.c (cond_name): New.
20211 (vax_output_conditional_branch): Remove.
20212 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
20213 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
20214 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
20215 (bit<VAXint>): Wrap source with (compare).
20216 (b<code> and following unnamed pattern): Rename to *branch and
20217 *branch_reversed. Change macroization to match_operator.
20218 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
20220 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
20221 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
20222 Change last argument to machine_mode.
20223 (xtensa_expand_scc): Add machine_mode argument.
20224 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
20225 (gen_conditional_move, xtensa_expand_conditional_branch,
20226 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
20227 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
20228 Adjust operand numbers.
20229 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
20231 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
20232 (cmpsi, cmpsf, b<code>, s<code>): Delete.
20233 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
20235 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
20237 * optabs.c (prepare_cmp_insn): Temporarily disable test that
20238 causes spurious differences between trunk and cond-optab branch.
20240 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
20243 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
20245 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
20247 * tree.c (iterative_hash_pointer): Delete.
20248 (iterative_hash_expr): Short-circuit handling of NULL pointer.
20249 Hash UIDs and versions of SSA names. Don't special-case built-in
20250 function declarations.
20252 2009-05-11 Ian Lance Taylor <iant@google.com>
20255 * graphite.c: Force -Wc++-compat to only be a warning before
20256 #including "cloog/cloog.h".
20258 2009-05-11 Martin Jambor <mjambor@suse.cz>
20260 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
20262 2009-05-11 Jan Hubicka <jh@suse.cz>
20264 * tree-ssa-loop-ivcanon.c: Include target.h
20265 (struct loop_size): new structure.
20266 (constant_after_peeling): New predicate.
20267 (tree_estimate_loop_size): New function.
20268 (estimated_unrolled_size): Rewrite for new estimates.
20269 (try_unroll_loop_completely): Use new estimates.
20270 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
20272 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20274 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
20275 libcpp interface change.
20276 (spu_macro_to_expand): Likewise.
20278 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
20280 PR tree-optimization/40026
20281 * gimplify.c (gimplify_init_constructor): Change initial conditional
20282 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
20283 optimize_compound_literals_in_ctor.
20285 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
20287 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
20289 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
20291 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
20293 * tree-vect-data-refs.c (vect_analyze_group_access): Use
20294 HOST_WIDE_INT for gap.
20296 2009-05-11 Ira Rosen <irar@il.ibm.com>
20298 PR tree-optimization/40074
20299 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
20300 account in group size and step comparison.
20302 2009-05-11 Richard Guenther <rguenther@suse.de>
20304 * passes.c (init_optimization_passes): Strip now incorrect comment.
20305 (execute_function_todo): Do not set PROP_alias.
20306 * tree-pass.h (PROP_alias): Remove.
20307 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
20308 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
20309 * tree-nrv.c (pass_return_slot): Likewise.
20310 * tree-object-size.c (pass_object_sizes): Likewise.
20311 * tree-ssa-dom.c (pass_dominator): Likewise.
20312 (pass_phi_only_cprop): Likewise.
20313 * tree-ssa-dse.c (pass_dse): Likewise.
20314 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20315 (pass_cselim): Likewise.
20316 * tree-ssa-pre.c (pass_pre): Likewise.
20317 (pass_fre): Likewise.
20318 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20319 * tree-ssa-sink.c (pass_sink_code): Likewise.
20320 * tree-stdarg.c (pass_stdarg): Likewise.
20321 * tree-tailcall.c (pass_tail_calls): Likewise.
20322 * tree-vrp.c (pass_vrp): Likewise.
20324 2009-05-10 Ian Lance Taylor <iant@google.com>
20326 * basic-block.h (enum profile_status): Break out of struct
20327 control_flow_graph.
20328 * cgraph.h (struct inline_summary): Break out of struct
20330 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
20331 of struct cgraph_order_sort.
20332 * combine.c (enum undo_kind): New enum, broken out of struct undo.
20333 * cse.c (struct branch_path): Break out of struct
20334 cse_basic_block_data.
20335 * except.h (enum eh_region_type): Break out of struct eh_region.
20336 * gcc.c (enum add_del): Break out of struct modify_target.
20337 * genrecog.c (enum decision_type): Break out of struct decision_test.
20338 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
20340 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
20341 * regmove.c (enum match_use): New enum, broken out of struct match.
20342 * sched-int.h (enum post_call_group): New enum, broken out of
20344 (struct deps_reg): Break out of struct deps.
20345 * target.h (struct asm_int_op): Break out of struct gcc_target.
20346 * tree-eh.c (struct goto_queue_node): Break out of struct
20348 * tree-inline.h (enum copy_body_cge_which): Break out of
20350 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
20352 * c-decl.c (in_struct, struct_types): New static variables.
20353 (pushtag): Add loc parameter. Change all callers.
20354 (lookup_tag): Add ploc parameter. Change all callers.
20355 (check_compound_literal_type): New function.
20356 (parser_xref_tag): Add loc parameter. Change all callers. If
20357 -Wc++-compat, warn about struct/union/enum types defined within a
20359 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
20360 and loc parameters. Change all callers. Change error calls to
20361 error_at, using loc. For a redefinition, if the location of the
20362 original definition is known, report it. Set in_struct and
20363 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
20364 (finish_struct): Add new parameters enclosing_in_struct and
20365 enclosing_struct_types. Change all callers. Set
20366 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
20367 in the struct. If in a struct, add this struct to struct_types.
20368 (start_enum): Add loc parameter. Change all callers. Use
20369 error_at for errors, using loc. For a redefinition, if the
20370 location of the original definition is known, report it. If in a
20371 struct, add this enum type to struct_types. If -Wc++-compat warn
20372 if in sizeof, typeof, or alignof.
20373 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
20374 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
20375 (c_parser_enum_specifier): Get enum location for start_enum.
20376 (c_parser_struct_or_union_specifier): Get struct location for
20377 start_struct. Save in_struct and struct_types status between
20378 start_struct and finish_struct.
20379 (c_parser_cast_expression): Get location of cast.
20380 (c_parser_alignof_expression): Get location of type.
20381 (c_parser_postfix_expression): Likewise.
20382 (c_parser_postfix_expression_after_paren_type): Add type_loc
20383 parameter. Change all callers. Call check_compound_literal_type.
20384 Use type_loc for error about variable size type.
20385 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
20386 of an enum constant from an enum type defined in a struct or union.
20387 (c_cast_expr): Add loc parameter. Change all callers. If
20388 -Wc++-compat, warn about defining a type in a cast.
20389 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
20390 (start_enum, start_struct, finish_struct): Update declarations.
20391 (parser_xref_tag, c_cast_expr): Update declarations.
20392 (check_compound_literal_type): Declare.
20394 2009-05-11 Ben Elliston <bje@au.ibm.com>
20396 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
20397 for recent libcpp interface change.
20398 (rs6000_macro_to_expand): Likewise.
20400 2009-05-10 Michael Matz <matz@suse.de>
20403 * config/arm/arm.c (require_pic_register): Emit on entry edge,
20404 not at entry of function.
20406 2009-05-10 Richard Guenther <rguenther@suse.de>
20408 PR tree-optimization/40081
20410 * tree-sra.c (instantiate_element): Instantiate scalar replacements
20411 using the main variant of the element type. Do not fiddle with
20412 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20414 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
20415 structs with volatile fields.
20417 2009-05-10 Jan Hubicka <jh@suse.cz>
20419 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
20420 (estimate_move_cost): Assert that it does not get called for
20422 (estimate_num_insns): Skip VOID types in argument handling.
20423 (optimize_inline_calls): Delete unreachable blocks and verify that
20424 callgraph is valid.
20426 2009-05-10 Jan Hubicka <jh@suse.cz>
20428 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
20429 * cgraph.c (cgraph_mark_address_taken_node): New function.
20430 (dump_cgraph_node): Dump new flag.
20431 * cgraph.h (struct cgraph_node): Add address_taken.
20432 (cgraph_mark_address_taken_node): New function.
20433 * ipa.c (cgraph_postorder): Prioritize functions with address taken
20434 since new direct calls can be born.
20436 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20438 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
20439 tok->val.node.node.
20441 2009-05-10 Jan Hubicka <jh@suse.cz>
20443 PR middle-end/40084
20444 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
20446 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
20447 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
20448 * tree-inline.c (copy_bb): Set frequency correctly.
20449 (fold_marked_statements): Update call to
20450 cgraph_update_edges_for_call_stmt.
20452 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20454 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
20455 identifiers in diagnostics.
20456 * config/arm/arm.c (arm_handle_fndecl_attribute,
20457 arm_handle_isr_attribute): Likewise.
20458 * config/avr/avr.c (avr_handle_progmem_attribute,
20459 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
20460 * config/bfin/bfin.c (handle_int_attribute,
20461 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
20462 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
20463 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
20465 * config/darwin.c (darwin_handle_kext_attribute,
20466 darwin_handle_weak_import_attribute): Likewise.
20467 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
20468 h8300_handle_eightbit_data_attribute,
20469 h8300_handle_tiny_data_attribute): Likewise.
20470 * config/i386/i386.c (ix86_handle_cconv_attribute,
20471 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
20472 * config/i386/winnt.c (ix86_handle_shared_attribute,
20473 ix86_handle_selectany_attribute): Likewise.
20474 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
20475 * config/m32c/m32c.c (function_vector_handler): Likewise.
20476 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
20477 m68hc11_handle_fntype_attribute): Likewise.
20478 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
20479 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
20480 * config/mips/mips.c (mips_insert_attributes,
20481 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
20482 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
20483 rs6000_handle_struct_attribute): Likewise.
20484 * config/sh/sh.c (sh_insert_attributes,
20485 sh_handle_resbank_handler_attribute,
20486 sh_handle_interrupt_handler_attribute,
20487 sh2a_handle_function_vector_handler_attribute,
20488 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
20490 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
20491 * config/spu/spu.c (spu_handle_fndecl_attribute,
20492 spu_handle_vector_attribute): Likewise.
20493 * config/stormy16/stormy16.c
20494 (xstormy16_handle_interrupt_attribute): Likewise.
20495 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
20496 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
20498 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20500 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20501 (pp_translate_identifiers): New.
20502 (pp_identifier): Only conditionally translate identifier to locale
20504 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20505 (pp_base_tree_identifier): Only conditionally translate identifier
20506 to locale character set.
20507 * c-pretty-print.c (M_): Define.
20508 (pp_c_type_specifier, pp_c_primary_expression): Mark English
20509 fragments for conditional translation with M_.
20510 * tree-pretty-print.c (maybe_init_pretty_print): Disable
20511 identifier translation.
20513 2009-05-10 Richard Guenther <rguenther@suse.de>
20515 PR tree-optimization/40081
20516 * tree-sra.c (instantiate_element): Instantiate scalar replacements
20517 using the main variant of the element type. Do not fiddle with
20518 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20520 2009-05-09 Jan Hubicka <jh@suse.cz>
20522 PR middle-end/40080
20523 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20524 indirect calls; verify cgraph afterwards.
20526 2009-05-09 Jan Hubicka <jh@suse.cz>
20529 * ipa.c (update_inlined_to_pointer): New function.
20530 (cgraph_remove_unreachable_nodes): Use it.
20532 2009-05-09 Jan Hubicka <jh@suse.cz>
20534 * tree-eh.c (struct leh_state): Remove prev_try.
20535 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20536 not track prev_try.
20537 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20538 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20539 remove_eh_handler_and_replace, foreach_reachable_handler,
20540 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20541 * except.h (struct eh_region): Remove eh_region_u_cleanup.
20542 (gen_eh_region_cleanup): Update prototype.
20544 2009-05-09 Jan Hubicka <jh@suse.cz>
20546 PR middle-end/40043
20547 * except.c (copy_eh_region): Always set prev_try.
20548 (redirect_eh_edge_to_label): Find outer try.
20549 (foreach_reachable_handler): When looking for prev try
20550 handle case where previous try is not going to be taken.
20552 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
20554 PR tree-optimization/40049
20555 * tree-vect-stmts.c (vectorizable_operation): If the machine has
20556 only vector/vector shifts, convert the type of the constant to the
20557 appropriate type to avoid building incorrect trees, which
20558 eventually have problems with garbage collection.
20560 2009-05-08 Joseph Myers <joseph@codesourcery.com>
20562 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20563 -1 for complex floating-point types if honoring signed zeros.
20565 2009-05-08 Jan Hubicka <jh@suse.cz>
20567 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20568 argument; handle correctly when profile is absent.
20569 (build_cgraph_edges): Update.
20570 (rebuild_cgraph_edges): Update.
20571 * cgraph.c: Do not include varray.h.
20572 (cgraph_set_call_stmt_including_clones): New function.
20573 (cgraph_create_edge_including_clones): Likewise
20574 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20575 (cgraph_update_edges_for_call_stmt): Handle clones.
20576 (cgraph_remove_node): Handle clone tree.
20577 (cgraph_remove_node_and_inline_clones): New function.
20578 (dump_cgraph_node): Dump clone tree.
20579 (cgraph_clone_node): Handle clone tree.
20580 (clone_function_name): Bring here from tree-inline.c.
20581 (cgraph_create_virtual_clone): New function.
20582 * cgraph.h (ipa_replace_map): Move here from ipa.h.
20583 (cgraph_clone_info): New function.
20584 (strut cgraph_node): Add clone_info and new clone tree pointers.
20585 (cgraph_remove_node_and_inline_clones,
20586 cgraph_set_call_stmt_including_clones,
20587 cgraph_create_edge_including_clones,
20588 cgraph_create_virtual_clone): Declare.
20589 (cgraph_function_versioning): Use VEC argument.
20590 (compute_call_stmt_bb_frequency): Update prototype.
20591 (cgraph_materialize_all_clones): New function.
20592 * ipa-cp.c (ipcp_update_cloned_node): Remove.
20593 (ipcp_create_replace_map): Update to VECtors.
20594 (ipcp_update_callgraph): Use virtual clones.
20595 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20596 (ipcp_update_profiling): Do not update local profiling.
20597 (ipcp_insert_stage): Use VECtors and virtual clones.
20598 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20599 (clone_of_p): New function.
20600 (cgraph_preserve_function_body_p): Use clone tree.
20601 (cgraph_optimize): Materialize clones.
20602 (cgraph_function_versioning): Update for VECtors.
20603 (save_inline_function_body): Use clone tree.
20604 (cgraph_materialize_clone): New function.
20605 (cgraph_materialize_all_clones): Likewise.
20606 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20607 * ipa.c: Include gimple.h.
20608 (cgraph_remove_unreachable_nodes): Use clone tree.
20609 * ipa-prop.c (ipa_note_param_call): Update call to
20610 compute_call_stmt_bb_frequencycall.
20611 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20612 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20613 (copy_bb): Handle updating of clone tree; add new edge when new call
20615 (expand_call_inline): Be strict about every call having edge.
20616 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20617 (delete_unreachable_blocks_update_callgraph): New function.
20618 (tree_function_versioning): Use VECtors; always remove unreachable
20619 blocks and fold conditionals.
20620 * tree-inline.h: Do not include varray.h.
20621 (tree_function_versioning): Remove.
20622 * Makefile.in (GTFILES): Remove tree-inline.c
20623 * passes.c (do_per_function): Do only functions having body.
20624 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20627 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
20628 Andrew Morrow <acm@google.com>
20631 * c-common.c (c_common_attribute_table): Permit deprecated
20632 attribute to take an optional argument.
20633 (handle_deprecated_attribute): If the optional argument to
20634 __attribute__((deprecated)) is not a string ignore the attribute
20635 and emit a warning.
20637 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20638 * c-typeck.c (build_component_ref): Likewise.
20639 (build_external_ref): Likewise.
20641 * toplev.c (warn_deprecated_use): Add an attribute argument.
20642 Emit the message associated with __attribute__((deprecated)).
20644 * toplev.h (warn_deprecated_use): Updated.
20646 * doc/extend.texi: Document new optional parameter to
20647 __attribute__((deprecated))
20649 2009-05-08 Michael Eager <eager@eagercon.com>
20651 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20652 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20654 2009-05-08 Richard Guenther <rguenther@suse.de>
20656 PR tree-optimization/40062
20657 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20658 Avoid exponential behavior.
20660 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20662 PR rtl-optimization/33928
20664 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20665 process_uses, build_single_def_use_links): New.
20666 (update_df): Update use_def_ref.
20667 (forward_propagate_into): Use get_def_for_use instead of use-def
20669 (fwprop_init): Call build_single_def_use_links and let it initialize
20671 (fwprop_done): Free use_def_ref.
20672 (fwprop_addr): Eliminate duplicate call to df_set_flags.
20673 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20674 df_rd_simulate_one_insn): New.
20675 (df_rd_bb_local_compute_process_def): Update head comment.
20676 (df_chain_create_bb): Use the new RD simulation functions.
20677 * df.h (df_rd_simulate_artificial_defs_at_top,
20678 df_rd_simulate_one_insn): New.
20679 * opts.c (decode_options): Enable fwprop at -O1.
20680 * doc/invoke.texi (-fforward-propagate): Document this.
20682 2009-05-08 Joseph Myers <joseph@codesourcery.com>
20685 * c-typeck.c (build_binary_op): Handle arithmetic between one real
20686 and one complex operand specially.
20687 * tree-complex.c (some_nonzerop): Do not identify a real value as
20688 zero if flag_signed_zeros.
20690 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20692 PR rtl-optimization/33928
20693 * loop-invariant.c (record_use): Fix && vs. || mishap.
20695 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20697 PR rtl-optimization/33928
20698 * loop-invariant.c (struct use): Add addr_use_p.
20699 (struct def): Add n_addr_uses.
20700 (struct invariant): Add cheap_address.
20701 (create_new_invariant): Set cheap_address.
20702 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
20703 (record_uses): Pass df_ref to record_use.
20704 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20707 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
20709 * config/sh/sh.c: Do not include c-pragma.h.
20711 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
20713 * config/spu/spu.c: Remove include of c-common.h.
20715 2009-05-07 Janis Johnson <janis187@us.ibm.com>
20718 * c-common.h (mark_valid_location_for_stdc_pragma,
20719 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20720 clear_float_const_decimal64, float_const_decimal64_p): New.
20721 * c.opt (Wunsuffixed-float-constants): New.
20722 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20723 unsuffixed float constant, handle new warning.
20724 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20725 * c-decl.c (c_scope): New flag float_const_decimal64.
20726 (set_float_const_decimal64, clear_float_const_decimal64,
20727 float_const_decimal64_p): New.
20728 (push_scope): Set new flag.
20729 * c-parser.c (c_parser_translation_unit): Mark when it's valid
20730 to use STDC pragmas.
20731 (c_parser_external_declaration): Ditto.
20732 (c_parser_compound_statement_nostart): Ditto.
20733 * c-pragma.c (valid_location_for_stdc_pragma,
20734 mark_valid_location_for_stdc_pragma,
20735 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20736 handle_pragma_float_const_decimal64): New.
20737 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20738 * cp/semantics.c (valid_location_for_stdc_pragma_p,
20739 set_float_const_decimal64, clear_float_const_decimal64,
20740 float_const_decimal64_p): New dummy functions.
20741 * doc/extend.texi (Decimal Float): Remove statement that the
20742 pragma, and suffix for double constants, are not supported.
20743 * doc/invoke.texi (Warning Options): List new option.
20744 (-Wunsuffixed-float-constants): New.
20746 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
20748 * config/i386/i386.c: Do not include c-common.h.
20750 2009-05-07 Mark Heffernan <meheff@google.com>
20752 * doc/invoke.texi (Debugging Options): Document change of debugging
20754 * opts.c (decode_options): Make dump_base_name relative to
20755 aux_base_name directory.
20757 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
20759 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20760 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20762 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
20764 * Makefile.in (install-plugin): Simplify a bit.
20766 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
20768 * Makefile.in (OBJS-common): Add regcprop.o.
20770 * timevar.def (TV_CPROP_REGISTERS): New.
20771 * regrename.c (regrename_optimize): Return 0.
20772 (rest_of_handle_regrename): Delete.
20773 (pass_rename_registers): Point to regrename_optimize.
20774 (struct value_data_entry, struct value_data,
20775 kill_value_one_regno, kill_value_regno, kill_value,
20776 set_value_regno, init_value_data, kill_clobbered_value,
20777 kill_set_value, kill_autoinc_value, copy_value,
20778 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20779 replace_oldest_value_reg, replace_oldest_value_addr,
20780 replace_oldest_value_mem, copyprop_hardreg_forward_1,
20781 debug_value_data, validate_value_data): Move...
20782 * regcprop.c: ... here.
20783 (rest_of_handle_cprop): Delete.
20784 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20786 2009-05-07 Jakub Jelinek <jakub@redhat.com>
20788 PR middle-end/40057
20789 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20790 GEN_INT for 1 << bitnum.
20791 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20792 build_int_cst_type.
20794 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
20796 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20797 Remove wrong description of "nand" operation.
20799 2009-05-06 Richard Guenther <rguenther@suse.de>
20800 Adam Nemet <anemet@caviumnetworks.com>
20802 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20803 comment. Add that if LHS is not a gimple register, then RHS1 has
20804 to be a single object (GIMPLE_SINGLE_RHS).
20806 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
20808 * expr.c (get_def_for_expr): Move it up in the file.
20809 (store_field): When expanding a bit-field store, look at the
20810 defining gimple stmt for the masking conversion.
20812 2009-05-06 Janis Johnson <janis187@us.ibm.com>
20814 PR middle-end/39986
20815 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20816 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20817 32-bit memcpy into long.
20819 2009-05-06 Jakub Jelinek <jakub@redhat.com>
20821 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20822 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20824 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20825 instead of appending DW_OP_deref*.
20827 2009-05-06 Michael Matz <matz@suse.de>
20829 PR middle-end/40021
20830 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20831 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20833 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
20835 * Makefile.in (install-plugin): Fix srcdir handling.
20837 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
20839 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20840 when processing for not_regs_needed bitmap.
20841 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20842 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
20843 handling it for rhs.
20845 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20847 * config/i386/i386.md (unnamed inc/dec peephole): Use
20848 optimize_insn_for_size_p instead of optimize_size.
20849 * config/i386/predicates.md (incdec_operand): Likewise.
20850 (aligned_operand): Likewise.
20851 * config/i386/sse.md (divv8sf3): Likewise.
20852 (sqrtv8sf2): Likewise.
20854 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20856 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20858 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20860 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20862 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20863 ssemodesuffixf2c with avxmodesuffixf2c.
20865 2009-05-06 Joseph Myers <joseph@codesourcery.com>
20868 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20870 2009-05-05 Jakub Jelinek <jakub@redhat.com>
20872 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20873 (struct tree_base): Adjust spacing for 8 bit boundaries.
20874 (struct tree_decl_common): Add decl_by_reference_flag bit.
20875 (DECL_BY_REFERENCE): Adjust.
20876 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20877 print DECL_BY_REFERENCE bit.
20878 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20879 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20880 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20881 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
20884 PR middle-end/39666
20885 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20886 range of the type, but default label is missing, add it with one
20887 of the existing labels instead of adding a new label for it.
20889 2009-05-05 Joseph Myers <joseph@codesourcery.com>
20893 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
20895 * Makefile.in (enable_plugin, plugin_includedir): New.
20896 (install): Depend on install-plugin.
20897 (PLUGIN_HEADERS): New.
20898 (install-plugin): New.
20899 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20901 2009-05-05 Richard Guenther <rguenther@suse.de>
20903 PR tree-optimization/40022
20904 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20906 (phivn_valid_p): Fix tuplification error, simplify.
20907 (phiprop_insert_phi): Add dumps.
20908 (propagate_with_phi): Simplify.
20910 2009-05-05 Richard Guenther <rguenther@suse.de>
20912 PR middle-end/40023
20913 * builtins.c (gimplify_va_arg_expr): Properly build the address.
20915 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
20917 * tree.h (strip_float_extensions): Remove duplicate declaration.
20918 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20919 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20920 block_ultimate_origin): Rearrange the declarations line to match the
20921 comment that indicates the .c file which the functions are defined.
20922 (dwarf2out_*, set_decl_rtl): Add comment.
20923 (get_base_address): Adjust comment.
20924 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20925 declarations line and add comment.
20926 (is_builtin_name): Add blank after function name, for clarity.
20928 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20930 * attribs.c (decl_attributes): Use %qE for identifiers in
20932 * cgraphunit.c (verify_cgraph_node): Translate function names to
20933 locale character set in diagnostics.
20934 * coverage.c (get_coverage_counts): Use %qE for identifiers in
20936 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20937 Document that functions are named in UTF-8.
20938 * expr.c (expand_expr_real_1): Translate function names to locale
20939 character set in diagnostics.
20940 * gimplify.c (omp_notice_variable, omp_is_private,
20941 gimplify_scan_omp_clauses): Use %qE for identifiers in
20943 * langhooks.c (lhd_print_error_function): Translate function names
20944 to locale character set.
20945 * langhooks.h (decl_printable_name): Document that return value is
20946 in internal character set.
20947 * stmt.c: Include pretty-print.h
20948 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20950 (resolve_operand_name_1): Translate named operand name to locale
20952 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20954 * toplev.c (announce_function): Translate function names to locale
20956 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20957 (default_tree_printer): Use pp_identifier or translate identifiers
20958 to locale character set. Mark "<anonymous>" for translation.
20959 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20960 for identifiers in diagnostics.
20961 * tree.c (handle_dll_attribute): Use %qE for identifiers in
20963 * varasm.c (output_constructor): Use %qE for identifiers in
20966 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
20968 * configure.ac: use ` ` instead of $()
20969 * configure: Regenerate.
20971 2009-05-05 Ben Elliston <bje@au.ibm.com>
20973 * config/pa/linux-atomic.c: Eliminate conditional include of
20974 errno.h on non-LP64 systems to simplify build requirements.
20976 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20978 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20980 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20981 and pass value to identifier_to_locale.
20982 (warn_variable_length_array): Make name a tree.
20983 (grokdeclarator): Separate diagnostic texts for named and unnamed
20984 declarators. Use %qE for named declarators.
20985 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20987 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20988 identifiers in diagnostics.
20989 * c-typeck.c (push_member_name, start_init): Pass identifiers to
20990 identifier_to_locale. Mark "anonymous" strings for translation.
20992 2009-05-04 Michael Eager <eager@eagercon.com>
20994 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20995 address for DImode/DFmode only if double-precision FP regs.
20997 2009-05-04 Michael Eager <eager@eagercon.com>
20999 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
21000 TARGET_SINGLE_FLOAT check.
21002 2009-05-04 Michael Eager <eager@eagercon.com>
21004 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
21006 2009-05-04 Michael Eager <eager@eagercon.com>
21008 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
21009 * config/rs6000/t-xilinx: New
21011 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
21013 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
21014 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
21015 * gcc/explow.c (memory_address): Use target hook.
21016 * gcc/targhooks.c (default_legitimize_address): New.
21017 * gcc/targhooks.h (default_legitimize_address): New.
21018 * gcc/target.h (legitimize_address): New.
21019 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
21020 (TARGET_INITIALIZER): Include it.
21021 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
21023 * config/bfin/bfin-protos.h (legitimize_address): Remove.
21024 * config/bfin/bfin.c (legitimize_address): Remove.
21025 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
21026 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
21028 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
21029 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
21031 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
21032 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
21033 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
21034 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
21035 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
21036 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
21037 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
21038 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
21039 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
21040 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
21041 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
21042 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
21043 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
21044 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
21045 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
21046 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
21047 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
21048 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
21049 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
21050 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
21051 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
21052 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
21053 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
21055 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
21056 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
21057 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
21058 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
21059 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
21060 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
21061 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
21062 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
21063 (thumb_legitimize_address): Delete.
21064 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
21065 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
21066 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
21067 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
21068 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
21069 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
21071 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
21074 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
21075 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
21076 * config/m32r/m32r.c (m32r_legitimize_address): New.
21077 * config/m68k/m68k.c (m68k_legitimize_address): New.
21078 * config/score/score.c (score_legitimize_address): Standardize.
21079 * config/score/score3.c (score3_legitimize_address): Standardize.
21080 * config/score/score3.h (score3_legitimize_address): Adjust.
21081 * config/score/score7.c (score7_legitimize_address): Standardize.
21082 * config/score/score7.h (score7_legitimize_address): Adjust.
21083 * config/sh/sh.c (sh_legitimize_address): New.
21084 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
21086 * gcc/config/s390/s390.c (legitimize_address): Rename to...
21087 (s390_legitimize_address): ... this.
21088 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
21089 (sparc_legitimize_address): ... this.
21090 * gcc/config/i386/i386.c (legitimize_address): Rename to...
21091 (ix86_legitimize_address): ... this.
21092 * gcc/config/avr/avr.c (legitimize_address): Rename to...
21093 (avr_legitimize_address): ... this.
21094 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
21095 (mn10300_legitimize_address): ... this.
21096 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
21097 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
21098 (alpha_expand_mov): Adjust call.
21100 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
21101 * config/spu/spu.c (spu_legitimize_address): Likewise.
21102 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
21103 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
21105 2009-05-04 Joseph Myers <joseph@codesourcery.com>
21107 * intl.c (locale_encoding, locale_utf8): New.
21108 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
21109 * intl.h (locale_encoding, locale_utf8): Declare.
21110 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
21111 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
21113 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
21115 (pp_tree_identifier): Define to call pp_base_tree_identifier.
21116 (pp_base_tree_identifier): Declare as function.
21117 (identifier_to_locale): Declare.
21118 * Makefile.in (pretty-print.o): Update dependencies.
21119 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
21121 2009-05-04 Richard Guenther <rguenther@suse.de>
21123 PR middle-end/40015
21124 * builtins.c (fold_builtin_memory_op): Do not decay to element
21125 type if the size matches the whole array.
21127 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
21129 * expmed.c (synth_mult): When trying out a shift, pass the result
21132 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
21134 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
21135 (shiftsub1_cost): New.
21136 (init_expmed): Compute shiftsub1_cost.
21137 (synth_mult): Optimize multiplications by constants of the form
21138 -(2^^m-1) for some constant positive integer m.
21140 2009-05-03 Richard Guenther <rguenther@suse.de>
21143 * c-typeck.c (array_to_pointer_conversion): Do not built
21144 ADDR_EXPRs of arrays of pointer-to-element type.
21145 * c-gimplify.c (c_gimplify_expr): Revert change fixing
21146 up wrong ADDR_EXPRs after-the-fact.
21147 * c-common.c (strict_aliasing_warning): Strip pointer
21148 conversions for obtaining the original type.
21149 * builtins.c (fold_builtin_memset): Handle array types.
21150 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
21153 2009-05-03 Richard Guenther <rguenther@suse.de>
21155 PR middle-end/23329
21156 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
21157 Do not lose casts from array types with unknown extent to array
21158 types with known extent.
21159 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
21160 alias set compatibility.
21162 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
21164 * flags.h (extra_warnings): Delete.
21165 * toplev.c (process_options): Handle Wuninitialized here.
21166 * opts.c (extra_warnings): Delete.
21167 (set_Wextra): Delete.
21168 (common_handle_option): -Wextra can be handled automatically.
21169 * c-opts.c (c_common_handle_option): Delete obsolete code.
21170 (c_common_post_options): Simplify comment.
21171 * common.opt (W): Add Var.
21173 (Wuninitialized): Initialize to -1.
21175 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
21176 Richard Guenther <rguenther@suse.de>
21178 * expr.c (get_def_for_expr): New function.
21179 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
21180 SSA rather than trees.
21181 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
21182 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
21184 2009-05-03 Joseph Myers <joseph@codesourcery.com>
21186 * c-common.c (reswords): Add _Imaginary.
21187 * c-common.c (enum rid): Add RID_IMAGINARY.
21189 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
21191 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
21192 Patch by Richard Guenther.
21194 2009-05-03 Anatoly Sokolov <aesok@post.ru>
21196 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
21197 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
21198 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
21199 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
21200 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
21201 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
21202 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
21203 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
21204 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
21205 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
21206 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
21207 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
21208 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
21209 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
21210 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
21211 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
21212 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
21213 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
21215 2009-05-02 Richard Guenther <rguenther@suse.de>
21217 PR tree-optimization/39940
21218 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
21221 2009-05-02 Richard Guenther <rguenther@suse.de>
21223 PR middle-end/40001
21224 * tree-ssa.c (execute_update_addresses_taken): Properly check
21225 if we can mark a variable DECL_GIMPLE_REG_P.
21226 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
21227 back to the end of the function.
21228 (is_gimple_reg_type): Remove complex type special casing.
21229 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
21232 2009-05-02 Ben Elliston <bje@au.ibm.com>
21234 * doc/collect2.texi (Collect2): Document search path behaviour
21235 when configured with --with-ld.
21237 2009-05-02 Jan Hubicka <jh@suse.cz>
21239 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
21240 parameter; update callers.
21241 (coalesce_cost_edge): EH edges are costier because they needs
21242 splitting even if not critical and even more costier when there are
21243 multiple EH predecestors.
21245 2009-05-02 Jan Hubicka <jh@suse.cz>
21247 * except.c (remove_eh_handler_and_replace): Handle updating after
21248 removing TRY blocks.
21250 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
21252 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
21254 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
21256 * varasm.c: Do not include c-pragma.h.
21257 * attribs.c: Do not incude c-common.h.
21259 2009-05-01 Michael Matz <matz@suse.de>
21261 * calls.c (initialize_argument_information): Handle SSA names like
21262 decls with a non MEM_P DECL_RTL.
21264 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
21266 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
21267 * ipa-utils.c: Likewise.
21268 * ipa-type-escape.c: Likewise.
21269 * cgraphunit.c Do not include c-common.h.
21270 * ipa-pure-const.c: Likewise.
21271 * tree-if-conv.c: Likewise.
21272 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
21273 * ipa-struct-reorg.c: Likewise.
21274 * tree-nomudflap.c: Likewise.
21275 * tree-ssa-structalias.c: Likewise.
21277 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
21279 * store-motion.c: Many cleanups to make this pass a first-class
21280 citizen instead of an appendix to gcse load motion. Add TODO list
21281 to make this pass faster/cleaner/better.
21283 (struct ls_expr): Post gcse.c-split cleanups.
21284 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
21285 "stores" field to "avail_stores".
21286 (pre_ldst_mems): Rename to store_motion_mems.
21287 (pre_ldst_table): Rename to store_motion_mems_table.
21288 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
21289 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
21290 (ldst_entry): Rename to st_expr_entry, update users.
21291 (free_ldst_entry): Rename to free_st_expr_entry, update users.
21292 (free_ldst_mems): Rename to free_store_motion_mems, update users.
21293 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
21295 (first_ls_expr): Rename to first_st_expr, update users.
21296 (next_ls_expr): Rename to next_st_expr, update users.
21297 (print_ldst_list): Rename to print_store_motion_mems. Print names of
21298 fields properly for store motion instead of names inherited from load
21300 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
21301 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
21304 (ae_kill): Rename to st_kill, update users.
21305 (ae_gen): Rename to st_avloc, update users.
21306 (transp): Rename to st_transp, update users.
21307 (pre_insert_map): Rename to st_insert_map, update users.
21308 (pre_delete_map): Rename to st_delete_map, update users.
21309 (insert_store, build_store_vectors, free_store_memory,
21310 one_store_motion_pass): Update for abovementioned changes.
21312 (gcse_subst_count, gcse_create_count): Remove.
21313 (one_store_motion_pass): New statistics counters "n_stores_deleted"
21314 and "n_stores_created", local variables.
21316 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
21319 (regvec, compute_store_table_current_insn): Remove.
21320 (reg_set_info, reg_clear_last_set): Remove.
21321 (compute_store_table): Use DF caches instead of local dataflow
21324 2009-05-01 Joseph Myers <joseph@codesourcery.com>
21326 * c-objc-common.c (c_tree_printer): Print identifiers with
21327 pp_identifier, not pp_string. Mark "({anonymous})" for
21329 * c-pretty-print.c (pp_c_ws_string): New.
21330 (pp_c_cv_qualifier, pp_c_type_specifier,
21331 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
21332 pp_c_storage_class_specifier, pp_c_function_specifier,
21333 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
21334 pp_c_primary_expression, pp_c_postfix_expression,
21335 pp_c_unary_expression, pp_c_shift_expression,
21336 pp_c_relational_expression, pp_c_equality_expression,
21337 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
21338 use pp_string and pp_c_ws_string in place of pp_identifier and
21339 pp_c_identifier for non-identifiers. Mark English strings for
21341 * c-pretty-print.h (pp_c_ws_string): Declare.
21343 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
21344 Roland McGrath <roland@redhat.com>
21346 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
21347 (ENABLE_LD_BUILDID): New configuration option.
21348 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
21349 (LINK_BUILDID_SPEC): New macro.
21350 (init_spec): If defined, prepend it between LINK_EH_SPEC and
21352 * doc/install.texi: Document --enable-linker-build-id option.
21353 * configure: Rebuild.
21354 * config.in: Rebuild.
21356 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
21358 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
21359 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
21360 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
21361 MIPS_GP_SAVE_AREA_SIZE.
21362 * config/mips/mips.c (struct mips_frame_info): Update comment
21363 before arg_pointer_offset and hard_frame_pointer_offset.
21364 (mips_compute_frame_info): Update diagram before function: to
21365 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
21366 indicate the position of frame_pointer_rtx with -fstack-protector and
21367 to show args_size. Don't allocate cprestore area for leaf functions
21368 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
21370 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
21372 2009-04-30 Michael Matz <matz@suse.de>
21374 PR tree-optimization/39955
21375 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
21377 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
21379 * ira.c (setup_cover_and_important_classes): Use safe macro
21380 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
21382 * genpreds.c (write_tm_preds_h): Output suitable definition of
21383 REG_CLASS_FOR_CONSTRAINT.
21385 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
21387 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
21389 * bitmap.c (bitmap_descriptor): Likewise.
21390 * ggc-common.c (loc_descriptor): Likewise.
21391 * varray.c (varray_descriptor): Likewise.
21392 * vec.c (vec_descriptor): Likewise.
21394 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
21396 * Makefile.in (dce.o): Add $(EXCEPT_H).
21397 * dce.c: Include except.h and delete redundant vector definitions.
21398 (deletable_insn_p): Return false for non-call insns that can throw
21401 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
21403 * gcse.c (ae_gen): Remove.
21404 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
21405 and make non-static function to make it available in store-motion.c.
21406 Update call sites with search-and-replace.
21407 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
21408 extract_mentioned_regs, extract_mentioned_regs_helper,
21409 find_moveable_store, compute_store_table, load_kills_store, find_loads,
21410 store_killed_in_insn, store_killed_after, store_killed_before,
21411 build_store_vectors, insert_insn_start_basic_block, insert-store,
21412 remove_reachable_equiv_notes, replace_store_insn, delete_store,
21413 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
21414 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
21415 * store-motion.c: ...new file. Also copy data structures from gcse.c
21416 and clean up to remove parts not used by store motion.
21417 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
21418 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
21420 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21423 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
21424 when optimizing for size.
21426 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
21428 * gcse.c (gcse_constant_p): Fix typo in last change.
21430 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
21432 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
21434 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
21436 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
21438 2009-04-29 James E. Wilson <wilson@codesourcery.com>
21440 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
21441 CONST_HIGH_PART result.
21443 2009-04-29 Anatoly Sokolov <aesok@post.ru>
21445 * config/avr/avr.c (initial_elimination_offset): Rename to
21446 avr_initial_elimination_offset.
21447 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
21448 change return type to bool.
21449 (avr_can_eliminate): New function.
21450 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
21451 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
21452 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
21453 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
21454 avr_initial_elimination_offset.
21455 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
21456 (avr_initial_elimination_offset): Define.
21458 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
21459 Steven Bosscher <steven@gcc.gnu.org>
21461 PR rtl-optimization/39938
21462 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
21463 * cfgrtl.c: Include insn-attr.h.
21464 (rest_of_pass_free_cfg): New function.
21465 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
21466 * resource.c (init_resource_info): Remove call to df_analyze.
21468 2009-04-29 Richard Guenther <rguenther@suse.de>
21471 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
21472 allow conversion to signed integers.
21474 2009-04-29 Richard Guenther <rguenther@suse.de>
21476 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
21477 shifts of floating point vectors if the shift amount is
21478 a constant multiple of the element size.
21480 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
21481 Michael Matz <matz@suse.de>
21483 PR middle-end/39927
21485 * tree-outof-ssa.c (emit_partition_copy): New function.
21486 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21487 insert_part_to_rtx_on_edge): Perform the partition base var
21488 copy using emit_partition_copy.
21489 (insert_value_copy_on_edge): Convert constants to the right mode.
21490 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
21491 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
21493 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21495 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
21496 scan backwards to try to find a constant to initialize it.
21498 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21499 insn before the loop_end instruction, don't look past labels.
21501 2009-04-29 Richard Guenther <rguenther@suse.de>
21503 PR middle-end/39937
21504 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21505 loose type conversions.
21506 (forward_propagate_addr_expr): Fix tuplification bug. Remove
21507 stmts only if there are no uses of its definition.
21509 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21511 * config/bfin/bfin.h (splitting_loops): Declare.
21512 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21513 Reorder bit definitions to be ascending.
21514 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21515 * config/bfin/bfin.c (splitting_loops): New variable.
21516 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21517 (struct loop_info): Remove members INIT and LOOP_INIT.
21518 (bfin_optimize_loop): Don't set them. Reorder the code that generates
21519 the LSETUP sequence. Allow LC to be loaded from any register, but
21520 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21521 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21523 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21524 of reload_completed.
21527 * config/bfin/bfin.md (movsi_insn): Refine constraints.
21529 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
21531 * Makefile.in (PLUGIN_VERSION_H): New.
21532 (OBJS-common): Remove plugin-version.o.
21533 (plugin.o): Depend on (PLUGIN_VERSION_H).
21534 (plugin-version.o): Remove.
21535 * configure: Regenerate
21536 * configure.ac: Create plugin-version.h.
21537 * gcc-plugin.h (plugin_gcc_version): Remove.
21538 (plugin_default_version_check): Change signature.
21539 * plugin-version.c: Remove.
21540 * plugin.c: Include plugin-version.h.
21541 (str_plugin_gcc_version_name): Remove.
21542 (try_init_one_plugin): Pass gcc version to plugin_init.
21543 (plugin_default_version_check): Both gcc and plugin versions are now
21546 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21548 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21549 problematic last insns. Test for TYPE_CALL rather than CALL_P.
21550 Remove special case testing for last insn of inner loops. Don't fail
21551 if the loop ends with a jump, emit an extra nop instead.
21553 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21554 DREGS rather than comparing directly. Remove code that tries to
21555 account for latencies.
21557 2009-04-29 Richard Guenther <rguenther@suse.de>
21559 PR tree-optimization/39941
21560 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21561 eliminating an indirect call.
21563 2009-04-29 Richard Guenther <rguenther@suse.de>
21565 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21566 parameter. Allow invariants as base if !require_lvalue.
21567 (verify_gimple_assign_single): Adjust.
21569 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21571 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21572 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21573 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21574 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21575 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21577 * config/bfin/bfin.c (bfin_expand_builtin,
21578 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21580 2009-04-28 Richard Guenther <rguenther@suse.de>
21582 * tree-vect-loop.c (get_initial_def_for_induction): Use
21583 correct types for pointer increment.
21585 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21587 * toplev.c (print_version): Update GMP version string calculation.
21589 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
21591 PR rtl-optimization/39938
21592 * resource.c (init_resource_info): Add call to df_analyze.
21594 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21596 * config/alpha/alpha.md (usegp): Cast the result of
21597 alpha_find_lo_sum_using_gp to enum attr_usegp.
21598 * config/alpha/alpha.c (override_options): Remove end-of-structure
21599 marker element from cpu_table. Use array size of cpu_table to handle
21600 -mcpu and -mtune options.
21601 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21603 2009-04-28 Joseph Myers <joseph@codesourcery.com>
21605 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21606 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
21607 tune_32 and tune_64.
21608 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21609 support on PowerPC.
21610 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21611 * config/rs6000/option-defaults.h: ... here. New file.
21612 (OPT_64, OPT_32): Define.
21613 (MASK_64BIT): Define to 0 if not already defined.
21614 (OPT_ARCH64, OPT_ARCH32): Define.
21615 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21618 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21620 * config/arm/arm.c (arm_override_options): Emit error on using
21623 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21625 PR rtl-optimization/39914
21626 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21627 registers for allocnos created from user-defined variables only
21628 when not optimizing.
21630 2009-04-28 Richard Guenther <rguenther@suse.de>
21632 PR middle-end/39937
21633 * fold-const.c (fold_binary): Use distribute_real_division only
21636 2009-04-28 Steve Ellcey <sje@cup.hp.com>
21638 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21639 add hpux-stdint.h to tm_file.
21640 (hppa[12]*-*-hpux11*): Ditto.
21641 (ia64*-*-hpux*): Ditto.
21642 * config/hpux-stdint.h: New.
21643 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21644 __STDC_EXT__ for all compiles.
21645 * config/pa/pa-hpux.h: Ditto.
21646 * config/pa/pa-hpux10.h: Ditto.
21647 * config/pa/pa-hpux11.h: Ditto.
21649 2009-04-28 Catherine Moore <clm@codesourcery.com>
21651 * debug.h (set_name): Add comment.
21653 2009-04-28 Andrew Pinski <pinskia@gmail.com>
21656 * config/darwin.c (machopic_gen_offset): Check
21657 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21658 * config/arm/arm.c (require_pic_register): Likewise.
21660 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
21662 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21663 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21664 m32c_promote_prototypes): Delete.
21666 2009-04-28 Michael Matz <matz@suse.de>
21668 PR middle-end/39922
21669 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21672 2009-04-28 Richard Guenther <rguenther@suse.de>
21674 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21676 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21678 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21679 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21680 * config/arm/arm-tune.md: Regenerate.
21682 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
21684 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21685 block if there are complex incoming edges.
21686 (sel_merge_blocks): Remove useless assert.
21687 (sel_redirect_edge_and_branch): Check that edge was redirected.
21688 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21689 (sel_find_rgns): Delete declaration.
21690 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21691 the region when it is not a preheader.
21693 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21696 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21698 2009-04-28 Richard Guenther <rguenther@suse.de>
21700 * tree.h (SSA_NAME_VALUE): Remove.
21701 (struct tree_ssa_name): Remove value_handle member.
21702 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21703 array for jump threading.
21704 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21706 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21707 * tree-flow.h (threadedge_initialize_values): Declare.
21708 (threadedge_finalize_values): Likewise.
21709 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21710 (SSA_NAME_VALUE): Define.
21711 (threadedge_initialize_values): New function.
21712 (threadedge_finalize_values): Likewise.
21713 * tree-ssa-dom.c (ssa_name_values): New global variable.
21714 (SSA_NAME_VALUE): Define.
21715 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21717 2009-04-28 Ira Rosen <irar@il.ibm.com>
21719 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21720 Use REPORT_VECTORIZED_LOCATIONS instead
21721 REPORT_VECTORIZED_LOOPS.
21722 * tree-vectorizer.c (vect_verbosity_level): Make static.
21723 (vect_loop_location): Rename to vect_location.
21724 (vect_set_verbosity_level): Update comment.
21725 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21727 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21728 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21729 instead REPORT_UNVECTORIZED_LOOPS.
21730 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21731 and vect_loop_def to vect_external_def and vect_internal_def.
21732 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21733 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21734 REPORT_UNVECTORIZED_LOCATIONS.
21735 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21736 and vect_used_in_loop and to vect_unused_in_scope and
21737 vect_used_in_scope.
21738 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21739 (vect_verbosity_level): Remove declaration.
21740 (vect_analyze_operations): Likewise.
21741 (vect_analyze_stmt): Declare.
21742 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21743 REPORT_UNVECTORIZED_LOCATIONS.
21744 (vect_get_loop_niters): Fix indentation.
21745 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21746 (vect_analyze_loop_operations): New function.
21747 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21748 vect_analyze_operations.
21749 (vect_is_simple_reduction): Use new names.
21750 (vectorizable_live_operation, vect_transform_loop): Likewise.
21751 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21752 to specify whether the data references can be a part of interleaving
21754 (vect_analyze_data_ref_dependence): Use new names.
21755 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21756 (vect_create_addr_base_for_vector_ref): Remove redundant code.
21757 * tree-vect-patterns.c (widened_name_p): Use new names.
21758 (vect_recog_dot_prod_pattern): Likewise.
21759 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21760 (process_use, vect_mark_stmts_to_be_vectorized,
21761 vect_model_simple_cost, vect_model_store_cost,
21762 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21763 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21764 vectorizable_operation, vectorizable_type_demotion,
21765 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21766 vectorizable_condition): Likewise.
21767 (vect_analyze_operations): Split into vect_analyze_loop_operations
21769 (vect_analyze_stmt): ... new function.
21770 (new_stmt_vec_info): Use new names.
21771 (vect_is_simple_use): Use new names and fix comment.
21772 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21773 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21775 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21778 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21779 and integer modes for x87 operands. Do not ICE for unsupported size,
21780 generate error instead. Generate error for unsupported operand types.
21781 ['z']: Do not handle HImode memory operands specially. Warning
21782 for floating-point operands. Fallthru to 'Z' for unsupported operand
21783 types. Do not ICE for unsupported size, generate error instead.
21784 (output_387_binary_op): Use %Z to output operands.
21785 (output_fp_compare): Ditto.
21786 (output_387_reg_move): Ditto.
21788 2009-04-28 Ben Elliston <bje@au.ibm.com>
21793 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21795 * builtins.c (c_strlen): Do not warn here.
21796 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21797 * c-common.c (pointer_int_sum): Take an explicit location.
21798 Warn about offsets out of bounds.
21799 * c-common.h (pointer_int_sum): Adjust declaration.
21801 2009-04-27 Ian Lance Taylor <iant@google.com>
21803 * collect2.c (is_ctor_dtor): Change type of ret field in struct
21805 * dce.c (run_fast_df_dce): Change type of old_flags to int.
21806 * df-core.c (df_set_flags): Change return type to int. Change
21807 type of old_flags to int.
21808 (df_clear_flags): Likewise.
21809 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21810 (df_get_conditional_uses): Likewise.
21811 * df.h (df_set_flags, df_clear_flags): Update declarations.
21812 * dwarf2out.c (struct indirect_string_node): Change type of form
21813 field to enum dwarf_form.
21814 (AT_string_form): Change return type to enum dwarf_form.
21815 * fixed-value.c (fixed_compare): Add cast to enum type.
21816 * fwprop.c (update_df): Change 0 to VOIDmode.
21817 * gensupport.c: Change 0 to UNKNOWN.
21818 * gimple.h (gimple_cond_code): Add cast to enum type.
21819 * haifa-sched.c (reemit_notes): Add cast to enum type.
21820 * hooks.c (hook_int_void_no_regs): Remove function.
21821 * hooks.h (hook_int_void_no_regs): Remove declaration.
21822 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21823 * predict.c (combine_predictions_for_insn): Add casts to enum type.
21824 * real.c (real_arithmetic): Add cast to enum type.
21825 (real_compare): Likewise.
21826 * target.h (struct gcc_target): Change return type of
21827 branch_target_register_class to enum reg_class.
21828 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21829 default_branch_target_register_class.
21830 * targhooks.c (default_branch_target_register_class): New function.
21831 * targhooks.h (default_branch_target_register_class): Declare.
21832 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21833 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21835 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21837 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21838 vect_uninitialized_def. Change 0 to ERROR_MARK.
21839 * tree-vect-stmts.c (supportable_widening_operation): Don't
21840 initialize icode1 and icode2.
21841 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21842 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21844 (cmn_err_flag_specs): Change 0 to STD_C89.
21845 (cmn_err_char_table): Likewise.
21846 * config/arm/arm.c (get_arm_condition_code): Change type of code
21847 to enum arm_cond_code.
21848 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21849 (IWMMXT_BUILTIN2): Likewise.
21850 (neon_builtin_type_bits): Don't define typedef.
21851 (neon_builtin_datum): Change type of bits field to int.
21852 (arm_expand_neon_args): Add cast to enum type.
21853 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21855 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
21856 casts to enum type.
21857 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21859 * config/mips/mips.md (jal_macro): Return enum constant.
21860 (single_insn): Likewise.
21861 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21863 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21864 casts to enum type.
21865 * config/s390/s390.c (s390_tune_flags): Change type to int.
21866 (s390_arch_flags): Likewise.
21867 (s390_handle_arch_option): Change flags field of struct pta to int.
21868 * config/s390/s390.h (s390_tune_flags): Update declaration.
21869 (s390_arch_flags): Likewise.
21870 * config/sh/sh.c (prepare_move_operands): Compare
21871 tls_symbolic_operand result with enum constant.
21872 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21873 (sh_expand_prologue): Add cast to enum type.
21874 (sh_expand_epilogue): Likewise.
21875 (tls_symbolic_operand): Change return type to enum tls_model.
21876 (fpscr_set_from_mem): Add cast to enum type.
21877 (legitimize_pic_address): Compare tls_symbolic_operand result with
21879 (sh_target_reg_class): Change return type to enum reg_class.
21880 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21882 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21883 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21884 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21885 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21886 (delayed_branch, tls_call_delay): Likewise.
21887 (eligible_for_sibcall_delay): Likewise.
21888 (eligible_for_return_delay): Likewise.
21889 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21890 (spu_expand_builtin_1): Likewise.
21892 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21893 for all types of conversions.
21894 (output_init_element): Issue -Wc++-compat warning if needed when
21895 initializing a bitfield with enum type.
21896 * c-parser.c (c_parser_expression): Set original_type to
21897 original_type of right hand operand of comma operator.
21899 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21901 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21903 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21904 * doc/cpp.texi (Standard Predefined Macros)
21905 (Implementation-defined behavior): Likewise.
21906 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21907 * doc/gimple.texi (GIMPLE Exception Handling)
21908 (@code{GIMPLE_ASSIGN}): Likewise.
21909 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21910 * doc/invoke.texi (Warning Options, Optimize Options)
21911 (AVR Options, Darwin Options): Likewise.
21912 (Optimize Options): Reformulate -fwhole-program description.
21913 * doc/loop.texi (Lambda): Likewise.
21914 * doc/md.texi (Output Template, Define Constraints)
21915 (Standard Names, Insn Splitting): Likewise.
21916 * doc/options.texi (Option properties): Likewise.
21917 * doc/passes.texi (Tree-SSA passes): Likewise.
21918 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21919 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21920 (File Names and DBX): Likewise.
21921 * doc/trouble.texi (Incompatibilities): Likewise.
21923 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
21925 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21926 instruction is correct.
21928 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
21930 Allow non-constant arguments to conversion intrinsics.
21931 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21932 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21933 * spu.c (print_operand): Handle 'v' and 'w'.
21934 (exp2_immediate_p, spu_gen_exp2): Define.
21935 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21936 spu_convtf_1): Update parameter descriptions.
21937 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21938 * constraints.md ('v', 'w'): New.
21939 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21941 (i2f, I2F): New define_mode_attr.
21942 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21943 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21944 fixuns_truncv4sfv4si2): Update to use mode attribute.
21945 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21946 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21947 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21948 patterns for combine.
21950 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
21952 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21953 (cprop, hoist, pre, store_motion): New debug counters.
21954 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21955 is not an RTL pass anymore.
21956 (pass_profiling): Remove extern decl for pass removed in 2005.
21957 (pass_gcse, pass_jump_bypass): Remove.
21958 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21959 to 0 for clean state.
21960 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21961 * cse.c (gate_handle_cse_after_global_opts,
21962 rest_of_handle_cse_after_global_opts): New functions.
21963 (pass_cse_after_global_opts): New pass, does local CSE.
21964 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21965 (TV_CPROP): New timevar.
21966 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21967 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21968 (gcse_main, recompute_all_luids): Remove.
21969 (compute_hash_table_work): Call max_reg_num instead of reading
21971 (cprop_jump): Don't set run_jump_opt_after_gcse.
21972 (constprop_register): Always allow to alter jumps.
21973 (cprop_insn): Likewise.
21974 (do_local_cprop): Likewise.
21975 (local_cprop_pass): Likewise. Return non-zero if something changed.
21976 (cprop): Remove function, fold interesting bits into one_cprop_pass.
21977 (find_implicit_sets): Add note about missed optimization opportunity.
21978 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21979 pass_rtl_cprop execute function.
21980 Don't bother tracking the pass number, each pass gets its own dumpfile
21982 Always allow to alter jumpsand bypass jumps.
21983 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21984 will just find no suitable set.
21985 (pre_edge_insert): Fix dumping, this function is for PRE only.
21986 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21987 pass_rtl_pre execute function.
21988 (hoist_code): Return non-zero if something changed. Keep track of
21989 substitutions and insertions for statistics gathering similar to PRE.
21990 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21991 called from the pass_rtl_hoist execute function. Show pass statistics.
21992 (compute_store_table): Use max_reg_num directly instead of using the
21993 formerly global max_gcse_regno.
21994 (build_store_vectors): Likewise.
21995 (replace_store_insn): Fix dumping.
21996 (store_motion): Rename to ...
21997 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
21998 pass, called from the pass_rtl_store_motion execute function. Keep
21999 track of substitutions and insertions for statistics gathering similar
22001 (bypass_jumps): Remove, fold interesting bits into ...
22002 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
22003 from the pass_rtl_cprop execute function.
22004 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
22005 pass_jump_bypass): Remove.
22006 (gate_handle_gcse, rest_of_handle_gcse): Remove.
22007 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
22008 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
22009 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
22010 (gate_rtl_store_motion, execute_rtl_store_motion,
22011 pass_rtl_store_motion): New.
22012 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
22013 make it clear that -fcse-skip-blocks is a no-op for backward compat.
22014 * passes.c (init_optimization_passes): Remove pass_gcse and
22015 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
22016 and cse_after_global_opts in place of pass_gcse. Schedule cprop
22017 instead of pass_jump_bypass.
22019 2009-04-27 Richard Guenther <rguenther@suse.de>
22021 PR middle-end/39928
22022 * gimplify.c (gimplify_expr): If we are required to create
22023 a temporary make sure it ends up as register.
22025 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
22028 * config/i386/i386.c (construct_container): Don't call
22029 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
22030 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
22032 2009-04-27 Michael Matz <matz@suse.de>
22034 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
22035 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
22036 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
22037 (dump_replaceable_exprs): Take a bitmap.
22038 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
22040 (expand_gimple_basic_block): Likewise.
22041 * tree-ssa-ter.c (struct temp_expr_table_d): Make
22042 replaceable_expressions member a bitmap.
22043 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
22044 (mark_replaceable): Likewise.
22045 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
22046 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
22048 2009-04-27 Richard Guenther <rguenther@suse.de>
22050 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
22051 (verify_stmts): Dispatch to gimple/type verification code.
22052 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
22053 issue with call argument types.
22055 2009-04-27 Michael Matz <matz@suse.de>
22057 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
22058 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
22061 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22062 Eric Botcazou <ebotcazou@adacore.com>
22064 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
22065 a label's basic block.
22066 (mark_target_live_regs): Tidy and rework obsolete comments.
22067 Change back DF problem to LIVE. If a label starts a basic block,
22068 assume that all registers that used to be live then still are.
22069 (init_resource_info): If a label starts a basic block, set its
22070 BLOCK_FOR_INSN accordingly.
22071 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
22073 2009-04-27 Richard Guenther <rguenther@suse.de>
22075 * tree-flow-inline.h (function_ann): Remove.
22076 (get_function_ann): Likewise.
22077 * tree-dfa.c (create_function_ann): Remove.
22078 * tree-flow.h (struct static_var_ann_d): Remove.
22079 (struct function_ann_d): Likewise.
22080 (union tree_ann_d): Remove fdecl member.
22081 (function_ann_t): Remove.
22082 (function_ann, get_function_ann, create_function_ann): Remove
22085 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
22087 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
22089 2009-04-27 Jan Hubicka <jh@suse.cz>
22091 * ipa-pure-const.c (struct funct_state_d): New fields
22092 state_previously_known, looping_previously_known; remove
22093 state_set_in_source.
22094 (analyze_function): Use new fields.
22095 (propagate): Avoid assumption that state_set_in_source imply
22098 * tree-ssa-loop-niter.c (finite_loop_p): New function.
22099 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
22100 * cfgloop.h (finite_loop_p): Declare.
22102 2009-04-26 Michael Matz <matz@suse.de>
22104 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
22106 2009-04-26 Michael Matz <matz@suse.de>
22108 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
22109 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
22110 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
22111 pass_mark_used_blocks): Remove.
22112 * tree-optimize.c (pass_free_datastructures,
22113 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
22114 * passes.c (init_optimization_passes): Don't call
22115 pass_mark_used_blocks, remove dead code.
22117 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
22119 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
22120 * tree-ssa-live.h (register_ssa_partition): Likewise.
22122 2009-04-26 Michael Matz <matz@suse.de>
22125 * builtins.c (fold_builtin_next_arg): Handle SSA names.
22126 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
22127 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
22129 (compare_pairs): Swap cost comparison.
22130 (coalesce_ssa_name): Don't use change_partition_var.
22131 * tree-nrv.c (struct nrv_data): Add modified member.
22132 (finalize_nrv_r): Set it.
22133 (tree_nrv): Use it to update statements.
22134 (pass_nrv): Require PROP_ssa.
22135 * tree-mudflap.c (mf_decl_cache_locals,
22136 mf_build_check_statement_for): Use make_rename_temp.
22137 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
22138 * alias.c (find_base_decl): Handle SSA names.
22139 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
22140 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
22141 * rtl.h (set_reg_attrs_for_parm): Declare.
22142 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
22143 to "optimized", remove unused locals at finish.
22144 (execute_free_datastructures): Make global, call
22145 delete_tree_cfg_annotations.
22146 (execute_free_cfg_annotations): Don't call
22147 delete_tree_cfg_annotations.
22149 * ssaexpand.h: New file.
22150 * expr.c (toplevel): Include ssaexpand.h.
22151 (expand_assignment): Handle SSA names the same as register variables.
22152 (expand_expr_real_1): Expand SSA names.
22153 * cfgexpand.c (toplevel): Include ssaexpand.h.
22154 (SA): New global variable.
22155 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
22156 (SSAVAR): New macro.
22157 (set_rtl): New helper function.
22158 (add_stack_var): Deal with SSA names, use set_rtl.
22159 (expand_one_stack_var_at): Likewise.
22160 (expand_one_stack_var): Deal with SSA names.
22161 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
22162 before unique numbers.
22163 (expand_stack_vars): Use set_rtl.
22164 (expand_one_var): Accept SSA names, add asserts for them, feed them
22165 to above subroutines.
22166 (expand_used_vars): Expand all partitions (without default defs),
22167 then only the local decls (ignoring those expanded already).
22168 (expand_gimple_cond): Remove edges when jumpif() expands an
22169 unconditional jump.
22170 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
22171 or remove abnormal edges. Ignore insns setting the LHS of a TERed
22173 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
22174 members of SA; deal with PARM_DECL partitions here; expand
22175 all PHI nodes, free tree datastructures and SA. Commit instructions
22176 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
22177 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
22178 info and statements at start, collect garbage at finish.
22179 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
22180 (VAR_ANN_PARTITION) Remove.
22181 (change_partition_var): Don't declare.
22182 (partition_to_var): Always return SSA names.
22183 (var_to_partition): Only accept SSA names.
22184 (register_ssa_partition): Only check argument.
22185 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
22187 (delete_var_map): Don't free it.
22188 (var_union): Only accept SSA names, simplify.
22189 (partition_view_init): Mark only useful SSA names as used.
22190 (partition_view_fini): Only deal with SSA names.
22191 (change_partition_var): Remove.
22192 (dump_var_map): Use ssa_name instead of partition_to_var member.
22193 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
22195 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
22196 (struct _elim_graph): New member const_dests; nodes member vector of
22198 (set_location_for_edge): New static helper.
22199 (create_temp): Remove.
22200 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
22201 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
22202 (new_elim_graph): Allocate const_dests member.
22203 (clean_elim_graph): Truncate const_dests member.
22204 (delete_elim_graph): Free const_dests member.
22205 (elim_graph_size): Adapt to new type of nodes member.
22206 (elim_graph_add_node): Likewise.
22207 (eliminate_name): Likewise.
22208 (eliminate_build): Don't take basic block argument, deal only with
22209 partition numbers, not variables.
22210 (get_temp_reg): New static helper.
22211 (elim_create): Use it, deal with RTL temporaries instead of trees.
22212 (eliminate_phi): Adjust all calls to new signature.
22213 (assign_vars, replace_use_variable, replace_def_variable): Remove.
22214 (rewrite_trees): Only do checking.
22215 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
22216 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
22217 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
22218 contains_tree_r, MAX_STMTS_IN_LATCH,
22219 process_single_block_loop_latch, analyze_edges_for_bb,
22220 perform_edge_inserts): Remove.
22221 (expand_phi_nodes): New global function.
22222 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
22223 functions, initialize new parameter, remember partitions having a
22225 (finish_out_of_ssa): New global function.
22226 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
22227 don't reset in_ssa_p here, don't disable TER when mudflap.
22228 (pass_del_ssa): Remove.
22229 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
22231 (execute_free_datastructures): Declare.
22232 * Makefile.in (SSAEXPAND_H): New variable.
22233 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
22234 * basic-block.h (commit_one_edge_insertion): Declare.
22235 * passes.c (init_optimization_passes): Move pass_nrv and
22236 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
22237 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
22238 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
22239 (redirect_branch_edge): Deal with super block when expanding, split
22240 out jump patching itself into ...
22241 (patch_jump_insn): ... here, new static helper.
22243 2009-04-26 Michael Matz <matz@suse.de>
22245 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
22246 beyond num_ssa_names.
22247 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
22248 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
22250 2009-04-26 Jakub Jelinek <jakub@redhat.com>
22252 PR inline-asm/39543
22253 * fwprop.c (forward_propagate_asm): New function.
22254 (forward_propagate_and_simplify): Propagate also into __asm, if it
22255 doesn't increase the number of referenced registers.
22258 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
22260 2009-04-26 Jakub Jelinek <jakub@redhat.com>
22262 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
22263 note_nonlocal_vla_type for nonlocal VLAs.
22264 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
22265 contains_remapped_vars, remap_vla_decls): New functions.
22266 (convert_nonlocal_reference_stmt): If not optimizing, call
22267 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
22268 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
22269 if it wasn't found in var_map.
22270 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
22271 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
22272 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
22274 * gimplify.c (nonlocal_vlas): New variable.
22275 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
22277 (gimplify_body): Create and destroy nonlocal_vlas.
22279 * dwarf2out.c (loc_descr_plus_const): New function.
22280 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
22281 mem_loc_descriptor, loc_descriptor_from_tree_1,
22282 descr_info_loc, gen_variable_die): Use it.
22284 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
22285 !TREE_STATIC VAR_DECLs.
22286 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
22287 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
22288 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
22289 DECL_BY_REFERENCE is valid.
22290 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
22291 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
22292 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
22293 Copy DECL_BY_REFERENCE.
22294 (struct nesting_copy_body_data): New type.
22295 (nesting_copy_decl): New function.
22296 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
22297 if they have variable length.
22299 2009-04-26 Michael Matz <matz@suse.de>
22301 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
22302 mark new temporaries for renaming.
22304 2009-04-26 Joseph Myers <joseph@codesourcery.com>
22307 * c-decl.c (global_bindings_p): Return negative value.
22308 (c_variable_size): New. Based on variable_size from
22310 (grokdeclarator): Call c_variable_size not variable_size.
22312 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
22314 * config/i386/i386.c (print_operand) ['z']: Fix typo.
22316 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
22318 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
22319 Redefine it to just use mingw/include.
22320 (ASM_SPEC): Rules for -m32 and -m64.
22321 (LINK_SPEC): Use Likewise.
22322 (SPEC_32): New define.
22323 (SPEC_64): Likewise.
22324 (SUB_LINK_SPEC): Likewise.
22325 (MULTILIB_DEFAULTS): New define.
22326 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
22327 Add multilib options.
22328 (MULTILIB_DIRNAMES): Likewise.
22329 (MULTILIB_OSDIRNAMES): Likewise.
22330 (LIBGCC): Likewise.
22331 (INSTALL_LIBGCC): Likewise.
22333 2009-04-26 Joseph Myers <joseph@codesourcery.com>
22336 * c-tree.h (enum c_inline_static_type): New.
22337 (record_inline_static): Declare.
22338 * c-decl.c (struct c_inline_static, c_inline_statics,
22339 record_inline_static, check_inline_statics): New.
22340 (pop_file_scope): Call check_inline_statics.
22341 (start_decl): Call record_inline_static instead of pedwarning
22342 directly for static in inline function.
22343 * c-typeck.c (build_external_ref): Call record_inline_static
22344 instead of pedwarning directly for static referenced in inline
22347 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
22349 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
22350 not new but only being rescanned.
22351 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
22352 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
22353 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
22354 record_set_info, compute_set, grealloc): Remove.
22355 (recompute_all_luids): New function.
22356 (gcse_main): Don't compute sets, and don't do related memory
22357 allocations/free-ing. If something changed before the end of the
22358 pass, update LUIDs using recompute_all_luids.
22359 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
22360 (free_gcse_mem): Don't free it either.
22361 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
22362 Use the df insn LUIDs.
22363 (load_killed_in_block): Likewise.
22364 (compute_hash_table_work): Don't compute reg_set_in_block.
22365 (compute_transp): Use DF_REG_DEF_CHAINs.
22366 (local_cprop_pass): Don't use compute_sets and related functions.
22367 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
22368 Use get_max_uid() instead of max_cuid.
22369 (insert_insn_end_basic_block, pre_insert_copy_insn,
22370 update_ld_motion_stores): Don't try to
22371 keep reg_set tables up to date.
22372 (pre_insert_copies): Use df insn LUIDs.
22373 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
22374 (reg_set_info): Don't use extra bitmap argument.
22375 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
22376 information to compute regs_set_in_block.
22377 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
22378 (bypass_jumps): Don't use compute_sets and friends.
22380 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22383 * opts.c (undocumented_msg): Do not leave blank even with
22386 2009-04-25 Joseph Myers <joseph@codesourcery.com>
22388 * c-decl.c (build_enumerator): Allow values folding to integer
22389 constants but not integer constant expressions with a pedwarn if
22392 2009-04-25 Joseph Myers <joseph@codesourcery.com>
22395 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
22396 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
22397 type is an integer constant.
22399 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
22402 * config/i386/i386.c (print_operand) ['z']: Revert handling of
22405 2009-04-25 Joseph Myers <joseph@codesourcery.com>
22408 * c-decl.c (grokdeclarator): Diagnose declarations of functions
22409 with variably modified return type and no storage class
22410 specifiers, except for the case of nested functions. Distinguish
22411 extern declarations of functions with variably modified return
22412 types from those of objects with variably modified types.
22414 2009-04-25 Jan Hubicka <jh@suse.cz>
22416 * tree.c (list_equal_p): New function.
22417 * tree.h (list_equal_p): Declare.
22418 * coretypes.h (edge_def, edge, const_edge, basic_block_def
22419 basic_block_def, basic_block, const_basic_block): New.
22420 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
22421 (redirect_eh_edge): New function.
22422 (make_eh_edge_update_phi): EH edges are not abnormal.
22423 * except.c: Include tree-flow.h.
22424 (list_match): New function.
22425 (eh_region_replaceable_by_p): New function.
22426 (replace_region): New function.
22427 (hash_type_list): New function.
22428 (hash_eh_region): New function.
22429 (eh_regions_equal_p): New function.
22430 (merge_peers): New function.
22431 (remove_unreachable_regions): Verify EH tree when checking;
22433 (copy_eh_region_1): New function.
22434 (copy_eh_region): New function.
22435 (push_reachable_handler): New function.
22436 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
22437 regions without label but with live RESX.
22438 * except.h (redirect_eh_edge_to_label): New.
22439 * tree-flow.h (redirect_eh_edge): New.
22440 * coretypes.h (edge_def, edge, const_edge, basic_block_def
22441 basic_block_def, basic_block, const_basic_block): Remove.
22442 * Makefile.in (except.o): Add dependency on tree-flow.h
22443 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
22444 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
22447 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
22450 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
22451 on the destination of memcpy.
22453 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
22455 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
22456 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
22457 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
22459 2009-04-25 Jan Hubicka <jh@suse.cz>
22461 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
22462 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
22463 to be reached by different label than left.
22464 (update_eh_edges): Update comment; remove edge_to_remove if possible
22465 and return true if suceeded.
22466 (cleanup_empty_eh): Accept sharing map; handle shared regions.
22467 (cleanup_eh): Compute sharing map.
22468 * except.c (remove_eh_handler_and_replace): Add argument if we should
22470 (remove_unreachable_regions): Update for label sharing.
22471 (label_to_region_map): Likewise.
22472 (get_next_region_sharing_label): New function.
22473 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
22475 (remove_eh_handler): Update.
22476 (remove_eh_region_and_replace_by_outer_of): New function.
22477 * except.h (struct eh_region): Add next_region_sharing_label.
22478 (remove_eh_region_and_replace_by_outer_of,
22479 get_next_region_sharing_label): Declare.
22480 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
22482 2009-04-25 Jan Hubicka <jh@suse.cz>
22484 * tree-cfg.c (split_critical_edges): Split also edges where we can't
22485 insert code even if they are not critical.
22487 2009-04-25 Jan Hubicka <jh@suse.cz>
22489 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22490 (gimple_can_remove_branch_p): EH edges won't remove branch by
22492 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
22493 updating of non-abnormal EH edges.
22494 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22495 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
22496 (split_critical_edges): Split also edges where emitting code on them
22497 will lead to splitting later.
22499 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
22500 H.J. Lu <hongjiu.lu@intel.com>
22503 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22504 the configured assembler supports fildq and fistpq mnemonics.
22505 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22506 * configure: Regenerated.
22507 * config.in: Ditto.
22509 * config/i386/i386.c (print_operand): Handle 'Z'.
22510 ['z']: Remove handling of special fild/fist suffixes.
22511 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22512 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22513 suffix of fild insn.
22514 (*floatsi<mode>2_vector_mixed): Ditto.
22515 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22516 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22517 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22518 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22519 * config/i386/gas.h (GAS_MNEMONICS): Remove.
22521 2009-04-25 Ben Elliston <bje@au.ibm.com>
22523 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22524 the source of a set operation.
22526 2009-04-25 Anatoly Sokolov <aesok@post.ru>
22528 * target.h (struct gcc_target): Add case_values_threshold field.
22529 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22530 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22531 * targhooks.c (default_case_values_threshold): New function.
22532 * targhooks.h (default_case_values_threshold): Declare function.
22533 * stmt.c (expand_case): Use case_values_threshold target hook.
22534 * expr.h (case_values_threshold): Remove declartation.
22535 * expr.c (case_values_threshold): Remove function.
22536 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22538 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22539 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22540 (avr_case_values_threshold): Declare as static.
22541 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22543 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22544 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22545 (mn10300_case_values_threshold): New function.
22547 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22549 * ira.c (setup_cover_and_important_classes): Add enum cast.
22551 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
22553 * genpreds.c (write_enum_constraint_num): Output definition of
22554 CONSTRAINT_NUM_DEFINED_P macro.
22555 * ira.c (setup_cover_and_important_classes): Use
22556 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22558 2009-04-24 DJ Delorie <dj@redhat.com>
22560 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22561 __SH2A_SINGLE_ONLY__ also.
22563 2009-04-24 Steve Ellcey <sje@cup.hp.com>
22565 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22566 (movdf_internal): Ditto.
22567 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22568 SFmode and DFmode constants.
22569 (ia64_print_operand): Add 'G' format for printing
22570 floating point constants.
22572 2009-04-24 Richard Guenther <rguenther@suse.de>
22574 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22575 from unsigned additions.
22577 2009-04-24 Joseph Myers <joseph@codesourcery.com>
22579 * c-typeck.c (set_init_index): Allow array designators that are
22580 not integer constant expressions with a pedwarn if pedantic.
22582 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22584 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22585 zero if no overlap in nonzero bits between the operands.
22587 2009-04-24 Ian Lance Taylor <iant@google.com>
22589 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22590 (record_dead_and_set_regs): Likewise.
22591 * df.h (struct df_mw_hardreg): Change flags field to int.
22592 (struct df_base_ref): Likewise.
22593 (struct df): Change changeable_flags field to int.
22594 * df-scan.c (df_defs_record): Change clobber_flags to int.
22595 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22596 constants rather than #define macros.
22597 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22598 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22599 (enum dwarf_calling_convention): Likewise.
22600 (enum dwarf_line_number_x_ops): Likewise.
22601 (enum dwarf_call_frame_info): Likewise.
22602 (enum dwarf_source_language): Likewise.
22603 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22604 (add_calling_convention_attribute): Likewise.
22605 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22606 (combine_comparisons): Change compcode to int. Add cast to enum type.
22607 * genrecog.c (maybe_both_true_2): Change c to int.
22608 (write_switch): Likewise. Add cast to enum type.
22609 * gimplify.c (gimplify_omp_for): Handle return values from
22610 gimplify_expr using MIN rather than bitwise or.
22611 (gimplify_expr): Add cast to enum type.
22612 * ipa-prop.c (update_jump_functions_after_inlining): Change
22613 IPA_BOTTOM to IPA_JF_UNKNOWN.
22614 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22615 Add casts to enum type.
22616 (setup_cover_and_important_classes): Change cl to int. Add casts
22618 (setup_class_translate): Change cl and mode to int.
22619 (ira_init_once): Change mode to int.
22620 (free_register_move_costs): Likewise.
22621 (setup_prohibited_mode_move_regs): Add casts to enum type.
22622 * langhooks.c (add_builtin_function_common): Rework assertion that
22623 value fits bitfield.
22624 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22625 * omega.c (omega_do_elimination): Avoid math on enum types.
22626 * optabs.c (expand_vec_shift_expr): Remove casts to int.
22627 * opts.c (set_debug_level): Change 2 to enum constant. Use new
22628 int local to handle integral_argment value.
22629 * regmove.c (try_auto_increment): Change PUT_MODE to
22631 * reload.c (push_secondary_reload): Add casts to enum type.
22632 (secondary_reload_class, find_valid_class): Likewise.
22633 * reload1.c (emit_input_reload_insns): Likewise.
22634 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22635 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22636 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22638 * tree.c (build_common_builtin_nodes): Add casts to enum type.
22639 * tree-complex.c (complex_lattice_t): Typedef to int rather than
22641 (expand_complex_libcall): Add casts to enum type.
22642 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22643 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22644 with ERROR_MARK, not NUM_TREE_CODES.
22645 (vect_create_epilog_for_reduction): Likewise.
22646 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22647 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22648 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22650 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22651 vect_unused_in_loop. Change 0 to loop_vect.
22652 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22653 * var-tracking.c (get_init_value): Change return type to enum
22655 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22656 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22658 (arm_override_options): Add casts to enum type.
22659 (arm_emit_tls_decoration): Likewise.
22660 * config/i386/i386.c (ix86_function_specific_restore): Add casts
22662 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22663 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22664 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22666 * config/s390/s390.c (code_for_builtin_64): Change to array of
22668 (code_for_builtin_31): Likewise.
22669 (s390_expand_builtin): Change code_for_builtin to enum insn_code
22671 * config/sparc/sparc.c (sparc_override_options): Change value
22672 field in struct code_model to enum cmodel. In initializer change
22673 0 to NULL and add cast to enum type.
22675 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22676 Change all callers. Issue a -Wc++-compat warning using
22677 lhs_origtype if necessary.
22678 (convert_for_assignment): Issue -Wc++-compat warnings about
22679 invalid conversions to enum type on assignment.
22680 * c-common.h (build_modify_expr): Update declaration.
22682 2009-04-24 Nick Clifton <nickc@redhat.com>
22684 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22685 (function_arg_advance): Likewise.
22686 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22689 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
22691 * config/s390/constraints.md ('I', 'J'): Fix condition.
22693 2009-04-24 Diego Novillo <dnovillo@google.com>
22695 * gengtype-parse.c (parse_error): Add newline after message.
22697 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22699 * config/i386/sse.md (avxmodesuffixs): Removed.
22700 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22701 (*avx_pinsr<ssevecsize>): This.
22703 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22705 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22706 follow chains of regs with a single definition, and allow expressions
22707 that are function_invariant_p.
22708 (simple_rhs_p): Allow expressions that are function_invariant_p.
22710 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
22712 PR middle-end/39867
22713 * fold-const.c (fold_cond_expr_with_comparison): When folding
22714 > and >= to MAX, make sure the MAX uses the same type as the
22715 comparison's operands.
22717 2009-04-24 Nick Clifton <nickc@redhat.com>
22719 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22720 addressing for DImode accesses.
22721 (frv_print_operand_address): Handle PLUS case.
22722 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22724 2009-04-24 Jakub Jelinek <jakub@redhat.com>
22726 PR rtl-optimization/39794
22727 * alias.c (canon_true_dependence): Add x_addr argument.
22728 * rtl.h (canon_true_dependence): Adjust prototype.
22729 * cse.c (check_dependence): Adjust canon_true_dependence callers.
22730 * cselib.c (cselib_invalidate_mem): Likewise.
22731 * gcse.c (compute_transp): Likewise.
22732 * dse.c (scan_reads_nospill): Likewise.
22733 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
22734 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22735 canon_base_addr of the group, plus optional offset.
22736 (struct group_info): Rename canon_base_mem to
22738 (get_group_info): Set canon_base_addr to canon_rtx of base, not
22739 canon_rtx of base_mem.
22741 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
22743 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22744 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22746 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22748 * config/spu/spu-builtins.h: Delete file.
22750 * config/spu/spu.h (enum spu_builtin_type): Move here from
22752 (struct spu_builtin_description): Likewise. Add GTY marker.
22753 Do not use enum spu_function_code or enum insn_code.
22754 (spu_builtins): Add extern declaration.
22756 * config/spu/spu.c: Do not include "spu-builtins.h".
22757 (enum spu_function_code, enum spu_builtin_type_index,
22758 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22759 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22760 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22761 unsigned_V2DI_type_node): Move here from spu-builtins.h.
22762 (spu_builtin_types): Make static. Add GTY marker.
22763 (spu_builtins): Add extern declaration with GTY marker.
22764 Include "gt-spu.h".
22766 * config/spu/spu-c.c: Do not include "spu-builtins.h".
22767 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22768 Check programmatically whether all parameters are scalar.
22770 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22772 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
22774 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22775 assignment from the constructor either if the target is volatile.
22777 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
22779 * config/arm/arm.md (insv): Do not share operands[0].
22781 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
22783 * config/vxlib-tls.c (active_tls_threads): Delete.
22784 (delete_hook_installed): New.
22785 (tls_delete_hook): Don't delete the delete hook.
22786 (tls_destructor): Delete it here.
22787 (__gthread_set_specific): Adjust installing the delete hook.
22788 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22789 __gthread_leave_tsd_dtor_context.
22791 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
22793 * c-format.c (gcc_tdiag_char_table): Add support for %E.
22795 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
22797 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22799 (alpha_rtx_costs): Ditto.
22800 (emit_unlikely_jump): Use add_reg_note.
22801 (emit_frame_store_1): Ditto.
22802 (alpha_expand_prologue): Ditto.
22803 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22804 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22806 2009-04-23 Nick Clifton <nickc@redhat.com>
22808 * config/v850/v850.md (epilogue): Remove suppressed code.
22809 (return): Rename to return_simple and remove test of frame size.
22810 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22811 to gen_return_simple.
22813 2009-04-22 Jing Yu <jingyu@google.com>
22816 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22818 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
22821 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22822 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
22823 value is a VECTOR_CST, the element type is the element type of the
22826 2009-04-22 DJ Delorie <dj@redhat.com>
22828 * config/m32c/m32c.h: Update GTY annotations to new syntax.
22830 2009-04-22 Jakub Jelinek <jakub@redhat.com>
22832 * alias.c (find_base_term): Move around LO_SUM case, so that
22833 CONST falls through into PLUS/MINUS handling.
22836 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22837 into 0, use omit_one_operand.
22839 2009-04-23 Ben Elliston <bje@au.ibm.com>
22841 * config/rs6000/linux-unwind.h (get_regs): Remove type
22842 puns. Change the type of `pc' to an array of unsigned ints and
22843 update all users. Constify frame24.
22845 2009-04-22 DJ Delorie <dj@redhat.com>
22847 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22848 declarations before code.
22849 (current_function_special_page_vector): Likewise.
22850 (m32c_expand_insv): Silence a warning.
22852 2009-04-21 Taras Glek <tglek@mozilla.com>
22854 * alias.c: Update GTY annotations to new syntax.
22855 * basic-block.h: Likewise.
22856 * bitmap.h: Likewise.
22857 * c-common.h: Likewise.
22858 * c-decl.c: Likewise.
22859 * c-parser.c: Likewise.
22860 * c-pragma.c: Likewise.
22861 * c-tree.h: Likewise.
22862 * cfgloop.h: Likewise.
22863 * cgraph.h: Likewise.
22864 * config/alpha/alpha.c: Likewise.
22865 * config/arm/arm.h: Likewise.
22866 * config/avr/avr.h: Likewise.
22867 * config/bfin/bfin.c: Likewise.
22868 * config/cris/cris.c: Likewise.
22869 * config/darwin.c: Likewise.
22870 * config/frv/frv.c: Likewise.
22871 * config/i386/i386.c: Likewise.
22872 * config/i386/i386.h: Likewise.
22873 * config/i386/winnt.c: Likewise.
22874 * config/ia64/ia64.h: Likewise.
22875 * config/iq2000/iq2000.c: Likewise.
22876 * config/mips/mips.c: Likewise.
22877 * config/mmix/mmix.h: Likewise.
22878 * config/pa/pa.c: Likewise.
22879 * config/pa/pa.h: Likewise.
22880 * config/rs6000/rs6000.c: Likewise.
22881 * config/s390/s390.c: Likewise.
22882 * config/sparc/sparc.c: Likewise.
22883 * config/xtensa/xtensa.c: Likewise.
22884 * cselib.h: Likewise.
22885 * dbxout.c: Likewise.
22886 * dwarf2out.c: Likewise.
22887 * except.c: Likewise.
22888 * except.h: Likewise.
22889 * fixed-value.h: Likewise.
22890 * function.c: Likewise.
22891 * function.h: Likewise.
22892 * gimple.h: Likewise.
22893 * integrate.c: Likewise.
22894 * optabs.c: Likewise.
22895 * output.h: Likewise.
22896 * real.h: Likewise.
22898 * stringpool.c: Likewise.
22899 * tree-data-ref.c: Likewise.
22900 * tree-flow.h: Likewise.
22901 * tree-scalar-evolution.c: Likewise.
22902 * tree-ssa-address.c: Likewise.
22903 * tree-ssa-alias.h: Likewise.
22904 * tree-ssa-operands.h: Likewise.
22905 * tree.c: Likewise.
22906 * tree.h: Likewise.
22907 * varasm.c: Likewise.
22908 * varray.h: Likewise.
22910 * coretypes.h: Do not define GTY macro if it is already defined.
22911 * doc/gty.texi: Update GTY documentation to new syntax.
22912 * gengtype-lex.l: Enforce attribute-like syntax for GTY
22913 annotations on structs.
22914 * gengtype-parse.c: Likewise.
22916 2009-04-22 Mark Heffernan <meheff@google.com>
22918 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22920 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
22922 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22925 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
22927 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22928 the same as a PLUS without a shift. Increase the cost of a
22931 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22933 * Makefile.in: Update dependencies.
22934 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22935 * errors.h: Remove bogus comment about compatibility.
22936 (warning): Update declaration.
22937 * genautomata.c: Update all calls to warning.
22938 * gimple.c: Do not include errors.h. Include toplev.h.
22939 * tree-ssa-structalias.c: Do not include errors.h.
22940 * omega.c: Likewise.
22941 * tree-ssa-reassoc.c: Likewise.
22942 * config/spu/spu-c.c: Likewise.
22943 * config/spu/t-spu-elf: Update dependencies.
22945 2009-04-22 Richard Guenther <rguenther@suse.de>
22947 PR tree-optimization/39824
22948 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22949 make sure the types are compatible.
22951 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22954 * c-common.c (c_parse_error): Take a token_flags parameter.
22955 Use token_type for the token type instead.
22956 Pass token_flags to cpp_type2name.
22957 * c-common.h (c_parse_error): Update declaration.
22958 * c-parser.c (c_parser_error): Pass 0 as token flags.
22960 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
22962 PR rtl-optimization/39580
22963 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22965 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22967 * function.c (expand_function_end): Do not emit a jump to the "naked"
22968 return label for fall-through returns.
22969 * except.c (sjlj_emit_function_exit): Always place the call to the
22970 unregister function at the location installed by expand_function_end.
22972 2009-04-22 Richard Guenther <rguenther@suse.de>
22974 PR tree-optimization/39845
22975 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22976 (gen_inbound_check): Likewise.
22978 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
22980 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22982 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22983 * config/vxlib.c (__gthread_once): Add race guard for PPC.
22985 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22987 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22988 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22989 shift counts to avoid out-of-bounds array accesses.
22991 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22993 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22994 (Pmode): Move above.
22996 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
22998 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22999 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
23000 GET_CODE macro. Use IN_RANGE macro where appropriate.
23001 * config/alpha/alpha.h: Ditto.
23002 * config/alpha/alpha.md: Ditto.
23003 * config/alpha/constraints.md: Ditto.
23004 * config/alpha/predicates.md: Ditto.
23006 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
23008 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
23009 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23010 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23011 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23012 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23013 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23014 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23015 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23016 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23017 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23018 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23019 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23020 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23021 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23022 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23023 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23024 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23025 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23026 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23027 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23028 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23029 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23030 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23031 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23032 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23033 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23034 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23036 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23038 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
23039 references from comments.
23040 * cfgbuild.c (count_basic_blocks): Delete.
23041 (find_basic_blocks_1): Delete.
23042 (find_basic_blocks): Delete.
23043 * except.c (finish_eh_generation): Make static. Move comment from
23044 except.h here. Remove find_basic_blocks references from comments.
23045 * except.h (finish_eh_generation): Delete.
23046 * basic-block.h (find_basic_blocks): Delete.
23047 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
23049 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
23051 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
23052 (sdbout_parms): Likewise.
23054 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
23056 * config/sh/sh.c (prepare_cbranch_operands): Use
23057 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
23058 (expand_cbranchdi4): Likewise.
23059 (from_compare): Add cast to enum type.
23060 (expand_cbranchsi4): Use add_reg_note.
23061 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
23062 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
23063 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
23064 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23065 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
23066 instead of CODE_FOR_nothing.
23067 (cbranchdi4): Likewise. Fix the order of arguments for
23069 (push_fpscr): Use add_reg_note.
23070 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
23071 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
23073 2009-04-21 Joseph Myers <joseph@codesourcery.com>
23075 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
23076 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23077 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23078 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
23079 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
23080 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
23081 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
23082 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
23083 config/alpha/x-vms, config/arc/t-arc,
23084 config/arm/README-interworking, config/arm/arm-c.c,
23085 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
23086 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
23087 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
23088 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
23089 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
23090 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
23091 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
23092 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
23093 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
23094 config/cris/t-elfmulti, config/crx/t-crx,
23095 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
23096 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
23097 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
23098 config/h8300/t-h8300, config/i386/athlon.md,
23099 config/i386/darwin-libgcc.10.4.ver,
23100 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
23101 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
23102 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
23103 config/i386/t-linux64, config/i386/t-nwld,
23104 config/i386/t-rtems-i386, config/i386/t-sol2-10,
23105 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
23106 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
23107 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
23108 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
23109 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
23110 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
23111 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
23112 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
23113 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
23114 config/m68k/t-uclinux, config/mcore/t-mcore,
23115 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
23116 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
23117 config/mips/crtn.asm, config/mips/irix-crti.asm,
23118 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
23119 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
23120 config/mips/mips-fixed.md, config/mips/sb1.md,
23121 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
23122 config/mips/t-iris6, config/mips/t-isa3264,
23123 config/mips/t-libgcc-mips16, config/mips/t-linux64,
23124 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
23125 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
23126 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
23127 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
23128 config/mn10300/t-linux, config/mn10300/t-mn10300,
23129 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
23130 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
23131 config/picochip/libgccExtras/clzsi2.asm,
23132 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
23133 config/rs6000/darwin-libgcc.10.4.ver,
23134 config/rs6000/darwin-libgcc.10.5.ver,
23135 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
23136 config/rs6000/t-aix43, config/rs6000/t-aix52,
23137 config/rs6000/t-darwin, config/rs6000/t-fprules,
23138 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
23139 config/rs6000/t-lynx, config/rs6000/t-netbsd,
23140 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
23141 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
23142 config/rs6000/t-rtems, config/rs6000/t-spe,
23143 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
23144 config/score/t-score-elf, config/sh/divcost-analysis,
23145 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
23146 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
23147 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
23148 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
23149 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
23150 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
23151 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
23152 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
23153 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
23154 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
23155 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
23156 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
23157 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
23158 limitx.h, version.c, xcoff.h: Add copyright and license notices.
23159 * config/h8300/genmova.sh: Include copyright and license notices
23160 in generated output.
23161 * config/h8300/mova.md: Regenerate.
23162 * doc/install.texi2html: Include word "Copyright" in copyright
23163 notice and use name "Free Software Foundation, Inc.".
23164 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23165 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23166 ChangeLog-2007, ChangeLog-2008: Correct dates.
23168 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
23170 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
23171 NE_EXPR operations as well.
23172 * c-parser.c (c_parser_condition): Do not set location information on
23174 (c_parser_conditional_expression): Likewise.
23175 (c_parser_binary_expression): Set location information on operators.
23176 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
23177 TRUTH_NOT_EXPR has been folded.
23178 * fold-const.c (fold_truth_not_expr): Copy location information from
23179 the incoming expression to the outgoing one.
23180 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
23181 recursive calls on the LHS of the operator but pass that of the
23182 operator to recursive calls on the RHS of the operator. Set it
23184 (shortcut_cond_expr): Set the locus of the operator on the second
23185 COND_EXPR and that of the expression on the first in degenerate cases.
23186 Pass the locus of the expression to calls to shortcut_cond_r.
23187 Set the locus of the 'then' block on the associated jump, if any.
23188 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
23189 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
23190 expression to call to gimplify_boolean_expr.
23192 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
23194 * config.gcc: Add additional configuration for
23195 i686-w64-mingw* and x86_64-w64-mingw* triplet.
23196 * config/i386/mingw-w64.h: New mingw-w64 specific header.
23197 (CPP_SPEC): Redefine for allowing -municode option.
23198 (STARTFILE_SPEC): Likewise.
23199 * config/i386/t-mingw-w64: New.
23200 * config/i386/mingw-w64.opt: New.
23201 (municode): Add new target option.
23202 * doc/invoke.texi (municode): Add documentation for new option.
23204 2009-04-21 Ian Lance Taylor <iant@google.com>
23206 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23207 Correct test for number of arguments.
23208 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23210 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
23212 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
23213 argument of emit_library_call.
23215 2009-04-21 Richard Guenther <rguenther@suse.de>
23217 PR middle-end/39829
23218 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
23219 inside VIEW_CONVERT_EXPRs.
23221 2009-04-21 Martin Jambor <mjambor@suse.cz>
23223 * tree-switch-conversion.c (build_constructors): Split a long line.
23224 (constructor_contains_same_values_p): New function.
23225 (build_one_array): Create assigns of constants if possible, do not
23226 call mark_sym_for_renaming, call update_stmt.
23227 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
23228 make_rename_temp. Do not call mark_symbols_for_renaming, call
23230 (gen_def_assigns): Do not call mark_symbols_for_renaming or
23231 find_new_referenced_vars, call update_stmt.
23232 (gen_inbound_check): Use create_tmp_var and create ssa names manually
23233 instead of calling make_rename_temp. Do not call
23234 find_new_referenced_vars or mark_symbols_for_renaming, call
23237 2009-04-21 Richard Guenther <rguenther@suse.de>
23239 PR tree-optimization/39827
23240 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
23241 (tree_ssa_phiprop): Pass the correct array size.
23243 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
23245 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
23247 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
23250 * c-typeck.c (lvalue_p): Move declaration ...
23251 * c-common.h (lvalue_p): ... to here.
23252 * c-common.c (candidate_equal_p): New.
23253 (add_tlist): Use it.
23254 (merge_tlist): Use it.
23255 (warn_for_collisions_1): Likewise.
23256 (warning_candidate_p): Accept more candidates.
23257 (verify_tree): A warning candidate can be an expression. Use
23260 2009-04-21 Ben Elliston <bje@au.ibm.com>
23263 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23264 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
23265 options. Remove -mcall-solaris documentation.
23267 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23270 * doc/invoke.texi (-Wlong-long): Update description.
23271 * c-lex (interpret_integer): Only warn if there was no previous
23272 overflow and -Wlong-long is enabled.
23273 * c-decl.c (declspecs_add_type): Drop redundant flags.
23274 * c.opt (Wlong-long): Init to -1.
23275 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
23276 and front-end warn_long_long. Wlong-long only depends on other
23277 flags if it is uninitialized.
23278 * c-parser.c (disable_extension_diagnostics): warn_long_long is
23279 the same for CPP and FE.
23280 (restore_extension_diagnostics): Likewise.
23282 2009-04-20 Ian Lance Taylor <iant@google.com>
23284 Fix enum conversions which are invalid in C++:
23285 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
23286 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
23287 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
23288 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
23289 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
23290 (dbxout_parms): Likewise.
23291 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
23292 (df_clear_flags): Likewise.
23293 * df-problems.c (df_rd_bb_local_compute_process_def): Change
23294 top_flag parameter to int.
23295 (df_chain_create_bb_process_use): Likewise.
23296 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
23298 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
23299 (df_ref_create_structure, df_def_record_1): Likewise.
23300 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
23301 (df_notes_rescan): Change 0 to VOIDmode in function call.
23302 (df_get_call_refs, df_insn_refs_collect): Likewise.
23303 (df_bb_regs_collect): Likewise.
23304 (df_entry_block_defs_collect): Likewise.
23305 (df_exit_block_uses_collect): Likewise.
23306 * df.h: Update declarations.
23307 * double-int.c (double_int_divmod): Add cast to enum type.
23308 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
23309 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
23310 (based_loc_descr): Likewise.
23311 (loc_descriptor_from_tree_1): Change first_op and second_op to
23312 enum dwarf_location_atom. Add cast to enum type.
23313 * expmed.c (init_expmed): Change 0 to SET in function call.
23314 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
23315 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
23316 (do_store_flag): Likewise.
23317 * fixed-value.h (struct fixed_value): Change mode to enum
23319 * function.c (assign_parms): Change 0 to VOIDmode in function call.
23320 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
23322 (insert_insn_decl, insert_decl, insert_state): Likewise.
23323 (automata_list_finish): Likewise.
23324 * genrecog.c (process_define_predicate): Add cast to enum type.
23325 * gensupport.c (init_predicate_table): Add cast to enum type.
23326 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
23328 (gimple_build_call_1, gimple_build_label): Likewise.
23329 (gimple_build_goto, gimple_build_asm_1): Likewise.
23330 (gimple_build_switch_1, gimple_build_cdt): Likewise.
23331 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
23332 (enum fallback): Rename from enum fallback_t.
23333 (fallback_t): Typedef as int.
23334 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
23335 GSI_SAME_STMT in function call.
23336 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
23338 (setup_reg_class_relations): Likewise.
23339 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
23340 (setup_prohibited_class_mode_regs): Add cast to enum type.
23341 (setup_prohibited_mode_move_regs): Likewise.
23342 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
23343 (record_address_regs): Change i to enum reg_class.
23344 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
23345 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
23346 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
23347 (GET_MODE_2XWIDER_MODE): Likewise.
23348 (GET_CLASS_NARROWEST_MODE): Likewise.
23349 * omp-low.c (expand_omp_for): Add cast to enum type.
23350 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
23351 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
23352 * postreload.c (reload_cse_simplify_operands): Change rclass local
23354 * predict.c (combine_predictions_for_insn): Change best_predictor
23355 and predictor to enum br_predictor.
23356 (combine_predictions_for_bb): Likewise.
23357 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
23358 use SET_PREDICT_EXPR_OUTCOME.
23359 * real.c (real_arithmetic): Change icode to code in function call.
23360 * reginfo.c (init_move_cost): Add casts to enum type.
23361 (init_reg_sets_1, init_fake_stack_mems): Likewise.
23362 * regmove.c (regclass_compatible_p): Change class0 and class1 to
23364 * reload.c (find_valid_class): Add casts to enum type.
23365 (push_reload): Change 0 to NO_REGS in function call.
23366 (find_reloads): Change this_alternative to array of enum
23367 reg_class. Remove some now-unnecessary casts.
23368 (make_memloc): Change 0 to VOIDmode in function call.
23369 * reload1.c (reload): Change 0 to VOIDmode in function call.
23370 (eliminate_regs_1, elimination_effects): Likewise.
23371 (eliminate_regs_in_insn): Likewise.
23372 (emit_input_reload_insns): Add cast to enum type.
23373 (delete_output_reload): Change 0 to VOIDmode in function call.
23374 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
23375 to enum type in function call.
23376 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
23377 (SET_PREDICT_EXPR_OUTCOME): Define.
23378 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
23379 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
23380 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
23381 (dump_function): Likewise.
23382 * tree-dump.h: Update declarations.
23383 * tree-pass.h: Update declarations.
23384 * varasm.c (assemble_integer): Change mclass to enum mode_class.
23385 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
23387 (arm_rtx_costs_1): Correct parenthesization.
23388 (arm_rtx_costs): Add casts to enum type.
23389 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
23390 (vfp_emit_fstmd): Use add_rg_note.
23391 (emit_multi_reg_push, emit_sfm): Likewise.
23392 (thumb_set_frame_pointer): Likewise.
23393 (arm_expand_prologue): Likewise.
23394 (arm_regno_class): Change return type to enum reg_class.
23395 (thumb1_expand_prologue): Use add_reg_note.
23396 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
23397 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
23399 * config/arm/gentune.sh: Add cast to enum type.
23400 * config/arm/arm-tune.md: Rebuild.
23401 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
23402 (ix86_split_fp_branch, predict_jump): Likewise.
23403 (ix86_expand_multi_arg_builtin): Change sub_code from enum
23404 insn_code to enum rtx_code.
23405 (ix86_builtin_vectorized_function): Add cast to enum type.
23406 * config/i386/i386.md (truncdfsf2): Change slot to enum
23408 (truncxf<mode>2, isinf<mode>2): Likewise.
23409 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
23411 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
23412 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
23413 (insert_bundle_state): Change 1 to INSERT in function call.
23414 (ia64_add_bundle_selector_before): Likewise.
23415 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
23416 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
23417 (restore_stack_nonlocal): Likewise.
23418 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
23420 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
23422 (mips_rtx_costs): Likewise.
23423 (mips_override_options): Add casts to enum type.
23424 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
23426 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
23427 (store_reg, set_reg_plus_d): Likewise.
23428 (hppa_expand_prologue, hppa_profile_hook): Likewise.
23429 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23431 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
23433 (emit_unlikely_jump): Use add_reg_note.
23434 (rs6000_emit_allocate_stack): Likewise.
23435 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
23436 (output_toc): Change 1 to INSERT in function call.
23437 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
23438 (rs6000_initialize_trampoline): Likewise.
23439 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
23441 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
23442 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
23443 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
23444 (save_gprs): Use add_reg_note.
23445 (s390_emit_prologue): Likewise.
23446 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23447 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
23448 (sparc_fold_builtin): Add cast to enum type.
23449 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
23451 (spu_expand_prologue): Use add_reg_note.
23452 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
23454 2009-04-20 Ian Lance Taylor <iant@google.com>
23456 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
23457 (c_parser_postfix_expression_after_primary): Get VEC for list of
23458 arguments. Get original types of arguments. Call
23459 build_function_call_vec.
23460 (cached_expr_list_1, cached_expr_list_2): New static variables.
23461 (c_parser_expr_list): Change return type to VEC *. Add
23462 p_orig_types parameter. Change all callers.
23463 (c_parser_release_expr): New static function.
23464 (c_parser_vec_to_tree_list): New static function.
23465 * c-typeck.c (build_function_call): Rewrite to build a VEC and
23466 call build_function_call_vec.
23467 (build_function_call_vec): New function, based on old
23468 build_function_call.
23469 (convert_arguments): Remove nargs and argarray parameters. Change
23470 values to a VEC. Add origtypes parameter.
23471 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
23472 (convert_for_assignment): Add origtype parameter. Change all
23473 callers. If warn_cxx_compat, check for conversion to an enum
23474 type when calling a function.
23475 (store_init_value): Add origtype parameter. Change all callers.
23476 (digest_init): Likewise.
23477 (struct init_node): Add origtype field.
23478 (add_pending_init): Add origtype parameter. Change all callers.
23479 (output_init_element): Likewise.
23480 (output_pending_init_elements): Pass origtype from init_node to
23481 output_init_element.
23482 (process_init_element): Pass origtype from c_expr to
23483 output_init_element.
23484 (c_finish_return): Add origtype parameter. Change all callers.
23485 * c-common.c (sync_resolve_size): Change params to VEC *. Change
23487 (sync_resolve_params): Likewise.
23488 (sync_resolve_return): Change params to first_param. Change caller.
23489 (resolve_overloaded_builtins): Change params to VEC *. Change
23490 callers. Save first parameter around call to build_function_call_vec.
23491 * c-decl.c (finish_decl): Add origtype parameter. Change all
23492 callers. Call build_function_call_vec rather than
23493 build_function_call for cleanup.
23494 * c-tree.h: Update declarations.
23495 * c-common.h: Update declarations.
23496 * stub-objc.c (objc_rewrite_function_call): Change parameter from
23497 params to first_param.
23498 * target.h (struct gcc_target): Change resolve_overloaded_builtin
23499 params parameter from tree to void *.
23500 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23501 Change arglist parameter to have type void *, and to be a pointer
23503 * config/rs6000/rs6000-protos.h
23504 (altivec_resolve_overloaded_builtin): Update declaration.
23505 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23506 fnargs parameter to have type void *, and to be a pointer to a
23507 VEC. Call build_function_call_vec instead of
23508 build_function_call.
23509 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23511 2009-04-20 Joey Ye <joey.ye@intel.com>
23512 Xuepeng Guo <xuepeng.guo@intel.com>
23513 H.J. Lu <hongjiu.lu@intel.com>
23515 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23517 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23518 (IX86_LEA_PRIORITY): Likewise.
23519 (distance_non_agu_define): New function.
23520 (distance_agu_use): Likewise.
23521 (ix86_lea_for_add_ok): Likewise.
23522 (ix86_dep_by_shift_count): Likewise.
23524 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23525 should split for LEA.
23527 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23529 (ix86_dep_by_shift_count): Likewise.
23531 2009-04-20 Richard Guenther <rguenther@suse.de>
23533 * expr.c (handled_component_p): Move ...
23534 * tree.h (handled_component_p): ... here.
23535 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23536 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23537 and REALPART_EXPR to be in one group.
23539 2009-04-20 Richard Guenther <rguenther@suse.de>
23541 * basic-block.h (get_all_dominated_blocks): Declare.
23542 * dominance.c (get_all_dominated_blocks): New function.
23543 * tree-cfg.c (get_all_dominated_blocks): Remove.
23544 (remove_edge_and_dominated_blocks): Adjust.
23545 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23546 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
23547 instead of recursing.
23549 2009-04-20 Doug Kwan <dougkwan@google.com>
23551 * cgraph.h (cgraph_node_ptr): New type for vector functions.
23552 (struct cgraph_node_set_def): New type.
23553 (cgraph_node_set) New type. Also declare vector functions.
23554 (struct cgraph_node_set_element_def): New type.
23555 (cgraph_node_set_element): Ditto.
23556 (cgraph_node_set_iterator): New iterator type.
23557 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23558 cgraph_node_set_remove, dump_cgraph_node_set,
23559 debug_cgraph_node_set): New prototypes.
23560 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23561 cgraph_node_set_size): New inlines.
23562 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23563 including cgraph.h.
23564 (struct ipa_opt_pass): Add struct cgraph_node_set_def
23565 argument to function 'write_summary'.
23566 * ipa.c: Include ggc.h.
23567 (hash_cgraph_node_set_element,
23568 eq_cgraph_node_set_element, cgraph_node_set_new,
23569 cgraph_node_set_add, cgraph_node_set_remove,
23570 cgraph_node_set_find, dump_cgraph_node_set,
23571 debug_cgraph_node_set): New functions.
23572 * Makefile.in (ipa.o): Add dependency on GGC_H.
23574 2009-04-20 Ira Rosen <irar@il.ibm.com>
23576 PR tree-optimization/39675
23577 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23578 check of the return code of vect_schedule_slp. Check that
23579 stmt_vec_info still exists for the statement, before checking its
23580 vectorization type.
23582 2009-04-20 Michael Matz <matz@suse.de>
23584 * Makefile.in (generated_files): Take out $(simple_generated_c).
23586 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
23588 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
23589 (UINTPTR_TYPE): Likewise.
23591 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23594 * c-typeck.c (digest_init): Check for initializing an array with a
23597 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23600 * c-semantics.c (pop_stmt_list): Propagate
23601 STATEMENT_LIST_HAS_LABEL to parent statement list.
23603 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
23605 * config/mips/mips.h (mips_tune_attr): New macro.
23606 * config/mips/mips.md (cpu): Use it.
23608 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23611 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23614 2009-04-19 Diego Novillo <dnovillo@google.com>
23616 * toplev.c (compile_file): Move call to coverage_finish ...
23617 * cgraphunit.c (ipa_passes): ... here.
23618 Call cgraph_process_new_functions.
23619 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23620 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23622 2009-04-19 Jan Hubicka <jh@suse.cz>
23624 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23626 (dump_cgraph_node): Dump can throw external flag.
23627 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23629 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
23633 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23634 * common.opt (Wlogical-op): Move from here...
23635 * c.opt (Wlogical-op): ... to here.
23636 * c-typeck.c (parser_build_binary_op): Update call to
23637 warn_logical_operator.
23638 * c-opts.c (c_common_post_options): Enable warn_logical_op with
23640 * c-common.c (warn_logical_op): Update.
23641 * c-common.h (warn_logical_op): Update declaration.
23643 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
23645 * tree.c (protected_set_expr_location): Fix formatting.
23647 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23650 * c-typeck.c (readonly_warning): new.
23651 (build_unary_op, build_modify_expr): Use readonly_warning for
23652 storing into something readonly but not const-qualified.
23654 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23657 * c-typeck.c (build_unary_op): Check for taking address of
23658 expression of type void.
23660 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23663 * c-typeck.c (build_function_call): Check for calling a function
23664 with qualified void return types. Call require_complete_type when
23667 2009-04-18 Jan Hubicka <jh@suse.cz>
23669 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23671 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23672 can_throw_external flag.
23673 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23674 * ipa-pure-const.c (ignore_edge): New function.
23675 (propagate): Compute order for NOTHROW computation; set NOTHROWs
23676 only over can_throw_external edges.
23677 (local_pure_const): Add nothrow flag.
23678 * ipa-utils.c (searchc): Add ignore_edge callback.
23679 (ipa_utils_reduced_inorder): Add ignore_edge callback.
23680 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23681 (set_nothrow_function_flags): Update cgraph.
23682 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23684 2009-04-18 Richard Guenther <rguenther@suse.de>
23686 PR middle-end/39804
23687 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23688 (fold_stmt): ... this and ...
23689 (fold_stmt_inplace): ... this.
23690 (fold_stmt_1): Fold references in calls and asms.
23691 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23693 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23695 * tree-vrp.c (ssa_name_nonzero_p): Remove.
23696 * tree.h: Remove the prototype for ssa_name_nonzero_p.
23698 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23700 * tree.c (function_args_count): Remove.
23701 * tree.h: Remove the prototype for function_args_count.
23703 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23705 * tree-iterator.c (expr_only): Remove.
23706 * tree.h: Remove the prototype for expr_only.
23708 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23710 * reginfo.c (cannot_change_mode_set_regs): Remove.
23711 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23713 2009-04-08 Anatoly Sokolov <aesok@post.ru>
23715 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23716 whether operands 0 and 1 overlaps.
23718 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
23720 PR middle-end/36902
23721 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23722 pointer. Use warning_at instead of warning.
23723 (search_for_addr_array): Likewise.
23724 (check_array_bounds): Likewise.
23725 (check_all_array_refs): Check that the incoming edge is not in the
23726 list of edges to be removed.
23727 (check_all_array_refs): Avoid the temporal pointer.
23728 (vrp_visit_cond_stmt): Fix typo.
23729 (simplify_switch_using_ranges): Handle the case where the switch
23730 index is an integer constant.
23732 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
23734 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23736 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23738 * doc/extend.texi, doc/invoke.texi: Fix typos.
23740 2009-04-17 Cary Coutant <ccoutant@google.com>
23742 * tree-flow-inline.h (get_lineno): Fix inverted test.
23744 2009-04-17 Diego Novillo <dnovillo@google.com>
23746 * tree-ssa-pre.c (create_expression_by_pieces): Remove
23747 assertion for AVAIL_OUT.
23749 2009-04-17 Mike Frysinger <vapier@gentoo.org>
23752 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23753 * config/sh/linux-atomic.asm: Likewise.
23755 2009-04-17 Diego Novillo <dnovillo@google.com>
23757 * except.c (debug_eh_tree): New.
23758 (struct eh_region, struct eh_status): Move ...
23759 * except.h: ... here.
23760 (add_type_for_runtime): Declare extern.
23761 (lookup_type_for_runtime): Likewise.
23762 (debug_eh_tree): Declare.
23763 * Makefile.in (GTFILES): List except.h before except.c
23765 2009-04-17 Diego Novillo <dnovillo@google.com>
23767 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23768 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23769 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23770 (find_vars_r): ... here.
23771 * tree-flow.h (find_referenced_vars_in): Declare.
23772 * tree-ssa-pre.c (create_expression_by_pieces): Assert
23773 that AVAIL_OUT exists for BLOCK.
23774 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23775 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23776 (tree-parloops.o): Likewise.
23778 2009-04-17 Simon Baldwin <simonb@google.com>
23780 * toplev.c (default_tree_printer): Add handling for %E format.
23782 2009-04-17 Diego Novillo <dnovillo@google.com>
23784 * tree-pretty-print.c (dump_generic_node): Add break after
23785 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
23786 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
23787 FUNCTION_TYPE together. Call print_struct_decl when printing
23788 structures and TDF_SLIM is not given.
23789 (print_struct_decl): Fix logic for detecting recursion.
23791 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
23794 * gcc.c (create_at_file): New.
23795 (compile_input_file_p): New.
23796 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23797 * main.c (main): Update call to toplev_main.
23798 * toplev.c (toplev_main): Change signature. Call expandargv.
23799 * toplev.h (toplev_main): Change signature.
23801 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23803 * dwarf2out.c (field_byte_offset): Use the type size as the field size
23804 if the latter is not constant.
23806 2009-04-17 David Edelsohn <edelsohn@gnu.org>
23808 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23810 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23812 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23813 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23815 2009-04-17 Richard Guenther <rguenther@suse.de>
23817 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23818 Handle component references view-converting an invariant address.
23820 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
23822 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23823 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23824 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23825 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23826 Use @deftypevr rather than @deftypevar.
23828 2009-04-17 Richard Guenther <rguenther@suse.de>
23830 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23831 (get_prop_source_stmt): Likewise.
23832 (can_propagate_from): Likewise.
23834 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
23836 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23837 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23838 (--with-multilib-list): Add default value.
23839 * configure: Regenerate.
23840 * Makefile.in (TM_ENDIAN_CONFIG): Define.
23841 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23842 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23843 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23844 Don't add default cpu to multilib list unnecessarily, but do enable
23845 the relevant compiler option..
23846 Add support for --with-multilib-list=<blank> and
23847 --with-multilib-list=!<somelib> to supress unwanted multilibs.
23848 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23849 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23850 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23851 TM_MULTILIB_CONFIG.
23852 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23853 (MULTILIB_OSDIRNAMES): New variable.
23854 * config/sh/t-1e: Delete file.
23855 * config/sh/t-mlib-sh1: Delete file.
23856 * config/sh/t-mlib-sh2: Delete file.
23857 * config/sh/t-mlib-sh2a: Delete file.
23858 * config/sh/t-mlib-sh2a-nofpu: Delete file.
23859 * config/sh/t-mlib-sh2a-single: Delete file.
23860 * config/sh/t-mlib-sh2a-single-only: Delete file.
23861 * config/sh/t-mlib-sh2e: Delete file.
23862 * config/sh/t-mlib-sh3e: Delete file.
23863 * config/sh/t-mlib-sh4: Delete file.
23864 * config/sh/t-mlib-sh4-nofpu: Delete file.
23865 * config/sh/t-mlib-sh4-single: Delete file.
23866 * config/sh/t-mlib-sh4-single-only: Delete file.
23867 * config/sh/t-mlib-sh4a: Delete file.
23868 * config/sh/t-mlib-sh4a-nofpu: Delete file.
23869 * config/sh/t-mlib-sh4a-single: Delete file.
23870 * config/sh/t-mlib-sh4a-single-only: Delete file.
23871 * config/sh/t-mlib-sh4al: Delete file.
23872 * config/sh/t-mlib-sh5-32media: Delete file.
23873 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23874 * config/sh/t-mlib-sh5-64media: Delete file.
23875 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23876 * config/sh/t-mlib-sh5-compact: Delete file.
23877 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23878 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23879 * doc/install.texi (Options specification): Add
23880 --with-multilib-list and --with-endian.
23882 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
23884 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23886 (OBJS-common): Add plugin-version.o.
23887 (plugin-version.o): New.
23888 * gcc-plugin.h (plugin_gcc_version): New.
23889 (plugin_default_version_check): New.
23890 (plugin_init_func, plugin_init): Add version argument.
23891 * plugin-version.c: New.
23892 * plugin.c (str_plugin_gcc_version_name): New.
23893 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23894 pass it to the init function.
23895 (plugin_default_version_check): New.
23897 2009-04-17 Richard Guenther <rguenther@suse.de>
23899 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23900 for decl-vs-decl disambiguation.
23902 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
23904 * config/s390/s390.h (s390_tune_attr): New macro definition.
23905 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23907 2009-04-17 Richard Guenther <rguenther@suse.de>
23909 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23910 (fold_stmt_r): Likewise.
23911 (maybe_fold_reference): New function.
23912 (fold_gimple_assign): Handle cases fold_stmt_r did.
23913 (fold_stmt): Do not use fold_stmt_r.
23914 (fold_stmt_inplace): Likewise.
23916 2009-04-17 Richard Guenther <rguenther@suse.de>
23918 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23919 (record_equivalences_from_stmt): Remove useless checks and
23921 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23922 the type is already suitable.
23924 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
23926 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23928 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
23930 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23931 (CMPtype): Define as __gcc_CMPtype.
23933 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
23935 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23936 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23938 2009-04-17 Richard Guenther <rguenther@suse.de>
23940 PR tree-optimization/39746
23941 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23942 special-casing for builtins and static variable use/def.
23943 (call_may_clobber_ref_p_1): Likewise.
23945 2009-04-16 Ian Lance Taylor <iant@google.com>
23947 * df.h: Include "timevar.h".
23948 (struct df_problem): Change tv_id field to timevar_id_t.
23949 * tree-pass.h: Include "timevar.h".
23950 (struct opt_pass): Change tv_id field to timevar_id_t.
23951 * timevar.h (timevar_id_t): Define TV_NONE.
23952 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23953 TV_NONE rather than tv_id != 0.
23954 (execute_one_pass): Likewise.
23955 * Makefile.in (DF_H): Add $(TIMEVAR_H).
23956 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
23957 dependencies to $(TREE_PASS_H).
23958 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23960 (pass_branch_target_load_optimize2): Likewise.
23961 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23962 (pass_outof_cfg_layout_mode): Likewise.
23963 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23964 (pass_rebuild_cgraph_edges): Likewise.
23965 (pass_remove_cgraph_callee_edges): Likewise.
23966 * df-core.c (pass_df_initialize_opt): Likewise.
23967 (pass_df_initialize_no_opt): Likewise.
23968 (pass_df_finish): Likewise.
23969 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23970 * except.c (pass_set_nothrow_function_flags): Likewise.
23971 (pass_convert_to_eh_region_ranges): Likewise.
23972 * final.c (pass_compute_alignments): Likewise.
23973 * function.c (pass_instantiate_virtual_regs): Likewise.
23974 (pass_init_function): Likewise.
23975 (pass_leaf_regs): Likewise.
23976 (pass_match_asm_constraints): Likewise.
23977 * gimple-low.c (pass_lower_cf): Likewise.
23978 (pass_mark_used_blocks): Likewise.
23979 * init-regs.c (pass_initialize_regs): Likewise.
23980 * integrate.c (pass_initial_value_sets): Likewise.
23981 * ira.c (pass_ira): Likewise.
23982 * jump.c (pass_cleanup_barriers): Likewise.
23983 * omp-low.c (pass_expand_omp): Likewise.
23984 (pass_lower_omp): Likewise.
23985 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23986 * recog.c (pass_split_all_insns): Likewise.
23987 (pass_split_after_reload): Likewise.
23988 (pass_split_before_regstack): Likewise.
23989 (pass_split_before_sched2): Likewise.
23990 (pass_split_for_shorten_branches): Likewise.
23991 * reginfo.c (pass_reginfo_init): Likewise.
23992 (pass_subregs_of_mode_init): Likewise.
23993 (pass_subregs_of_mode_finish): Likewise.
23994 * passes.c (pass_postreload): Likewise.
23995 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23996 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23997 (pass_warn_function_return): Likewise.
23998 (pass_warn_function_noreturn): Likewise.
23999 * tree-complex.c (pass_lower_complex): Likewise.
24000 (pass_lower_complex_O0): Likewise.
24001 * tree-if-conv.c (pass_if_conversion): Likewise.
24002 * tree-into-ssa.c (pass_build_ssa): Likewise.
24003 * tree-mudflap.c (pass_mudflap_1): Likewise.
24004 (pass_mudflap_2): Likewise.
24005 * tree-nomudflap.c (pass_mudflap_1): Likewise.
24006 (pass_mudflap_2): Likewise.
24007 * tree-nrv.c (pass_return_slot): Likewise.
24008 * tree-object-size.c (pass_object_sizes): Likewise.
24009 * tree-optimize.c (pass_all_optimizations): Likewise.
24010 (pass_early_local_passes): Likewise.
24011 (pass_all_early_optimizations): Likewise.
24012 (pass_cleanup_cfg): Likewise.
24013 (pass_cleanup_cfg_post_optimizing): Likewise.
24014 (pass_free_datastructures): Likewise.
24015 (pass_free_cfg_annotations): Likewise.
24016 (pass_fixup_cfg): Likewise.
24017 (pass_init_datastructures): Likewise.
24018 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
24019 (pass_late_warn_uninitialized): Likewise.
24020 (pass_update_address_taken): Likewise.
24021 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
24022 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
24023 (pass_cse_sincos): Likewise.
24024 (pass_convert_to_rsqrt): Likewise.
24025 * tree-ssa-structalias.c (pass_build_alias): Likewise.
24026 * tree-stdarg.c (pass_stdarg): Likewise.
24027 * tree-tailcall.c (pass_tail_recursion): Likewise.
24028 (pass_tail_calls): Likewise.
24029 * tree-vect-generic.c (pass_lower_vector): Likewise.
24030 (pass_lower_vector_ssa): Likewise.
24031 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
24033 2009-04-16 Joseph Myers <joseph@codesourcery.com>
24035 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
24037 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
24039 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
24040 logical and signext.
24042 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
24045 * config/sh/predicates.md (arith_operand): Check if the operand
24046 of TRUNCATE is a REG.
24048 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24050 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
24051 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
24053 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24055 * tree-iterator.c (tsi_split_statement_list_after,
24056 tsi_split_statement_list_before): Remove.
24057 * tree-iterator.h: Remove the prototypes for
24058 tsi_split_statement_list_after and tsi_split_statement_list_before.
24060 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24062 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
24063 * tree-ssa-propagate.h: Remove the prototype for
24064 stmt_makes_single_load.
24066 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24068 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
24069 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
24071 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24073 * tree-iterator.c (EXPR_LAST_BODY): Remove.
24075 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24077 * except.c (eh_region_outer_p): Remove.
24078 * except.h: Remove the prototype for eh_region_outer_p.
24080 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
24082 * function.c (current_function_assembler_name): Remove.
24083 * function.h: Remove the prototype for
24084 current_function_assembler_name.
24086 2009-04-16 Ian Lance Taylor <iant@google.com>
24088 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
24089 (add_reg_note): Call alloc_reg_note.
24090 * rtl.h (alloc_reg_note): Declare.
24091 * combine.c (try_combine): Use alloc_reg_note.
24092 (recog_for_combine, move_deaths): Likewise.
24093 (distribute_notes): Use alloc_reg_note and add_reg_note.
24094 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
24095 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
24096 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
24098 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
24100 PR rtl-optimization/39762
24101 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
24102 ira_may_move_out_cost): Add comments about way of their usage.
24103 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
24105 * ira-conflicts.c (process_regs_for_copy): Use function
24106 ira_get_register_move_cost instead of global
24107 ira_register_move_cost.
24109 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
24110 color_pass, move_spill_restore, update_curr_costs): Ditto.
24112 * ira-lives.c (process_single_reg_class_operands): Ditto.
24114 * ira-emit.c (emit_move_list): Ditto.
24116 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
24117 (record_reg_classes): Ditto. Use functions
24118 ira_get_register_move_cost and ira_get_may_move_cost instead of
24119 global vars ira_register_move_cost, ira_may_move_out_cost and
24120 ira_may_move_in_cost.
24121 (record_address_regs): Don't call ira_init_register_move_cost.
24122 Use function ira_get_may_move_cost instead of global
24123 ira_may_move_in_cost.
24124 (process_bb_node_for_hard_reg_moves): Use function
24125 ira_get_register_move_cost instead of global ira_register_move_cost.
24126 (ira_costs): Don't call ira_init_register_move_cost.
24128 2009-04-16 Richard Guenther <rguenther@suse.de>
24130 * tree-cfg.c (verify_gimple_assign_binary):
24131 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
24132 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
24133 (create_general_new_stmt): Note that this function is broken.
24135 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
24137 * common.opt (fhelp): Add Var(help_flag).
24138 * gcc-plugin.h (plugin_info): Add help.
24139 * plugin.c (plugin_name_args): Add help.
24140 (register_plugin_info): Set plugin->help.
24141 (print_help_one_plugin): New.
24142 (print_plugins_help): New.
24143 * plugin.h (print_plugins_help): New.
24144 * toplev.c (toplev_main): Call print_plugins_help if needed.
24146 2009-04-16 Richard Guenther <rguenther@suse.de>
24148 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
24149 (gimple_ior_addresses_taken_1): New function.
24150 (gimple_ior_addresses_taken): Likewise.
24151 * gimple.h (struct gimple_statement_with_ops_base): Remove
24152 addresses_taken member.
24153 (gimple_ior_addresses_taken): Declare.
24154 (gimple_addresses_taken, gimple_addresses_taken_ptr,
24155 gimple_set_addresses_taken): Remove.
24156 * ipa-reference.c (mark_address): New function.
24157 (scan_stmt_for_static_refs): Use it for marking addresses taken.
24158 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
24159 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
24160 (gimple_add_to_addresses_taken): Remove.
24161 (get_tmr_operands): Call mark_address_taken.
24162 (get_asm_expr_operands): Likewise.
24163 (get_expr_operands): Likewise.
24164 (build_ssa_operands): Do not clear the addresses_taken bitmap.
24165 (free_stmt_operands): Do not free it.
24166 * tree-ssa.c (delete_tree_ssa): Likewise.
24167 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
24169 2009-04-16 Richard Guenther <rguenther@suse.de>
24171 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
24172 (walk_stmt_load_store_ops): Likewise.
24173 * gimple.c (get_base_loadstore): New function.
24174 (walk_stmt_load_store_addr_ops): Likewise.
24175 (walk_stmt_load_store_ops): Likewise.
24176 * ipa-pure-const.c (check_op): Simplify.
24177 (check_load, check_store): New functions.
24178 (check_stmt): Use walk_stmt_load_store_ops.
24179 * ipa-reference.c (mark_load): Adjust signature.
24180 (mark_store): Likewise.
24181 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
24183 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
24185 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
24186 (plugin_info): New.
24187 * opts.c (common_handle_option): Don't call print_version.
24188 * plugin.c (plugin_name_args): Add version.
24189 (register_plugin_info): New.
24190 (register_callback): Handle PLUGIN_INFO.
24191 (try_init_one_plugin): New.
24192 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
24194 (finalize_one_plugin): New.
24195 (finalize_plugins): New.
24196 (print_one_plugin): New.
24197 (print_plugins_versions): New.
24198 * plugin.h (print_plugins_versions): New.
24199 (finalize_plugins): New.
24200 * toplev.c (compile_file): Don't call initialize_plugins.
24201 (print_version): Call print_plugins_versions.
24202 (toplev_main): Call initialize_plugins. Print version if needed.
24203 Call finalize_plugins.
24205 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
24207 * common.opt (fversion): New.
24208 * gcc.c (print_version): New.
24209 (process_command): Don't print the version. Just set print_version.
24210 (main): Print version. Call subprocesses if print_version and
24211 verbose_flag are set.
24212 * opts.c (common_handle_option): Handle OPT_fversion.
24214 2009-04-16 Richard Guenther <rguenther@suse.de>
24215 Ira Rosen <irar@il.ibm.com>
24217 PR tree-optimization/39698
24218 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
24219 type of the reduction variable. Only generate the def if
24222 * omp-low.c (expand_omp_for_generic): When converting to a pointer
24223 make sure to first convert to an integer of the same precision.
24224 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
24225 the type of the evolution correctly in computing the new
24226 induction variable base.
24228 2009-04-16 Richard Guenther <rguenther@suse.de>
24230 PR middle-end/39625
24231 * tree-cfg.c (make_blocks): Split statements with to-be
24232 abnormal SSA names on the lhs.
24234 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
24236 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
24237 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
24238 * c-typeck.c (really_start_incremental_init): Likewise.
24239 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
24240 (TARGET_INITIALIZER): Remove it.
24241 * target.h (struct target): Remove vector_opaque_p.
24242 * tree.c (build_opaque_vector_type): New.
24243 * tree.h (TYPE_VECTOR_OPAQUE): New.
24244 (build_opaque_vector_type): Declare.
24245 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
24246 * config/rs6000/rs6000.c (build_opaque_vector_type,
24247 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
24248 (rs6000_init_builtins): Use build_opaque_vector_type for
24249 opaque_V4SI_type_node.
24251 2009-04-15 Catherine Moore <clm@codesourcery.com>
24253 * debug.h (set_name): Declare.
24254 * dwarf2out.c (dwarf2out_set_name): Declare.
24255 (dwarf2_debug_hooks): Add set_name.
24256 (find_AT_string): New.
24257 (add_AT_string): Call find_AT_string.
24258 (dwarf2out_set_name): New.
24259 * cp/decl.c (grokdeclarator): Call set_name.
24260 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
24261 * debug.c (do_nothing_debug_hooks): Likewise.
24262 * dbxout.c (dbx_debug_hooks): Likewise.
24263 * sdbout.c (sdb_debug_hooks): Likewise.
24265 2009-04-15 Michael Eager <eager@eagercon.com>
24267 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
24268 reg for single-precision FPU.
24269 * config/rs6000/rs6000.md (movsi_internal1): Only for
24270 !TARGET_SINGLE_FPU.
24271 (movsi_internal1_single): New. Add pattern to move SI values to/from
24272 single-precision FP regs.
24274 2009-04-15 Richard Guenther <rguenther@suse.de>
24276 * omp-low.c (lower_rec_input_clauses): Build correct address
24278 (expand_omp_for_generic): Fix multiplication type.
24279 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
24280 (generate_memset_zero): Fix types.
24281 * tree-profile.c (prepare_instrumented_value): Correctly
24284 2009-04-15 Ian Lance Taylor <iant@google.com>
24286 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
24287 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
24288 for -Wall and for -Wc++-compat.
24289 (c_common_post_options): For C++, set warn_enum_compare if not
24291 * c-tree.h (struct c_expr): Add field original_type.
24292 (build_external_ref): Update declaration.
24293 * c-parser.c (c_parser_braced_init): Set original_type.
24294 (c_parser_initelt): Likewise.
24295 (c_parser_expr_no_commas): Likewise.
24296 (c_parser_conditional_expression): Likewise.
24297 (c_parser_cast_expression): Likewise.
24298 (c_parser_unary_expression): Likewise. Pull setting of
24299 original_code to top of function.
24300 (c_parser_sizeof_expression): Set original_type.
24301 (c_parser_alignof_expression): Likewise.
24302 (c_parser_postfix_expression): Likewise. Pull setting of
24303 original_code to top of function.
24304 (c_parser_postfix_expression_after_paren_type): Set original_type.
24305 (c_parser_postfix_expression_after_primary): Likewise.
24306 (c_parser_expression): Likewise.
24307 * c-typeck.c (build_external_ref): Add type parameter. Change all
24309 (c_expr_sizeof_expr): Set original_type field.
24310 (parser_build_unary_op): Likewise.
24311 (parser_build_binary_op): Likewise. Optionally warn about
24312 comparisons of enums of different types.
24313 (digest_init): Set original_type field.
24314 (really_start_incremental_init): Likewise.
24315 (push_init_level, pop_init_level): Likewise.
24316 * doc/invoke.texi (Warning Options): -Wenum-compare now
24319 2009-04-15 Richard Guenther <rguenther@suse.de>
24321 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
24322 out a necessary conversion.
24323 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
24324 names we didn't value number.
24325 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
24327 2009-04-15 Richard Guenther <rguenther@suse.de>
24329 PR tree-optimization/39764
24330 * tree-ssa-ccp.c (get_value): Canonicalize value with
24331 canonicalize_float_value.
24333 2009-04-15 Jan Hubicka <jh@suse.cz>
24335 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
24336 Wrong version of patch.
24338 2009-04-15 Jan Hubicka <jh@suse.cz>
24340 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
24342 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
24344 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
24345 our distinct integral and vector types.
24347 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
24349 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
24350 * init.c (build_vtbl_address): Remove call to assemble_external.
24352 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
24354 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
24355 output for other floating point modes.
24357 2009-04-14 Diego Novillo <dnovillo@google.com>
24359 * diagnostic.c (diagnostic_report_diagnostic): Do not
24360 warn about loaded plugins for DK_ERROR and DK_WARNING.
24361 * c-decl.c (declspecs_add_type): Move call to
24362 invoke_plugin_callbacks ...
24363 * c-parser.c (c_parser_declspecs): ... here.
24364 * plugin.c (dump_active_plugins): Tidy output.
24366 2009-04-14 Diego Novillo <dnovillo@google.com>
24367 Le-Chun Wu <lcwu@google.com>
24369 * configure.ac: Add --enable-plugin support.
24370 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
24371 * Makefile.in (PLUGIN_H): Define.
24372 Export ENABLE_PLUGIN and GMPINC to site.exp.
24373 Add PLUGINLIBS to link command.
24374 Add/modify dependencies for plugin.o and files including plugin.h.
24376 * config.in: Regenerate.
24378 * opts.c (common_handle_option): Handle OPT_fplugin_ and
24381 2009-04-14 Le-Chun Wu <lcwu@google.com>
24383 * tree-pass.h (register_one_dump_file): Add a prototype for
24384 register_one_dump_file.
24385 * toplev.c (compile_file): Call initialize_plugins.
24386 (do_compile): Call invoke_plugin_callbacks.
24387 (toplev_main): Call invoke_plugin_callbacks.
24388 * common.opt: Add -fplugin= and -fplugin-arg-.
24389 * gcc-plugin.h: New public header file for plugins to include.
24390 * plugin.c: New source file.
24391 * plugin.h: New internal header file.
24392 * passes.c (register_one_dump_file): Make it external.
24394 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
24396 2009-04-14 Diego Novillo <dnovillo@google.com>
24398 * doc/plugins.texi: New.
24399 * doc/gccint.texi: Add reference to Plugins chapter.
24400 * doc/invoke.texi: Document -fplugin and -fplugin-arg
24401 * diagnostic.c (diagnostic_report_diagnostic): Warn about
24402 loaded plugins, if any.
24403 * timevar.def (TV_PLUGIN_INIT): Define.
24404 (TV_PLUGIN_RUN): Define.
24405 * plugin.c: Include timevar.h
24406 (plugins_active_p): New.
24407 (dump_active_plugins): New.
24408 (debug_active_plugins): New.
24410 2009-04-14 Joseph Myers <joseph@codesourcery.com>
24412 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
24414 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
24416 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
24418 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
24419 the same as a minus without a shift.
24421 2009-04-14 Nick Clifton <nickc@redhat.com>
24423 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
24424 comparisons with small integers will always produce a short
24427 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
24430 2008-12-19 Diego Novillo <dnovillo@google.com>
24432 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
24434 2009-04-14 Richard Guenther <rguenther@suse.de>
24436 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
24438 (verify_gimple_assign_binary): Likewise. Handle shifts and
24440 (verify_gimple_phi): Print the mismatched argument position.
24441 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24443 (vect_update_init_of_dr): Likewise.
24444 * matrix-reorg.c (transform_access_sites): Do what the
24446 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
24448 2009-04-13 Michael Eager <eager@eagercon.com>
24450 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
24451 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
24452 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
24453 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
24454 remove duplicate config
24456 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
24458 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
24459 file_name:line_number type locator of the call site.
24461 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
24463 * genautomata.c: Put blank after comma.
24464 (automaton_decls): New.
24465 (struct unit_usage): Add comments to member next.
24466 (store_alt_unit_usage): Keep the list ordered.
24467 (unit_present_on_list_p, equal_alternatives_p): New.
24468 (check_regexp_units_distribution): Check units distribution
24469 correctness correctly.
24470 (main): Don't write automata if error is found. Return correct
24473 * config/m68k/cf.md (cfv4_ds): Remove.
24474 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
24475 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
24477 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
24478 power4-load-ext, power4-store, power4-store-update,
24479 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
24480 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
24481 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
24482 power4-sqrt, power4-isync): Modify reservation to make correct
24483 unit distribution to automata.
24485 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
24486 power5-store-update, power5-two, power5-three, power5-lmul,
24487 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
24489 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
24491 * except.c (pass_set_nothrow_function_flags): Set name and add
24493 (set_nothrow_function_flags): Mention in the dump file when
24494 changing a function to nothrow.
24496 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
24499 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24500 instead of unsigned long.
24502 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24504 * config/arm/arm.c (return_used_this_function): Remove.
24505 (arm_output_function_prologue): Remove use of
24506 return_used_this_function.
24507 (output_return_instruction): Replace use of
24508 return_used_this_function
24509 by cfun->machine->return_used_this_function.
24510 (arm_output_epilogue): Likewise.
24511 (arm_output_function_epilogue): Likewise.
24512 (thumb_unexpanded_epilogue): Likewise.
24513 * config/arm/arm.h (struct machine_function):
24514 New member return_used_this_function.
24516 2009-04-12 Mark Mitchell <mark@codesourcery.com>
24518 * doc/install.texi: Correct description of default directory for
24519 --with-gxx-include-dir.
24521 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
24523 * fold-const.c (build_range_check): Properly deal with enumeral and
24524 boolean base types.
24526 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
24528 * doc/invoke.texi (max_gcse_passes): Remove documentation.
24529 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24530 * params.h (MAX_GCSE_PASSES): Remove.
24531 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24532 in sequence. Remove ability to run multiple passes.
24533 (bypass_jumps): Report run as third CPROP pass.
24535 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
24537 PR middle-end/39651
24538 * except.c (can_throw_external): Look at each insn in a SEQUENCE
24539 when deciding whether the whole SEQUENCE can throw.
24541 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
24544 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24545 offseted label references.
24547 2009-04-11 Jan Hubicka <jh@suse.cz>
24549 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24551 2009-04-11 Richard Guenther <rguenther@suse.de>
24553 PR middle-end/39732
24554 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24555 return variables as TREE_ADDRESSABLE.
24557 2009-04-11 Richard Guenther <rguenther@suse.de>
24559 PR tree-optimization/39713
24560 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24561 reference trees have SSA_NAME operands.
24563 2009-04-11 Richard Guenther <rguenther@suse.de>
24566 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24567 address expressions.
24569 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
24571 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
24572 match changes in Cygwin 1.7
24573 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24574 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
24576 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
24578 PR tree-optimization/39701
24579 * doc/invoke.texi (Optimization Options): Document change in
24580 meaning and initialization of -fdelete-null-pointer-checks.
24582 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24584 PR middle-end/39701
24585 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24587 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24590 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24592 2009-04-10 Chao-ying Fu <fu@mips.com>
24594 * doc/tm.texi (Instruction Output): Document
24595 TARGET_ASM_FINAL_POSTSCAN_INSN.
24596 * target.h (final_postscan_insn): New field in asm_out.
24597 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24598 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24599 * final.c (final_scan_insn): Call
24600 targetm.asm_out.final_postscan_insn after outputting
24601 an asm macro and a normal instruction.
24603 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24604 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24605 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24606 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24607 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24609 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
24611 PR middle-end/39701
24612 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24613 variables as non-NULL even with -fdelete-null-pointer-checks.
24615 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24617 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24619 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
24622 * config/i386/i386.c (classify_argument): Handle SCmode with
24623 (bit_offset % 64) != 0.
24625 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
24627 * doc/invoke.texi (Optimize Options): Add cross-reference to
24628 -Q --help=optimizers examples.
24630 2009-04-10 Ben Elliston <bje@au.ibm.com>
24633 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24634 regalign for the reg == fpr and TDmode case.
24636 2009-04-09 David Ayers <ayers@fsfe.org>
24639 * objc/objc-act.c (warn_with_method): Remove helper function.
24640 (check_duplicates): Call warning and inform directly.
24641 (really_start_method): Likewise.
24643 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
24645 * expmed.c (expand_divmod): Always use a comparison for a division
24646 by a large unsigned integer.
24648 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24649 for things others than variables or functions as nonzero.
24651 2009-04-09 Nick Clifton <nickc@redhat.com>
24653 * unwind-compat.c: Change copyright header to refer to version
24654 3 of the GNU General Public License with version 3.1 of the
24655 GCC Runtime Library Exception and to point readers at the
24656 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24657 * config/alpha/crtfastmath.c: Likewise.
24658 * config/alpha/linux-unwind.h: Likewise.
24659 * config/alpha/qrnnd.asm: Likewise.
24660 * config/alpha/vms-crt0-64.c: Likewise.
24661 * config/alpha/vms-crt0.c: Likewise.
24662 * config/alpha/vms-dwarf2.asm: Likewise.
24663 * config/alpha/vms-dwarf2eh.asm: Likewise.
24664 * config/alpha/vms-psxcrt0-64.c: Likewise.
24665 * config/alpha/vms-psxcrt0.c: Likewise.
24666 * config/alpha/vms_tramp.asm: Likewise.
24667 * config/arc/initfini.c: Likewise.
24668 * config/arc/lib1funcs.asm: Likewise.
24669 * config/arm/bpabi-v6m.S: Likewise.
24670 * config/arm/bpabi.S: Likewise.
24671 * config/arm/bpabi.c: Likewise.
24672 * config/arm/crti.asm: Likewise.
24673 * config/arm/crtn.asm: Likewise.
24674 * config/arm/ieee754-df.S: Likewise.
24675 * config/arm/ieee754-sf.S: Likewise.
24676 * config/arm/lib1funcs.asm: Likewise.
24677 * config/arm/libunwind.S: Likewise.
24678 * config/arm/linux-atomic.c: Likewise.
24679 * config/arm/mmintrin.h: Likewise.
24680 * config/arm/pr-support.c: Likewise.
24681 * config/arm/unaligned-funcs.c: Likewise.
24682 * config/arm/unwind-arm.c: Likewise.
24683 * config/arm/unwind-arm.h: Likewise.
24684 * config/avr/libgcc.S: Likewise.
24685 * config/bfin/crti.s: Likewise.
24686 * config/bfin/crtlibid.s: Likewise.
24687 * config/bfin/crtn.s: Likewise.
24688 * config/bfin/lib1funcs.asm: Likewise.
24689 * config/bfin/linux-unwind.h: Likewise.
24690 * config/cris/arit.c: Likewise.
24691 * config/cris/cris_abi_symbol.c: Likewise.
24692 * config/darwin-64.c: Likewise.
24693 * config/darwin-crt2.c: Likewise.
24694 * config/darwin-crt3.c: Likewise.
24695 * config/darwin.h: Likewise.
24696 * config/dbxelf.h: Likewise.
24697 * config/dfp-bit.c: Likewise.
24698 * config/dfp-bit.h: Likewise.
24699 * config/elfos.h: Likewise.
24700 * config/fixed-bit.c: Likewise.
24701 * config/fixed-bit.h: Likewise.
24702 * config/fp-bit.c: Likewise.
24703 * config/fp-bit.h: Likewise.
24704 * config/fr30/crti.asm: Likewise.
24705 * config/fr30/crtn.asm: Likewise.
24706 * config/fr30/lib1funcs.asm: Likewise.
24707 * config/freebsd-spec.h: Likewise.
24708 * config/frv/cmovd.c: Likewise.
24709 * config/frv/cmovh.c: Likewise.
24710 * config/frv/cmovw.c: Likewise.
24711 * config/frv/frvbegin.c: Likewise.
24712 * config/frv/frvend.c: Likewise.
24713 * config/frv/lib1funcs.asm: Likewise.
24714 * config/glibc-stdint.h: Likewise.
24715 * config/h8300/clzhi2.c: Likewise.
24716 * config/h8300/crti.asm: Likewise.
24717 * config/h8300/crtn.asm: Likewise.
24718 * config/h8300/ctzhi2.c: Likewise.
24719 * config/h8300/fixunssfsi.c: Likewise.
24720 * config/h8300/lib1funcs.asm: Likewise.
24721 * config/h8300/parityhi2.c: Likewise.
24722 * config/h8300/popcounthi2.c: Likewise.
24723 * config/i386/ammintrin.h: Likewise.
24724 * config/i386/att.h: Likewise.
24725 * config/i386/avxintrin.h: Likewise.
24726 * config/i386/biarch64.h: Likewise.
24727 * config/i386/bmmintrin.h: Likewise.
24728 * config/i386/cpuid.h: Likewise.
24729 * config/i386/cross-stdarg.h: Likewise.
24730 * config/i386/crtfastmath.c: Likewise.
24731 * config/i386/crtprec.c: Likewise.
24732 * config/i386/cygming-crtbegin.c: Likewise.
24733 * config/i386/cygming-crtend.c: Likewise.
24734 * config/i386/cygwin.asm: Likewise.
24735 * config/i386/emmintrin.h: Likewise.
24736 * config/i386/gmm_malloc.h: Likewise.
24737 * config/i386/gthr-win32.c: Likewise.
24738 * config/i386/i386.h: Likewise.
24739 * config/i386/immintrin.h: Likewise.
24740 * config/i386/linux-unwind.h: Likewise.
24741 * config/i386/linux64.h: Likewise.
24742 * config/i386/mm3dnow.h: Likewise.
24743 * config/i386/mmintrin-common.h: Likewise.
24744 * config/i386/mmintrin.h: Likewise.
24745 * config/i386/nmmintrin.h: Likewise.
24746 * config/i386/pmm_malloc.h: Likewise.
24747 * config/i386/pmmintrin.h: Likewise.
24748 * config/i386/smmintrin.h: Likewise.
24749 * config/i386/sol2-c1.asm: Likewise.
24750 * config/i386/sol2-ci.asm: Likewise.
24751 * config/i386/sol2-cn.asm: Likewise.
24752 * config/i386/sol2-gc1.asm: Likewise.
24753 * config/i386/tmmintrin.h: Likewise.
24754 * config/i386/unix.h: Likewise.
24755 * config/i386/w32-unwind.h: Likewise.
24756 * config/i386/wmmintrin.h: Likewise.
24757 * config/i386/x86-64.h: Likewise.
24758 * config/i386/x86intrin.h: Likewise.
24759 * config/i386/xmmintrin.h: Likewise.
24760 * config/ia64/crtbegin.asm: Likewise.
24761 * config/ia64/crtend.asm: Likewise.
24762 * config/ia64/crtfastmath.c: Likewise.
24763 * config/ia64/crti.asm: Likewise.
24764 * config/ia64/crtn.asm: Likewise.
24765 * config/ia64/fde-glibc.c: Likewise.
24766 * config/ia64/lib1funcs.asm: Likewise.
24767 * config/ia64/linux-unwind.h: Likewise.
24768 * config/ia64/quadlib.c: Likewise.
24769 * config/ia64/unwind-ia64.c: Likewise.
24770 * config/linux.h: Likewise.
24771 * config/m32c/m32c-lib1.S: Likewise.
24772 * config/m32c/m32c-lib2-trapv.c: Likewise.
24773 * config/m32c/m32c-lib2.c: Likewise.
24774 * config/m32r/initfini.c: Likewise.
24775 * config/m68hc11/larith.asm: Likewise.
24776 * config/m68hc11/m68hc11-crt0.S: Likewise.
24777 * config/m68k/cf.md: Likewise.
24778 * config/m68k/crti.s: Likewise.
24779 * config/m68k/crtn.s: Likewise.
24780 * config/m68k/lb1sf68.asm: Likewise.
24781 * config/m68k/linux-unwind.h: Likewise.
24782 * config/mcore/crti.asm: Likewise.
24783 * config/mcore/crtn.asm: Likewise.
24784 * config/mcore/lib1.asm: Likewise.
24785 * config/mips/linux-unwind.h: Likewise.
24786 * config/mips/loongson.h: Likewise.
24787 * config/mips/mips16.S: Likewise.
24788 * config/mmix/crti.asm: Likewise.
24789 * config/mmix/crtn.asm: Likewise.
24790 * config/pa/fptr.c: Likewise.
24791 * config/pa/hpux-unwind.h: Likewise.
24792 * config/pa/lib2funcs.asm: Likewise.
24793 * config/pa/linux-atomic.c: Likewise.
24794 * config/pa/linux-unwind.h: Likewise.
24795 * config/pa/milli64.S: Likewise.
24796 * config/pa/quadlib.c: Likewise.
24797 * config/pa/stublib.c: Likewise.
24798 * config/picochip/libgccExtras/adddi3.asm: Likewise.
24799 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24800 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24801 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24802 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24803 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24804 * config/picochip/libgccExtras/divmod15.asm: Likewise.
24805 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24806 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24807 * config/picochip/libgccExtras/longjmp.asm: Likewise.
24808 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24809 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24810 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24811 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24812 * config/picochip/libgccExtras/setjmp.asm: Likewise.
24813 * config/picochip/libgccExtras/subdi3.asm: Likewise.
24814 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24815 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24816 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24817 * config/rs6000/750cl.h: Likewise.
24818 * config/rs6000/altivec.h: Likewise.
24819 * config/rs6000/biarch64.h: Likewise.
24820 * config/rs6000/crtresfpr.asm: Likewise.
24821 * config/rs6000/crtresgpr.asm: Likewise.
24822 * config/rs6000/crtresxfpr.asm: Likewise.
24823 * config/rs6000/crtresxgpr.asm: Likewise.
24824 * config/rs6000/crtsavfpr.asm: Likewise.
24825 * config/rs6000/crtsavgpr.asm: Likewise.
24826 * config/rs6000/darwin-asm.h: Likewise.
24827 * config/rs6000/darwin-fallback.c: Likewise.
24828 * config/rs6000/darwin-fpsave.asm: Likewise.
24829 * config/rs6000/darwin-ldouble.c: Likewise.
24830 * config/rs6000/darwin-tramp.asm: Likewise.
24831 * config/rs6000/darwin-unwind.h: Likewise.
24832 * config/rs6000/darwin-vecsave.asm: Likewise.
24833 * config/rs6000/darwin-world.asm: Likewise.
24834 * config/rs6000/e500crtres32gpr.asm: Likewise.
24835 * config/rs6000/e500crtres64gpr.asm: Likewise.
24836 * config/rs6000/e500crtres64gprctr.asm: Likewise.
24837 * config/rs6000/e500crtrest32gpr.asm: Likewise.
24838 * config/rs6000/e500crtrest64gpr.asm: Likewise.
24839 * config/rs6000/e500crtresx32gpr.asm: Likewise.
24840 * config/rs6000/e500crtresx64gpr.asm: Likewise.
24841 * config/rs6000/e500crtsav32gpr.asm: Likewise.
24842 * config/rs6000/e500crtsav64gpr.asm: Likewise.
24843 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24844 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24845 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24846 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24847 * config/rs6000/eabi-ci.asm: Likewise.
24848 * config/rs6000/eabi-cn.asm: Likewise.
24849 * config/rs6000/eabi.asm: Likewise.
24850 * config/rs6000/linux-unwind.h: Likewise.
24851 * config/rs6000/linux64.h: Likewise.
24852 * config/rs6000/paired.h: Likewise.
24853 * config/rs6000/paired.md: Likewise.
24854 * config/rs6000/ppc64-fp.c: Likewise.
24855 * config/rs6000/ppu_intrinsics.h: Likewise.
24856 * config/rs6000/rs6000.h: Likewise.
24857 * config/rs6000/si2vmx.h: Likewise.
24858 * config/rs6000/sol-ci.asm: Likewise.
24859 * config/rs6000/sol-cn.asm: Likewise.
24860 * config/rs6000/spe.h: Likewise.
24861 * config/rs6000/spu2vmx.h: Likewise.
24862 * config/rs6000/sysv4.h: Likewise.
24863 * config/rs6000/tramp.asm: Likewise.
24864 * config/rs6000/vec_types.h: Likewise.
24865 * config/s390/linux-unwind.h: Likewise.
24866 * config/s390/tpf-unwind.h: Likewise.
24867 * config/score/crti.asm: Likewise.
24868 * config/score/crtn.asm: Likewise.
24869 * config/sh/crt1.asm: Likewise.
24870 * config/sh/crti.asm: Likewise.
24871 * config/sh/crtn.asm: Likewise.
24872 * config/sh/divtab-sh4-300.c: Likewise.
24873 * config/sh/divtab-sh4.c: Likewise.
24874 * config/sh/divtab.c: Likewise.
24875 * config/sh/lib1funcs-4-300.asm: Likewise.
24876 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24877 * config/sh/lib1funcs.asm: Likewise.
24878 * config/sh/lib1funcs.h: Likewise.
24879 * config/sh/linux-atomic.asm: Likewise.
24880 * config/sh/linux-unwind.h: Likewise.
24881 * config/sh/shmedia.h: Likewise.
24882 * config/sh/sshmedia.h: Likewise.
24883 * config/sh/ushmedia.h: Likewise.
24884 * config/sparc/crtfastmath.c: Likewise.
24885 * config/sparc/linux-unwind.h: Likewise.
24886 * config/sparc/sol2-c1.asm: Likewise.
24887 * config/sparc/sol2-ci.asm: Likewise.
24888 * config/sparc/sol2-cn.asm: Likewise.
24889 * config/spu/divmodti4.c: Likewise.
24890 * config/spu/divv2df3.c: Likewise.
24891 * config/spu/float_disf.c: Likewise.
24892 * config/spu/float_unsdidf.c: Likewise.
24893 * config/spu/float_unsdisf.c: Likewise.
24894 * config/spu/float_unssidf.c: Likewise.
24895 * config/spu/mfc_multi_tag_release.c: Likewise.
24896 * config/spu/mfc_multi_tag_reserve.c: Likewise.
24897 * config/spu/mfc_tag_release.c: Likewise.
24898 * config/spu/mfc_tag_reserve.c: Likewise.
24899 * config/spu/mfc_tag_table.c: Likewise.
24900 * config/spu/multi3.c: Likewise.
24901 * config/spu/spu_internals.h: Likewise.
24902 * config/spu/spu_intrinsics.h: Likewise.
24903 * config/spu/spu_mfcio.h: Likewise.
24904 * config/spu/vec_types.h: Likewise.
24905 * config/spu/vmx2spu.h: Likewise.
24906 * config/stormy16/stormy16-lib2.c: Likewise.
24907 * config/svr4.h: Likewise.
24908 * config/sync.c: Likewise.
24909 * config/v850/lib1funcs.asm: Likewise.
24910 * config/vxlib-tls.c: Likewise.
24911 * config/vxlib.c: Likewise.
24912 * config/vxworks-dummy.h: Likewise.
24913 * config/xtensa/crti.asm: Likewise.
24914 * config/xtensa/crtn.asm: Likewise.
24915 * config/xtensa/ieee754-df.S: Likewise.
24916 * config/xtensa/ieee754-sf.S: Likewise.
24917 * config/xtensa/lib1funcs.asm: Likewise.
24918 * config/xtensa/lib2funcs.S: Likewise.
24919 * config/xtensa/linux-unwind.h: Likewise.
24920 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24921 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24922 * coretypes.h: Likewise.
24923 * crtstuff.c: Likewise.
24924 * defaults.h: Likewise.
24925 * dwarf2.h: Likewise.
24926 * emutls.c: Likewise.
24927 * gbl-ctors.h: Likewise.
24928 * gcov-io.h: Likewise.
24929 * ginclude/float.h: Likewise.
24930 * ginclude/iso646.h: Likewise.
24931 * ginclude/stdarg.h: Likewise.
24932 * ginclude/stdbool.h: Likewise.
24933 * ginclude/stddef.h: Likewise.
24934 * ginclude/stdfix.h: Likewise.
24935 * ginclude/stdint-gcc.h: Likewise.
24936 * ginclude/tgmath.h: Likewise.
24937 * gthr-aix.h: Likewise.
24938 * gthr-dce.h: Likewise.
24939 * gthr-gnat.c: Likewise.
24940 * gthr-gnat.h: Likewise.
24941 * gthr-lynx.h: Likewise.
24942 * gthr-mipssde.h: Likewise.
24943 * gthr-nks.h: Likewise.
24944 * gthr-posix.c: Likewise.
24945 * gthr-posix.h: Likewise.
24946 * gthr-posix95.h: Likewise.
24947 * gthr-rtems.h: Likewise.
24948 * gthr-single.h: Likewise.
24949 * gthr-solaris.h: Likewise.
24950 * gthr-tpf.h: Likewise.
24951 * gthr-vxworks.h: Likewise.
24952 * gthr-win32.h: Likewise.
24953 * gthr.h: Likewise.
24954 * libgcc2.c: Likewise.
24955 * libgcc2.h: Likewise.
24956 * libgcov.c: Likewise.
24957 * tsystem.h: Likewise.
24958 * typeclass.h: Likewise.
24959 * unwind-c.c: Likewise.
24960 * unwind-compat.h: Likewise.
24961 * unwind-dw2-fde-compat.c: Likewise.
24962 * unwind-dw2-fde-darwin.c: Likewise.
24963 * unwind-dw2-fde-glibc.c: Likewise.
24964 * unwind-dw2-fde.c: Likewise.
24965 * unwind-dw2-fde.h: Likewise.
24966 * unwind-dw2.c: Likewise.
24967 * unwind-dw2.h: Likewise.
24968 * unwind-generic.h: Likewise.
24969 * unwind-pe.h: Likewise.
24970 * unwind-sjlj.c: Likewise.
24971 * unwind.inc: Likewise.
24972 * config/arm/neon-gen.ml: Change generated copyright header to
24973 refer to version 3 of the GNU General Public License with
24974 version 3.1 of the GCC Runtime Library Exception and to point
24975 readers at the COPYING3 and COPYING3.RUNTIME files and the
24976 FSF's license web page.
24977 * config/arm/arm_neon.h: Regenerate.
24979 2009-04-09 Jakub Jelinek <jakub@redhat.com>
24981 * config/cris/cris.md: Change copyright header to refer to version
24982 3 of the GNU General Public License.
24983 * doc/install.texi2html: Change copyright header to refer to version
24984 3 of the GNU General Public License and to point readers at the
24985 COPYING3 file and the FSF's license web page.
24986 * config/vax/linux.h: Likewise.
24988 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
24990 * config/i386/i386.md (cmpcc): New.
24991 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24992 (sync_compare_and_swap_cc*): Delete.
24994 * config/s390/s390.c (s390_compare_emitted): Remove.
24995 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24996 s390_compare_emitted used to be handled. Assert that modes match.
24997 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24998 refer to sync_compare_and_swap_ccsi.
24999 * config/s390/s390.h (s390_compare_emitted): Remove.
25000 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
25001 instead of s390_compare_emitted.
25002 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
25003 instead of s390_compare_emitted.
25004 * config/s390/s390.md (cmpcc): New.
25005 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
25006 CC_REGNUM, do not pretend it's set.
25007 (sync_compare_and_swap_cc*): Delete.
25008 * config/s390/predicates.md (cc_reg_operand): New.
25010 * expr.c (sync_compare_and_swap_cc): Delete.
25011 * optabs.h (sync_compare_and_swap_cc): Delete.
25012 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
25013 is being used with can_compare_p.
25014 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
25015 (find_cc_set): New.
25016 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
25017 look for a MODE_CC set instead. Use emit_store_flag.
25018 (expand_compare_and_swap_loop): Likewise, with some additional
25019 complication to avoid a force_reg when useless. Use
25020 emit_cmp_and_jump_insns.
25021 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
25022 * doc/md.texi (sync_compare_and_swap_cc): Merge with
25023 sync_compare_and_swap documentation.
25025 2009-04-09 Jan Hubicka <jh@suse.cz>
25027 * except.c (find_prev_try): Break out from ....
25028 (duplicate_eh_regions): ... here; properly update prev_try pointers
25029 when duplication part of tree.
25030 (dump_eh_tree): Improve dumping.
25031 (verify_eh_region): New.
25032 (verify_eh_tree): Use it.
25034 2009-04-06 Richard Guenther <rguenther@suse.de>
25036 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
25037 &ARRAY addresses by adjusting their types and prepending
25039 * tree-cfg.c (verify_gimple_assign_single): Verify that
25040 addresses are correct.
25042 2009-04-09 Richard Guenther <rguenther@suse.de>
25044 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
25045 indices into an array reference if possible.
25046 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
25047 Fold POINTER_PLUS_EXPR statements with invariant address.
25049 2009-04-09 Alan Modra <amodra@bigpond.net.au>
25052 * config.gcc (powerpc64-*-linux*): Always build biarch.
25054 2009-04-09 Joseph Myers <joseph@codesourcery.com>
25057 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
25058 it and pedwarn if this results in an INTEGER_CST.
25060 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25062 * doc/install.texi: Update minimum GMP version. Remove obsolete
25063 text in MPFR section.
25065 2009-04-08 Jakub Jelinek <jakub@redhat.com>
25067 * dwarf2out.c (class_scope_p): New static inline.
25068 (class_or_namespace_scope_p): Use it.
25069 (gen_variable_die): Use DW_TAG_member tag for static data member
25070 declarations instead of DW_TAG_variable.
25072 PR middle-end/39573
25073 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
25076 2009-04-08 Richard Guenther <rguenther@suse.de>
25078 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
25079 valueize random data.
25081 2009-04-08 David Edelsohn <edelsohn@gnu.org>
25083 * config.gcc (aix tm_file): Add aix-stdint.h.
25084 (aix tm clause use_gcc_stdint): Set to wrap.
25085 * config/rs6000/aix-stdint.h: New file.
25087 2009-04-08 Richard Guenther <rguenther@suse.de>
25089 PR middle-end/36291
25090 * tree-dfa.c (add_referenced_var): Do not recurse into
25091 global initializers.
25092 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
25094 (fold_const_aggregate_ref): Likewise.
25096 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
25098 * recog.c (ordered_comparison_operator): New.
25099 * gensupport.c (std_preds): Add it.
25100 * doc/md.texi (Machine-Independent Predicates): Document it.
25102 2009-04-08 Jan Hubicka <jh@suse.cz>
25104 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
25105 * function.h (rtl_eh): Remove exception_handler_label_map.
25106 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
25107 remove_exception_handler_label, for_each_eh_label_1): Remove.
25108 (rtl_remove_unreachable_regions): Remove.
25109 (convert_from_eh_region_ranges): Do not remove unreachable regions.
25110 (find_exception_handler_labels): Don't build the hashtable.
25111 (maybe_remove_eh_handler): Remove.
25112 (for_each_eh_label): Rewrite to walk the tree.
25113 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
25114 * except.h (maybe_remove_eh_handler): Remove.
25115 * passes.c (init_optimization_passes): Schedule second EH cleanup
25117 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
25118 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
25120 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
25122 * genoutput.c (validate_optab_operands): New.
25123 (gen_insn, gen_expand): Call it.
25125 * genflags.c (gen_insn): Detect misused iterators.
25126 (main): Pass line_no to gen_insn, exit with status 1 on error.
25128 * genextract.c (line_no): Make global.
25129 (VEC_safe_set_locstr): Change assertion to error message.
25130 (main): Exit with status 1 on error.
25132 2009-04-08 Joseph Myers <joseph@codesourcery.com>
25136 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25137 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25138 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
25139 * c-convert.c (convert): Do not call fold on results of conversion
25140 functions when the result is a C_MAYBE_CONST_EXPR.
25141 * c-parser.c (c_parser_postfix_expression): Do not fold condition
25142 of __builtin_choose_expr.
25143 * c-typeck.c (remove_c_maybe_const_expr): New.
25144 (build_unary_op, build_conditional_expr, build_compound_expr,
25145 build_binary_op, c_objc_common_truthvalue_conversion): Call
25146 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
25149 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
25151 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
25152 CODE to produce a new one. Add a prototype to use fold_convert_const
25154 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
25157 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
25158 mix declarations and code.
25160 2009-04-08 Ben Elliston <bje@au.ibm.com>
25162 * gcc.c: Replace `CC' with `GCC' throughout.
25164 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
25166 * doc/invoke.texi: Document Atom support.
25168 2009-04-07 Jason Merrill <jason@redhat.com>
25171 * c-common.h, c-common.c: Add flag_pretty_templates.
25172 * c-opts.c (c_common_handle_option): Set it.
25173 * c.opt: Add -fno-pretty-templates.
25174 * doc/invoke.texi (C++ Dialect Options): Likewise.
25176 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
25178 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
25179 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
25180 (ia64_expand_builtin): Likewise.
25182 2009-04-07 Martin Jambor <mjambor@suse.cz>
25184 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
25185 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
25186 ADDR_EXPRS are include too.
25188 2009-04-07 Richard Guenther <rguenther@suse.de>
25190 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
25191 decls are only used if passes as parameters or if they are
25192 local statics and the call is not to a builtin.
25193 (call_may_clobber_ref_p_1): Likewise.
25195 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
25197 * expr.c (do_store_flag): Remove last argument. Simplify code
25198 to avoid duplication of tests already done by can_compare_p.
25199 (expand_expr_real_1): Adjust caller.
25201 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
25203 * optabs.c (can_compare_p): Test the predicate of a
25204 cbranch and cstore pattern.
25206 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
25208 * expr.c (convert_move): Use emit_store_flag instead of
25211 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
25213 * config/i386/i386.c (ix86_compare_emitted): Remove.
25214 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
25215 ix86_compare_op0 like ix86_compare_emitted used to be handled.
25216 * config/i386/i386.h (ix86_compare_emitted): Remove.
25217 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
25218 instead of ix86_compare_emitted.
25219 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
25221 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
25223 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
25224 Add t-sysroot-suffix to tmake_file.
25225 * config/print-sysroot-suffix.sh: New file.
25226 * config/t-sysroot-suffix: New file.
25228 2009-04-07 Ben Elliston <bje@au.ibm.com>
25230 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
25231 as the latter produces a warning when the target does not support
25234 2009-04-07 Ben Elliston <bje@au.ibm.com>
25236 * dfp.c: Replace type punning assignments with memcpy throughout.
25237 * Makefile.in (dfp.o-warn): Remove.
25239 2009-04-07 Alan Modra <amodra@bigpond.net.au>
25242 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
25243 Include soft-fp/t-softfp after rs6000/t-linux64.
25245 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
25247 * stor-layout.c (set_sizetype): Use the full precision of their
25248 machine mode for bitsize types.
25250 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
25252 * config/i386/i386.md: Revert 2 accidental checkins.
25254 2009-04-06 Joey Ye <joey.ye@intel.com>
25255 Xuepeng Guo <xuepeng.guo@intel.com>
25256 H.J. Lu <hongjiu.lu@intel.com>
25258 Atom pipeline model, tuning and insn selection.
25259 * config.gcc (atom): Add atom config options and target.
25261 * config/i386/atom.md: New.
25263 * config/i386/i386.c (atom_cost): New cost.
25264 (m_ATOM): New macro flag.
25265 (initial_ix86_tune_features): Set m_ATOM.
25266 (x86_accumulate_outgoing_args): Likewise.
25267 (x86_arch_always_fancy_math_387): Likewise.
25268 (processor_target): Add Atom cost.
25269 (cpu_names): Add Atom cpu name.
25270 (override_options): Set Atom ISA.
25271 (ix86_issue_rate): New case PROCESSOR_ATOM.
25272 (ix86_adjust_cost): Likewise.
25274 * config/i386/i386.h (TARGET_ATOM): New target macro.
25275 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
25276 (TARGET_OPT_AGU): New target option.
25277 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
25278 (processor_type): Add PROCESSOR_ATOM.
25280 * config/i386/i386.md (cpu): Add new value "atom".
25281 (use_carry, movu): New attr.
25282 (atom.md): Include atom.md.
25283 (adddi3_carry_rex64): Set attr "use_carry".
25284 (addqi3_carry): Likewise.
25285 (addhi3_carry): Likewise.
25286 (addsi3_carry): Likewise.
25287 (*addsi3_carry_zext): Likewise.
25288 (subdi3_carry_rex64): Likewise.
25289 (subqi3_carry): Likewise.
25290 (subhi3_carry): Likewise.
25291 (subsi3_carry): Likewise.
25292 (x86_movdicc_0_m1_rex64): Likewise.
25293 (*x86_movdicc_0_m1_se): Likewise.
25294 (x86_movsicc_0_m1): Likewise.
25295 (*x86_movsicc_0_m1_se): Likewise.
25296 (*adddi_1_rex64): Emit add insn as much as possible.
25297 (*addsi_1): Likewise.
25298 (return_internal): Set atom_unit.
25299 (return_internal_long): Likewise.
25300 (return_pop_internal): Likewise.
25301 (*rcpsf2_sse): Set atom_sse_attr attr.
25302 (*qrt<mode>2_sse): Likewise.
25303 (*prefetch_sse): Likewise.
25305 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25307 (ix86_target_macros_internal): Likewise.
25309 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
25310 (*prefetch_sse_rex): Likewise.
25311 (sse_rcpv4sf2): Likewise.
25312 (sse_vmrcpv4sf2): Likewise.
25313 (sse_sqrtv4sf2): Likewise.
25314 (<sse>_vmsqrt<mode>2): Likewise.
25315 (sse_ldmxcsr): Likewise.
25316 (sse_stmxcsr): Likewise.
25317 (*sse_sfence): Likewise.
25318 (sse2_clflush): Likewise.
25319 (*sse2_mfence): Likewise.
25320 (*sse2_lfence): Likewise.
25321 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
25322 (<sse>_movup<ssemodesuffixf2c>): Likewise.
25323 (avx_movdqu<avxmodesuffix>): Likewise.
25324 (avx_lddqu<avxmodesuffix>): Likewise.
25325 (sse2_movntv2di): Change attr "type" to "ssemov".
25326 (sse2_movntsi): Likewise.
25327 (rsqrtv8sf2): Change attr "type" to "sseadd".
25328 (sse3_addsubv2df3): Set attr "atom_unit".
25329 (sse3_h<plusminus_insn>v4sf3): Likewise.
25330 (*sse2_pmaddwd): Likewise.
25331 (*vec_extractv2di_1_rex64): Likewise.
25332 (*vec_extractv2di_1_avx): Likewise.
25333 (sse2_psadbw): Likewise.
25334 (ssse3_phaddwv8hi3): Likewise.
25335 (ssse3_phaddwv4hi3): Likewise.
25336 (ssse3_phadddv4si3): Likewise.
25337 (ssse3_phadddv2si3): Likewise.
25338 (ssse3_phaddswv8hi3): Likewise.
25339 (ssse3_phaddswv4hi3): Likewise.
25340 (ssse3_phsubwv8hi3): Likewise.
25341 (ssse3_phsubwv4hi3): Likewise.
25342 (ssse3_phsubdv4si3): Likewise.
25343 (ssse3_phsubdv2si3): Likewise.
25344 (ssse3_phsubswv8hi3): Likewise.
25345 (ssse3_phsubswv4hi3): Likewise.
25346 (ssse3_pmaddubsw128): Likewise.
25347 (sse3_pmaddubsw: Likewise.
25348 (ssse3_palignrti): Likewise.
25349 (ssse3_palignrdi): Likewise.
25351 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
25353 * doc/install.texi (Specific): Fix two cross-references to MinGW.
25355 2009-04-06 Richard Guenther <rguenther@suse.de>
25357 PR tree-optimization/28868
25358 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
25359 of which PHI results we inserted.
25360 (insert_into_preds_of_block): Record inserted PHIs.
25361 (eliminate): Eliminate redundant PHI nodes.
25362 (init_pre): Init inserted_phi_names.
25364 2009-04-06 Richard Guenther <rguenther@suse.de>
25366 PR tree-optimization/39643
25367 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
25368 IMAGPART_EXPRs of complex constants.
25369 (execute_fold_all_builtins): If we folded a call queue
25370 TODO_update_address_taken.
25372 2009-04-06 Jan Hubicka <jh@suse.cz>
25374 PR middle-end/39659
25375 * except.c (remove_unreachable_regions): Propagate may_contain_throw
25378 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
25380 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
25382 (ic_invalidate_array): Likewise.
25384 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
25386 * calls.c (emit_library_call_value_1): Fix a problem with parameter
25387 alignment for library calls.
25389 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
25391 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
25392 (mingw32 tm clause use_gcc_stdint): Set to wrap.
25393 * config/i386/mingw-stdint.h: New file.
25395 2009-04-05 Richard Guenther <rguenther@suse.de>
25397 PR tree-optimization/39648
25398 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
25399 our &A vs. &A[0] IL deficiencies.
25401 2009-04-04 Jan Hubicka <jh@suse.cz>
25403 * except.c (sjlj_find_directly_reachable_regions): Be ready for
25404 removed toplevel regions.
25405 (sjlj_mark_call_sites): Likewise.
25407 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
25409 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
25410 (cygwin tm clause use_gcc_stdint): Set to wrap.
25411 * config/i386/cygwin-stdint.h: New file.
25413 2009-04-04 Richard Guenther <rguenther@suse.de>
25415 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
25416 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
25417 single-argument PHIs if we are in loop-closed SSA form.
25418 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
25419 for the pre-condition.
25420 (slpeel_tree_peel_loop_to_edge): Likewise.
25421 (vect_build_loop_niters): Take an optional sequence to append stmts.
25422 (vect_generate_tmps_on_preheader): Likewise.
25423 (vect_do_peeling_for_loop_bound): Take extra guards for the
25425 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
25426 the cost model check.
25427 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
25428 guards if we are going to peel. Do not apply versioning in that case.
25429 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
25430 (vect_do_peeling_for_loop_bound): Likewise.
25431 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
25432 loop bound only record extra pre-conditions, do not apply loop
25435 2009-04-04 Richard Guenther <rguenther@suse.de>
25437 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
25440 2009-04-04 Jan Hubicka <jh@suse.cz>
25442 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25443 last_basic_block for size of bb->index indexed array.
25444 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
25445 compute_out, link_btr_uses, build_btr_def_use_webs,
25446 build_btr_def_use_webs, migrate_btr_defs): Likewise.
25448 2009-04-04 Jan Hubicka <jh@suse.cz>
25450 * except.c (remove_eh_handler_and_replace): Break out from ...
25451 (remove_eh_handler): ... here.
25452 (bring_to_root): New function.
25453 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
25454 handled ones, bring others to root of tree.
25456 2009-04-04 Jan Hubicka <jh@suse.cz>
25458 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
25459 (all_phis_safe_to_merge): New function.
25460 (update_info): New structure.
25461 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
25462 (cleanup_empty_eh): Update SSA if possible.
25464 2009-04-04 Richard Guenther <rguenther@suse.de>
25466 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
25467 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
25468 (append_vuse): Likewise.
25470 2009-04-04 Jakub Jelinek <jakub@redhat.com>
25472 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
25473 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
25474 instead of REG_UNSAVED for DW_CFA_undefined.
25475 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
25476 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
25479 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
25482 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
25484 2009-04-04 Richard Guenther <rguenther@suse.de>
25486 PR tree-optimization/8781
25487 PR tree-optimization/37892
25488 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
25489 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
25490 (valueize_refs): Call it for *& valueizations.
25491 (shared_reference_ops_from_ref): Rename to ...
25492 (valueize_shared_reference_ops_from_ref): ... this and valueize.
25493 (shared_reference_ops_from_call): Rename to ...
25494 (valueize_shared_reference_ops_from_call): ... this and valueize.
25495 (vn_reference_lookup): Update.
25496 (visit_reference_op_call): Likewise.
25497 * tree-ssa-pre.c (phi_translate_1): Fold *&.
25498 (eliminate): Value-replace the call address in call statements.
25500 2009-04-04 Richard Guenther <rguenther@suse.de>
25502 PR tree-optimization/39636
25503 * tree-ssa-forwprop.c
25504 (forward_propagate_addr_into_variable_array_index): Check for
25505 GIMPLE_ASSIGN before accessing the rhs code.
25507 2009-04-03 Jason Merrill <jason@redhat.com>
25509 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25511 2009-04-03 Steve Ellcey <sje@cup.hp.com>
25513 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25514 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25515 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25516 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25517 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25518 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25519 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25520 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25521 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25522 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25523 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25524 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25525 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25526 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25527 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25528 Use fr_reg_or_fp01_operand instead of fr_register_operand
25530 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25531 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25532 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25534 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
25536 PR rtl-optimization/39607
25537 PR rtl-optimization/39631
25541 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
25542 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25543 instead of DF_LR_OUT.
25544 * ira-lives.c (process_bb_node_lives): Ditto.
25545 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25546 instead of DF_LR_{OUT,IN}.
25547 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25548 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25550 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
25552 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25553 (execute_lower_omp): Always run but take the short way out if -fopenmp
25555 (gate_lower_omp): Remove, forcing the pass manager to always run the
25556 pass and always set PROP_gimple_lomp.
25557 (pass_lower_omp): Remove gate function.
25558 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25559 PROP_trees. Instead, require it.
25560 * ipa-cp.c (pass_ipa_cp): Likewise.
25561 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25562 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25563 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25564 and PROP_gimple_leh.
25566 2009-04-03 Richard Guenther <rguenther@suse.de>
25568 PR middle-end/13146
25569 PR tree-optimization/23940
25570 PR tree-optimization/33237
25571 PR middle-end/33974
25572 PR middle-end/34093
25573 PR tree-optimization/36201
25574 PR tree-optimization/36230
25575 PR tree-optimization/38049
25576 PR tree-optimization/38207
25577 PR tree-optimization/38230
25578 PR tree-optimization/38301
25579 PR tree-optimization/38585
25580 PR middle-end/38895
25581 PR tree-optimization/38985
25582 PR tree-optimization/39299
25583 * tree-ssa-structalias.h: Remove.
25584 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25585 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25586 (struct vuse_element_d): Remove.
25587 (struct vuse_vec_d): Likewise.
25588 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25589 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25590 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25591 VUSE_ELEMENT_VAR): Likewise.
25592 (struct voptype_d): Likewise.
25593 (NUM_VOP_FREE_BUCKETS): Likewise.
25594 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25595 (struct stmt_operands_d): Remove.
25596 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25597 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25598 VDEF_NUM, VDEF_VECT): Likewise.
25599 (copy_virtual_operands): Remove.
25600 (operand_build_cmp): Likewise.
25601 (create_ssa_artificial_load_stmt): Likewise.
25602 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25603 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25604 vuse_index and mayuse_index members. Pack and move done and iter_type
25605 members to the front.
25606 (SSA_OP_VMAYUSE): Remove.
25607 (SSA_OP_VIRTUAL_USES): Adjust.
25608 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25609 (unlink_stmt_vdef): Declare.
25610 (add_to_addressable_set): Remove.
25611 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25612 (vrp_visit_stmt): Likewise.
25613 * doc/tree-ssa.texi (Alias analysis): Update.
25614 * doc/invoke.texi (max-aliased-vops): Remove docs.
25615 (avg-aliased-vops): Likewise.
25616 * tree-into-ssa.c (syms_to_rename): Remove.
25617 (need_to_update_vops_p): Likewise.
25618 (need_to_initialize_update_ssa_p): Rename to ...
25619 (update_ssa_initialized_fn): ... this. Track function we are
25621 (symbol_marked_for_renaming): Simplify.
25622 (add_new_name_mapping): Do not set need_to_update_vops_p.
25623 (dump_currdefs): Use SYMS_TO_RENAME.
25624 (rewrite_update_stmt): Always walk all uses/defs.
25625 (dump_update_ssa): Adjust.
25626 (init_update_ssa): Take function argument. Track what we are
25628 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25629 (create_new_def_for): Initialize for cfun, assert we are initialized
25631 (mark_sym_for_renaming): Simplify.
25632 (mark_set_for_renaming): Do not initialize update-ssa.
25633 (need_ssa_update_p): Simplify. Take function argument.
25634 (name_mappings_registered_p): Assert we ask for the correct function.
25635 (name_registered_for_update_p): Likewise.
25636 (ssa_names_to_replace): Likewise.
25637 (release_ssa_name_after_update_ssa): Likewise.
25638 (update_ssa): Likewise. Use SYMS_TO_RENAME.
25639 (dump_decl_set): Do not print a newline.
25640 (debug_decl_set): Do it here.
25641 (dump_update_ssa): And here.
25642 * tree-ssa-loop-im.c (move_computations): Adjust.
25643 (movement_possibility): Likewise.
25644 (determine_max_movement): Likewise.
25645 (gather_mem_refs_stmt): Likewise.
25646 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25647 or NAME_MEMORY_TAG.
25648 * tree-complex.c (update_all_vops): Remove.
25649 (expand_complex_move): Adjust.
25650 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25651 Simplify test for memory referencing statement. Exclude
25652 non-invariant ADDR_EXPRs.
25653 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25654 * tree-loop-distribution.c (generate_memset_zero): Adjust.
25655 (rdg_flag_uses): Likewise.
25656 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25658 (tree_optimize_tail_calls_1): Also split the
25659 edge from the entry block if we have degenerate PHI nodes in
25660 the first basic block.
25661 * tree.c (init_ttree): Remove memory-tag related code.
25662 (tree_code_size): Likewise.
25663 (tree_node_structure): Likewise.
25664 (build7_stat): Re-write to be build6_stat.
25665 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25666 (SSA_VAR_P): Adjust.
25667 (struct tree_memory_tag): Remove.
25668 (struct tree_memory_partition_tag): Likewise.
25669 (union tree_node): Adjust.
25670 (build7): Re-write to be build6.
25671 * tree-pass.h (pass_reset_cc_flags): Remove.
25672 (TODO_update_address_taken): New flag.
25673 (pass_simple_dse): Remove.
25674 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25675 * params.h (MAX_ALIASED_VOPS): Remove.
25676 (AVG_ALIASED_VOPS): Likewise.
25677 * omp-low.c (expand_omp_taskreg): Update SSA form.
25678 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25679 aliases the lhs in a copy stmt.
25680 * tree-ssa-dse.c (struct address_walk_data): Remove.
25681 (memory_ssa_name_same): Likewise.
25682 (memory_address_same): Likewise.
25683 (get_kill_of_stmt_lhs): Likewise.
25684 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
25685 unused stores. Look through PHI nodes into post-dominated regions.
25686 (dse_optimize_stmt): Simplify. Properly remove stores.
25687 (tree_ssa_dse): Compute dominators.
25688 (execute_simple_dse): Remove.
25689 (pass_simple_dse): Likewise.
25690 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25691 gimple_loaded_syms and gimple_stored_syms computation.
25692 * toplev.c (dump_memory_report): Dump alias and pta stats.
25693 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25694 (vn_reference_eq): Likewise.
25695 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25696 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25697 valueize_vuses): Remove.
25698 (get_def_ref_stmt_vuses): Simplify. Rename to ...
25699 (get_def_ref_stmt_vuse): ... this.
25700 (vn_reference_lookup_2): New function.
25701 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25702 walking equivalent vuses. Simplify.
25703 (vn_reference_lookup): Likewise.
25704 (vn_reference_insert): Likewise.
25705 (vn_reference_insert_pieces): Likewise.
25706 (visit_reference_op_call): Simplify.
25707 (visit_reference_op_load): Likewise.
25708 (visit_reference_op_store): Likewise.
25709 (init_scc_vn): Remove shared_lookup_vuses initialization.
25710 (free_scc_vn): Remove shared_lookup_vuses freeing.
25711 (sort_vuses, sort_vuses_heap): Remove.
25712 (get_ref_from_reference_ops): Export.
25713 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25714 vector with single vuse pointer.
25715 (vn_reference_lookup_pieces, vn_reference_lookup,
25716 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25717 (shared_vuses_from_stmt): Remove.
25718 (get_ref_from_reference_ops): Declare.
25719 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25720 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25721 memory-tag related code.
25722 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25723 (likely_value): Add comment, skip static-chain of call statements.
25724 (surely_varying_stmt_p): Adjust.
25725 (gimplify_and_update_call_from_tree): Likewise.
25726 (execute_fold_all_builtins): Do not rebuild alias info.
25727 (gimplify_and_update_call_from_tree): Properly update VOPs.
25728 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25729 (copy_ref_info): Remove memory-tag related code.
25730 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25731 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25732 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25734 * tree-ssa-dom.c (gimple_p): Remove typedef.
25735 (eliminate_redundant_computations): Adjust.
25736 (record_equivalences_from_stmt): Likewise.
25737 (avail_expr_hash): Likewise.
25738 (avail_expr_eq): Likewise.
25739 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25740 (stmt_makes_single_load): Likewise.
25741 (stmt_makes_single_store): Likewise.
25742 * tree-ssa-alias.c: Rewrite completely.
25743 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25744 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25745 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25746 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25747 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25748 Remove public functions.
25749 (pass_reset_cc_flags): Remove.
25750 (pass_build_alias): Move ...
25751 * tree-ssa-structalias.c (pass_build_alias): ... here.
25752 * tree-ssa-alias.c (may_be_aliased): Move ...
25753 * tree-flow-inline.h (may_be_aliased): ... here.
25754 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25755 count_uses_and_derefs): Move ...
25756 * gimple.c: ... here.
25757 * gimple.h (count_uses_and_derefs): Declare.
25758 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25759 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25760 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25761 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25762 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25763 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25764 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25766 * tree-dfa.c (refs_may_alias_p): Move ...
25767 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
25768 * tree-ssa-alias.h: New file.
25769 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25770 (statement_sink_location): Likewise.
25771 * opts.c (decode_options): Do not adjust max-aliased-vops or
25772 avg-aliased-vops values.
25773 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25774 (TV_CALL_CLOBBER): Likewise.
25775 (TV_FLOW_SENSITIVE): Likewise.
25776 (TV_FLOW_INSENSITIVE): Likewise.
25777 (TV_MEMORY_PARTITIONING): Likewise.
25778 (TV_ALIAS_STMT_WALK): New timevar.
25779 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25780 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25781 (get_address_description): Remove memory-tag related code.
25782 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25783 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25784 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25785 and immediate uses in statements. Document.
25786 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25787 (dump_symbols): Remove.
25788 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25789 * alias.c (get_deref_alias_set): New function split out from ...
25790 (get_alias_set): ... here.
25791 * alias.h (get_deref_alias_set): Declare.
25792 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25793 type parameter. Remove restrict pointer handling. Create a
25794 ref-all pointer in case type-based alias sets do not conflict.
25795 (vect_analyze_data_refs): Remove SMT related code.
25796 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25797 (vectorizable_load): Likewise.
25798 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25799 (DR_SYMBOL_TAG, DR_VOPS): Remove.
25800 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25801 Ignore vops and SMTs.
25802 (dr_analyze_alias): Likewise..
25803 (free_data_ref): Likewise.
25804 (create_data_ref): Likewise.
25805 (analyze_all_data_dependences): Likewise.
25806 (get_references_in_stmt): Adjust.
25807 * tree-flow-inline.h (gimple_aliases_computed_p,
25808 gimple_addressable_vars, gimple_call_clobbered_vars,
25809 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25810 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25811 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25812 gimple_mem_ref_stats): Remove.
25813 (gimple_vop): New function.
25814 (op_iter_next_use): Remove vuses and mayuses cases.
25815 (op_iter_next_def): Remove vdefs case.
25816 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25817 (clear_and_done_ssa_iter): Do not set removed fields.
25818 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
25819 Assert we are not iterating over vuses or vdefs if not also
25820 iterating over uses or defs.
25821 (op_iter_init_use): Likewise.
25822 (op_iter_init_def): Likewise.
25823 (op_iter_next_vdef): Remove.
25824 (op_iter_next_mustdef): Likewise.
25825 (op_iter_init_vdef): Likewise.
25826 (compare_ssa_operands_equal): Likewise.
25827 (link_use_stmts_after): Handle vuse operand.
25828 (is_call_used): Use is_call_clobbered.
25829 (is_call_clobbered): Global variables are always call clobbered,
25830 query the call-clobbers bitmap.
25831 (mark_call_clobbered): Ignore global variables.
25832 (clear_call_clobbered): Likewise.
25833 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25834 virtual operands sanity check.
25835 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25837 (TARGET_MEM_REF): Remove TMR_TAG operand.
25838 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25839 Remove call-clobber related code.
25840 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
25841 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25842 partitions or escape reason.
25843 (get_single_def_stmt, get_single_def_stmt_from_phi,
25844 get_single_def_stmt_with_phi): Remove.
25845 (dump_referenced_vars): Tidy.
25846 (get_ref_base_and_extent): Allow bare decls.
25847 (collect_dfa_stats): Adjust.
25848 * graphite.c (rename_variables_in_stmt): Adjust.
25849 (graphite_copy_stmts_from_block): Likewise.
25850 (translate_clast): Likewise.
25851 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25853 (translate_vuse_through_block): Use the oracle.
25854 (phi_translate_1): Adjust.
25855 (value_dies_in_block_x): Use the oracle. Cache the outcome
25857 (valid_in_sets): Check if the VUSE for
25858 a REFERENCE is available.
25859 (eliminate): Do not remove stmts during elimination,
25860 instead queue and remove them afterwards.
25861 (do_pre): Do not rebuild alias info.
25862 (pass_pre): Run TODO_rebuild_alias before PRE.
25863 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25864 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25865 (mark_all_v_defs_stmt): Remove.
25866 (mark_all_v_defs_seq): Adjust.
25867 (sra_replace): Likewise.
25868 (scalarize_use): Likewise.
25869 (scalarize_copy): Likewise.
25870 (scalarize_init): Likewise.
25871 (scalarize_ldst): Likewise.
25872 (todoflags): Remove.
25873 (tree_sra): Do not rebuild alias info.
25874 (tree_sra_early): Adjust.
25875 (pass_sra): Run TODO_update_address_taken before SRA.
25876 * tree-predcom.c (set_alias_info): Remove.
25877 (prepare_initializers_chain): Do not call it.
25878 (mark_virtual_ops_for_renaming): Adjust.
25879 (mark_virtual_ops_for_renaming_list): Remove.
25880 (initialize_root_vars): Adjust.
25881 (initialize_root_vars_lm): Likewise.
25882 (prepare_initializers_chain): Likewise.
25883 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25884 (may_propagate_copy_into_stmt): Likewise.
25885 (merge_alias_info): Do nothing for now.
25886 (propagate_tree_value_into_stmt): Adjust.
25887 (stmt_may_generate_copy): Likewise.
25888 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25889 not mark symbols for renaming.
25890 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25891 with the same statement, make sure to update the new pointed-to one.
25892 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25893 call statements, do not mark symbols for renaming.
25894 (mark_operand_necessary): Dump something.
25895 (ref_may_be_aliased): New function.
25896 (mark_aliased_reaching_defs_necessary_1): New helper function.
25897 (mark_aliased_reaching_defs_necessary): Likewise.
25898 (mark_all_reaching_defs_necessary_1): Likewise.
25899 (mark_all_reaching_defs_necessary): Likewise.
25900 (propagate_necessity): Do not process virtual PHIs. For
25901 non-aliased loads mark all reaching definitions as necessary.
25902 For aliased loads and stores mark the immediate dominating
25903 aliased clobbers as necessary.
25904 (visited): New global static.
25905 (perform_tree_ssa_dce): Free visited bitmap after propagating
25907 (remove_dead_phis): Perform simple dead virtual PHI removal.
25908 (remove_dead_stmt): Properly unlink virtual operands when
25910 (eliminate_unnecessary_stmts): Schedule PHI removal after
25912 * tree-ssa-ter.c (is_replaceable_p): Adjust.
25913 (process_replaceable): Likewise.
25914 (find_replaceable_in_bb): Likewise.
25915 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25916 based on the single gimple vop.
25917 (verify_flow_insensitive_alias_info): Remove.
25918 (verify_flow_sensitive_alias_info): Likewise.
25919 (verify_call_clobbering): Likewise.
25920 (verify_memory_partitions): Likewise.
25921 (verify_alias_info): Likewise.
25922 (verify_ssa): Adjust..
25923 (execute_update_addresses_taken): Export. Update SSA
25924 manually. Optimize only when optimizing. Use a local bitmap.
25925 (pass_update_address_taken): Remove TODO_update_ssa, add
25927 (pass_update_address_taken): Just use TODO_update_address_taken.
25928 (init_tree_ssa): Do not initialize addressable_vars.
25929 (verify_ssa): Verify new VUSE / VDEF properties.
25930 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25931 Do not call verify_alias_info.
25932 (delete_tree_ssa): Clear the VUSE, VDEF operands.
25933 Do not free the loaded and stored syms bitmaps. Reset the escaped
25934 and callused solutions. Do not free addressable_vars.
25935 Remove memory-tag related code.
25936 (warn_uninitialized_var): Aliases are always available.
25937 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25938 * lambda-code.c (can_put_in_inner_loop): Adjust.
25939 (can_put_after_inner_loop): Likewise.
25940 (perfect_nestify): Likewise.
25941 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25942 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25943 (vectorizable_conversion): Do not mark symbols for renaming.
25944 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25945 (expand_call_inline): Unlink the calls virtual operands before
25947 (tree_function_versioning): Do not call update_ssa if we are not
25948 updating clones. Simplify.
25949 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25950 (propagate_with_phi): Likewise..
25951 * tree-outof-ssa.c (create_temp): Remove memory tag and call
25952 clobber code. Assert we are not aliased or global.
25953 * tree-flow.h: Include tree-ssa-alias.h
25954 (enum escape_type): Remove.
25955 (struct mem_sym_stats_d): Likewise.
25956 (struct mem_ref_stats_d): Likewise.
25957 (struct gimple_df): Add vop member. Remove global_var,
25958 call_clobbered_vars, call_used_vars, addressable_vars,
25959 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
25960 escaped and callused members.
25961 (struct ptr_info_def): Remove all members, add points-to solution
25963 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25964 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25965 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25966 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25967 (tree-ssa-alias.o): Likewise.
25968 (toplev.o): Add tree-ssa-alias.h
25969 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25970 * gimple.c (gimple_set_bb): Fix off-by-one error.
25971 (is_gimple_reg): Do not handle memory tags.
25972 (gimple_copy): Also copy virtual operands.
25973 Delay updating the statement. Do not reset loaded and stored syms.
25974 (gimple_set_stored_syms): Remove.
25975 (gimple_set_loaded_syms): Likewise.
25976 (gimple_call_copy_skip_args): Copy the virtual operands
25977 and mark the new statement modified.
25978 * tree-ssa-structalias.c (may_alias_p): Remove.
25979 (set_uids_in_ptset): Take the alias set to prune with as
25980 parameter. Fold in the alias test of may_alias_p.
25981 (compute_points_to_sets): Compute whether a ptr is dereferenced
25982 in a local sbitmap.
25983 (process_constraint): Deal with &ANYTHING on the lhs, reject all
25984 other ADDRESSOF constraints on the lhs.
25985 (get_constraint_for_component_ref): Assert that we don't get
25986 ADDRESSOF constraints from the base of the reference.
25987 Properly generate UNKNOWN_OFFSET for DEREF if needed.
25988 (struct variable_info): Remove collapsed_to member.
25989 (get_varinfo_fc): Remove.
25990 (new_var_info): Do not set collapsed_to.
25991 (dump_constraint): Do not follow cycles.
25992 (dump_constraint_graph): Likewise.
25993 (build_pred_graph): Likewise.
25994 (build_succ_graph): Likewise.
25995 (rewrite_constraints): Likewise.
25996 (do_simple_structure_copy): Remove.
25997 (do_rhs_deref_structure_copy): Remove.
25998 (do_lhs_deref_structure_copy): Remove.
25999 (collapse_rest_of_var): Remove.
26000 (do_structure_copy): Re-implement.
26001 (pta_stats): New global variable.
26002 (dump_pta_stats): New function.
26003 (struct constraint_expr): Make offset signed.
26004 (UNKNOWN_OFFSET): Define special value.
26005 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
26006 (solution_set_expand): New helper function split out from ...
26007 (do_sd_constraint): ... here.
26008 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
26009 (do_ds_constraint): Likewise.
26010 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
26011 and CALLUSED = *CALLUSED.
26012 (set_union_with_increment): Make inc argument signed.
26013 (type_safe): Remove.
26014 (get_constraint_for_ptr_offset): Handle unknown and negative
26016 (first_vi_for_offset): Handle offsets before start. Bail
26017 out early for offsets beyond the variable extent.
26018 (first_or_preceding_vi_for_offset): New function.
26019 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
26020 Together with ESCAPED = *ESCAPED this properly computes reachability.
26021 (find_what_var_points_to): New function.
26022 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
26023 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
26024 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
26025 pt_solutions_intersect): New functions.
26026 (compute_call_used_vars): Remove.
26027 (compute_may_aliases): New main entry into PTA computation.
26028 * gimple.h (gimple_p): New typedef.
26029 (struct gimple_statement_base): Remove references_memory_p.
26030 (struct gimple_statement_with_memory_ops_base): Remove
26031 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
26033 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
26034 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
26035 gimple_set_references_memory): Remove.
26036 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
26037 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
26039 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
26040 (verify_expr): Allow RESULT_DECL.
26041 (gimple_duplicate_bb): Do not copy virtual operands.
26042 (gimple_duplicate_sese_region): Adjust.
26043 (gimple_duplicate_sese_tail): Likewise.
26044 (mark_virtual_ops_in_region): Remove.
26045 (move_sese_region_to_fn): Do not call it.
26046 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
26047 and pass_simple_dse.
26048 (execute_function_todo): Handle TODO_update_address_taken,
26049 call execute_update_addresses_taken for TODO_rebuild_alias.
26050 (execute_todo): Adjust.
26051 (execute_one_pass): Init dump files early.
26052 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
26054 (create_general_new_stmt): Clear vops.
26055 * tree-ssa-reassoc.c (get_rank): Adjust.
26056 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
26057 symbols for renaming.
26058 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
26059 (PARAM_AVG_ALIASED_VOPS): Likewise.
26060 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
26061 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
26062 * tree-ssa-operands.c: Simplify for new virtual operand representation.
26063 (operand_build_cmp, copy_virtual_operands,
26064 create_ssa_artificial_load_stmt, add_to_addressable_set,
26065 gimple_add_to_addresses_taken): Remove public functions.
26066 (unlink_stmt_vdef): New function.
26068 2009-04-03 Alan Modra <amodra@bigpond.net.au>
26070 * config.gcc (powerpc-*-linux*): Merge variants.
26072 2009-04-02 Chao-ying Fu <fu@mips.com>
26073 James Grosbach <james.grosbach@microchip.com>
26075 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
26076 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
26078 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
26079 keep_interrupts_masked_p, use_debug_exception_return_p.
26080 (mips_attribute_table): Add interrupt, use_shadow_register_set,
26081 keep_interrupts_masked, use_debug_exception_return.
26082 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
26083 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
26085 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
26086 (mips_print_operand): Process COP0 registers to print $0 .. $31
26087 correctly for GAS to process.
26088 (mips_interrupt_extra_call_saved_reg_p): New function.
26089 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
26091 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
26092 (mips_compute_frame_info): Add supports for interrupt context that
26093 includes doubleword accumulators and COP0 registers.
26094 (mips_for_each_saved_acc): New function.
26095 (mips_for_each_saved_gpr_and_fpr): Change the function name from
26096 mips_for_each_saved_reg.
26097 (mips_save_reg): Save accumulators.
26098 (mips_kernel_reg_p): A new for_each_rtx callback.
26099 (mips_expand_prologue): Support interrupt handlers.
26100 (mips_restore_reg): Restore accumulators.
26101 (mips_expand_epilogue): Support interrupt handlers.
26102 (mips_can_use_return_insn): Return false for interrupt handlers.
26103 (mips_epilogue_uses): New function.
26104 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
26105 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
26106 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
26107 cop0_move): New instructions.
26108 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
26109 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
26111 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
26113 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
26114 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
26115 interrupt handlers, we use K0 as the temporary register.
26116 (EPILOGUE_USES): Change to a function call.
26117 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
26118 handlers, we use K0 as the temporary register.
26120 * doc/extend.texi (Function Attributes): Document interrupt,
26121 use_shadow_register_set, keep_interrupts_masked,
26122 use_debug_exception_return for MIPS attributes.
26124 2009-04-03 Alan Modra <amodra@bigpond.net.au>
26126 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
26127 Remove a number of t-files from tmake_file.
26128 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
26129 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
26130 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
26131 target_prototype, not TARGET_PROTOTYPE.
26132 (LINK_OS_GNU_SPEC): Define.
26133 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
26134 and darwin-ldoubdle.c.
26136 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26139 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
26140 (cpp_options): Ditto.
26141 (default_compilers): Ditto.
26142 (display_help): Ditto.
26143 (process_command): Ditto.
26144 (do_spec_1): Ditto.
26145 (set_input): Use lbasename instead of duplicate code.
26146 (save_temps_prefix): New static for -save-temps=obj.
26147 (save_temps_length): Ditto.
26149 * doc/invoke.texi (-save-temps=obj): Document new variant to
26150 -save-temps switch.
26152 2009-04-02 Jeff Law <law@redhat.com>
26154 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
26157 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
26159 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
26160 * configure: Regenerated.
26162 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
26164 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
26165 share the argument list.
26167 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
26171 2009-02-12 Diego Novillo <dnovillo@google.com>
26173 * varpool.c (debug_varpool): New.
26174 * cgraph.h (debug_varpool): Declare.
26176 2009-04-02 Jan Hubicka <jh@suse.cz>
26178 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
26181 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
26183 * config/i386/i386.c (ix86_abi): Move initialization to ...
26184 (override_options): Here.
26186 2009-04-02 Christian Bruel <christian.bruel@st.com>
26188 * config/sh/sh.c (sh_dwarf_register_span): New function.
26189 (TARGET_DWARF_REGISTER_SPAN): Define.
26190 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
26192 2009-04-02 Ira Rosen <irar@il.ibm.com>
26194 PR tree-optimization/39595
26195 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
26196 interleaved loads group is not greater than the SLP group size.
26198 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
26200 * builtins.c (is_builtin_name): New.
26201 (called_as_built_in): Use is_builtin_name.
26202 * tree.h (is_builtin_name): New.
26203 * varasm.c (incorporeal_function_p): Use is_builtin_name
26205 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
26207 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
26209 2009-04-02 Dodji Seketeli <dodji@redhat.com>
26212 * c-decl.c (clone_underlying_type): Move this ...
26213 * c-common.c (set_underlying_type): ... here.
26214 Also, make sure the function properly sets TYPE_STUB_DECL() on
26215 the newly created typedef variant type.
26216 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
26217 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
26220 2009-04-02 Richard Guenther <rguenther@suse.de>
26222 PR tree-optimization/37221
26223 * tree-flow.h (degenerate_phi_result): Declare.
26224 * tree-ssa-dom.c (degenerate_phi_result): Export.
26225 * tree-scalar-evolution.c (analyze_initial_condition): If
26226 the initial condition is defined by a degenerate PHI node
26227 use the degenerate value.
26229 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
26231 PR rtl-optimization/39588
26232 * combine.c (merge_outer_ops): Do not set the constant when this
26234 (simplify_shift_const_1): Do not modify it either in this case.
26236 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
26238 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
26239 tuning is deprecated if -mtune value is set to an Itanium1 variant.
26241 2009-04-01 Janis Johnson <janis187@us.ibm.com>
26244 * c-lex.c (interpret_float): Default (no suffix) is double.
26246 2009-04-1 Xinliang David Li <davidxl@google.com>
26248 * config/i386/i386.c (legitimate_constant_p): Recognize
26249 all one vector constant.
26251 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26253 * config/vax/vax.c: Add #includes to silence warnings.
26254 Change #include order to silence two warnings.
26256 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26258 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
26259 (ASM_SPEC): Pass -k to the assembler for PIC code.
26261 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26263 * config.gcc: Add vax-*-linux* to the switch.
26264 * config/vax/linux.h: New file. (TARGET_VERSION,
26265 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
26267 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26269 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
26270 Use predicate macros instead of GET_CODE() == foo.
26271 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
26272 ashlsi3, rotrsi3, <unnamed>): Likewise.
26274 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26276 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
26277 jbbccihi, jbbccisi): Remova trailing whitespace.
26278 * config/vax/constraints.md: Likewise.
26279 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
26280 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
26281 * config/vax/predicates.md: Likewise.
26282 * config/vax/vax.c (print_operand_address, vax_output_int_move,
26283 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
26284 * config/vax/vax.h: Likewise.
26285 * config/vax/vax.md (nonlocal_goto): Likewise.
26287 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26289 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
26290 (indirectable_address_p, adjacent_operands_p): Add spaces around
26292 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
26294 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26296 * config/vax/vax.c (legitimate_constant_address_p,
26297 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
26298 index_term_p, reg_plus_index_p, legitimate_address_p,
26299 vax_mode_dependent_address_p): Update comments to match functions
26300 modified by the recent int->bool conversion.
26302 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26304 * config/vax/builtins.md: Update copyright message.
26305 * config/vax/constraints.md: Likewise.
26306 * config/vax/netbsd-elf.h: Likewise.
26307 * config/vax/predicates.md: Likewise.
26308 * config/vax/vax-protos.h: Likewise.
26309 * config/vax/vax.c: Likewise.
26310 * config/vax/vax.h: Likewise.
26311 * config/vax/vax.md: Likewise.
26312 * config/vax/vax.opt: Likewise.
26314 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
26316 * config/vax/builtins.md (ffssi2, ffssi2_internal,
26317 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
26318 * config/vax/constraints.md (B, R): Likewise.
26319 * config/vax/predicates.md (external_memory_operand,
26320 nonimmediate_addsub_di_operand): Likewise.
26321 * config/vax/vax.c (vax_output_int_add): Likewise.
26322 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
26323 untyped_call): Likewise.
26325 2009-04-01 Matt Thomas <matt@3am-software.com>
26327 * config/vax/predicates.md: New file.
26328 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
26329 external_const_operand, nonsymbolic_operand, external_memory_operand,
26330 indirect_memory_operand, indexed_memory_operand,
26331 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
26332 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
26334 * config/vax/constraints.md: New file.
26335 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
26337 * config/vax/builtins.md: New file.
26338 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
26339 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
26341 * config/vax/vax.opt (mqmath): Add option.
26342 * config/vax/vax.md (isfx): Extend with DI.
26343 (VAXintQH, VAXintQHSD): Define.
26344 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
26345 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
26346 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
26347 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
26348 (movdi): Update constraints and use vax_output_int_move().
26349 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
26350 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
26351 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
26352 nonlocal_goto): New.
26353 (mov<mode>): Extend accepted operand types.
26354 (subdi3_old): Rename from subdi3, change update constraints and use
26355 a new implementation.
26356 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
26357 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
26358 MOVE_RATIO, CLEAR_RATIO): Define.
26359 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
26360 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
26361 (PRINT_OPERAND): Redefine using a function instead of inlined code.
26362 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
26363 (split_quadword_operands): Make static and really allow variable
26365 (print_operand_address): Update for PIC generation.
26366 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
26367 indexable_address_p, fixup_mathdi_operand,
26368 vax_expand_addsub_di_operands, adjacent_operands_p): New.
26369 (vax_float_literal, legitimate_constant_p,
26370 indirectable_constant_address_p, index_term_p,
26371 reg_plus_index_p): Return bool instead of int.
26372 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
26374 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
26376 (vax_output_conditional_branch): Indent.
26377 (legitimate_constant_address_p, indirectable_constant_address_p,
26378 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
26379 vax_mode_dependent_address_p): Return bool instead of int, update for
26381 * config/vax/vax-protos.h (legitimate_constant_address_p,
26382 legitimate_constant_p, legitimate_address_p,
26383 vax_mode_dependent_address_p): Change declaration to bool.
26384 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
26385 vax_expand_addsub_di_operands, vax_output_int_subtract,
26386 vax_output_movmemsi): Declare.
26387 (split_quadword_operands, vax_float_literal): Delete declaration.
26388 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
26389 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
26390 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
26391 ASM_OUTPUT_DWARF_PCREL): Define.
26392 (ASM_SPEC): Change definition to allow PIC generation.
26394 2009-04-01 Steve Ellcey <sje@cup.hp.com>
26396 * doc/sourcebuild.texi: Update front-end requirements.
26398 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26401 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
26402 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
26403 (booldi3_internal3): Use boolean_or_operator instead of
26406 2009-04-01 Joseph Myers <joseph@codesourcery.com>
26409 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
26410 declarator whose size is not an integer constant expression but
26411 folds to an integer constant, then treat it as a constant
26414 2009-04-01 Richard Guenther <rguenther@suse.de>
26416 * fold-const.c (fold_plusminus_mult_expr): Do not fold
26417 i * 4 + 2 to (i * 2 + 1) * 2.
26419 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26422 * c-parser.c (c_parser_asm_statement): Skip until close paren and
26423 return if c_parser_asm_string_literal returned NULL.
26425 2009-04-01 Nick Clifton <nickc@redhat.com>
26427 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
26429 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
26430 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
26431 other typedefs to avoid conflicts with libgcc2.c. Define labels
26432 to gain 16-bit bit-manipulation functions from libgcc2.c and then
26434 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
26435 to gain 16-bit trapping arithmetic functions from libgcc2.c and
26438 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
26440 * varasm.c (default_function_rodata_section): Declare DOT as
26443 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
26444 Andrey Galkin <agalkin@hypercom.com>
26447 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
26448 Make object_name unique for each process.
26450 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26453 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
26454 addressable variables in the parallel that could go out of scope while
26455 running queued tasks.
26457 2009-04-01 Anatoly Sokolov <aesok@post.ru>
26459 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
26460 (CASE_VALUES_THRESHOLD): Redefine.
26461 * config/avr/avr.c (avr_override_options): Remove initialization of
26462 avr_case_values_threshold variable.
26463 (avr_case_values_threshold): Remove variable. Add new function.
26464 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
26465 * config/avr/avr.opt (mno-tablejump): Remove option.
26466 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
26468 2009-04-01 DJ Delorie <dj@redhat.com>
26470 * varasm.c (default_function_rodata_section): Don't assume
26471 anything about where the first '.' in the section name is.
26473 2009-04-01 Alan Modra <amodra@bigpond.net.au>
26475 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
26476 rs6000_emit_stack_tie.
26478 2009-03-31 Ian Lance Taylor <iant@google.com>
26480 * tree-eh.c (tree_remove_unreachable_handlers): Compare
26481 gimple_code with GIMPLE_RESX, not RESX.
26483 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26485 * c-common.c (c_get_ident): New.
26486 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
26488 2009-04-01 Ben Elliston <bje@au.ibm.com>
26490 * config/rs6000/sysv4.opt (msdata): Improve option description.
26492 2009-03-31 Steve Ellcey <sje@cup.hp.com>
26494 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
26495 (divdf3_internal_lat): Remove.
26496 (divxf3_internal_lat): Remove.
26497 (divxf3_internal_thr): Remove.
26498 (divxf): Use divxf3_internal.
26499 * config/ia64/div.md (divsf3_internal_lat): New.
26500 (divdf3_internal_lat): New.
26501 (divxf3_internal): New.
26503 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26506 * Makefile.in (USE_GCC_STDINT): Define.
26507 (stmp-int-hdrs): Install stdint.h if applicable.
26508 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26510 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26511 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26512 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26513 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26514 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26515 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26516 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26517 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26518 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26519 (c_common_nodes_and_builtins): Initialize
26520 underlying_wchar_type_node. Do not initialize
26521 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
26522 nodes for new types.
26523 (c_stddef_cpp_builtins): Define macros for new types.
26524 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26526 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26527 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26528 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26529 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26530 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26531 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26532 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26533 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26534 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26535 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26536 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26537 int16_type_node, int32_type_node, int64_type_node,
26538 uint8_type_node, uint16_type_node, c_uint32_type_node,
26539 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26540 int_least32_type_node, int_least64_type_node,
26541 uint_least8_type_node, uint_least16_type_node,
26542 uint_least32_type_node, uint_least64_type_node,
26543 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26544 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26545 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26546 uintptr_type_node): Define.
26547 * c-cppbuiltin.c (builtin_define_constants,
26548 builtin_define_type_minmax): New.
26549 (builtin_define_stdint_macros): Define more macros.
26550 (c_cpp_builtins): Define more limit macros.
26551 (type_suffix): New.
26552 (builtin_define_type_max): Define in terms of
26553 builtin_define_type_minmax. Remove is_long parameter. All
26555 * config.gcc (use_gcc_stdint): Define.
26556 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26557 Add newlib-stdint.h for generic targets.
26558 * config/glibc-stdint.h, config/newlib-stdint.h,
26559 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26560 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26561 * config/score/score.h (UINTPTR_TYPE): Define.
26562 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26563 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26564 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26565 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26566 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26567 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26568 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26569 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26570 * config/spu/spu.h (STDINT_LONG32): Define.
26571 * configure.ac (use_gcc_stdint): Substitute.
26572 * configure: Regenerate.
26573 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26574 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26575 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26576 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26577 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26578 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26579 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26580 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26581 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26582 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26583 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26584 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26585 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26586 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26587 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26588 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26589 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26590 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26591 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26592 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26593 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26594 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26595 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26596 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26597 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26598 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26599 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26600 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26601 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26603 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
26605 * loop-iv.c (suitable_set_for_replacement): Renamed from
26606 simplify_using_assignment; changed to return bool and to accept new
26607 args DEST and SRC. Return true iff we find a source/destination pair
26608 that can be used to make a replacement, and fill SRC and DEST if so.
26609 Remove arg ALTERED. Don't deal with altered regs here. All callers
26611 (simplify_using_initial_values): Deal with altered regs here and track
26612 more precisely the effect they have on the validity of our expression.
26614 * loop-iv.c (simplify_using_condition): A condition of the form
26615 (EQ REG CONST) can be used to simply make a substitution.
26616 (simplify_using_initial_values): Keep track of conditions we have seen
26617 and keep using them to simplify new expressions, while applying the
26618 same substitutions to them as to the expression.
26620 * simplify-rtx.c (simplify_relational_operation_1): Simplify
26621 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26624 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
26625 changed. Use this when trying to improve the upper bound.
26626 Generate the comparison by using simplify_gen_relational.
26628 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26630 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26632 (simplify_using_assignment, simplify_using_initial_values): Call
26633 replace_in_expr to make replacements. Call replace_single_def_regs
26634 once on the initial version of the expression.
26636 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26639 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26641 2009-03-31 Richard Guenther <rguenther@suse.de>
26643 PR middle-end/31029
26644 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26645 equality comparisons. Fold C - X CMP X if C % 2 == 1.
26647 2009-03-31 Richard Guenther <rguenther@suse.de>
26649 * tree.h (div_if_zero_remainder): Declare.
26650 * fold-const.c (div_if_zero_remainder): Export.
26651 * tree-ssa-forwprop.c
26652 (forward_propagate_addr_into_variable_array_index): Handle
26653 constant array index addition outside of the variable index.
26655 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26658 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26659 define_splits, floatunssi<mode>2): Require x87 conversions from
26660 DImode to be permitted.
26662 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26664 PR preprocessor/15638
26665 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26667 2009-03-31 Richard Guenther <rguenther@suse.de>
26669 PR middle-end/23401
26670 PR middle-end/27810
26671 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26672 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26673 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26674 a separate statement.
26675 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26676 (lookup_tmp_var): Likewise.
26677 (is_gimple_formal_tmp_or_call_rhs): Remove.
26678 (is_gimple_reg_or_call_rhs): Rename to ...
26679 (is_gimple_reg_rhs_or_call): ... this.
26680 (is_gimple_mem_or_call_rhs): Rename to ...
26681 (is_gimple_mem_rhs_or_call): ... this.
26682 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
26683 DECL_GIMPLE_REG_P only if is_formal is true.
26684 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
26685 for non-proper post-modify expression gimplification.
26686 (gimplify_self_mod_expr): For post-modify expressions gimplify
26687 the lvalue to a minimal lvalue.
26688 (rhs_predicate_for): Remove formal temp case.
26689 (gimplify_modify_expr_rhs): Likewise.
26690 (gimplify_addr_expr): Use is_gimple_reg.
26691 (gimplify_expr): Remove formal temp cases.
26692 (gimple_regimplify_operands): Likewise.
26693 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26694 and FILTER_EXPR like constants.
26695 * gimple.c (walk_gimple_op): Fix val_only initialization, use
26697 (is_gimple_formal_tmp_rhs): Remove.
26698 (is_gimple_reg_rhs): Remove special casing.
26699 (is_gimple_mem_rhs): Fix.
26700 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26701 (is_gimple_formal_tmp_var): Remove.
26702 (is_gimple_formal_tmp_reg): Likewise.
26703 (is_gimple_min_lval): Allow invariant component ref parts.
26704 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26705 is_gimple_formal_tmp_reg): Remove declarations.
26706 * tree-cfg.c (verify_expr): Verify that variables with address
26707 taken do not have DECL_GIMPLE_REG_P set.
26708 * tree-mudflap.c (mf_build_check_statement_for): Use
26709 force_gimple_operand instead of gimplify_expr.
26711 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
26713 * modulo-sched.c (sms_schedule_by_order): Pass the actual
26714 schedulable rows to compute_split_row.
26716 2009-03-31 Ben Elliston <bje@au.ibm.com>
26719 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26722 2009-03-31 Alan Modra <amodra@bigpond.net.au>
26724 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26725 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26726 * configure: Regenerate.
26727 * config.in: Regenerate.
26728 * config/rs6000/rs6000.opt (mtls-markers): Add.
26729 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26730 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26731 (tls_ld_aix, tls_ld_sysv): Likewise.
26732 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26733 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26735 2009-03-31 Alan Modra <amodra@bigpond.net.au>
26737 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26739 2009-03-30 Jan Hubicka <jh@suse.cz>
26741 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26743 (tree_remove_unreachable_handlers): Cleanup EH predecestor
26744 detection and label handling.
26746 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26748 * ira-int.h (ira_allocno): Rename left_conflicts_num to
26749 left_conflicts_size.
26750 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26751 ALLOCNO_LEFT_CONFLICTS_SIZE.
26753 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26754 remove_allocno_from_bucket_and_push,
26755 allocno_spill_priority_compare, push_allocnos_to_stack,
26756 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26757 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26758 (setup_allocno_left_conflicts_num): Ditto. Rename to
26759 setup_allocno_left_conflicts_size.
26760 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26761 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26762 setup_allocno_left_conflicts_size instead of
26763 setup_allocno_left_conflicts_num.
26765 * ira-build.c (ira_create_allocno): Use
26766 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26767 ALLOCNO_LEFT_CONFLICTS_NUM.
26769 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26771 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26772 instead of DF_LR_OUT.
26774 * ira-lives.c (process_bb_node_lives): Ditto.
26776 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26777 instead of DF_LR_{OUT,IN}.
26779 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26781 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26783 2009-03-30 Jan Hubicka <jh@suse.cz>
26785 * except.c (label_to_region_map): Fix thinko.
26787 2009-03-30 Steve Ellcey <sje@cup.hp.com>
26789 PR middle-end/38237
26790 * tree.h (tree_find_value): New declaration.
26791 * tree.c (tree_find_value): New function.
26792 * varasm.c (assemble_external): Avoid duplicate entries on lists.
26794 2009-03-30 Jakub Jelinek <jakub@redhat.com>
26797 * c-decl.c (struct c_binding): Add locus field.
26798 (bind): Add locus argument, set locus field from it.
26799 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26800 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26801 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26802 implicitly_declare, undeclared_variable, lookup_label,
26803 declare_label, c_make_fname_decl, c_builtin_function,
26804 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26807 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
26810 * config/i386/i386.c (classify_argument): Check total size of
26813 2009-03-30 Martin Jambor <mjambor@suse.cz>
26815 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26816 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26817 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26820 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26821 seen_variable_array_ref while also traversing a union.
26823 * tree-inline.c (optimize_inline_calls): Do not call
26824 cgraph_node_remove_callees.
26825 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26826 (pass_remove_cgraph_callee_edges): New variable.
26827 * passes.c (init_optimization_passes): Add
26828 pass_remove_cgraph_callee_edges after early inlining and before all
26829 late intraprocedural passes.
26831 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26833 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26835 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26836 Fix typos in names.
26838 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26840 * combine.c (simplify_comparison): Use have_insn_for.
26841 * dojump.c (do_jump): Likewise.
26843 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26845 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26846 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26847 sparc_compare_op0 like sparc_compare_emitted used to be handled.
26848 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26849 instead of sparc_compare_emitted.
26850 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26851 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26852 instead of sparc_compare_emitted.
26854 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26856 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26857 enter/exit cfglayout mode.
26858 (pass_partition_block): Require it.
26859 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26860 (combine_instructions): Track basic blocks instead of labels.
26861 (update_cfg_for_uncondjump): New.
26862 (try_combine): Use it. Update jumps after rescanning.
26863 (pass_combine): Require PROP_cfglayout.
26864 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26866 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26868 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26869 Provide/destroy PROP_cfglayout respectively.
26870 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26871 * tree-pass.h (PROP_cfglayout): New.
26873 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26875 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26876 fold_convert_const_fixed_from_fixed,
26877 fold_convert_const_fixed_from_int,
26878 fold_convert_const_fixed_from_real, fold_negate_const): Do not
26879 set TREE_CONSTANT_OVERFLOW.
26880 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26881 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26883 2009-03-30 Ira Rosen <irar@il.ibm.com>
26885 * tree-vect-loop-manip.c: New file.
26886 * tree-vectorizer.c: Update documentation and included files.
26887 (vect_loop_location): Make extern.
26888 (rename_use_op): Move to tree-vect-loop-manip.c
26889 (rename_variables_in_bb, rename_variables_in_loop,
26890 slpeel_update_phis_for_duplicate_loop,
26891 slpeel_update_phi_nodes_for_guard1,
26892 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26893 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26894 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26895 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26896 find_loop_location): Likewise.
26897 (new_stmt_vec_info): Move to tree-vect-stmts.c.
26898 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26899 get_vectype_for_scalar_type, vect_is_simple_use,
26900 supportable_widening_operation, supportable_narrowing_operation):
26902 (bb_in_loop_p): Move to tree-vect-loop.c.
26903 (new_loop_vec_info, destroy_loop_vec_info,
26904 reduction_code_for_scalar_code, report_vect_op,
26905 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26906 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26907 (vect_supportable_dr_alignment): Likewise.
26908 * tree-vectorizer.h (tree-data-ref.h): Include.
26909 (vect_loop_location): Declare.
26910 Reorganize function declarations according to the new file structure.
26911 * tree-vect-loop.c: New file.
26912 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26913 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26914 * tree-vect-data-refs.c: New file.
26915 * tree-vect-patterns.c (timevar.h): Don't include.
26916 * tree-vect-stmts.c: New file.
26917 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26918 tree-vect-slp.c, tree-vect-loop.c.
26919 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26920 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26921 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26922 (tree-vect-analyze.o): Remove.
26923 (tree-vect-transform.o): Likewise.
26924 (tree-vect-data-refs.o): Add rule.
26925 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26926 tree-vect-slp.o): Likewise.
26927 (tree-vect-patterns.o): Remove redundant dependencies.
26928 (tree-vectorizer.o): Likewise.
26929 * tree-vect-slp.c: New file.
26931 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26933 * optc-gen.awk: Warn if an option flag has multiple different
26936 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
26938 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26939 -floop-block): Document dependences on PPL, CLooG and Graphite.
26941 2009-03-30 Joseph Myers <joseph@codesourcery.com>
26943 PR rtl-optimization/323
26944 * c-common.c (c_fully_fold, convert_and_check,
26945 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26946 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26947 * c-common.def (EXCESS_PRECISION_EXPR): New.
26948 * c-cppbuiltin.c (builtin_define_float_constants): Define
26949 constants with enough digits for long double.
26950 * c-lex.c (interpret_float): Interpret constant with excess
26951 precision where appropriate.
26952 * c-opts.c (c_common_post_options): Set
26953 flag_excess_precision_cmdline. Give an error for
26954 -fexcess-precision=standard for C++ for processors where the
26955 option is significant.
26956 * c-parser.c (c_parser_conditional_expression): Handle excess
26957 precision in condition.
26958 * c-typeck.c (convert_arguments): Handle arguments with excess
26960 (build_unary_op): Move excess precision outside operation.
26961 (build_conditional_expr): Likewise.
26962 (build_compound_expr): Likewise.
26963 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26964 (build_modify_expr): Handle excess precision in RHS.
26965 (convert_for_assignment): Handle excess precision in converted
26967 (digest_init, output_init_element, process_init_element): Handle
26968 excess precision in initializer.
26969 (c_finish_return): Handle excess precision in return value.
26970 (build_binary_op): Handle excess precision in operands and add
26971 excess precision as needed for operation.
26972 * common.opt (-fexcess-precision=): New option.
26973 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26974 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26975 For standard excess precision, output explicit conversion to and
26976 truncation from XFmode.
26977 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26978 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26979 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26980 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26981 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26982 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26983 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26984 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26985 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26986 define_splits, sqrt<mode>2): Disable where appropriate for
26987 standard excess precision.
26988 * convert.c (convert_to_real): Do not shorten arithmetic to type
26989 for which excess precision would be used.
26990 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26991 * doc/invoke.texi (-fexcess-precision=): Document option.
26992 (-mfpmath=): Correct index entry.
26993 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26994 flag_excess_precision): New.
26995 * langhooks.c (lhd_post_options): Set
26996 flag_excess_precision_cmdline.
26997 * opts.c (common_handle_option): Handle -fexcess-precision=.
26998 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26999 init_excess_precision): New.
27000 (lang_dependent_init_target): Call init_excess_precision.
27001 * tree.c (excess_precision_type): New.
27002 * tree.h (excess_precision_type): Declare.
27004 2009-03-30 Joseph Myers <joseph@codesourcery.com>
27007 * c-typeck.c (build_component_ref): Do not copy qualifiers from
27008 non-lvalue to component.
27010 2009-03-29 Joseph Myers <joseph@codesourcery.com>
27012 PR preprocessor/34695
27013 * Makefile.in (c-opts.o): Depend on c-tree.h.
27014 * c-common.c: Move down include of diagnostic.h.
27015 (done_lexing, c_cpp_error): New.
27016 * c-common.h (done_lexing): Declare.
27017 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
27019 * c-opts.c: Include c-tree.h.
27020 (c_common_init_options): Set preprocessor error callback.
27021 (c_common_handle_option): Do not set preprocessor
27022 inhibit_warnings, warnings_are_errors, warn_system_headers,
27023 pedantic_errors or inhibit_warnings flags.
27024 (c_common_post_options): Do not check cpp_errors (parse_in).
27025 (c_common_finish): Do not output dependencies if there were
27026 errors. Do not check return value of cpp_finish.
27027 * c-ppoutput.c (pp_file_change): Set input_location.
27028 * c-tree.h (c_cpp_error): Declare.
27029 * diagnostic.c (diagnostic_set_info_translated): Also initialize
27031 (diagnostic_build_prefix): Check override_column.
27032 * diagnostic.h (diagnostic_info): Add override_column field.
27033 (diagnostic_override_column): Define.
27035 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
27037 * c-common.c (c_expand_expr, c_staticp): Remove.
27038 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
27039 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
27040 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
27041 * c-gimplify.c (gimplify_compound_literal_expr,
27042 optimize_compound_literals_in_ctor): Remove.
27043 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
27044 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
27045 * c-semantics.c (emit_local_var): Remove.
27047 * langhooks-def.h (lhd_expand_expr): Remove.
27048 * langhooks.c (lhd_expand_expr): Remove.
27049 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
27051 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
27052 handling from c-semantics.c; don't call into langhook.
27053 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
27054 * gimplify.c (gimplify_compound_literal_expr,
27055 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
27056 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
27057 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
27058 as was done in c-gimplify.c.
27059 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
27060 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
27061 Move from c-common.h.
27062 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
27064 * tree.c (staticp): Do not call langhook.
27065 * langhooks.c (lhd_staticp): Delete.
27066 * langhooks-def.h (lhd_staticp): Delete prototype.
27067 (LANG_HOOKS_STATICP): Delete.
27068 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
27070 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
27071 instead of DECL_STMTs.
27073 2009-03-29 Joseph Myers <joseph@codesourcery.com>
27081 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
27083 (fold_call_expr): Return a NOP_EXPR from folding rather than the
27084 contained expression.
27085 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
27086 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
27087 conditional expressions for C.
27088 (decl_constant_value_for_optimization): Move from
27089 decl_constant_value_for_broken_optimization in c-typeck.c. Check
27090 whether optimizing and that the expression is a VAR_DECL not of
27091 array type instead of doing such checks in the caller. Do not
27092 check pedantic. Call gcc_unreachable for C++.
27093 * c-common.def (C_MAYBE_CONST_EXPR): New.
27094 * c-common.h (c_fully_fold, c_save_expr,
27095 decl_constant_value_for_optimization): New prototypes.
27096 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27097 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27098 EXPR_INT_CONST_OPERANDS): Define.
27099 * c-convert.c (convert): Strip nops from expression.
27100 * c-decl.c (groktypename): Take extra parameters expr and
27101 expr_const_operands. Update call to grokdeclarator.
27102 (start_decl): Update call to grokdeclarator. Add statement for
27103 expressions used in type of decl.
27104 (grokparm): Update call to grokdeclarator.
27105 (push_parm_decl): Update call to grokdeclarator.
27106 (build_compound_literal): Add parameter non_const and build a
27107 C_MAYBE_COSNT_EXPR if applicable.
27108 (grokdeclarator): Take extra parameters expr and
27109 expr_const_operands. Track expressions used in declaration
27110 specifiers and declarators. Fold array sizes and track whether
27111 they are constant expressions and whether they are integer
27112 constant expressions.
27113 (parser_xref_tag): Set expr and expr_const_operands fields in
27115 (grokfield): Update call to grokdeclarator.
27116 (start_function): Update call to grokdeclarator.
27117 (build_null_declspecs): Set expr and expr_const_operands fields in
27119 (declspecs_add_type): Handle expressions in typeof specifiers.
27120 * c-parser.c (c_parser_declspecs): Set expr and
27121 expr_const_operands fields for declaration specifiers.
27122 (c_parser_enum_specifier): Likewise.
27123 (c_parser_struct_or_union_specifier): Likewise.
27124 (c_parser_typeof_specifier): Likewise. Update call to
27125 groktypename. Fold expression as needed. Return expressions with
27126 type instead of adding statements.
27127 (c_parser_attributes): Update calls to c_parser_expr_list.
27128 (c_parser_statement_after_labels): Fold expression before passing
27129 to objc_build_throw_stmt.
27130 (c_parser_condition): Fold expression.
27131 (c_parser_asm_operands): Fold expression.
27132 (c_parser_conditional_expression): Use c_save_expr. Update call
27133 to build_conditional_expr.
27134 (c_parser_alignof_expression): Update call to groktypename.
27135 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
27136 original_code. Fold expression argument of va_arg. Create
27137 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
27138 argument to va_arg. Update calls to groktypename. Fold array
27139 index for offsetof. Verify that first argument to
27140 __builtin_choose_expr has integer type.
27141 (c_parser_postfix_expression_after_paren_type): Update calls to
27142 groktypename and build_compound_literal. Handle expressions with
27143 side effects in type name.
27144 (c_parser_postfix_expression_after_primary): Update call to
27145 c_parser_expr_list. Set original_code for calls to
27146 __builtin_constant_p.
27147 (c_parser_expr_list): Take extra parameter fold_p. Fold
27148 expressions if requested.
27149 (c_parser_objc_type_name): Update call to groktypename.
27150 (c_parser_objc_synchronized_statement): Fold expression.
27151 (c_parser_objc_receiver): Fold expression.
27152 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
27153 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
27154 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
27155 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
27156 (struct c_typespec): Add elements expr and expr_const_operands.
27157 (struct c_declspecs): Add elements expr and expr_const_operands.
27158 (groktypename, build_conditional_expr, build_compound_literal):
27160 (in_late_binary_op): Declare.
27161 * c-typeck.c (note_integer_operands): New function.
27162 (in_late_binary_op): New variable.
27163 (decl_constant_value_for_broken_optimization): Move to c-common.c
27164 and rename to decl_constant_value_for_optimization.
27165 (default_function_array_conversion): Do not strip nops.
27166 (default_conversion): Do not call
27167 decl_constant_value_for_broken_optimization.
27168 (build_array_ref): Do not fold result.
27169 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
27170 result when operand is a VLA.
27171 (c_expr_sizeof_type): Update call to groktypename. Handle
27172 expressions included in type name. Use C_MAYBE_CONST_EXPR for
27173 result when operand names a VLA type.
27174 (build_function_call): Update call to build_compound_literal.
27175 Only fold result for calls to __builtin_* functions. Strip
27176 NOP_EXPR from INTEGER_CST returned from such functions. Fold
27177 the function designator.
27178 (convert_arguments): Fold arguments. Update call to
27179 convert_for_assignment.
27180 (build_unary_op): Handle increment and decrement of
27181 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
27182 decrement earlier. Fold operand of increment and decrement.
27183 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
27184 built for integer operand. Wrap returns that are INTEGER_CSTs
27185 without being integer constant expressions or that have integer
27186 constant operands without being INTEGER_CSTs.
27187 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
27188 (build_conditional_expr): Add operand ifexp_bcp. Track whether
27189 result is an integer constant expression or can be used in
27190 unevaluated parts of one and avoid folding and wrap as
27191 appropriate. Fold operands before possibly doing -Wsign-compare
27193 (build_compound_expr): Wrap result for C99 if operands can be used
27194 in integer constant expressions.
27195 (build_c_cast): Update call to digest_init. Do not ignore
27196 overflow from casting floating-point constants to integers. Wrap
27197 results that could be confused with integer constant expressions,
27198 null pointer constants or floating-point constants.
27199 (c_cast_expr): Update call to groktypename. Handle expressions
27200 included in type name.
27201 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
27202 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
27203 Update calls to convert_for_assignment.
27204 (convert_for_assignment): Take new parameter
27205 null_pointer_constant. Do not strip nops or call
27206 decl_constant_value_for_broken_optimization. Set
27207 in_late_binary_op for conversions to boolean.
27208 (store_init_value): Update call to digest_init.
27209 (digest_init): Take new parameter null_pointer_constant. Do not
27210 call decl_constant_value_for_broken_optimization. pedwarn for
27211 initializers not constant expressions. Update calls to
27212 convert_for_assignment.
27213 (constructor_nonconst): New.
27214 (struct constructor_stack): Add nonconst element.
27215 (really_start_incremental_init, push_init_level, pop_init_level):
27216 Handle constructor_nonconst and nonconst element.
27217 (set_init_index): Call constant_expression_warning for array
27219 (output_init_element): Fold value. Set constructor_nonconst as
27220 applicable. pedwarn for initializers not constant expressions.
27221 Update call to digest_init. Call constant_expression_warning
27222 where constant initializers are required.
27223 (process_init_element): Use c_save_expr.
27224 (c_finish_goto_ptr): Fold expression.
27225 (c_finish_return): Fold return value. Update call to
27226 convert_for_assignment.
27227 (c_start_case): Fold switch expression.
27228 (c_process_expr_stmt): Fold expression.
27229 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
27230 ensure statement expression is not evaluated in constant expression.
27231 (build_binary_op): Track whether results are integer constant
27232 expressions or may occur in such, disable folding and wrap results
27233 as applicable. Fold operands for -Wsign-compare warnings unless
27235 (c_objc_common_truthvalue_conversion): Handle results folded to
27236 integer constants that are not integer constant expressions.
27237 * doc/extend.texi: Document when typeof operands are evaluated,
27238 that condition of __builtin_choose_expr is an integer constant
27239 expression, and more about use of __builtin_constant_p in
27242 2009-03-29 Richard Guenther <rguenther@suse.de>
27244 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
27245 propagate addresses of array references.
27247 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
27249 * regmove.c (perhaps_ends_bb_p): Remove.
27250 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
27251 from INSN and check that the main loop stays within that basic block.
27252 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
27253 (regmove_forward_pass): Split out from regmove_optimize. Use
27254 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
27255 (regmove_backward_pass): Split out from regmove_optimize. Use
27256 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
27257 (regmove_optimize): Simplify.
27259 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
27262 * config/i386/i386.c (classify_argument): Ignore flexible array
27263 member in struct and warn ABI change.
27265 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
27267 * config/i386/i386-protos.h (ix86_agi_dependent): New.
27269 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
27270 (ix86_adjust_cost): Updated.
27272 2009-03-29 Jan Hubicka <jh@suse.cz>
27274 PR middle-end/28850
27275 * tree-pass.h (pass_cleanup_eh): New function.
27276 (remove_unreachable_regions): Break code handling RTL
27277 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
27278 that can not be reached by runtime.
27279 (can_be_reached_by_runtime): New function.
27280 (label_to_region_map): New function.
27281 (num_eh_regions): New function.
27282 (rtl_remove_unreachable_regions): New function.
27283 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
27284 (remove_eh_region): New function.
27285 * except.h: Include sbitmap and vecprim.
27286 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
27287 num_eh_regions): Declare.
27288 * passes.c (init_optimization_passes): Schedule cleanup_eh.
27289 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
27290 * tree-eh.c (tree_remove_unreachable_handlers): New function.
27291 (tree_empty_eh_handler_p): New function.
27292 (cleanup_empty_eh): New function.
27293 (cleanup_eh): New function.
27294 (pass_cleanup_eh): New function.
27296 2009-03-29 Jan Hubicka <jh@suse.cz>
27298 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
27299 for removed regions.
27301 2009-03-29 Jan Hubicka <jh@suse.cz>
27303 * except.c (dump_eh_tree): Dump all datastructures.
27305 2009-03-29 Jan Hubicka <jh@suse.cz>
27307 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
27308 (duplicate_eh_regions_1): Likewise.
27309 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
27310 vector; call EH verification.
27311 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27312 Be ready for region being removed.
27314 2009-03-29 Jan Hubicka <jh@suse.cz>
27316 * bitmap.c (bitmap_last_set_bit): New function.
27317 * bitmap.h (bitmap_last_set_bit): Declare.
27319 2009-03-29 David Ayers <ayers@fsfe.org>
27322 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
27323 by calling objc_compare_types and surpress warnings about
27324 incompatible C pointers that are compatible ObjC pointers.
27326 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
27328 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
27329 call initialize_inline_failed.
27330 (initialize_inline_failed): Move it from here ...
27331 * cgraph.c (initialize_inline_failed): ... to here.
27332 (cgraph_create_edge): Call initialize_inline_failed rather than
27333 setting inline_failed directly.
27335 2009-03-29 Ben Elliston <bje@au.ibm.com>
27338 * sysv4.opt (msdata): Improve comment.
27339 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
27340 * sysv4.h (SVR4_ASM_SPEC): Likewise.
27342 2009-03-29 Ben Elliston <bje@au.ibm.com>
27345 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
27346 load and store attributes.
27348 2009-03-29 Ben Elliston <bje@au.ibm.com>
27350 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
27351 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
27352 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
27353 * doc/extend.texi (X86 Built-in Functions): Add index entries for
27354 __builtin_infq and __builtin_huge_valq.
27356 2009-03-28 Anatoly Sokolov <aesok@post.ru>
27358 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
27360 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27361 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
27363 2009-03-28 Xinliang David Li <davidxl@google.com>
27365 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
27366 (do_dbg_cnt): New function.
27368 2009-03-28 Jan Hubicka <jh@suse.cz>
27370 Merge from pretty-ipa:
27372 2009-03-27 Jan Hubicka <jh@suse.cz>
27374 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27375 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
27376 * passes.c (function_called_by_processed_nodes_p): New.
27377 * ipa-pure-const.c (check_call): Fix handling of operands.
27378 (analyze_function): Dump debug output for skipped bodies.
27379 (local_pure_const): Use function_called_by_processed_nodes_p.
27380 * dwarf2out.c (reference_to_unused): Use output.
27381 * passes.c (do_per_function_toporder): Likewise.
27383 2008-11-12 Jan Hubicka <jh@suse.cz>
27385 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
27386 * ipa-pure-const.c (funct_state_d): Add can throw field; make
27387 state_set_in_source enum
27388 (check_decl): Ignore memory tags; do not set fake looping flags;
27390 (check_operand, check_tree, check_rhs_var, check_lhs_var,
27391 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
27392 (check_call, analyze_function): Rewrite.
27394 (add_new_function): Update call of analyze_function.
27395 (generate_summary): Add call of analyze_function.
27396 (propagate): Propagate can_throw; handle state_set_in_source correctly.
27397 (local_pure_const): New function.
27398 (pass_local_pure_const): New pass.
27399 * ipa-inline.c (inline_transform): Set after_inlining.
27400 * tree-eh.c (stmt_can_throw_external): New.
27401 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
27402 work with aliasing built.
27403 * tree-flow.h (stmt_can_throw_external): New.
27404 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
27405 and local pure/const pass in early and late optimization queue.
27407 2009-03-28 Martin Jambor <mjambor@suse.cz>
27409 * fold-const.c (get_pointer_modulus_and_residue): New parameter
27411 (fold_binary): Allow function decl aligment consideration is the
27412 second argument is integer constant one.
27413 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
27414 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
27415 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
27417 2009-03-28 Jan Hubicka <jh@suse.cz>
27419 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
27420 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
27421 * function.h (rtl_data): Add nothrow flag.
27422 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
27423 set DECL_NOTHROW for AVAILABLE functions.
27425 2009-03-28 Jakub Jelinek <jakub@redhat.com>
27427 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
27428 following vector keyword has expansion starting with pixel or bool
27429 keyword, expand vector to __vector and pixel or bool to __pixel or
27433 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
27434 warn_if_disallowed_function_p): Removed.
27435 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
27436 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
27437 warning_if_disallowed_function_p.
27438 * flags.h (warn_if_disallowed_function_p,
27439 warn_disallowed_functions): Removed.
27440 * common.opt (Wdisallowed-function-list=): Removed.
27441 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
27443 2009-03-28 Richard Guenther <rguenther@suse.de>
27445 PR tree-optimization/38723
27446 * tree-ssa-pre.c (compute_avail): Add all default definitions to
27449 2009-03-28 Jan Hubicka <jh@suse.cz>
27451 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
27452 test introduced by my previous patch.
27454 2009-03-28 Richard Guenther <rguenther@suse.de>
27456 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
27457 the PHIs value undefined.
27459 2009-03-28 Jan Hubicka <jh@suse.cz>
27461 * tree-pass.h (pass_fixup_cfg): New pass.
27462 * ipa-inline.c (inline_transform): Set
27463 always_inline_functions_inlined/after_inlining.
27464 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
27465 (pass_fixup_cfg): New pass.
27466 * passes.c (init_optimization_passes): Add fixup_cfg.
27468 2009-03-28 Richard Guenther <rguenther@suse.de>
27470 PR tree-optimization/38458
27471 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
27472 argument use the arguments copy-of value.
27474 2009-03-28 Richard Guenther <rguenther@suse.de>
27476 PR tree-optimization/38180
27477 * tree-ssa-ccp.c (get_default_value): Simplify.
27478 (likely_value): Likewise.
27479 (surely_varying_stmt_p): Properly handle VOP case.
27480 (ccp_initialize): Likewise.
27481 (ccp_fold): Handle propagating through *&.
27482 (fold_const_aggregate_ref): Also handle decls.
27484 2009-03-28 Jan Hubicka <jh@suse.cz>
27486 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27487 * cgraph.h (cgraph_node): Likewise.
27488 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
27489 (cgraph_reset_node): Use process flag.
27490 (cgraph_mark_functions_to_output): Likewise.
27491 (cgraph_expand_function): Likewise.
27492 (cgraph_expand_all_functions): Likewise.
27493 (cgraph_output_in_order): Likewise.
27494 * dwarf2out.c (reference_to_unused): Likewise.
27495 * passes.c do_per_function_toporder): Likewise.
27497 2009-03-28 Jan Hubicka <jh@suse.cz>
27499 Bring from lto-branch:
27501 2008-09-03 Doug Kwan <dougkwan@google.com>
27503 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27504 enums instead of reason strings.
27505 * cgraph.c (cgraph_create_edge): Same.
27506 (cgraph_inline_failed_string): New function.
27507 * cgraph.h (cgraph_inline_failed_t): New enum type.
27508 (cgraph_inline_failed_string): New prototype.
27509 (struct cgraph_edge): Change type of INLINED_FAILED from constant
27510 char pointer to cgraph_inline_failed_t.
27511 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27512 (cgraph_default_inline_p): Ditto.
27513 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27514 to cgraph_inline_failed_t pointer.
27515 * cif-code.def: New file.
27516 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27518 (cgraph_check_inline_limits): Change type of REASON to pointer to
27519 cgraph_inline_failed_t. Replace reason strings with enums.
27520 (cgraph_default_inline_p): Ditto.
27521 (cgraph_recursive_inlining_p): Ditto.
27522 (update_caller_keys): Change type of FAILED_REASON to
27523 cgraph_inline_failed_t.
27524 (cgraph_set_inline_failed): Change type of REASON to pointer to
27525 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
27526 convert enums to strings for text output.
27527 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27528 to be of type cgraph_inline_failed_t. Replace reason strings with
27529 enums. Call cgraph_inline_failed_string to covert enums
27530 to strings for text output.
27531 (cgraph_decide_inlining): Replace reason strings with enums.
27532 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27533 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
27535 * tree-inline.c (expand_call_inline): Change type of REASON
27536 to cgraph_inline_failed_t. Replace reason strings with enums.
27537 Call cgraph_inline_failed_string for text output.
27538 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27541 2009-03-28 Jan Hubicka <jh@suse.cz>
27543 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27544 cgraph_clone_node): Remove master clone handling.
27545 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27546 * cgraph.h (master_clone): Remove.
27547 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27548 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27549 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27551 2009-03-28 Jan Hubicka <jh@suse.cz>
27553 * cgraph.c (cgraph_function_body_availability): Functions declared
27554 inline are always safe to assume that it is not going to be replaced.
27556 2009-03-28 Richard Guenther <rguenther@suse.de>
27558 PR tree-optimization/38513
27559 * tree-ssa-pre.c (eliminate): Remove redundant stores.
27560 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27561 EXC_PTR_EXPR and FILTER_EXPR.
27562 (get_ref_from_reference_ops): Likewise.
27564 2009-03-28 Richard Guenther <rguenther@suse.de>
27566 PR tree-optimization/38968
27567 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27568 Use FLOOR_MOD_EXPR to compute misalignment.
27570 2009-03-28 Richard Guenther <rguenther@suse.de>
27572 PR tree-optimization/37795
27573 * tree.h (combine_comparisons): Declare.
27574 * fold-const.c (combine_comparisons): Export.
27575 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27577 (ifcombine_iforif): Use combine_comparisons.
27579 2009-03-28 Jan Hubicka <jh@suse.cz>
27581 * tree-eh.c (inlinable_call_p): New function.
27582 (make_eh_edges): Use it.
27583 (verify_eh_edges): Use it.
27584 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27585 * except.c (reachable_next_level): Add inlinable_function argument
27586 (sjlj_find_directly_reachable_regions): Update.
27587 (add_reachable_handler): Do not set saw_any_handlers.
27588 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27589 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27590 Add new inlinable call parameter.
27591 (can_throw_internal, can_throw_external): Update.
27592 * except.h (can_throw_internal_1, can_throw_external_1,
27593 foreach_reachable_handler): Update declaration.
27595 2009-03-28 Joseph Myers <joseph@codesourcery.com>
27597 * config/arm/t-arm-coff, config/h8300/coff.h,
27598 config/i386/i386-aout.h, config/i386/i386-coff.h,
27599 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27600 config/pdp11/2bsd.h, config/rs6000/aix41.h,
27601 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27602 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27603 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27604 sys-types.h: Remove.
27605 * Makefile.in: Remove protoize and fixproto support and references
27607 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27608 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27610 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27611 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27612 unprotoize$(exeext).
27613 (rest.encap): Don't depend on $(STMP_FIXPROTO)
27614 (.PHONY): Don't depend on proto.
27615 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27616 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27617 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27618 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27619 build/gen-protos.o, build/scan.o, xsys-protos.h,
27620 build/fix-header$(build_exeext), build/fix-header.o,
27621 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27622 stmp-install-fixproto): Remove.
27623 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27624 SYSCALLS.c or fixproto files.
27625 (install-common): Don't install protoize.
27626 (install-headers-tar, install-headers-cpio, install-headers-cp):
27627 Don't depend on $(STMP_FIXPROTO).
27628 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
27629 install fixproto files or write out fixproto settings.
27630 (uninstall): Don't uninstall protoize.
27631 * config.gcc (use_fixproto): Remove.
27632 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27633 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27634 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27635 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27636 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27637 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27638 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27639 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27640 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27641 * config/t-vxworks (STMP_FIXPROTO): Remove.
27642 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27643 STMP_FIXPROTO): Remove.
27644 * config.in, configure: Regenerate.
27645 * crtstuff.c (gid_t, uid_t): Don't undefine.
27646 * doc/install.texi: Change m68k-coff to m68k-elf in example.
27647 (arm-*-coff, arm-*-aout: Remove target entries.
27648 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27649 Remove mention of AIX 4.1.
27650 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27651 * doc/invoke.texi (Running Protoize): Remove.
27652 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27653 (Protoize Caveats): Remove.
27654 * tsystem.h: Update comments on headers assumed to exist.
27656 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
27658 * genautomata.c: Add a new year to the copyright. Add a new
27660 (struct insn_reserv_decl): Add comments for member bypass_list.
27661 (find_bypass): Remove.
27662 (insert_bypass): New.
27663 (process_decls): Use insert_bypass.
27664 (output_internal_insn_latency_func): Output all bypasses with the
27665 same input insn in one switch case.
27667 * rtl.def (define_bypass): Describe bypass choice.
27668 * doc/md.texi (define_bypass): Ditto.
27670 2009-03-27 Richard Guenther <rguenther@suse.de>
27672 * gimplify.c (mark_addressable): Export.
27673 * tree-flow.h (mark_addressable): Declare.
27674 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27675 * tree-ssa.c (verify_phi_args): Verify that address taken
27676 variables have TREE_ADDRESSABLE set.
27678 2009-03-27 Richard Guenther <rguenther@suse.de>
27680 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27681 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
27682 Do not mark decls TREE_ADDRESSABLE.
27683 (build_fold_addr_expr): Adjust.
27684 (fold_addr_expr): Remove.
27685 (fold_unary): Use build_fold_addr_expr.
27686 (fold_comparison): Likewise.
27687 (split_address_to_core_and_offset): Likewise.
27688 * coverage.c (tree_coverage_counter_addr): Mark the array decl
27690 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27691 (gimplify_modify_expr_to_memcpy): Mark source and destination
27693 * omp-low.c (create_omp_child_function): Mark the object decl
27695 (lower_rec_input_clauses): Mark the var we take the address of
27697 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27699 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27701 PR middle-end/39315
27702 * cfgexpand.c (expand_one_stack_var_at): Change alignment
27703 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27705 2009-03-27 Richard Guenther <rguenther@suse.de>
27707 PR tree-optimization/39120
27708 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27710 (handle_lhs_call): Process return constraints. Add escape
27711 constraints if necessary.
27712 (handle_const_call): Fill out return constraints. Make nested
27713 case more precise. Avoid consttmp if possible.
27714 (handle_pure_call): Fill out return constraints. Avoid
27715 callused if possible.
27716 (find_func_aliases): Simplify call handling.
27718 2009-03-27 Richard Guenther <rguenther@suse.de>
27720 PR tree-optimization/39120
27721 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27722 as a representative.
27723 (solve_graph): Do propagate CALLUSED.
27724 (handle_pure_call): Use a scalar constraint from CALLUSED for
27726 (find_what_p_points_to): CALLUSED shall not appear in poins-to
27729 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27732 * c-common.c (handle_aligned_attribute): Properly check alignment
27733 overflow. Use (1U << i) instead of (1 << i).
27735 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27737 * expr.h (get_mem_align_offset): Updated.
27739 * tree.h (tree_decl_common): Change align to "unsigned int" and
27740 move it before pointer_alias_set.
27742 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27743 Jakub Jelinek <jakub@redhat.com>
27746 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27747 gr_register_operand with gr_reg_or_0_operand.
27748 (cmpxchg_rel_di): Likewise.
27749 (sync_lock_test_and_set<mode>): Likewise.
27751 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27753 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27754 (true_regnum): Likewise.
27756 * rtlanal.c (subreg_info): Moved to ...
27757 * rtl.h (subreg_info): Here. New.
27758 (subreg_get_info): New.
27760 * rtlanal.c (subreg_get_info): Make it extern.
27762 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27765 * config/i386/i386.c (ix86_abi): New.
27766 (override_options): Handle -mabi=.
27767 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27768 (ix86_call_abi_override): Likewise.
27769 (init_cumulative_args): Likewise.
27770 (function_arg_advance): Likewise.
27771 (function_arg_64): Likewise.
27772 (function_arg): Likewise.
27773 (ix86_pass_by_reference): Likewise.
27774 (ix86_function_value_regno_p): Likewise.
27775 (ix86_build_builtin_va_list_abi): Likewise.
27776 (setup_incoming_varargs_64): Likewise.
27777 (is_va_list_char_pointer): Likewise.
27778 (ix86_init_machine_status): Likewise.
27779 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27780 (ix86_function_type_abi): Return enum calling_abi. Rewrite
27781 for 64bit. Replace DEFAULT_ABI with ix86_abi.
27782 (ix86_function_abi): Make it static and return enum calling_abi.
27783 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
27785 (ix86_fn_abi_va_list): Updated.
27787 * config/i386/i386.h (ix86_abi): New.
27788 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27789 (CONDITIONAL_REGISTER_USAGE): Likewise.
27790 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27791 (machine_function): Likewise.
27793 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27795 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27796 (STACK_BOUNDARY): Likewise.
27797 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27799 * config/i386/i386.opt (mabi=): New.
27801 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27802 return enum calling_abi.
27803 (ix86_function_type_abi): Likewise.
27804 (ix86_function_abi): Removed.
27806 * doc/invoke.texi: Document -mabi= option for x86.
27808 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27810 * builtins.c (real_dconstp): Delete.
27811 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27813 2009-03-27 Dodji Seketeli <dodji@redhat.com>
27814 Jakub Jelinek <jakub@redhat.com>
27817 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27818 (gen_subprogram_die): When a function is explicit, generate the
27819 DW_AT_explicit attribute.
27820 * langhooks.h (struct lang_hooks_for_decls): Add
27821 function_decl_explicit_p langhook.
27822 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27823 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27825 2009-03-27 Jakub Jelinek <jakub@redhat.com>
27827 * builtins.c (fold_builtin_memory_op): Optimize memmove
27828 into memcpy if we can prove source and destination don't overlap.
27830 * tree-inline.c: Include gt-tree-inline.h.
27831 (clone_fn_id_num): New variable.
27832 (clone_function_name): New function.
27833 (tree_function_versioning): Use it.
27834 * Makefile.in (GTFILES): Add tree-inline.c.
27836 2009-03-27 Mark Mitchell <mark@codesourcery.com>
27838 * BASE-VER: Change to 4.5.0.
27840 2009-03-27 Xinliang David Li <davidxl@google.com>
27842 PR tree-optimization/39557
27843 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27845 2009-03-27 Xinliang David Li <davidxl@google.com>
27847 PR tree-optimization/39548
27848 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27851 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27853 * c-common.c (pointer_int_sum): Use %wd on return from
27856 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27858 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27859 on return from tree_low_cst.
27861 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
27864 * ginclude/stdarg.h (va_copy): Define also for
27865 __GXX_EXPERIMENTAL_CXX0X__.
27867 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27870 * builtins.h (c_strlen): Do not warn here.
27871 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27872 * c-common.c (pointer_int_sum): Take an explicit location.
27873 Warn about offsets out of bounds.
27874 * c-common.h (pointer_int_sum): Adjust declaration.
27876 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27878 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27881 2009-03-26 Jakub Jelinek <jakub@redhat.com>
27884 * opts.c (warn_if_disallowed_function_p): Don't assume
27885 get_callee_fndecl must return non-NULL.
27887 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
27889 PR rtl-optimization/39522
27890 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27891 when reg_reloaded_valid is set.
27893 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27895 * config/spu/divv2df3.c: New file.
27896 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27897 (DPBIT_FUNCS): Filter out _div_df.
27899 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
27901 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27902 a jump insn, count that jump in the distance to the loop start.
27904 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
27907 * config/sh/sh.c (calc_live_regs): Fix condition for global
27908 registers except PIC_OFFSET_TABLE_REGNUM.
27910 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
27913 * doc/invoke.texi (-mconsole): New.
27915 (-mno-cygwin): New.
27917 (-mnop-fun-dllimport): New.
27921 (sub section "i386 and x86-64 Windows Options"): New.
27923 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
27925 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27926 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27928 2009-03-25 Richard Guenther <rguenther@suse.de>
27930 PR middle-end/39497
27931 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27934 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
27936 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27937 neither of haifa/selective schedulers are working.
27939 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27941 * doc/invoke.texi (Debugging Options): Fix description of
27942 -fno-merge-debug-strings.
27944 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
27946 * config/cris/libgcc.ver: New version-script.
27947 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27949 * configure.ac <GAS features, nop mnemonic>: Add pattern
27950 crisv32-*-* for "nop".
27951 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27952 * configure: Regenerate.
27954 2009-03-24 Ira Rosen <irar@il.ibm.com>
27956 PR tree-optimization/39529
27957 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27958 mark_sym_for_renaming for the tag copied to the new vector
27961 2009-03-24 Arthur Loiret <aloiret@debian.org>
27963 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27964 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27965 EXTRA_SPEC_FUNCTIONS.
27966 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27967 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27968 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27969 -march and -mtune options.
27971 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
27973 * config/m68k/t-rtems: Add m5329 multilib.
27975 2009-03-24 Dodji Seketeli <dodji@redhat.com>
27976 Jakub Jelinek <jakub@redhat.com>
27979 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27982 2009-03-23 Jakub Jelinek <jakub@redhat.com>
27985 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27986 instead of c_parser_expression_conv, if original_code isn't one of the
27987 4 allowed comparison codes, fail.
27989 2009-03-23 Richard Guenther <rguenther@suse.de>
27991 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27992 * tree.h (struct tree_type): Likewise.
27993 * reload.h (struct insn_chain): Likewise.
27994 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27995 * function.h (struct function): Likewise.
27996 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27998 2009-03-23 Jakub Jelinek <jakub@redhat.com>
28000 PR tree-optimization/39516
28001 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
28003 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
28005 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
28006 should be set true if BITS_PER_WORD of target is bigger than 32
28008 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
28010 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
28011 Translate -B-options to -rpath-link. Correct existing
28012 rpath-link and conditionalize on !nostdlib.
28014 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28016 * doc/extend.texi (Function Attributes, Variable Attributes):
28018 * doc/invoke.texi (Debugging Options, Optimize Options)
28019 (i386 and x86-64 Options, MCore Options): Likewise.
28021 2009-03-20 Jakub Jelinek <jakub@redhat.com>
28024 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
28025 it for block local namespace aliases.
28026 (gen_decl_die): Pass context_die to gen_namespace_die.
28028 2009-03-19 Jakub Jelinek <jakub@redhat.com>
28031 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
28032 minimum or maximum value.
28034 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
28036 * reginfo.c (globalize_reg): Recompute derived reg sets.
28038 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
28041 * libgcc2.c (mprotect): Do not use signed arguments for
28042 VirtualProtect, use DWORD arguments. Also fix the 'may
28043 be used uninitialized' warning for the np variable.
28045 2009-03-19 Jakub Jelinek <jakub@redhat.com>
28048 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
28049 functions using regparm calling conventions when not optimizing.
28050 (ix86_function_sseregparm): Similarly for sseregparm calling
28053 2009-03-19 Li Feng <nemokingdom@gmail.com>
28055 PR middle-end/39500
28056 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
28057 dependence if the first conflict is after niter iterations.
28059 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
28061 PR middle-end/38609
28062 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
28063 functions with dynamic stack-pointer adjustments.
28065 2009-03-19 Ben Elliston <bje@au.ibm.com>
28067 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
28068 option; change to -msdata=data.
28070 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28072 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
28075 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
28078 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
28080 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
28082 * doc/invoke.texi (Code Gen Options): Expand discussion of
28085 2009-03-18 Jakub Jelinek <jakub@redhat.com>
28087 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
28088 * matrix-reorg.c (struct matrix_info): Likewise.
28089 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
28090 * rtl.h (struct mem_attrs): Likewise.
28091 * df.h (struct df): Likewise.
28092 * tree-data-ref.h (struct data_dependence_relation): Likewise.
28093 * ira-int.h (struct ira_allocno): Likewise.
28094 * df-scan.c (struct df_collection_rec): Likewise.
28095 * ira.c (struct equivalence): Likewise.
28096 * function.c (struct temp_slot): Likewise.
28097 * cfgloop.h (struct loop): Likewise.
28100 * function.c (use_register_for_decl): When not optimizing, disregard
28101 register keyword for variables with types containing methods.
28103 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
28105 PR middle-end/39447
28106 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
28107 (is_simple_operand): Call contains_component_ref_p before calling data
28108 reference analysis that would fail on COMPONENT_REFs.
28110 * tree-vrp.c (search_for_addr_array): Fix formatting.
28112 2009-03-18 Richard Guenther <rguenther@suse.de>
28114 * tree-vect-transform.c (vect_loop_versioning): Fold the
28115 generated comparisons.
28116 * tree-vectorizer.c (set_prologue_iterations): Likewise.
28117 (slpeel_tree_peel_loop_to_edge): Likewise.
28119 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28121 PR middle-end/37805
28122 * opts.c (print_specific_help): In addition to `undocumented',
28123 accept `separate' and `joined' flags if passed alone. Describe
28124 output by the first matched one of those.
28125 (common_handle_option): Skip over empty strings.
28126 * gcc.c (display_help): Fix help string for `--help='.
28127 * doc/invoke.texi (Option Summary, Overall Options): With
28128 `--help=', classes and qualifiers can both be repeated, but
28129 only the latter can be negated. One should not pass only
28130 negated qualifiers. Fix markup and examples.
28133 2008-10-14 Jakub Jelinek <jakub@redhat.com>
28134 PR middle-end/37805
28135 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
28136 and -fhelp=separate.
28138 2009-03-17 Jing Yu <jingyu@google.com>
28140 PR middle-end/39378
28141 * function.h (struct rtl_data): Move is_thunk from here...
28142 (struct function): ...to here.
28143 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
28144 * varasm.c (assemble_start_function): Change is_thunk from crtl to
28146 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
28148 (alpha_does_function_need_gp, alpha_start_function): Likewise.
28149 (alpha_output_function_end_prologue): Likewise.
28150 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
28151 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
28152 (rs6000_output_function_epilogue): Likewise.
28153 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
28155 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
28158 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
28159 from different units in a single alternative.
28160 (*truncdfsf_i387): Ditto.
28161 (*truncxfsf2_mixed): Ditto.
28162 (*truncxfdf2_mixed): Ditto.
28164 2009-03-17 Jakub Jelinek <jakub@redhat.com>
28166 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
28167 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
28170 * tree-ssa-live.c (remove_unused_locals): Don't remove local
28171 unused non-artificial variables when not optimizing.
28174 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
28175 DW_TAG_imported_module even if decl is IMPORTED_DECL with
28176 NAMESPACE_DECL in its DECL_INITIAL.
28178 PR middle-end/39443
28179 * optabs.c (set_user_assembler_libfunc): New function.
28180 * expr.h (set_user_assembler_libfunc): New prototype.
28181 * c-common.c: Include libfuncs.h.
28182 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
28183 for memcmp, memset, memcpy, memmove and abort.
28184 * Makefile.in (c-common.o): Depend on libfuncs.h.
28187 * dwarf2out.c (gen_inlined_enumeration_type_die,
28188 gen_inlined_structure_type_die, gen_inlined_union_type_die,
28189 gen_tagged_type_instantiation_die): Removed.
28190 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
28193 2009-03-17 Janis Johnson <janis187@us.ibm.com>
28196 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
28198 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
28199 (check-parallel-%): Ditto.
28200 (check-consistency): Ditto.
28202 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
28204 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
28205 local variable rhs by NULL_TREE.
28207 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
28210 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
28212 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
28215 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
28217 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
28220 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
28221 for ms->sysv ABI calls only in 64bit mode.
28223 * config/i386/i386.md (untyped_call): Support 32bit.
28225 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
28227 * doc/extend.texi: Replace x86_65 with x86_64.
28229 2009-03-16 Jakub Jelinek <jakub@redhat.com>
28231 PR tree-optimization/39455
28232 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
28233 mismatches for POINTER_TYPE_P (type).
28234 (number_of_iterations_le): Likewise.
28236 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28238 * config/picochip/picochip.c: Removed profiling support.
28239 * config/picochip/picochip.md: Removed profiling instruction.
28240 * config/picochip/picochip.h: Removed profiling builtin.
28242 2009-03-16 Joseph Myers <joseph@codesourcery.com>
28244 * doc/install.texi (--with-host-libstdcxx): Document.
28246 2009-03-14 Anatoly Sokolov <aesok@post.ru>
28249 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
28250 generate a warning if the function name does not begin with
28251 "__vector" and the function has either the 'signal' or 'interrupt'
28252 attribute, from here to ...
28253 (avr_declare_function_name): ...here. New function.
28254 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
28255 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
28257 2009-03-14 Jakub Jelinek <jakub@redhat.com>
28260 * cse.c (fold_rtx): Don't modify original const_arg1 when
28261 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
28262 separate variable instead.
28263 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
28264 from out of range shift counts.
28265 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
28267 2009-03-13 Catherine Moore <clm@codesourcery.com>
28269 * config/i386/x-mingw32 (host-mingw32.o): Replace
28270 diagnostic.h with $(DIAGNOSTIC_H).
28272 2009-03-12 Jakub Jelinek <jakub@redhat.com>
28275 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
28277 * config/i386/sync.md (sync_compare_and_swap<mode>,
28278 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
28279 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
28281 (sync_double_compare_and_swapdi_pic,
28282 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
28283 cmpxchg8b_pic_memory_operand instead of just memory_operand.
28285 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
28288 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
28290 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
28293 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28294 (avx_addsubv4df3): Likewise.
28295 (*avx_addsubv4sf3): Likewise.
28296 (sse3_addsubv4sf3): Likewise.
28298 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
28301 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
28303 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
28306 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
28307 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
28308 registers for allocnos created from user-defined variables.
28310 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28313 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
28314 of non-integer mode as well.
28316 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
28318 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
28319 for functions for which the parameter types are unknown.
28321 2009-03-11 Jakub Jelinek <jakub@redhat.com>
28324 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
28325 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
28326 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
28327 * config/i386/i386.c (ix86_local_alignment): For
28328 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
28329 long long variables on the stack to avoid dynamic realignment.
28330 Allow the first argument to be a decl rather than type.
28331 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
28333 2009-03-11 Nick Clifton <nickc@redhat.com>
28336 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
28338 Add description to mno-lsim option.
28339 * config/mcore/mcore.h: Remove comment about deprecated m4align
28341 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
28342 * doc/invoke.texi: Add description of mno-lsim and
28343 mstack-increment options.
28345 * config/fr30/fr30.opt: Document the -mno-lsim option.
28346 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
28347 and -mno-lsim options.
28349 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28351 * fold-const.c (fold_comparison): Only call fold_inf_compare
28352 if the mode supports infinities.
28354 2009-03-11 Jason Merrill <jason@redhat.com>
28357 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
28358 end already did. Notice GIMPLE_CALL modifications of the result.
28359 Don't copy debug information from an ignored decl or a decl from
28362 2009-03-10 Richard Guenther <rguenther@suse.de>
28363 Nathan Froyd <froydnj@codesourcery.com>
28365 PR middle-end/37850
28366 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
28367 (__divMODE3): Likewise.
28369 2009-03-09 Jakub Jelinek <jakub@redhat.com>
28371 PR tree-optimization/39394
28372 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
28373 DECL_SIZE_UNIT of variable length FIELD_DECLs.
28375 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28377 * recog.c (verfiy_changes): Disallow renaming of hard regs in
28378 inline asms for register asm ("") declarations.
28380 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
28382 * fold-const.c (fold_unary): Fix comment.
28384 2009-03-07 Jan Hubicka <jh@suse.cz>
28387 * tree-inline.c (setup_one_parameter): Do replacement of const
28388 argument by constant in SSA form.
28390 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28392 PR middle-end/38028
28393 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
28394 determine alignment passed to assign_stack_local.
28395 (assign_parms_unsplit_complex): Likewise.
28396 * except.c (sjlj_build_landing_pads): Likewise.
28398 2009-03-06 Jakub Jelinek <jakub@redhat.com>
28400 PR middle-end/39360
28401 * tree-flow.h (add_referenced_var): Return bool instead of void.
28402 * tree-dfa.c (add_referenced_var): Return result of
28403 referenced_var_check_and_insert call.
28404 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
28405 of referenced_var_check_and_insert.
28408 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
28409 (gen_variable_die): Emit DW_AT_location on abstract static variable's
28410 DIE, don't emit it if abstract origin already has it.
28411 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
28412 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
28414 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28416 * genpreds.c (needs_variable): Fix parentheses at variable name
28418 (write_tm_constrs_h): Indent generated code.
28420 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28422 * doc/extend.texi (Function Attributes): Add documentation
28423 for isr attributes.
28425 2009-03-06 Jakub Jelinek <jakub@redhat.com>
28428 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
28429 take locus from its DECL_SOURCE_LOCATION instead of input_location.
28431 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
28433 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
28436 2009-03-05 Jakub Jelinek <jakub@redhat.com>
28439 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
28440 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
28442 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
28444 * config/i386/i386.md (R8_REG, R9_REG): New constants.
28445 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
28446 constants instead of magic numbers.
28447 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
28449 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
28450 (x86_64_ms_abi_int_parameter_registers): Ditto.
28451 (x86_64_int_return_registers): Ditto.
28452 (ix86_maybe_switch_abi): Ditto.
28453 (ix86_expand_call): Ditto for clobbered_registers array.
28454 (ix86_hard_regno_mode_ok): Ditto.
28455 (x86_extended_QIreg_mentioned_p): Ditto.
28457 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
28459 PR tree-optimization/39349
28460 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
28462 * combine.c (gen_lowpart_for_combine): Use omode when generating
28465 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
28467 PR rtl-optimization/39235
28468 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
28470 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
28472 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
28474 2009-03-04 Richard Guenther <rguenther@suse.de>
28476 PR tree-optimization/39362
28477 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
28478 that occur in abnormal PHIs should be varying.
28480 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
28482 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
28484 (simple_iv): Take loop as an argument instead of statement.
28485 * tree-scalar-evolution.h (simple_iv): Declaration changed.
28486 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
28488 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
28490 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
28491 * matrix-reorg.c (analyze_transpose): Ditto.
28492 * tree-data-ref.c (dr_analyze_innermost): Ditto.
28493 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28494 * tree-predcom.c (ref_at_iteration): Ditto.
28495 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
28497 2009-03-04 Richard Guenther <rguenther@suse.de>
28499 PR tree-optimization/39358
28500 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28501 escaped_id and callused_id.
28502 (solve_graph): Likewise.
28504 2009-03-04 Richard Guenther <rguenther@suse.de>
28506 PR tree-optimization/39339
28507 * tree-sra.c (try_instantiate_multiple_fields): Make it
28508 no longer ICE on the above.
28510 2009-03-03 Joseph Myers <joseph@codesourcery.com>
28512 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28513 that fits within Pmode.
28515 2009-03-03 Steve Ellcey <sje@cup.hp.com>
28517 PR middle-end/10109
28518 * tm.texi (LIBCALL_VALUE): Update description.
28520 2009-03-03 Steve Ellcey <sje@cup.hp.com>
28522 PR middle-end/34443
28523 * doc/extend.texi (section): Update description.
28525 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
28527 PR middle-end/39345
28528 * tree-inline.c (remapped_type): New.
28529 (can_be_nonlocal): Call remapped_type instead of remap_type.
28531 2009-03-03 Jakub Jelinek <jakub@redhat.com>
28534 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28535 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28537 2009-03-03 Richard Guenther <rguenther@suse.de>
28539 PR middle-end/39272
28540 * tree.c (tree_nonartificial_location): New function.
28541 * tree.h (tree_nonartificial_location): Declare.
28542 * builtins.c (expand_builtin_memory_chk): Provide location
28543 of the call location for artificial function pieces.
28544 (maybe_emit_chk_warning): Likewise.
28545 (maybe_emit_sprintf_chk_warning): Likewise.
28546 (maybe_emit_free_warning): Likewise.
28547 * expr.c (expand_expr_real_1): Likewise.
28549 2009-03-03 Jakub Jelinek <jakub@redhat.com>
28551 PR tree-optimization/39343
28552 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28553 COMPONENT_REF t has ARRAY_TYPE.
28555 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
28557 PR middle-end/39335
28558 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28559 when the type precision of the induction variable should be
28560 larger than the type precision of nit.
28561 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28562 * graphite.c (graphite_loop_normal_form): Same.
28563 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28565 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
28567 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28568 (*call_1_rex64_ms_sysv): Use named constants instead of magic
28569 numbers to describe clobbered registers.
28570 (*call_value_0_rex64_ms_sysv): Ditto.
28571 * config/i386/mmx.md (mmx_emms): Ditto.
28572 (mmx_femms): Ditto.
28574 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
28576 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28579 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28581 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28582 (spu_section_type_flags): New function.
28584 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
28586 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28587 reg_class_contents of FLOAT_REGS into a temporary.
28589 2009-03-02 Richard Guenther <rguenther@suse.de>
28590 Ira Rosen <irar@il.ibm.com>
28592 PR tree-optimization/39318
28593 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28594 information to the vectorized statement.
28596 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
28598 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28599 variable. Use defined names instead of magic constants for REX SSE
28602 2009-03-01 Richard Guenther <rguenther@suse.de>
28604 PR tree-optimization/39331
28605 * omp-low.c (lower_send_shared_vars): Do not receive new
28606 values for the reference of DECL_BY_REFERENCE parms or results.
28608 2009-03-01 Jan Hubicka <jh@suse.cz>
28611 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28612 BLOCK_NONLOCALIZED_VAR): New macros.
28613 (tree_block): Add nonlocalized_vars.
28614 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28615 gen_decl_die): Add origin argument. Allow generation of die with
28616 origin at hand only.
28617 (gen_member_die, gen_type_die_with_usage, force_decl_die,
28618 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28620 (gen_block_die): Fix checking for unused blocks.
28621 (process_scope_var): Break out from .... ; work with origins only.
28622 (decls_for_scope) ... here; process nonlocalized list.
28623 (dwarf2out_ignore_block): Look for nonlocalized vars.
28624 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28626 (dump_scope_block): Dump them.
28627 * tree-inline.c (remap_decls): Handle nonlocalized vars.
28628 (remap_block): Likewise.
28629 (can_be_nonlocal): New predicate.
28630 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28632 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28634 * configure: Regenerate.
28636 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28638 * optc-gen.awk: No need to duplicate option flags twice.
28639 Reuse help texts for duplicate options which do not have any.
28641 * gcc.c (display_help): Document --version.
28643 * gcc.c (main): If print_help_list and verbose_flag, ensure
28644 driver output comes before subprocess output.
28646 * optc-gen.awk: Assign all remaining fields to help string,
28647 space-separated, for multi-line help in *.opt.
28649 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28650 -Wno-pedantic-ms-format is for MinGW targets only.
28652 * doc/options.texi (Option file format): Fix bad indentation,
28653 restoring dropped sentence.
28655 2009-02-28 Jan Hubicka <jh@suse.cz>
28657 * tree-inline.c (tree_function_versioning): Output debug info.
28659 2009-02-28 Jan Hubicka <jh@suse.cz>
28662 * tree-inline.c (setup_one_parameter): Do not copy propagate
28663 arguments when not optimizing.
28665 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
28668 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28669 (avx_addsubv4df3): Likewise.
28670 (*avx_addsubv4sf3): Likewise.
28671 (sse3_addsubv4sf3): Likewise.
28672 (*avx_addsubv2df3): Likewise.
28673 (sse3_addsubv2df3): Likewise.
28674 (avx_unpckhps256): Correct item selectors.
28675 (avx_unpcklps256): Likewise.
28676 (avx_unpckhpd256): Likewise.
28677 (avx_unpcklpd256): Likewise.
28679 2009-02-28 Jan Hubicka <jh@suse.cz>
28681 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28683 (copy_arguments_for_versioning): If var is declared don't declare it.
28684 (tree_function_versioning): First setup substitutions and then copy
28687 2009-02-27 Jan Hubicka <jh@suse.cz>
28690 * cgraph.h (varpool_output_debug_info): Remove.
28691 * cgraphunit.c (varpool_output_debug_info): Remove.
28692 * dwarf2out.c (deferred_locations_struct): New struct
28693 (deferred_locations): New type.
28694 (deferred_locations_list): New static var.
28695 (deffer_location): New function.
28696 (gen_variable_die): Use it.
28697 (decls_for_scope): Output info on local static vars.
28698 (dwarf2out_finish): Process deferred locations.
28699 * varpool.c (varpool_output_debug_info): Remove.
28701 2009-02-27 Jan Hubicka <jh@suse.cz>
28704 * tree.h (TREE_PROTECTED): Fix comment.
28705 (BLOCK_HANDLER_BLOCK): Remove.
28706 (struct tree_block): Remove handler_block add body_block.
28707 (inlined_function_outer_scope_p): New.
28708 (is_body_block): Remove.
28709 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28710 * dwarf2out.c (is_inlined_entry_point): Remove.
28711 (add_high_low_attributes): Use inlined_function_outer_scope_p.
28712 (gen_block_die): Use is_inlined_entry_point check. Remove body block
28714 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28715 * gimplify.c (gimplify_expr): Gimplify body blocks.
28716 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28717 block with multiple subblocks.
28718 (dump_scope_block): Prettier output; dump more flags and info.
28719 (dump_scope_blocks): New.
28720 (remove_unused_locals): Use dump_scope_blocks.
28721 * tree-flow.h (dump_scope_blocks): Declare.
28722 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28723 * stmt.c (is_body_block): Remove.
28724 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28725 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28727 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
28729 PR middle-end/39308
28730 * graphite.c (graphite_loop_normal_form): Do not call
28731 number_of_iterations_exit from a gcc_assert.
28733 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28735 * config/s390/s390.c (s390_swap_cmp): Look for conditional
28736 jumps if COND is NULL.
28737 (find_cond_jump): New function.
28738 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28739 * config/s390/s390.md: Remove z10_cobra attribute value.
28741 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
28743 * config/alpha/alpha.h (alpha_expand_mov): Return false if
28744 force_const_mem returns NULL_RTX.
28746 2009-02-26 Jan Hubicka <jh@suse.cz>
28749 * cgraph.h (varpool_output_debug_info): Remove.
28750 * cgraphunit.c (varpool_output_debug_info): Remove.
28751 * dwarf2out.c (deferred_locations_struct): New struct
28752 (deferred_locations): New type.
28753 (deferred_locations_list): New static var.
28754 (deffer_location): New function.
28755 (gen_variable_die): Use it.
28756 (decls_for_scope): Output info on local static vars.
28757 (dwarf2out_finish): Process deferred locations.
28758 * varpool.c (varpool_output_debug_info): Remove.
28760 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
28762 PR rtl-optimization/39241
28763 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28764 to subreg_offset_representable_p.
28766 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
28768 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28769 execute function prototype. Get f and nregs from max_reg_num
28770 and get_insns. Remove the first backward pass as it's dead,
28771 guard the forward pass by flag_expensive_optimizations.
28772 (rest_of_handle_regmove): Delete.
28773 (pass_regmove): Replace it with regmove_optimize.
28775 2009-02-25 Martin Jambor <mjambor@suse.cz>
28777 PR tree-optimization/39259
28778 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28779 calls_alloca function flags.
28780 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28781 calls are detected.
28783 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
28785 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28786 flags_set_1_rtx, flags_set_1_set): Delete.
28787 (regmove_optimize): Do not call mark_flags_life_zones.
28789 2009-02-24 Julian Brown <julian@codesourcery.com>
28792 * config/arm/arm.c (require_pic_register): Only set
28793 cfun->machine->pic_reg once per function.
28795 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
28797 * doc/invoke.texi (Link Options): Document an easier way to pass
28798 options that take arguments to the GNU linker using -Xlinker and -Wl.
28800 2009-02-24 Steve Ellcey <sje@cup.hp.com>
28803 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28805 2009-02-24 Richard Guenther <rguenther@suse.de>
28808 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28810 2009-02-24 Richard Guenther <rguenther@suse.de>
28811 Zdenek Dvorak <ook@ucw.cz>
28813 PR tree-optimization/39233
28814 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28815 from converting them to a generic type.
28817 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
28819 PR tree-optimization/39260
28820 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28821 contains a condition with a real type.
28822 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28824 2009-02-23 Jason Merrill <jason@redhat.com>
28827 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28828 narrowing_initializer_constant_valid_p.
28829 (narrowing_initializer_constant_valid_p): Don't return
28830 null_pointer_node for adding a pointer to itself.
28832 2009-02-23 Jan Hubicka <jh@suse.cz>
28835 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28838 2009-02-23 Jan Hubicka <jh@suse.cz>
28840 PR tree-optimization/37709
28841 * tree.c (block_ultimate_origin): Move here from dwarf2out.
28842 * tree.h (block_ultimate_origin): Declare.
28843 * dwarf2out.c (block_ultimate_origin): Move to tree.c
28844 * tree-ssa-live.c (remove_unused_scope_block_p):
28845 Eliminate blocks containig no instructions nor live variables nor
28847 (dump_scope_block): New function.
28848 (remove_unused_locals): Enable removal of dead blocks by default;
28849 enable dumping at TDF_DETAILS.
28851 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28853 * config/i386/i386.c (classify_argument): Don't allow COImode
28855 (function_arg_advance_32): Don't allow OImode.
28856 (function_arg_32): Likewise.
28857 (function_value_32): Likewise.
28858 (return_in_memory_32): Likewise.
28859 (function_arg_64): Remove OImode comment.
28861 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28864 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28865 ix86_expand_vector_set for V4DImode in 64bit mode only.
28866 (ix86_expand_vector_init_one_var): Likewise.
28868 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
28870 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28872 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28875 * loop-iv.c: Revert last change.
28876 * emit-rtl.c: Likewise.
28878 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28881 * config/i386/i386.c (type_natural_mode): Remove an extra
28882 space in the warning message.
28883 (function_value_32): Handle 32-byte vector modes.
28884 (return_in_memory_32): Likewise.
28886 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28888 * loop-iv.c (truncate_value): New function.
28889 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28891 (lowpart_subreg): Move to...
28892 * emit-rtl.c: ...here.
28894 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
28896 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28897 accidental and undocumented change at revision 140860.
28899 2009-02-21 Joseph Myers <joseph@codesourcery.com>
28901 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28902 take gimple_seq * arguments.
28903 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28904 types_compatible_p langhook.
28906 2009-02-20 Mark Mitchell <mark@codesourcery.com>
28907 Joseph Myers <joseph@codesourcery.com>
28909 * config/arm/arm.c (arm_builtin_va_list): New function.
28910 (arm_expand_builtin_va_start): Likewise.
28911 (arm_gimplify_va_arg_expr): Likewise.
28912 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28913 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28914 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28915 (va_list_type): New variable.
28916 (arm_mangle_type): Mangle va_list_type appropriately.
28918 2009-02-20 Jakub Jelinek <jakub@redhat.com>
28920 PR middle-end/39157
28921 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28922 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28923 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28924 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28925 parameter to 1000 for -O1 by default.
28926 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28928 * loop-invariant.c: Include params.h.
28929 (move_loop_invariants): Don't call move_single_loop_invariants on
28932 2009-02-20 Jaka Mocnik <jaka@xlab.si>
28934 * calls.c (emit_library_call_value_1): Use slot_offset instead of
28935 offset when calculating bounds for indexing stack_usage_map. Fixes
28936 a buffer overflow with certain target setups.
28938 2009-02-20 Jakub Jelinek <jakub@redhat.com>
28941 * calls.c (expand_call): Clear try_tail_call if caller and callee
28942 disagree in promotion of function return value.
28944 2009-02-19 Jakub Jelinek <jakub@redhat.com>
28947 * c-common.c (c_determine_visibility): If visibility changed and
28948 DECL_RTL has been already set, call make_decl_rtl to update symbol
28951 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
28954 * varasm.c (assemble_variable): Don't check DECL_NAME when
28955 globalizing a variable.
28957 2009-02-19 Joseph Myers <joseph@codesourcery.com>
28960 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28961 expression before any __builtin_trap call.
28962 * c-typeck.c (build_function_call): Convert and check function
28963 arguments before generating a call to a trap. Evaluate the
28964 function arguments before the trap.
28966 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
28969 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28970 (UNSPEC_FXAM_MEM): New unspec.
28971 (fxam<mode>2_i387_with_temp): New insn and split pattern.
28972 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
28973 memory using fxam<mode>2_i387_with_temp to remove excess precision.
28975 2009-02-19 Richard Guenther <rguenther@suse.de>
28977 PR tree-optimization/39207
28978 PR tree-optimization/39074
28979 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28980 storedanything_tree): New.
28981 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
28982 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28983 (build_succ_graph): Add edges from STOREDANYTHING to all
28985 (init_base_vars): Initialize STOREDANYTHING.
28986 (compute_points_to_sets): Free substitution info after
28987 building the succ graph.
28988 (ipa_pta_execute): Likewise.
28990 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28992 (do_ds_constraint): Do not add to special var or non-pointer
28994 (type_could_have_pointers): Split out from ...
28995 (could_have_pointers): ... here. For arrays use the element type.
28996 (create_variable_info_for): Initialize may_have_pointers.
28997 (new_var_info): Likewise.
28998 (handle_lhs_call): Make the HEAP variable unknown-sized.
28999 (intra_create_variable_infos): Use a type with pointers for
29000 PARM_NOALIAS, make it unknown-sized.
29002 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
29005 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
29007 2009-02-18 Jason Merrill <jason@redhat.com>
29010 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
29011 value if DECL_EXTERNAL.
29012 * tree-sra.c (sra_walk_gimple_assign): Likewise.
29013 * target.h (gcc_target::binds_local_p): Clarify "module".
29014 * tree.h (TREE_PUBLIC): Clarify "module".
29016 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
29019 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
29020 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
29022 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
29025 * c.opt (Wabi): Support C and ObjC.
29028 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
29030 * config/i386/i386.c (classify_argument): Warn once about the ABI
29031 change when passing union with long double.
29033 * doc/invoke.texi: Update -Wabi for warning psABI changes.
29035 2009-02-18 Joseph Myers <joseph@codesourcery.com>
29038 * c-parser.c (c_parser_compound_statement): Always enter and leave
29041 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29044 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
29046 2009-02-18 Jakub Jelinek <jakub@redhat.com>
29048 PR tree-optimization/36922
29049 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
29050 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
29053 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
29055 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
29058 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
29060 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
29062 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
29064 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
29067 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
29068 Richard Sandiford <rdsandiford@googlemail.com>
29070 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
29071 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
29072 (loongson_biadd): ...this.
29074 2009-02-17 Richard Guenther <rguenther@suse.de>
29076 PR tree-optimization/39202
29077 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
29078 a var make sure to follow existing collapses.
29080 2009-02-17 Richard Guenther <rguenther@suse.de>
29082 PR middle-end/39214
29083 * langhooks.c (lhd_print_error_function): Check for NULL block.
29085 2009-02-17 Richard Guenther <rguenther@suse.de>
29087 PR tree-optimization/39204
29088 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
29091 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
29093 * config/soft-fp/double.h: Update from glibc CVS.
29095 2009-02-17 Richard Guenther <rguenther@suse.de>
29097 PR tree-optimization/39207
29098 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
29099 strict-aliasing warnings for pointers pointing to NULL.
29101 2009-02-16 Joseph Myers <joseph@codesourcery.com>
29104 * c-parser.c (c_parser_braced_init): Call pop_init_level when
29105 skipping until next close brace.
29107 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
29110 * config/i386/i386.c (ix86_expand_push): Set memory alignment
29111 to function argument boundary.
29113 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
29115 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
29116 in the lea_add. Reload eventually constraints it properly.
29117 * config/picochip/constraints.md: Remove the target constraint
29118 "b", since it is not needed anymore.
29120 2009-02-16 Jakub Jelinek <jakub@redhat.com>
29122 * gthr-dce.h: Uglify function parameter and local variable names.
29123 * gthr-gnat.h: Likewise.
29124 * gthr-mipssde.h: Likewise.
29125 * gthr-nks.h: Likewise.
29126 * gthr-posix95.h: Likewise.
29127 * gthr-posix.h: Likewise.
29128 * gthr-rtems.h: Likewise.
29129 * gthr-single.h: Likewise.
29130 * gthr-solaris.h: Likewise.
29131 * gthr-tpf.h: Likewise.
29132 * gthr-vxworks.h: Likewise.
29133 * gthr-win32.h: Likewise.
29135 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
29138 * config/i386/i386.md: Restrict the new peephole2 to move
29139 between MMX/SSE registers.
29141 2009-02-15 Richard Guenther <rguenther@suse.de>
29144 2009-02-13 Richard Guenther <rguenther@suse.de>
29146 * configure.ac: Enable LFS.
29147 * configure: Re-generate.
29148 * config.in: Likewise.
29150 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29152 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
29153 spu_srqwbyte, spu_srqwbytebc): Define.
29154 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
29155 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
29156 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
29157 "shrqby_<mode>"): New insn-and-split patterns.
29158 * config/spu/spu.c (expand_builtin_args): Determine and return
29159 number of operands using spu_builtin_description data.
29160 (spu_expand_builtin_1): Use it.
29162 2009-02-13 Steve Ellcey <sje@cup.hp.com>
29165 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
29168 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
29171 * config/i386/i386.c (override_options): Correct warning
29172 messages for -malign-loops, -malign-jumps and -malign-functions.
29174 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
29177 * config/i386/i386.md: Restrict the new peephole2 to move
29178 between the general purpose registers.
29180 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
29183 * config/i386/i386.c (type_natural_mode): Add a new argument.
29184 Return the original mode and warn ABI change if vector size is 32byte.
29185 (function_arg_advance): Updated.
29186 (function_arg): Likewise.
29187 (ix86_function_value): Likewise.
29188 (ix86_return_in_memory): Likewise.
29189 (ix86_sol10_return_in_memory): Likewise.
29190 (ix86_gimplify_va_arg): Likewise.
29191 (function_arg_32): Don't warn ABX ABI change here.
29192 (function_arg_64): Likewise.
29194 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
29196 * loop-iv.c (implies_p): In the final case, test that operands 0
29197 of the two comparisons match.
29199 * config/bfin/bfin.c (find_prev_insn_start): New function.
29200 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
29201 (find_next_insn_start): Move.
29203 2009-02-13 Richard Guenther <rguenther@suse.de>
29205 * configure.ac: Enable LFS.
29206 * configure: Re-generate.
29207 * config.in: Likewise.
29209 2009-02-13 Joseph Myers <joseph@codesourcery.com>
29212 * c-parser.c (c_parser_parms_list_declarator): Discard pending
29213 sizes on syntax error after some arguments have been parsed.
29215 2009-02-12 Jakub Jelinek <jakub@redhat.com>
29217 * doc/invoke.texi (-fira): Remove.
29219 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
29221 * caller-save.c: Replace regclass.c with reginfo.c in comments.
29222 * recog.c: Likewise.
29225 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
29227 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
29228 (umul_ppmm): Likewise.
29229 (count_leading_zeros): Likewise.
29230 (count_trailing_zeros): Likewise.
29231 (UMUL_TIME): Likewise.
29233 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
29235 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
29236 soft-fp/t-softfp to tmake_file.
29238 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
29239 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
29240 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
29241 IA64_BUILTIN_INFQ]: New.
29242 (ia64_init_builtins): Initialize __builtin_infq,
29243 __builtin_fabsq and __builtin_copysignq if not HPUX.
29244 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
29245 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
29247 * config/ia64/lib1funcs.asm (__divtf3): Define only if
29249 (__fixtfti): Likewise.
29250 (__fixunstfti): Likewise.
29251 (__floattitf): Likewise.
29253 * config/ia64/libgcc-glibc.ver: New.
29254 * config/ia64/t-fprules-softfp: Likewise.
29255 * config/ia64/sfp-machine.h: Likewise.
29257 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
29258 (LIBGCC2_TF_CEXT): Likewise.
29259 (TF_SIZE): Likewise.
29260 (TARGET_INIT_LIBFUNCS): Likewise.
29262 * config/ia64/t-glibc (SHLINB_MAPFILES):
29263 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
29265 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
29267 * config/i386/i386.c (construct_container): Rewrite processing
29268 BLKmode with X86_64_SSE_CLASS.
29270 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
29273 * config/i386/i386.md: Replace simplify_replace_rtx with
29274 replace_rtx in the new peephole2.
29276 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
29278 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
29279 loop unrolling do not happen at -O2.
29281 2009-02-12 Michael Matz <matz@suse.de>
29283 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
29285 2009-02-12 Jakub Jelinek <jakub@redhat.com>
29287 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
29290 2009-02-12 Ben Elliston <bje@au.ibm.com>
29292 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
29293 patterns when updating the back chain. Missed in the 2009-02-10
29296 2009-02-11 Janis Johnson <janis187@us.ibm.com>
29298 * doc/extend.texi (Decimal Floating Types): Update identifier of
29299 draft TR and list of missing support.
29301 2009-02-11 Jakub Jelinek <jakub@redhat.com>
29303 PR middle-end/39154
29304 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
29305 bit to variable length decl's flags, add it also to its
29306 pointer replacement variable.
29308 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
29309 Jakub Jelinek <jakub@redhat.com>
29312 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
29313 (memory_blockage): New expander.
29314 (*memory_blockage): New insn pattern.
29315 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
29316 instead of general blockage at the end of function prologue when
29317 frame pointer is used to access red zone area. Do not emit blockage
29318 when profiling, it is emitted in generic code.
29319 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
29320 function epilogue when frame pointer is used to access red zone area.
29322 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
29325 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
29326 by arithmetic with memory operands.
29327 * config/i386/predicates.md (commutative_operator): New.
29329 2009-02-10 Janis Johnson <janis187@us.ibm.com>
29331 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
29334 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
29336 * alias.h (record_alias_subset): Declare.
29337 * alias.c (record_alias_subset): Make global.
29339 2009-02-10 Nick Clifton <nickc@redhat.com>
29341 * tree-parloops.c: Change license to GPLv3.
29342 * ipa-struct-reorg.c: Change license to GPLv3.
29343 * ipa-struct-reorg.h: Change license to GPLv3.
29345 2009-02-10 Steve Ellcey <sje@cup.hp.com>
29348 * c-decl.c (start_struct): Return NULL on error.
29350 2009-02-10 Jakub Jelinek <jakub@redhat.com>
29352 PR middle-end/39124
29353 * cfgloopmanip.c (remove_path): Call remove_bbs after
29354 cancel_loop_tree, not before it.
29357 * function.h (struct function): Add has_local_explicit_reg_vars bit.
29358 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
29359 VAR_DECLs were seen.
29360 * tree-ssa-live.c (remove_unused_locals): Recompute
29361 cfun->has_local_explicit_reg_vars.
29362 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
29363 copies or clearings if cfun->has_local_explicit_reg_vars.
29365 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
29368 * config/i386/i386.c (expand_prologue): Emit blockage at the end
29369 of function prologue when frame pointer is used to access
29372 2009-02-10 Richard Guenther <rguenther@suse.de>
29374 PR middle-end/39127
29375 * gimplify.c (gimple_regimplify_operands): Always look if
29376 we need to create a temporary.
29378 2009-02-10 Richard Guenther <rguenther@suse.de>
29380 PR tree-optimization/39132
29381 * tree-loop-distribution.c (todo): New global var.
29382 (generate_memset_zero): Trigger TODO_rebuild_alias.
29383 (tree_loop_distribution): Return todo.
29385 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
29388 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
29389 (x86_64_reg_class_name): Removed.
29390 (classify_argument): Return 0 if bytes > 32. Return 0 if the
29391 first one isn't X86_64_SSE_CLASS or any other ones aren't
29392 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
29393 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
29394 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
29395 and 3 X86_64_SSEUP_CLASS.
29396 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
29397 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
29399 2009-02-10 Ben Elliston <bje@au.ibm.com>
29401 * config/rs6000/rs6000.md (allocate_stack): Always use an update
29402 form instruction to update the stack back chain word, even if the
29403 user has disabled the generation of update instructions.
29404 (movdi_<mode>_update_stack): New.
29405 (movsi_update_stack): Likewise.
29406 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
29407 always use an update form instruction to update the stack back
29410 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
29412 PR middle-end/38953
29413 * graphite.c (if_region_set_false_region): After moving a region in
29414 the false branch of a condition, remove the empty dummy basic block.
29415 (gloog): Remove wrong fix for PR38953.
29417 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29419 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
29420 generation due to implicit sign extension.
29422 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
29424 PR middle-end/38981
29425 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
29426 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
29428 2009-02-09 Richard Guenther <rguenther@suse.de>
29430 PR middle-end/35202
29431 * convert.c (convert_to_real): Disable (float)fn((double)x)
29432 to fnf(x) conversion if errno differences may occur and
29433 -fmath-errno is set.
29435 2009-02-07 Anatoly Sokolov <aesok@post.ru>
29437 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
29438 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29439 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
29441 2009-02-06 Joseph Myers <joseph@codesourcery.com>
29444 * c-common.c (handle_alias_attribute): Disallow attribute for
29445 anything not a FUNCTION_DECL or VAR_DECL.
29447 2009-02-06 Janis Johnson <janis187@us.ibm.com>
29450 * real.c (do_compare): Special-case compare of zero against
29451 decimal float value.
29453 2009-02-06 Joseph Myers <joseph@codesourcery.com>
29456 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
29457 as indicating flexible array members unless the field itself is
29458 being declarared as the incomplete array.
29460 2009-02-06 Jan Hubicka <jh@suse.cz>
29462 PR tree-optimization/38844
29463 * ipa-inline.c (try_inline): Stop inlining recursion when edge
29464 is already inlined.
29466 2009-02-06 Richard Guenther <rguenther@suse.de>
29468 PR middle-end/38977
29469 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
29470 fork because we may expand it as __gcov_fork.
29472 2009-02-06 Nick Clifton <nickc@redhat.com>
29474 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
29476 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
29478 PR tree-optimization/35659
29479 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
29480 vn_phi_eq): Shortcut if hashcode does not match.
29481 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
29483 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
29484 and avoid iterative_hash_expr.
29485 (FOR_EACH_VALUE_ID_IN_SET): New.
29486 (value_id_compare): Remove.
29487 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
29488 sort expressions by value id.
29490 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
29493 * config/sh/predicates.md (general_movsrc_operand): Don't check
29494 the subreg of system registers here.
29496 2009-02-05 Jakub Jelinek <jakub@redhat.com>
29499 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29500 on the copied decl.
29502 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
29504 PR rtl-optimization/39110
29505 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29506 addresses, not aligned ones.
29508 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
29509 Richard Guenther <rguenther@suse.de>
29511 PR tree-optimization/39100
29512 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29513 comment says and add edges.
29515 2009-02-05 Joseph Myers <joseph@codesourcery.com>
29518 * c-common.c (handle_tls_model_attribute): Ignore attribute for
29519 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29521 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
29523 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29524 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29525 register_bb_in_sese, new_sese, free_sese): Moved.
29526 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29527 outermost_loop_in_scop, build_scop_iteration_domain,
29528 expand_scalar_variables_ssa_name, get_vdef_before_scop,
29529 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29530 Use loop_in_sese_p instead of loop_in_scop_p.
29531 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29532 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29533 (scopdet_basic_block_info): Fix bug in scop detection.
29534 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29535 eq_loop_to_cloog_loop): Remove.
29536 (nb_loops_around_loop_in_scop, nb_loop
29537 ref_nb_loops): Moved here...
29538 * graphite.h (ref_nb_loops): ... from here.
29539 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29540 (loop_domain_dim, loop_iteration_vector_dim): Remove.
29541 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29543 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
29544 Hans-Peter Nilsson <hp@axis.com>
29546 PR rtl-optimization/37889
29547 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29548 Move offset handling from PLUS to before the switch. Use new
29549 arguments when considering SYMBOL_REFs too.
29550 (rtx_addr_can_trap_p): Pass dummy offset and size.
29551 (enum may_trap_p_flags): Remove.
29552 (may_trap_p_1): Pass size from MEM_SIZE.
29554 PR rtl-optimization/38921
29555 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29556 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29557 * rtlanal.c (may_trap_after_code_motion_p): Delete.
29558 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29560 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
29562 AVX Programming Reference (January, 2009)
29563 * config/i386/sse.md (*vpclmulqdq): New.
29565 2009-02-04 Jakub Jelinek <jakub@redhat.com>
29567 PR tree-optimization/38977
29568 PR gcov-profile/38292
29569 * calls.c (special_function_p): Disregard __builtin_ prefix.
29571 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
29573 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29574 non-indexable addresses even before reload.
29576 2009-02-03 Joseph Myers <joseph@codesourcery.com>
29579 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29580 as having variable size. Do not give an error for unnamed
29581 parameters with [*] declarators. Give a warning for type names
29582 with [*] declarators and mark them as variable size.
29583 * c-parser.c (c_parser_sizeof_expression): Do not give an error
29584 for sizeof applied to [*] type names.
29586 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
29589 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29591 2009-02-03 Jakub Jelinek <jakub@redhat.com>
29593 * gcc.c (process_command): Update copyright notice dates.
29594 * gcov.c (print_version): Likewise.
29595 * gcov-dump.c (print_version): Likewise.
29596 * mips-tfile.c (main): Likewise.
29597 * mips-tdump.c (main): Likewise.
29599 2009-02-03 Joseph Myers <joseph@codesourcery.com>
29602 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29603 for composite type involving a zero-length array type.
29605 2009-02-03 Jakub Jelinek <jakub@redhat.com>
29608 * function.c (match_asm_constraints_1): Skip over
29609 initial optional % in the constraint.
29611 PR inline-asm/39059
29612 * c-parser.c (c_parser_postfix_expression): If fixed point is not
29613 supported, don't accept FIXED_CSTs.
29614 * c-decl.c (finish_declspecs): Error if fixed point is not supported
29615 and _Sat is used without _Fract/_Accum. Set specs->type to
29616 integer_type_node for cts_fract/cts_accum if fixed point is not
29619 2009-02-02 Catherine Moore <clm@codesourcery.com>
29621 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29623 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
29625 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29626 (ABI_HAS_64BIT_SYMBOLS): Use it.
29627 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29629 2009-02-02 Paul Brook <paul@codesourcery.com>
29631 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29633 2009-02-02 Jakub Jelinek <jakub@redhat.com>
29635 PR inline-asm/39058
29636 * recog.h (asm_operand_ok): Add constraints argument.
29637 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
29638 recurse on matching constraint.
29639 (check_asm_operands): Pass constraints as 3rd argument to
29640 asm_operand_ok. Don't look up matching constraint here.
29641 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29644 2009-02-02 Ben Elliston <bje@au.ibm.com>
29646 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29647 TARGET_NARROW_VOLATILE_BITFIELD macro names.
29649 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29651 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29652 information. Remove some obsolete information. Reorganize.
29654 * config/pa/fptr.c: Revert license to GPL 2.
29655 * config/pa/milli64.S: Likewise.
29657 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29660 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
29661 LIBRARY name in, instead of hard-coding it.
29662 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
29663 extra target make frag to tmake_files according to EH model.
29664 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29665 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
29666 frags that define makefile variable EH_MODEL appropriately.
29667 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
29668 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
29669 to "-sjlj" according to type of EH configured.
29670 (LIBGCC_SONAME): Concatenate it to shared library base name.
29671 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
29672 to "_sjlj" according to type of EH configured.
29673 (LIBGCC_SONAME): Concatenate it to shared library base name.
29674 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
29675 (SHLIB_LINK): Add missing semicolon to if-else construct.
29676 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29677 string value of "pe_dll" command-line option.
29678 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
29679 (SHLIB_SONAME): Use it when overriding t-cygming default.
29680 (SHLIB_IMPLIB): Override t-cygming default.
29681 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29682 string value of "pe_dll" command-line option.
29684 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29687 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29688 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29690 2009-01-31 Richard Guenther <rguenther@suse.de>
29692 PR tree-optimization/38937
29693 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29694 computing the transitive closure.
29696 2009-01-30 Richard Guenther <rguenther@suse.de>
29698 PR tree-optimization/39041
29699 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29700 Propagate variable indices only if the types match for this stmt.
29702 2009-01-30 Jakub Jelinek <jakub@redhat.com>
29705 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29706 inline but never defined.
29708 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
29710 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29711 (*insv_h_di_reg_extimm): New insn.
29712 (*insv_l<mode>_reg_extimm): New insn.
29714 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29716 * config/picochip/picochip.c (flag_conserve_stack): set
29717 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29718 fconserve-stack. Reduce call-overhead used by inliner.
29720 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29723 * common.opt (flag_conserve_stack): Initialised to zero.
29725 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
29728 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29729 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29732 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
29734 * ira-color.c (allocno_reload_assign): Update comments.
29735 * regmove.c (regmove_optimize): Likewise.
29739 2009-01-29 Robert Millan <rmh@aybabtu.com>
29741 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29742 * config/i386/kopensolaris-gnu.h: New file. Undefine
29743 `MD_UNWIND_SUPPORT'.
29744 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29746 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
29748 PR tree-optimization/39007
29749 * tree-loop-distribution.c (generate_builtin): Use
29750 recompute_dominator to compute the immediate dominator of the
29751 basic block just after the loop.
29753 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29755 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29756 (ASM_OUTPUT_DWARF_PCREL): Define.
29758 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
29760 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29761 * doc/passes.texi: Remove entries about regclass, local-alloc, and
29762 global. Modify entries about regmove and IRA.
29764 * ra-conflict.c: Remove the file.
29766 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29768 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29769 (pass_regclass_init): Rename to pass_reginfo_init.
29771 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29773 * toplev.h (flag_ira): Remove.
29775 * caller-save.c (setup_save_areas): Remove flag_ira.
29777 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29779 * global.c: Remove the file.
29781 * opts.c (decode_options): Remove flag_ira.
29783 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29785 * regmove.c: Modify file description.
29786 (find_use_as_address, try_auto_increment): Define them only if
29787 AUTO_INC_DEC is defined.
29788 (replacement_quality, replace_in_call_usage, fixup_match_1,
29789 stable_and_no_regs_but_for_p): Remove.
29790 (reg_set_in_bb): Make it static.
29791 (regmove_optimize): Remove flag_ira and code which worked for
29794 * local-alloc.c: Remove the file.
29796 * common.opt (fira): Remove.
29798 * ira.c: Include except.h.
29799 (eliminable_regset): Move from global.c.
29800 (mark_elimination): Ditto. Remove flag_ira.
29801 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29802 equiv_mem_modified, validate_equiv_mem_from_store,
29803 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29804 contains_replace_regs, memref_referenced_p, memref_used_between_p,
29805 no_equiv, recorded_label_ref): Move from local-alloc.c.
29806 (update_equiv_regs): Ditto. Make it static.
29807 (print_insn_chain, print_insn_chains): Move it from global.c.
29808 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
29809 (build_insn_chain): Ditto. Make it static.
29810 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
29811 Rename to init_live_subregs.
29812 (gate_ira): Remove flag_ira.
29814 * regclass.c: Rename reginfo.c. Change file description.
29815 (FORBIDDEN_INC_DEC_CLASSES): Remove.
29816 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29817 (init_reg_sets_1): Remove code for evaluation of
29818 reg_class_superclasses and losing_caller_save_reg_set.
29819 (init_regs): Remove init_reg_autoinc.
29820 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29821 ok_for_base_p_nonstrict): Remove.
29822 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
29823 (pass_regclass_init): Rename to pass_reginfo_init. Modify
29824 corresponding entries.
29825 (dump_regclass, record_operand_costs, scan_one_insn,
29826 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29827 record_address_regs, auto_inc_dec_reg_p): Remove.
29828 (gt-regclass.h): Rename to gt-reginfo.h.
29830 * rtl.h (dump_global_regs, retry_global_alloc,
29831 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29833 * Makefile.in (RA_H): Remove.
29834 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29835 Rename regclass.o to reginfo.o.
29836 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
29838 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29839 (GTFILES): Rename regclass.c to reginfo.c.
29841 * passes.c (init_optimization_passes): Remove pass_local_alloc and
29842 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
29844 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29845 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29847 (finish_spills): Ditto. Remove code for !flag_ira.
29849 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
29851 PR middle-end/35854
29852 * doc/invoke.texi (rtl debug options): Complete rewrite.
29853 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29855 * mode-switching.c (pass_mode_switching): Rename pass from
29856 "mode-sw" to "mode_sw".
29857 * except.c (pass_convert_to_eh_ranges): Rename pass from
29858 "eh-ranges" to "eh_ranges".
29859 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29863 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
29864 Alexander Monakov <amonakov@ispras.ru>
29866 PR middle-end/38857
29867 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29869 (move_exprs_to_boundary): Change return type and pass through
29870 should_move from move_op. Relax assert. Update usage ...
29871 (schedule_expr_on_boundary): ... here. Use should_move instead of
29873 (move_op_orig_expr_found): Indicate that insn was disconnected from
29875 (code_motion_process_successors): Do not call after_merge_succs
29876 callback if original expression was not found when traversing any of
29878 (code_motion_path_driver): Change return type. Update prototype.
29879 (move_op): Update comment. Add a new parameter (should_move). Update
29880 prototype. Set *should_move based on indication provided by
29881 move_op_orig_expr_found.
29883 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
29885 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29886 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29887 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29888 * config/rs6000/rs6000.c (rs6000_override_options): Default
29889 avoid-indexed-addresses on for Power6, off for everything else.
29890 (avoiding_indexed_address_p): New function.
29891 (rs6000_legitimize_address): Use it.
29892 (rs6000_legitimate_address): Likewise.
29893 * config/rs6000/rs6000.md (movXX_updateX): Likewise
29895 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
29897 PR tree-optimization/38997
29898 * tree-loop-distribution.c (generate_memset_zero): Use
29899 POINTER_PLUS_EXPR for a pointer addition.
29901 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
29903 * config/s390/s390.md (bswap<mode>2): New pattern added.
29905 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29907 * config/s390/s390.md (*tls_load_31): Added type attribute.
29909 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29911 * config/s390/s390.md: Fix a few comments.
29913 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29915 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29916 (*tm<mode>_full): Fixed z10prop attribute.
29917 (*tst<mode>_extimm): Fixed z10prop attribute.
29918 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29919 (*tstqiCCT_cconly): Fixed z10prop attribute.
29920 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29921 (*movsi_larl): Fixed z10prop attribute.
29922 (*movsi_zarch): Fixed z10prop attribute.
29923 (*movsi_eas): Fixed z10prop attribute.
29924 (*movhi): Fixed z10prop attribute.
29925 (*movqi): Fixed z10prop attribute.
29926 (*movstrictqi): Fixed z10prop attribute.
29927 (*mov<mode>): Fixed z10prop attribute.
29928 (*movcc): Fixed z10prop attribute.
29929 (*sethighpartdi_64): Fixed z10prop attribute.
29930 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29931 (*negdi2_sign_cc): Fixed z10prop attribute.
29932 (*negdi2_sign): Fixed z10prop attribute.
29933 (*absdi2_sign_cc): Fixed z10prop attribute.
29934 (*absdi2_sign): Fixed z10prop attribute.
29935 (*negabsdi2_sign_cc): Fixed z10prop attribute.
29936 (*negabsdi2_sign): Fixed z10prop attribute.
29937 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29938 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29939 (doloop_si64): Fixed z10prop attribute.
29940 (doloop_si31): Fixed z10prop attribute.
29941 (doloop_long): Fixed z10prop attribute.
29942 (indirect_jump): Fixed z10prop attribute.
29943 (nop): Fixed z10prop attribute.
29944 (main_base_64): Fixed z10prop attribute.
29945 (reload_base_64): Fixed z10prop attribute.
29947 2009-01-28 Jakub Jelinek <jakub@redhat.com>
29949 PR rtl-optimization/38740
29950 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29952 * config/mips/mips.c (mips_reorg): Likewise.
29954 2009-01-28 Richard Guenther <rguenther@suse.de>
29956 PR tree-optimization/38926
29957 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29958 with the correct value id to a value.
29959 (do_regular_insertion): Use the value number of edoubleprime
29960 for the value number of the expr.
29963 2008-08-21 Richard Guenther <rguenther@suse.de>
29965 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29966 a PHI ask VN if it is already available.
29967 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29968 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29970 2009-01-28 Jakub Jelinek <jakub@redhat.com>
29972 PR middle-end/38934
29973 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29974 set to varying whenever max has TREE_OVERFLOW set, similarly
29975 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29977 2009-01-28 Richard Guenther <rguenther@suse.de>
29979 PR middle-end/38908
29980 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29981 uninitialized aggregate uses in call arguments.
29983 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
29985 PR tree-optimization/38984
29986 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29987 the nothing_id variable if -fno-delete-null-pointer-checks.
29989 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
29992 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29993 (set_got_offset_rex64): Ditto.
29995 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
29998 * doc/extend.texi: Improve local variable with asm reg.
30000 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
30002 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
30003 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
30004 was not supplied then set warn_packed_bitfield_compat to the
30005 default value of 1.
30006 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
30009 2009-01-27 Richard Guenther <rguenther@suse.de>
30011 PR tree-optimization/38503
30012 * cfgexpand.c (expand_gimple_basic_block): Ignore
30013 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
30014 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
30015 variables that cannot have TBAA applied.
30016 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
30019 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
30021 PR middle-end/38969
30022 * calls.c (initialize_argument_information): Do not wrap complex
30023 arguments in SAVE_EXPR.
30025 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
30027 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
30028 (INSTALL_LIBGCC): Revert typo commit.
30030 2009-01-26 Richard Guenther <rguenther@suse.de>
30032 PR tree-optimization/38745
30033 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
30034 from special handling.
30036 2009-01-26 Richard Guenther <rguenther@suse.de>
30038 PR tree-optimization/38745
30039 * tree-ssa.c (execute_update_addresses_taken): Do not include
30040 variables that cannot possibly be a register in not_reg_needs.
30041 Do not clear TREE_ADDRESSABLE on vars that may not become
30043 * tree-ssa.c (update_alias_info_1): Include those in the set
30044 of addressable vars.
30046 2009-01-26 Richard Guenther <rguenther@suse.de>
30048 PR middle-end/38851
30049 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
30050 * tree-ssa-dse.c: Include langhooks.h
30051 (execute_simple_dse): Remove stores with zero size.
30053 2009-01-24 Jakub Jelinek <jakub@redhat.com>
30056 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
30059 2009-01-24 Julian Brown <julian@codesourcery.com>
30061 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
30062 config/arm/linux-atomic.c.
30063 * config/arm/linux-atomic.c: New.
30065 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
30067 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
30068 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
30069 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
30071 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
30074 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
30077 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
30079 PR tree-optimization/38953
30080 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
30081 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
30082 (gloog): Split the exit of the scop when the scop exit is a loop exit.
30083 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
30086 2009-01-24 Paul Brook <paul@codesourcery.com>
30088 * config/arm/neon.md (neon_type): Move to arm.md.
30089 (neon_mov<VSTRUCT>): Add neon_type attribute.
30090 * config/arm/arm.md (neon_type): Move to here.
30091 (conds): Add "unconditioal" and use as default for NEON insns.
30093 2009-01-24 Ben Elliston <bje@au.ibm.com>
30095 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
30096 void *' warning from -Wc++-compat.
30097 * Makefile.in (dominance.o-warn): Remove.
30099 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
30101 PR tree-optimization/38932
30102 * fold-const.c (fold_unary_ignore_overflow): New.
30103 * tree.h (fold_unary_ignore_overflow): Declare.
30104 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
30105 * tree-ssa-sccvn.c (visit_reference_op_load,
30106 simplify_unary_expression): Likewise.
30108 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
30110 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
30111 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
30112 regardless of their type.
30113 * c-common.c (handle_packed_attribute): Don't ignore packed on
30115 * c.opt (Wpacked-bitfield-compat): New warning option.
30116 * stor-layout.c (place_field): Warn if offset of a field changed.
30117 * doc/extend.texi (packed): Mention the ABI change.
30118 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
30119 (Warning Options): Add it to the list.
30121 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
30123 * c-opts.c (c_common_post_options): Fix a typo in comments.
30125 2009-01-22 Steve Ellcey <sje@cup.hp.com>
30127 PR middle-end/38615
30128 * gimplify.c (gimplify_init_constructor): Fix promotion of const
30129 variables to static.
30130 * doc/invoke.texi (-fmerge-all-constants): Update description.
30132 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
30135 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
30136 (*movdi_1_rex64): Use type "mmx" for alternative 5.
30138 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
30140 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
30142 (LOCAL_ALIGNMENT): Similarly.
30144 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
30145 Joseph Myers <joseph@codesourcery.com>
30147 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
30148 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
30149 * config/arm/arm-tune.md: Regenerate.
30150 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
30153 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
30155 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
30156 version number to five.
30158 2009-01-22 Dodji Seketeli <dodji@redhat.com>
30161 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
30162 * c-common.c (set_underlying_type): Likewise.
30163 (is_typedef_decl ): Likewise
30165 (set_underlying_type): Likewise.
30166 (is_typedef_type): Likewise.
30168 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
30170 PR middle-end/38587
30171 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
30174 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
30177 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
30178 (LIBGCC_SPEC): Don't define.
30179 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
30181 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
30183 PR rtl-optimization/38879
30184 * alias.c (base_alias_check): Unaligned access via AND address can
30185 alias all surrounding object types except those with sizes equal
30186 or wider than the size of unaligned access.
30188 2009-01-21 Dodji Seketeli <dodji@redhat.com>
30191 * c-decl.c (clone_underlying_type): Move this ...
30192 * c-common.c (set_underlying_type): ... here.
30193 Also, make sure the function properly sets TYPE_STUB_DECL() on
30194 the newly created typedef variant type.
30195 (is_typedef_decl ): New entry point.
30196 * tree.h: Added a new member member_types_needing_access_check to
30197 struct tree_decl_non_common.
30198 (set_underlying_type): New entry point.
30199 (is_typedef_type): Likewise.
30201 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
30203 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
30204 Check whether two instructions have memory references that
30205 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
30206 are helper functions for traversing.
30207 * alias.h (insn_alias_sets_confilict_p): New prototypes.
30208 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
30209 not to draw dependency edge for instructions with non-conflicting
30212 2009-01-20 Joseph Myers <joseph@codesourcery.com>
30215 * longlong.h: Update copyright years. Use soft-fp license notice.
30216 Sync __clz_tab declaration with glibc.
30218 2009-01-20 Steve Ellcey <sje@cup.hp.com>
30221 * doc/extend.texi (syscall_linkage): New.
30222 (version_id): Modify.
30224 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
30225 Richard Guenther <rguenther@suse.de>
30227 PR tree-optimization/38747
30228 PR tree-optimization/38748
30229 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
30230 conversion if the base address is an indirect reference and the
30231 aliasing sets could cause issues.
30233 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
30235 * common.opt (fgraphite, fgraphite-identity): Add comment for
30236 explaining why these options are not documented.
30238 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
30240 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
30241 gimple_call_lhs is NULL.
30243 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
30246 * emit-rtl.c (adjust_address_1): Make sure memref is never
30249 2009-01-20 Ben Elliston <bje@au.ibm.com>
30251 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30252 const qualifier from arg parameter. Remove unnecessary cast to char *.
30253 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30254 const qualifier from arg 2.
30256 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
30258 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
30260 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
30263 * rtl.h (reinit_regs): New prototype.
30264 * regclass.c: Include ira.h.
30265 (reinit_regs): New.
30266 * Makefile.in (regclass.o): Add ira.h.
30267 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
30269 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
30272 * c-common.c (handle_aligned_attribute): Use
30273 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
30274 default alignment value.
30276 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
30278 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
30279 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
30281 * doc/extend.texi: Update __attribute__ ((aligned)). Document
30282 __BIGGEST_ALIGNMENT__.
30284 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
30286 2009-01-18 Richard Guenther <rguenther@suse.de>
30288 PR tree-optimization/38819
30289 * tree-flow.h (operation_could_trap_helper_p): Declare.
30290 * tree-eh.c (operation_could_trap_helper_p): Export.
30291 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
30292 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
30293 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
30294 are about to insert a possibly trapping instruction and fail
30297 2009-01-18 Andreas Schwab <schwab@suse.de>
30299 * doc/install.texi (Configuration): Remove obsolete paragraph
30300 about use of --with-gnu-ld with --with-gnu-as.
30302 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
30304 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
30305 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
30306 Follow spelling conventions.
30308 2009-01-18 Ben Elliston <bje@au.ibm.com>
30310 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
30311 C++ warning about implicit conversion from void * to struct
30313 (bitmap_obstack_free): Likewise for bitmap_element *.
30314 * Makefile.in (bitmap.o-warn): Remove.
30316 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
30318 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
30320 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
30321 Tobias Grosser <tobi.grosser@amd.com>
30323 * graphite.c (graphite_trans_scop_block): Do not block single
30326 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
30328 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
30329 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
30330 test with assertion.
30332 2009-01-16 Richard Guenther <rguenther@suse.de>
30334 PR tree-optimization/38835
30335 PR middle-end/36227
30336 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
30337 and INT + PTR -> (INT)(PTR p+ INT) folding.
30338 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
30340 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
30343 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
30344 the subreg from a lowpart subreg if it is also casting the value.
30346 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
30347 Tobias Grosser <tobi.grosser@amd.com>
30349 * graphite.c (compare_prefix_loops): New.
30350 (build_scop_canonical_schedules): Rewritten.
30351 (graphite_transform_loops): Move build_scop_canonical_schedules
30352 after build_scop_iteration_domain.
30354 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
30355 Tobias Grosser <tobi.grosser@amd.com>
30357 * graphite.c (add_conditions_to_domain): Add the loops to
30358 the dimension of the iteration domain. Do copy the domain
30359 only when it exists.
30360 (build_scop_conditions_1): Do not call add_conditions_to_domain.
30361 (add_conditions_to_constraints): New.
30362 (can_generate_code_stmt, can_generate_code): Removed.
30363 (gloog): Do not call can_generate_code.
30364 (graphite_transform_loops): Call add_conditions_to_constraints
30365 after building the iteration domain.
30367 2009-01-16 Jakub Jelinek <jakub@redhat.com>
30369 PR tree-optimization/38789
30370 * tree-ssa-threadedge.c
30371 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
30372 __builtin_constant_p.
30374 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
30376 * dce.c (delete_unmarked_insns): Reversed the order that insns are
30377 examined before deleting them.
30379 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
30381 * function.c (aggregate_value_p): Correctly extract the function
30382 type from CALL_EXPR_FN lookup.
30384 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
30386 * config/picochip/picochip.c (picochip_override_options): Revert
30387 CFI asm flag disable commited previously.
30389 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
30390 Tobias Grosser <tobi.grosser@amd.com>
30391 Jan Sjodin <jan.sjodin@amd.com>
30393 * graphite.c (scan_tree_for_params): On substractions negate
30394 all the coefficients of the term.
30395 (clast_to_gcc_expression_red): New. Handle reduction expressions
30396 of more than two operands.
30397 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
30398 (get_vdef_before_scop): Handle also the case of default definitions.
30400 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
30402 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
30403 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
30404 Also use them when walking CALL_INSN_FUNCTION_USAGE.
30406 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
30407 Joey Ye <joey.ye@intel.com>
30409 PR middle-end/37843
30410 * cfgexpand.c (expand_stack_alignment): Don't update stack
30411 boundary nor check incoming stack boundary here.
30412 (gimple_expand_cfg): Update stack boundary and check incoming
30413 stack boundary here.
30415 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
30417 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
30419 2009-01-14 Jakub Jelinek <jakub@redhat.com>
30421 PR rtl-optimization/38245
30422 * calls.c (expand_call): Add stack arguments to
30423 CALL_INSN_FUNCTION_USAGE even for pure calls (when
30424 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
30425 in regs and partially in memory or BLKmode arguments.
30426 (emit_library_call_value_1): Add stack arguments to
30427 CALL_INSN_FUNCTION_USAGE even for pure calls (when
30428 ACCUMULATE_OUTGOING_ARGS).
30429 * dce.c: Include tm_p.h.
30430 (find_call_stack_args): New function.
30431 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
30433 (mark_insn): Call find_call_stack_args for CALL_Ps.
30434 (prescan_insns_for_dce): Walk insns backwards in bb rather than
30435 forwards. Allocate and free arg_stores bitmap if needed, pass it
30436 down to deletable_insn_p, don't mark stores set in arg_stores
30437 bitmap, clear the bitmap at the beginning of each bb.
30438 * Makefile.in (dce.o): Depend on $(TM_P_H).
30440 2009-01-14 Michael Meissner <gnu@the-meissners.org>
30443 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
30444 to make sure the insn is a conditional test (bug 22599). Reformat a
30447 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
30449 PR middle-end/38431
30450 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
30451 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
30452 (gloog): Do not call cleanup_tree_cfg.
30453 (graphite_transform_loops): Call cleanup_tree_cfg after all
30454 scops have been code generated.
30456 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
30457 * doc/gty.texi (Invoking the garbage collector): Added new node
30458 and section documenting ggc_collect.
30460 2009-01-14 Richard Guenther <rguenther@suse.de>
30462 PR tree-optimization/38826
30463 PR middle-end/38477
30464 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
30465 initialization notes only if we actually emitted a warning.
30466 (intra_create_variable_infos): Add constraints for a result decl
30467 that is passed by hidden reference.
30468 (build_pred_graph): Mark all related variables non-direct on
30471 2009-01-14 Nick Clifton <nickc@redhat.com>
30473 * ira-conflicts.c: Include addresses.h for the definition of
30475 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
30476 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
30478 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
30481 * Makefile.in (ira-lives.o): Add except.h.
30483 * ira-lives.c: Include except.h.
30484 (process_bb_node_lives): Process can_throw_internal.
30486 2009-01-13 Jakub Jelinek <jakub@redhat.com>
30488 PR rtl-optimization/38774
30489 * combine.c (simplify_set): When undoing cc_use change, don't do
30490 PUT_CODE on the newly created comparison, but instead put back the
30493 2009-01-13 Joseph Myers <joseph@codesourcery.com>
30495 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
30496 values. Remove duplicate arm8 entry.
30498 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
30500 PR tree-optimization/38786
30501 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30502 the SSA_NAME case of expand_scalar_variables_expr.
30503 Set the type of an expression to the type of its assign statement.
30504 (expand_scalar_variables_expr): Also gather the scalar computation
30505 used to index the memory access. Do not pass loop_p.
30506 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
30507 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30508 the gimple_stmt_iterator where it inserts new code.
30509 Do not pass loop_p.
30510 (copy_bb_and_scalar_dependences): Do not pass loop_p.
30511 (translate_clast): Update call to copy_bb_and_scalar_dependences.
30513 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
30515 * graphite.h (debug_value): Removed.
30516 * graphite.c (debug_value): Removed.
30518 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
30520 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30521 ldrd/strd with two 32-bit instructions.
30523 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
30525 * config/arm/arm.c (struct processors): Pass for speed down into
30526 cost helper functions.
30527 (const_ok_for_op): Handle COMPARE and inequality nodes.
30528 (arm_rtx_costs_1): Rewrite.
30529 (arm_size_rtx_costs): Update prototype.
30530 (arm_rtx_costs): Pass speed down to helper functions.
30531 (arm_slowmul_rtx_costs): Rework cost calculations.
30532 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30533 (arm_9e_rtx_costs): Likewise.
30535 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
30537 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30538 relocations of local symbols wider than UNITS_PER_WORD are not valid.
30539 (alpha_legitimize_address): Do not split local symbols wider than
30540 UNITS_PER_WORD into HIGH/LO_SUM parts.
30542 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
30545 * gcc.c (process_command): Replace call to execvp with calls
30546 to pex_one and exit.
30548 2009-01-03 Anatoly Sokolov <aesok@post.ru>
30551 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30552 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30553 variant for devices with 3-byte PC.
30554 (__tablejump_elpm__): New.
30556 2009-01-12 Jakub Jelinek <jakub@redhat.com>
30559 * c-parser.c (c_parser_postfix_expression): Allow `->' in
30560 offsetof member-designator, handle it as `[0].'.
30562 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30564 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30565 function when not using named sections on targets with named sections
30566 if branch distance is less than 262132.
30568 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
30570 * combine.c (combine_instructions): Recompute
30571 optimize_this_for_speed_p for each BB in the main combine loop.
30573 2009-01-12 Tomas Bily <tbily@suse.cz>
30576 * tree-loop-distribution.c (prop_phis): New function.
30577 (generate_builtin): Call prop_phis.
30579 2009-01-12 Jakub Jelinek <jakub@redhat.com>
30581 PR tree-optimization/38807
30582 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30583 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30585 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
30587 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30588 subreg of op0 to the original op0.
30590 2009-01-11 Laurent GUERBY <laurent@guerby.net>
30592 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30594 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
30597 * mips-tfile.c (parse_def): Fix parsing of def strings
30598 starting with digits.
30600 2009-01-10 Jakub Jelinek <jakub@redhat.com>
30603 * config/arm/arm.c (arm_is_long_call_p): Don't call
30604 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30606 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
30608 * regrename.c (regrename_optimize): Fix dumping.
30609 (find_oldest_value_reg): Preserve REG_POINTER.
30610 (copy_hardreg_forward_1): Likewise.
30612 2009-01-09 Diego Novillo <dnovillo@google.com>
30614 * gimple.h (struct gimple_statement_base) <uid>: Document
30615 the restrictions on its use.
30616 (gimple_uid): Tidy.
30617 (gimple_set_uid): Tidy.
30619 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30621 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30622 zero guard even if align_bytes != 0 and count is smaller than
30625 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
30627 PR rtl-optimization/38495
30628 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30629 (add_range_and_copies_from_move_list): Print all added ranges.
30630 Add ranges to memory optimized destination.
30632 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30636 * config/i386/i386.c (override_options): Reject
30637 -mstringop-strategy=rep_8byte with -m32.
30638 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30639 to 1. Do count comparison against epilogue_size_needed at compile
30640 time even when count_exp was constant forced into register. For
30641 size_needed don't jump to epilogue, instead just avoid aligning
30642 and invoke the body algorithm. If need_zero_guard, add zero guard
30643 even if count is non-zero, but smaller than size_needed + number of
30644 bytes that could be stored for alignment.
30645 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30646 to 1. If need_zero_guard, add zero guard even if count is non-zero,
30647 but smaller than size_needed + number of bytes that could be stored
30648 for alignment. Compare size_needed with epilogue_size_needed instead
30649 of desired_align - align, don't adjust size_needed, pass
30650 epilogue_size_needed to the epilogue expanders.
30653 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30655 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30657 * pa.c (last_address): Change to unsigned.
30658 (update_total_code_bytes): Change argument to unsigned. Don't
30659 check if insn addresses are set.
30660 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30661 addresses are not set.
30662 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30664 2009-01-09 Nick Clifton <nickc@redhat.com>
30666 * config/sh/symbian.c: Replace uses of DECL_INLINE with
30667 DECL_DECLARED_INLINE_P.
30669 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30671 PR middle-end/38347
30672 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30673 GET_MODE (op0) in operand_subword_force calls.
30675 PR middle-end/38771
30676 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30677 fold_convert arg0 operands to TREE_TYPE (op0) first.
30679 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
30681 * params.def (ira-max-conflict-table-size): Decrease default value
30684 2009-01-08 Jakub Jelinek <jakub@redhat.com>
30686 PR tree-optimization/37031
30687 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30689 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30690 allocate it using gc instead of heap, use VEC_quick_push instead of
30692 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30693 instead of heap, use VEC_quick_push instead of VEC_safe_push.
30694 * tree-data-ref.h (struct access_matrix): Change matrix to gc
30695 allocated vector from heap allocated.
30696 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30697 * tree-loop-linear.c (linear_transform_loops): Allocate nest
30698 vector only after perfect_loop_nest_depth call.
30700 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
30701 Jan Sjodin <jan.sjodin@amd.com>
30703 PR tree-optimization/38559
30704 * graphite.c (debug_value, copy_constraint,
30705 swap_constraint_variables, scale_constraint_variable, ): New.
30706 (get_lower_bound, get_upper_bound): Removed.
30707 (graphite_trans_bb_strip_mine): Clean up this code that works
30708 only for constant number of iterations. Fully copy upper and
30709 lower bound constraints, not only the constant part of them.
30710 * graphite.h (debug_value): Declared.
30712 2009-01-08 Ira Rosen <irar@il.ibm.com>
30714 PR tree-optimization/37194
30715 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30716 Don't add the cost of cost model guard in prologue to scalar
30717 outside cost in case of known number of iterations.
30719 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
30720 Alan Modra <amodra@bigpond.net.au>
30722 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30723 non-word-aligned REG+CONST addressing.
30725 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
30728 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30729 free_after_compilation when outputting a thunk.
30730 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30731 Do not call free_after_compilation here.
30733 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
30735 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30736 (ix86_valid_target_attribute_inner_p): Ditto.
30738 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
30740 PR tree-optimization/38492
30741 PR tree-optimization/38498
30742 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30743 * tree-chrec.h (scev_is_linear_expression): Declared.
30744 * graphite.c (graphite_cannot_represent_loop_niter): New.
30745 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30746 (graphite_loop_normal_form): Use gcc_assert.
30747 (scan_tree_for_params): Use CASE_CONVERT.
30748 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30749 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30750 Use gcc_assert. Discard scops that contain unhandled cases.
30751 (build_scop_conditions): Return a boolean status for unhandled cases.
30752 (strip_mine_profitable_p): Print the loop number, not its depth.
30753 (is_interchange_valid): Pass the depth of the loop nest, don't
30754 recompute it wrongly.
30755 (graphite_trans_bb_block): Same.
30756 (graphite_trans_bb_block): Print tentative of loop blocking.
30757 (graphite_trans_scop_block): Do not print that the loop has been
30759 (graphite_transform_loops): Do not handle scops that contain condition
30762 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
30764 AVX Programming Reference (December, 2008)
30765 * config/i386/avxintrin.h (_mm256_stream_si256): New.
30766 (_mm256_stream_pd): Likewise.
30767 (_mm256_stream_ps): Likewise.
30769 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30770 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30771 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30772 (bdesc_special_args): Add __builtin_ia32_movntdq256,
30773 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30774 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30775 (ix86_expand_special_args_builtin): Likewise.
30777 * config/i386/sse.md (AVXMODEDI): New.
30778 (avx_movnt<mode>): Likewise.
30779 (avx_movnt<mode>): Likewise.
30780 (<sse>_movnt<mode>): Remove AVX support.
30781 (sse2_movntv2di): Likewise.
30783 2009-01-07 Richard Guenther <rguenther@suse.de>
30785 PR middle-end/38751
30786 * fold-const.c (extract_muldiv): Remove obsolete comment.
30787 (fold_plusminus_mult_expr): Undo MINUS_EXPR
30788 to PLUS_EXPR canonicalization for the canonicalization.
30790 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
30792 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30793 hosted cross-compilers generating less efficient code.
30795 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30797 * function.h (rtl_data): Add a dbr_scheduled_p field.
30798 * reorg.c (dbr_schedule): Set it.
30799 (gate_handle_delay_slots): Check it.
30800 * config/mips/mips.c (mips_base_delayed_branch): Delete.
30801 (mips_reorg): Check flag_delayed_branch instead of
30802 mips_base_delayed_branch.
30803 (mips_override_options): Don't set mips_base_delayed_branch
30804 or flag_delayed_branch.
30806 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30808 PR rtl-optimization/38426.
30809 * ira.c (ira): Set current_function_is_leaf earlier.
30811 2009-01-06 Jakub Jelinek <jakub@redhat.com>
30813 PR rtl-optimization/38722
30814 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30815 too early, only set a flag and modify after last possible
30818 2009-01-06 Janis Johnson <janis187@us.ibm.com>
30821 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30822 * real.c (decimal_single_format): Correct values of emin and emax.
30823 (decimal_double_format): Ditto.
30824 (decimal_quad_format): Ditto.
30825 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30826 computation of DECnn_MIN and DECnn_MAX for corrected values of
30827 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
30828 __DECnn_MIN__, and adjust its computation for the corrected value
30831 2009-01-06 Jan Hubicka <jh@suse.cz>
30834 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30836 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30838 * doc/contrib.texi (Contributors): Slightly adjust the end note.
30839 Add Robert Clark to the list of testers.
30841 2009-01-06 Jan Hubicka <jh@suse.cz>
30842 Kai Tietz <kai.tietz@onevision.com>
30844 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30845 * config/i386/i386.c (ix86_expand_call): Add clobbers.
30847 2009-01-06 Jan Hubicka <jh@suse.cz>
30848 Kai Tietz <kai.tietz@onevision.com>
30850 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30852 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30853 (ix86_nsaved_regs): Count only general purpose regs.
30854 (ix86_nsaved_sseregs): New.
30855 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30856 to 16 for w64; compute padding and size of sse reg save area.
30857 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30858 general purpose regs.
30859 (ix86_emit_save_sse_regs_using_mov): New.
30860 (ix86_expand_prologue): Save SSE regs if needed.
30861 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30862 (ix86_emit_restore_sse_regs_using_mov): New.
30863 (ix86_expand_epilogue): Save SSE regs if needed.
30865 2009-01-06 Jan Hubicka <jh@suse.cz>
30866 Kai Tietz <kai.tietz@onevision.com>
30868 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30869 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30870 functions when accumulate outgoing args is off.
30872 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30875 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30876 before using pseudos_have_intersected_live_ranges_p.
30878 * ira-int.h (ira_assert): Always define.
30880 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30882 AVX Programming Reference (December, 2008)
30883 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30884 (_mm256_permute2_pd): Likewise.
30885 (_mm_permute2_ps): Likewise.
30886 (_mm256_permute2_ps): Likewise.
30887 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30888 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30890 * config/i386/i386.c (ix86_builtins): Remove
30891 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30892 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30893 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30894 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30895 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30896 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30897 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30898 __builtin_ia32_vpermil2ps256.
30899 (ix86_init_mmx_sse_builtins): Updated.
30900 (ix86_expand_args_builtin): Likewise.
30902 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30904 * pa.c (output_call): Relocate non-jump insns in the delay slot of
30905 long absolute calls when generating PA 2.0 code.
30907 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
30909 PR rtl-optimization/38583
30910 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30912 * params.def (ira-max-conflict-table-size): New.
30914 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30916 * ira.h (ira_conflicts_p): New external definition.
30918 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30919 table. Report this. Return result of building.
30920 (ira_build_conflicts): Use ira_conflicts_p. Check result of
30921 building conflict table.
30923 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30924 (ira_color): Use ira_conflicts_p.
30926 * global.c: Include ira.h.
30927 (pseudo_for_reload_consideration_p, build_insn_chain): Use
30930 * Makefile.in (global.o): Add ira.h.
30932 * ira-build.c (mark_all_loops_for_removal,
30933 propagate_some_info_from_allocno): New.
30934 (remove_unnecessary_allocnos): Call
30935 propagate_some_info_from_allocno.
30936 (remove_low_level_allocnos): New.
30937 (remove_unnecessary_regions): Add parameter. Call
30938 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
30939 parameter to remove_unnecessary_regions.
30940 (ira_build): Remove all regions but root if the conflict table was
30941 not built. Update conflict hard regs for allocnos crossing calls.
30943 * ira.c (ira_conflicts_p): New global.
30944 (ira): Define and use ira_conflicts_p.
30946 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30947 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30948 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30950 2009-01-06 Ben Elliston <bje@au.ibm.com>
30952 * gengtype-lex.l (YY_NO_INPUT): Define.
30954 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
30957 * c-common.c (handle_vector_size_attribute): Also reject
30958 BOOLEAN_TYPE types.
30960 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
30962 PR tree-optimization/38492
30963 * graphite.c (rename_map_elt, debug_rename_elt,
30964 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30965 rename_map_elt_info, eq_rename_map_elts,
30966 get_new_name_from_old_name, bb_in_sese_p): Moved around.
30967 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30968 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30969 (sese_build_livein_liveouts): New.
30970 (new_sese, free_sese): New.
30971 (new_scop): Call new_sese.
30972 (free_scop): Call free_sese.
30973 (rename_variables_from_edge, rename_phis_end_scop): Removed.
30974 (register_old_new_names): Renamed register_old_and_new_names.
30975 (register_scop_liveout_renames, add_loop_exit_phis,
30976 insert_loop_close_phis, struct igp,
30977 default_liveout_before_guard, add_guard_exit_phis,
30978 insert_guard_phis, copy_renames): New.
30979 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30980 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30981 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30982 (scop_adjust_phis_for_liveouts): New.
30983 (gloog): Call scop_adjust_phis_for_liveouts.
30985 * graphite.h (struct sese): Documented. Added fields liveout,
30986 num_ver and livein.
30987 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30988 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30989 (struct scop): Added field liveout_renames.
30990 (SCOP_LIVEOUT_RENAMES): New.
30992 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30994 PR tree-optimization/38510
30995 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30996 (translate_clast): Call recompute_all_dominators before
30998 (gloog): Call recompute_all_dominators before graphite_verify.
31000 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
31001 Jan Sjodin <jan.sjodin@amd.com>
31003 PR tree-optimization/38500
31004 * graphite.c (create_sese_edges): Call fix_loop_structure after
31007 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
31009 * config.gcc: Add m32r*-*-rtems*.
31010 * config/m32r/rtems.h: New file.
31012 2009-01-05 Ben Elliston <bje@au.ibm.com>
31014 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
31015 (.po.pox): Likewise.
31016 (po/gcc.pot): Likewise.
31018 2009-01-04 David S. Miller <davem@davemloft.net>
31020 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
31021 (STARTING_FRAME_OFFSET): Always set to zero.
31023 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
31025 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
31026 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
31027 fixed-point types, and vectors of the same.
31029 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
31031 * config/mips/sync.md (*mb_barrier): Rename to...
31032 (*memory_barrier): ...this.
31034 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
31036 * doc/extend.texi (Function Attributes): Move @cindex after @item
31037 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
31038 and put in alphabetical order. Fix 'target' name and put in order.
31039 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
31042 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
31044 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
31045 (memory_barrier): Expand as unspec instead of unspec_volatile.
31046 Remove mem:BLK from insn operands. Use Pmode scratch register.
31047 (*memory_barrier): Define as unspec instead of unspec_volatile.
31048 Use (match_dup 0) as input operand.
31050 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
31051 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
31052 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
31053 scratch register. Remove operand 1.
31054 (*stbar): Define as unspec instead of unspec_volatile.
31055 Use (match_dup 0) as input operand, remove (const_int 8).
31056 (*membar): Define as unspec instead of unspec_volatile.
31057 Use (match_dup 0) as input operand, remove input operand 2.
31059 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
31060 (memory_barrier): Expand as unspec instead of unspec_volatile.
31061 Remove mem:BLK from insn operands. Use Pmode scratch register.
31062 (*memory_barrier): Define as unspec instead of unspec_volatile.
31063 Use (match_dup 0) as input operand.
31065 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
31066 Remove mem:BLK from insn operands. Use Pmode scratch register.
31067 Set volatile flag on operand 0.
31068 (*memory_barrier): New insn pattern.
31070 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
31072 (*memory_barrier): Use (match_dup 0) as input operand.
31074 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
31075 Remove mem:BLK from insn operands. Use Pmode scratch register.
31076 Set volatile flag on operand 0.
31077 (*mb_internal): New insn pattern.
31079 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
31081 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
31083 PR middle-end/38586
31084 * function.c (struct temp_slot): Move to the section of the file
31085 that deals with temp slots. Remove field 'address'.
31086 (temp_slot_address_table): New hash table of address -> temp slot.
31087 (struct temp_slot_address_entry): New struct, items for the table.
31088 (temp_slot_address_compute_hash, temp_slot_address_hash,
31089 temp_slot_address_eq, insert_temp_slot_address): Support functions
31091 (find_temp_slot_from_address): Rewrite to use the new hash table.
31092 (remove_unused_temp_slot_addresses): Remove addresses of temp
31093 slots that have been made available.
31094 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
31095 worker function for remove_unused_temp_slot_addresses.
31096 (assign_stack_temp_for_type): Don't clear the temp slot address list.
31097 Add the temp slot address to the address -> temp slot map.
31098 (update_temp_slot_address): Update via insert_temp_slot_address.
31099 (free_temp_slots): Call remove_unused_temp_slot_addresses.
31100 (pop_temp_slots): Likewise.
31101 (init_temp_slots): Allocate the address -> temp slot map, or empty
31102 the map if it is already allocated.
31103 (prepare_function_start): Initialize temp slot processing.
31105 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
31107 PR middle-end/38584
31108 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
31109 Calculate the size of all stack vars assuming no packing of stack
31110 vars will happen, replacing a quadratic algorithm with a linear one.
31112 2009-01-03 Jakub Jelinek <jakub@redhat.com>
31115 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
31118 2009-01-03 Diego Novillo <dnovillo@google.com>
31120 * doc/contrib.texi: Update contributions.
31122 2009-01-03 Jakub Jelinek <jakub@redhat.com>
31125 * builtins.c (fold_builtin_memory_op): Give up if either operand
31126 is volatile. Set srctype or desttype to non-qualified version
31130 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
31131 and FUNCTION_DECLs.
31133 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
31135 PR rtl-optimization/35805
31136 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
31137 problem if fast dce is able to remove any instructions.
31138 * dce.c (dce_process_block): Fix dump message.
31140 2009-01-02 Mark Mitchell <mark@codesourcery.com>
31143 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
31145 2009-01-02 Jakub Jelinek <jakub@redhat.com>
31147 PR middle-end/38690
31148 * tree-flow.h (op_code_prio, op_prio): New prototypes.
31149 * tree-pretty-print.c (op_code_prio): New function.
31150 (op_prio): No longer static. Use op_code_prio.
31151 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
31152 Use op_prio and op_code_prio to determine if () should be
31153 printed around operand(s) or not.
31155 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
31156 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
31157 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
31158 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
31159 pp_character instead of pp_string for single letter printing.
31161 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31163 * doc/extend.texi: Fix '#pragma GCC option' typo.
31165 2009-01-02 Richard Guenther <rguenther@suse.de>
31167 * doc/install.texi (--enable-checking): Mention different
31168 default for stage1.
31169 (--enable-stage1-checking): Document.
31171 2009-01-01 Andrew Pinski <pinskia@gmail.com>
31173 PR middle-end/30142
31174 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
31175 case to be an error.
31177 2009-01-02 Ben Elliston <bje@au.ibm.com>
31179 * config/fp-bit.h (pack_d): Constify argument.
31180 * config/fp-bit.c (makenan): Constify return type. Remove casts.
31181 (isnan): Constify argument.
31183 (iszero): Likewise.
31184 (pack_d): Likewise.
31185 (_fpadd_parts): Constify return type.
31186 (_fpmul_parts): Likewise.
31187 (_fpdiv_parts): Likewise.
31189 2009-01-01 Jakub Jelinek <jakub@redhat.com>
31192 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
31193 warn about overwriting initializer with side-effects or
31194 -Woverride-init if !IMPLICIT.
31195 (output_init_element): Likewise. Pass IMPLICIT down to
31197 (process_init_element): Add IMPLICIT argument. Pass it down
31198 to output_init_element.
31199 (push_init_element, pop_init_level, set_designator): Adjust
31200 process_init_element callers.
31201 (set_nonincremental_init, set_nonincremental_init_from_string):
31202 Adjust add_pending_init callers.
31203 (output_pending_init_elements): Adjust output_init_element callers.
31204 * c-tree.h (process_init_element): Adjust prototype.
31205 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
31206 process_init_element callers.
31209 Copyright (C) 2009 Free Software Foundation, Inc.
31211 Copying and distribution of this file, with or without modification,
31212 are permitted in any medium without royalty provided the copyright
31213 notice and this notice are preserved.