OSDN Git Service

2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3         
4         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
5         (x86_64-*-*): Ditto.
6         * config/i386/xopintrin.h: New file, provide common x86 compiler
7         intrinisics for XOP.
8         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
9         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
10         * config/i386/i386-c.c(ix86_target_macros_internal): Check
11         ISA_FLAG for XOP. 
12         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
13         * config/i386/i386.opt (-mxop): New switch for XOP support.
14         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
15         (UNSPEC_XOP_TRUEFALSE)
16         (UNSPEC_XOP_PERMUTE)
17         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
18         (PPERM_*): New constants for vpperm instruction.
19         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
20         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
21         (OPTION_MASK_ISA_XOP_UNSET): New.       
22         (OPTION_MASK_ISA_XOP_UNSET): Change definition to
23         depend on XOP.
24         (ix86_handle_option): Handle -mxop.
25         (isa_opts): Handle -mxop.
26         (enum pta_flags): Add PTA_XOP.
27         (override_options): Add XOP support.
28         (print_operand): Add code for XOP compare instructions.
29         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
30         (ix86_expand_int_vcond): Extend for XOP compare instruction.
31
32         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
33         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
34         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
35         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
36         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
37         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
38         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
39
40         (IX86_BUILTIN_VPCMOV256): Ditto.
41         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
42         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
43         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
44         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
45         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
46         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
47
48         (IX86_BUILTIN_VPPERM): Ditto.
49
50         (IX86_BUILTIN_VPMACSSWW): Ditto.
51         (IX86_BUILTIN_VPMACSWW): Ditto.
52         (IX86_BUILTIN_VPMACSSWD): Ditto.
53         (IX86_BUILTIN_VPMACSWD): Ditto.
54         (IX86_BUILTIN_VPMACSSDD): Ditto.
55         (IX86_BUILTIN_VPMACSDD): Ditto.
56         (IX86_BUILTIN_VPMACSSDQL): Ditto.
57         (IX86_BUILTIN_VPMACSSDQH): Ditto.
58         (IX86_BUILTIN_VPMACSDQL): Ditto.
59         (IX86_BUILTIN_VPMACSDQH): Ditto.
60         (IX86_BUILTIN_VPMADCSSWD): Ditto.
61         (IX86_BUILTIN_VPMADCSWD): Ditto.
62
63         (IX86_BUILTIN_VPHADDBW): Ditto.
64         (IX86_BUILTIN_VPHADDBD): Ditto.
65         (IX86_BUILTIN_VPHADDBQ): Ditto.
66         (IX86_BUILTIN_VPHADDWD): Ditto.
67         (IX86_BUILTIN_VPHADDWQ): Ditto.
68         (IX86_BUILTIN_VPHADDDQ): Ditto.
69         (IX86_BUILTIN_VPHADDUBW): Ditto.
70         (IX86_BUILTIN_VPHADDUBD): Ditto.
71         (IX86_BUILTIN_VPHADDUBQ): Ditto.
72         (IX86_BUILTIN_VPHADDUWD): Ditto.
73         (IX86_BUILTIN_VPHADDUWQ): Ditto.
74         (IX86_BUILTIN_VPHADDUDQ): Ditto.
75         (IX86_BUILTIN_VPHSUBBW): Ditto.
76         (IX86_BUILTIN_VPHSUBWD): Ditto.
77         (IX86_BUILTIN_VPHSUBDQ): Ditto.
78
79         (IX86_BUILTIN_VPROTB): Ditto.
80         (IX86_BUILTIN_VPROTW): Ditto.
81         (IX86_BUILTIN_VPROTD): Ditto.
82         (IX86_BUILTIN_VPROTQ): Ditto.
83         (IX86_BUILTIN_VPROTB_IMM): Ditto.
84         (IX86_BUILTIN_VPROTW_IMM): Ditto.
85         (IX86_BUILTIN_VPROTD_IMM): Ditto.
86         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
87
88         (IX86_BUILTIN_VPSHLB): Ditto.
89         (IX86_BUILTIN_VPSHLW): Ditto.
90         (IX86_BUILTIN_VPSHLD): Ditto.
91         (IX86_BUILTIN_VPSHLQ): Ditto.
92         (IX86_BUILTIN_VPSHAB): Ditto.
93         (IX86_BUILTIN_VPSHAW): Ditto.
94         (IX86_BUILTIN_VPSHAD): Ditto.
95         (IX86_BUILTIN_VPSHAQ): Ditto.
96
97         (IX86_BUILTIN_VFRCZSS): Ditto.
98         (IX86_BUILTIN_VFRCZSD): Ditto.
99         (IX86_BUILTIN_VFRCZPS): Ditto.
100         (IX86_BUILTIN_VFRCZPD): Ditto.
101         (IX86_BUILTIN_VFRCZPS256): Ditto.
102         (IX86_BUILTIN_VFRCZPD256): Ditto.
103
104         (IX86_BUILTIN_VPCOMEQUB): Ditto.
105         (IX86_BUILTIN_VPCOMNEUB): Ditto.
106         (IX86_BUILTIN_VPCOMLTUB): Ditto.
107         (IX86_BUILTIN_VPCOMLEUB): Ditto.
108         (IX86_BUILTIN_VPCOMGTUB): Ditto.
109         (IX86_BUILTIN_VPCOMGEUB): Ditto.
110         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
111         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
112
113         (IX86_BUILTIN_VPCOMEQUW): Ditto.
114         (IX86_BUILTIN_VPCOMNEUW): Ditto.
115         (IX86_BUILTIN_VPCOMLTUW): Ditto.
116         (IX86_BUILTIN_VPCOMLEUW): Ditto.
117         (IX86_BUILTIN_VPCOMGTUW): Ditto.
118         (IX86_BUILTIN_VPCOMGEUW): Ditto.
119         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
120         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
121
122         (IX86_BUILTIN_VPCOMEQUD): Ditto.
123         (IX86_BUILTIN_VPCOMNEUD): Ditto.
124         (IX86_BUILTIN_VPCOMLTUD): Ditto.
125         (IX86_BUILTIN_VPCOMLEUD): Ditto.
126         (IX86_BUILTIN_VPCOMGTUD): Ditto.
127         (IX86_BUILTIN_VPCOMGEUD): Ditto.
128         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
129         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
130
131         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
132         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
133         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
134         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
135         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
136         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
137         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
138         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
139
140         (IX86_BUILTIN_VPCOMEQB): Ditto.
141         (IX86_BUILTIN_VPCOMNEB): Ditto.
142         (IX86_BUILTIN_VPCOMLTB): Ditto.
143         (IX86_BUILTIN_VPCOMLEB): Ditto.
144         (IX86_BUILTIN_VPCOMGTB): Ditto.
145         (IX86_BUILTIN_VPCOMGEB): Ditto.
146         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
147         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
148
149         (IX86_BUILTIN_VPCOMEQW): Ditto.
150         (IX86_BUILTIN_VPCOMNEW): Ditto.
151         (IX86_BUILTIN_VPCOMLTW): Ditto.
152         (IX86_BUILTIN_VPCOMLEW): Ditto.
153         (IX86_BUILTIN_VPCOMGTW): Ditto.
154         (IX86_BUILTIN_VPCOMGEW): Ditto.
155         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
156         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
157
158         (IX86_BUILTIN_VPCOMEQD): Ditto.
159         (IX86_BUILTIN_VPCOMNED): Ditto.
160         (IX86_BUILTIN_VPCOMLTD): Ditto.
161         (IX86_BUILTIN_VPCOMLED): Ditto.
162         (IX86_BUILTIN_VPCOMGTD): Ditto.
163         (IX86_BUILTIN_VPCOMGED): Ditto.
164         (IX86_BUILTIN_VPCOMFALSED): Ditto.
165         (IX86_BUILTIN_VPCOMTRUED): Ditto.
166
167         (IX86_BUILTIN_VPCOMEQQ): Ditto.
168         (IX86_BUILTIN_VPCOMNEQ): Ditto.
169         (IX86_BUILTIN_VPCOMLTQ): Ditto.
170         (IX86_BUILTIN_VPCOMLEQ): Ditto.
171         (IX86_BUILTIN_VPCOMGTQ): Ditto.
172         (IX86_BUILTIN_VPCOMGEQ): Ditto.
173         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
174         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
175
176         (enum multi_arg_type): New enum for describing the various XOP
177         intrinsic argument types.
178         (bdesc_multi_arg): New table for XOP intrinsics.
179         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
180         (ix86_expand_multi_arg_builtin): New function for creating XOP
181         intrinsics.
182
183         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
184         (xop_pmacsww): Ditto.
185         (xop_pmacssww): Ditto.
186         (xop_pmacsdd): Ditto.
187         (xop_pmacssdd): Ditto.
188         (xop_pmacssdql): Ditto.
189         (xop_pmacssdqh): Ditto.
190         (xop_pmacsdql): Ditto.
191         (xop_pmacsdql_mem): Ditto.
192         (xop_mulv2div2di3_low): Ditto.
193         (xop_pmacsdqh): Ditto.
194         (xop_pmacsdqh_mem): Ditto.
195         (xop_mulv2div2di3_high): Ditto.
196         (xop_pmacsswd): Ditto.
197         (xop_pmacswd): Ditto.
198         (xop_pmadcsswd): Ditto.
199         (xop_pmadcswd): Ditto.
200         (xop_pcmov_<mode>): Ditto.
201         (xop_pcmov_<mode>)256: Ditto.
202         (xop_phaddbw): Ditto.
203         (xop_phaddbd): Ditto.
204         (xop_phaddbq): Ditto.
205         (xop_phaddwd): Ditto.
206         (xop_phaddwq): Ditto.
207         (xop_phadddq): Ditto.
208         (xop_phaddubw): Ditto.
209         (xop_phaddubd): Ditto.
210         (xop_phaddubq): Ditto.
211         (xop_phadduwd): Ditto.
212         (xop_phadduwq): Ditto.
213         (xop_phaddudq): Ditto.
214         (xop_phsubbw): Ditto.
215         (xop_phsubwd): Ditto.
216         (xop_phsubdq): Ditto.
217         (xop_pperm): Ditto.
218         (rotl<mode>3): Ditto.
219         (rotr<mode>3): Ditto.
220         (xop_rotl<mode>3): Ditto.
221         (xop_rotr<mode>3): Ditto.
222         (vrotr<mode>3): Ditto.
223         (vrotl<mode>3): Ditto.
224         (xop_vrotl<mode>3): Ditto.
225         (vlshr<mode>3): Ditto.
226         (vashr<mode>3): Ditto.
227         (vashl<mode>3
228         (xop_ashl<mode>3): Ditto.
229         (xop_lshl<mode>3): Ditto.
230         (ashlv16qi3): Ditto.
231         (lshlv16qi3): Ditto.
232         (ashrv16qi3): Ditto.
233         (ashrv2di3): Ditto.
234         (xop_frcz<mode>2): Ditto.
235         (xop_vmfrcz<mode>2): Ditto.
236         (xop_frcz<mode>2256): Ditto.    
237         (xop_maskcmp<mode>3): Ditto.
238         (xop_maskcmp_uns<mode>3): Ditto.
239         (xop_maskcmp_uns2<mode>3): Ditto.
240         (xop_pcom_tf<mode>3): Ditto.
241
242         * doc/invoke.texi (-mxop): Add documentation.
243         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
244         
245 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
246
247         PR driver/11810
248         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
249         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
250         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
251
252 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
253
254         PR target/40835
255         * arm.md (peephole2 patterns for move and compare): New.
256
257 2009-11-04  Nick Clifton  <nickc@redhat.com>
258
259         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
260         Make sure that it does not allow CONST_DOUBLEs.
261         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
262         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
263         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
264         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
265         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
266         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
267         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
268         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
269         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
270         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
271         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
272         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
273         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
274         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
275         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
276
277 2009-11-04  Richard Guenther  <rguenther@suse.de>
278
279         PR tree-optimization/41919
280         * tree-vrp.c (test_for_singularity): Properly compare values.
281
282 2009-11-04  Revital Eres  <eres@il.ibm.com>
283
284         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
285         Consider peeling for alignment only for stores and remove
286         redundant assignment.
287
288 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
289
290         PR target/41302
291         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
292         (m68k_ok_for_sibcall_p): Handle different result return locations.
293
294 2009-11-04  Richard Guenther  <rguenther@suse.de>
295
296         * c-opts.c (c_common_post_options): Move LTO option processing
297         code ...
298         * opts.c (decode_options): ... here.
299
300 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
301
302         * c-common.c (fold_offsetof_1): Use %wd instead of
303         HOST_WIDE_INT_PRINT_DEC.
304
305 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
306
307         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
308         __pic__ or __PIC__.
309
310 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
311
312         * config.gcc (vax-*-linux*): Keep the original contents of
313         tmake_file while adding vax/t-linux.
314
315 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
316
317         PR target/10127
318         PR ada/20548
319         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
320         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
321         (STACK_CHECK_MOVING_SP): Likewise.
322         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
323         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
324         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
325         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
326         Document PROBE_STACK.
327         * explow.c (anti_adjust_stack_and_probe): New function.
328         (allocate_dynamic_stack_space): Do not directly allocate space if
329         STACK_CHECK_MOVING_SP, instead invoke above function.
330         (emit_stack_probe): Handle probe_stack insn.
331         (PROBE_INTERVAL): New macro.
332         (STACK_GROW_OPTAB): Likewise.
333         (STACK_GROW_OFF): Likewise.
334         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
335         loop condition in the small constant case.  Rewrite in the general
336         case to be immune to wraparounds.  Make sure the address of probes
337         is valid.  Try to use [base + disp] addressing mode if possible.
338         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
339         checking is enabled and STACK_CHECK_MOVING_SP.
340         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
341         return 1 for volatile references to the stack pointer.
342         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
343         __builtin_alloca if stack checking is enabled.
344         * unwind-dw2.c (uw_identify_context): Take into account whether the
345         context is that of a signal frame or not.
346         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
347         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
348
349 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
350
351         PR rtl-optimization/41917
352         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
353         operand isn't known to be 0, return 1.
354
355 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
356
357         * config/mips/mips.md: Fix typos.
358
359 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
360
361         * doc/invoke.texi: Fix typo.
362
363 2009-11-03  Paul Brook  <paul@codesourcery.com>
364
365         * config/arm/neon.ml (vectype): Add T_floatSF.
366         (string_of_vectype): Ditto.
367         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
368         (deftypes): Use float for float32_t.
369         * config/arm/arm_neon.h: Regenerate.
370
371 2009-11-03  Nick Clifton  <nickc@redhat.com>
372             Kevin Buettner  <kevinb@redhat.com>
373
374         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
375         order of expected registers.
376         (rx_load_multiple_vector): Likewise.
377         (rx_rtsd_vector): Likewise.
378         * config/rx/rx.c (rx_cpu_type): New variable.
379         (rx_print_operand): Fix bug printing 64-bit constant values.
380         (rx_emit_stack_pushm): Reverse order of pushed registers.
381         (gen_rx_store_vector): Likewise.
382         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
383         attribute name.
384         (is_exception_func): Rename to is_interrupt_func and only accept
385         "interrupt" as the attribute name.
386         (rx_get_stack_layout): Use new function name.
387         (rx_func_attr_inlinable): Likewise.
388         (rx_attribute_table): Remove "exception".
389         (rx_expand_prologue): If necessary push the accumulator register
390         in the prologue of interrupt functions.
391         (rx_expand_epilogue): If necessary pop the accumulator.
392         (rx_builtins): Add RX_BUILTIN_MVTIPL.
393         (rx_expand_builtin_stz): Remove.
394         (rx_expand_builtin_mvtipl): New function.
395         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
396         (rx_expand_builtin): Likewise.
397         (rx_enable_fpu): New variable.
398         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
399         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
400         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
401         (enum rx_cpu_types): Define.
402         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
403         (INCOMING_FRAME_SP_OFFSET): Define.
404         (ARG_POINTER_CFA_OFFSET): Define.
405         (FRAME_POINTER_CFA_OFFSET): Define.
406         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
407         (ALLOW_RX_FPU_INSNS): Define.
408         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
409         fast_math_flags_set_p.
410         (UNSPEC_BUILTIN_MVTIPL): Define.
411         (revl): Rename to bswapsi2.
412         (bswaphi2): New pattern.
413         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
414         (mvtaclo): Likewise.
415         (racw): Likewise.
416         (mvtc): Remove clobber of cc0.
417         (mvtcp): Delete.
418         (opecp): Delete.
419         * config/rx/rx.opt (mieee): Remove.
420         (fpu): Add.
421         (nofpu): Add.
422         (mcpu=): Add.
423         (patch=): Add.
424         (msave-acc-in-interrupts): Add.
425         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
426         (MULTILIB_DIRS): Likewise.
427         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
428         * doc/extend.texi: Remove description of "exception" function
429         attribute.
430         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
431         -msave-acc-in-interrupts options.
432
433 2009-11-03  Richard Guenther  <rguenther@suse.de>
434
435         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
436
437 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
438
439         PR c++/38699
440         * c-common.c (fold_offsetof_1): Issue errors when the member designator
441         of the offsetof expression is not legitimate.
442
443 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
444
445         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
446         names instead of numerical constants.
447         (sse_prologue_save): Ditto.
448         (*sse_prologue_save_insn): Ditto.
449
450 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
451
452         PR target/41900
453         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
454         (TARGET_CALL_ESP): New define.
455         * config/i386/i386.c (initial_ix86_tune_features): Initialize
456         X86_ARCH_CALL_ESP.
457         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
458         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
459         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
460         TARGET_CALL_ESP.
461         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
462         New patterns, use "lsm" as operand 1 constraint.
463         * config/i386/predicates.md (call_insn_operand): Depend on
464         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
465
466 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
467
468         PR tree-optimization/41857
469         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
470         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
471         to create_mem_ref.
472         * tree-ssa-address.c (move_hint_to_base): New function.
473         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
474         address space associated with TYPE.
475         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
476         most_expensive_mult_to_index.  Call move_hint_to_base.
477         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
478         TYPE to addr_to_parts.
479
480 2009-11-02  Martin Jambor  <mjambor@suse.cz>
481
482         PR tree-optimization/41750
483         * tree-sra.c (analyze_modified_params): Loop over all
484         representatives of components of a parameter.
485
486 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
487
488         PR tree-optimization/41841
489         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
490         local variables of not yet materialized clones.
491
492         PR debug/41893
493         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
494         for a VOIDmode variable.
495
496         PR c++/41774
497         * c-pragma.c (visstack): Change into vector of ints rather than
498         enum symbol_visibility.
499         (push_visibility): Add kind argument, push default_visibility together
500         with kind.
501         (pop_visibility): Add kind argument, return true if successful, fail
502         if visibility stack is empty or if stack top is of different kind.
503         (handle_pragma_visibility): Don't check length of visstack, instead
504         call pop_visibility and issue diagnostics if it failed.  Pass 0
505         as last argument to push_visibility and pop_visibility.
506         * c-pragma.h (push_visibility): Add kind argument.
507         (pop_visibility): Likewise.  Return bool instead of void.
508
509 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
510
511         * tree.def (TARGET_MEM_REF): Update comment.
512         * alias.c (get_alias_set): Retrieve the original memory reference for
513         a TARGET_MEM_REF before proceeding.
514
515 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
516
517         * config/frv/frv.c (frv_function_value, frv_libcall_value,
518         frv_function_value_regno_p): New functions.
519         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
520         * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
521         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
522         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
523
524 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
525
526         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
527         new 'outgoing' argument.
528         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
529         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
530         * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
531         LIBCALL_VALUE): Remove.
532         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
533         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
534         (mh10300_function_value_regno_p): Declare.
535
536 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
537
538         * config/arm/cortex-a9.md: New - integer pipeline description.
539
540 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
541
542         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
543         aborting if the sizes of the two references don't match.
544
545 2009-10-31  Toon Moene  <toon@moene.org>
546
547         * ipa-inline.c (cgraph_decide_inlining):
548         Include reason for not inlining called-once functions in dump file.
549
550 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
551
552         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
553         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
554         (LINK_SPEC): BE_LINK_SPEC added.
555
556 2009-10-30  Richard Guenther  <rguenther@suse.de>
557
558         PR lto/41858
559         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
560
561 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
562
563         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
564         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
565         label.
566
567 2009-10-30  Martin Jambor  <mjambor@suse.cz>
568
569         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
570
571 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
572
573         PR target/40838
574         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
575         first.  Move assert on stack_alignment_estimated just before
576         setting stack_realign_needed.
577         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
578         Don't call update_stack_boundary.
579
580         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
581         (verride_options): Don't check ix86_force_align_arg_pointer here.
582         (ix86_function_ok_for_sibcall): Use it.
583         (ix86_update_stack_boundary): Likewise.
584
585         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
586
587 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
588
589         * arm.md (QHSI): New mode iterator.
590         (movqi): If generating for thumb, then truncate any immediate to
591         8 bits.
592         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
593         with...
594         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
595         version.
596
597 2009-10-29  Cary Coutant  <ccoutant@google.com>
598
599         PR debug/41700
600         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
601         locations in the source).
602         (store_vcall_insn): New function.
603         (lookup_vcall_insn): New function.
604         (dwarf2out_virtual_call_token): Use store_vcall_insn.
605         (dwarf2out_copy_call_info): New function.
606         (dwarf2out_virtual_call): Use lookup_vcall_insn.
607         * emit-rtl.c (try_split): Call copy_call_info debug hook.
608         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
609         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
610         (debug_nothing_rtx_rtx): New dummy hook.
611         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
612         (xcoff_debug_hooks): Likewise.
613         * sdbout.c (sdb_debug_hooks): Likewise.
614         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
615
616 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
617
618         * doc/invoke.texi (mmcount-ra-address): Document new command line
619         option.
620         * config/mips/mips.opt (mmcount-ra-address): New option.
621         * config/mips/mips-protos.h (mips_function_profiler): Declare new
622         function.
623         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
624         member.
625         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
626         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
627         rewritten.
628         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
629         mips_function_profiler.
630
631 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
632
633         PR middle-end/37565
634         PR target/38018
635         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
636         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
637         * optc-gen.awk (cl_target_option_restore): Include call to
638         targetm.override_options_after_change.
639         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
640         * target.h (override_options_after_change): New.
641         * c-common.c (parse_optimize_options): Call
642         targetm.override_options_after_change.
643         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
644         (ia64_override_options_after_change): New.
645         (ia64_override_options) Add call to above.
646
647 2009-10-29  Michael Matz  <matz@suse.de>
648
649         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
650         (gate_convert_to_rsqrt): Ditto.
651         (pass_convert_to_rsqrt): Ditto.
652         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
653         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
654         to pass list.
655
656         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
657
658 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
659
660         * config/arm/arm.c (find_best_start): Fix type of remainder to be
661         unsigned.
662
663 2009-10-29  Martin Jambor  <mjambor@suse.cz>
664
665         PR tree-optimization/41775
666         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
667         (generate_subtree_copies): Do not unshare agg.
668         (load_assign_lhs_subreplacements): Do not unshare rhs.
669         (sra_modify_assign): Do not unshare exprs.
670         (propagate_subacesses_accross_link): Renamed to
671         propagate_subaccesses_across_link.
672
673 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
674
675         * arm.c (count_insns_for_constant): Rework to support counting for
676         thumb2 immediates as well.
677         (find_best_start): Split out from arm_gen_constant.
678         (arm_gen_constant): Rework to support XOR with immediate.
679
680 2009-10-29  Chao-ying Fu  <fu@mips.com>
681
682         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
683         functions.
684         (mips_expand_synci_loop):  Use the length rtx to control the
685         synci loop from the begin rtx that points to the first byte of
686         the cache line.
687
688 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
689
690         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
691
692 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
693
694         * dbxout.c (dbxout_common_check): Accept non public trees.
695         * dwarf2out.c (fortran_common): Accept non public trees.
696
697 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
698
699         * common.opt (fuse-linker-plugin): New option.
700         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
701         fuse-linker-plugin.
702         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
703
704 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
705
706         PR rtl-optimization/39715
707         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
708         (gen_cstoresi_ltu_thumb1): New splitter.
709
710 2009-10-28  Richard Guenther  <rguenther@suse.de>
711
712         PR lto/41808
713         PR lto/41839
714         * tree-ssa.c (useless_type_conversion_p): Do not treat
715         conversions to pointers to incomplete types as useless.
716         * gimple.c (gimple_types_compatible_p): Compare struct tags,
717         not typedef names.
718
719 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
720
721         * var-tracking.c (emit_note_insn_var_location): Don't call the second
722         vt_expand_loc unnecessarily when location is not a register nor
723         memory.
724
725         PR middle-end/41837
726         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
727         fields don't have DECL_NAME.
728
729         PR debug/41801
730         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
731         call convert_memory_address on addr.
732
733         PR target/41762
734         * config/i386/i386.c (ix86_pic_register_p): Don't call
735         rtx_equal_for_cselib_p for VALUEs discarded as useless.
736
737 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
738
739         * var-tracking.c (emit_note_insn_var_location): Get the mode of
740         a variable part from its REG, MEM or VALUE.
741
742 2009-10-28  Richard Guenther  <rguenther@suse.de>
743
744         * gimple.c (gimple_get_alias_set): Fix comment typo.
745
746 2009-10-28  Richard Guenther  <rguenther@suse.de>
747
748         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
749         (free_lang_data): Unconditionally compute alias sets for all
750         standard integer types.  Bail out if gate bailed out previously.
751         Do not reset the types_compatible_p langhook.
752         (gate_free_lang_data): Remove.
753         (struct pass_ipa_free_lang_data): Enable unconditionally.
754         * gimple.c (gimple_get_alias_set): Use the same alias-set for
755         all pointer types.
756
757 2009-10-28  Richard Guenther  <rguenther@suse.de>
758
759         PR middle-end/41855
760         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
761         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
762         (call_may_clobber_ref_p_1): Likewise.
763         * tree-ssa-structalias.c (find_func_aliases): Likewise.
764         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
765
766 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
767
768         PR rtl-optimization/41812
769
770         Revert:
771         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
772
773         * df-problems.c (df_md_scratch): New.
774         (df_md_alloc, df_md_free): Allocate/free it.
775         (df_md_local_compute): Only include live registers in init.
776         (df_md_transfer_function): Prune the in-set computed by
777         the confluence function, and the gen-set too.
778
779 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
780
781         PR rtl-optimization/39715
782         * combine.c (simplify_comparison): Use extensions to
783         widen comparisons.  Try an ANDing first.
784
785 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
786
787         PR rtl-optimization/40741
788         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
789         a small constant is cheap.
790         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
791         force_reg on the LHS.
792         (xorsi3): Likewise, and split the XOR if the constant is complex
793         and not in Thumb mode.
794
795 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
796
797         * expmed.c (emit_store_flag): Check costs before
798         transforming to the opposite representation.
799
800 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
801
802         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
803         cstore result to DImode.
804
805 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
806
807         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
808         inside the unspec vector.
809
810 2009-10-27  Richard Henderson  <rth@redhat.com>
811
812         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
813
814 2009-10-27  Richard Henderson  <rth@redhat.com>
815
816         PR c++/41819
817         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
818         eh_region_may_contain_throw; update users.
819         (eh_region_may_contain_throw): New function.
820         (lower_catch): Check flag_exceptions before creating exception region.
821         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
822         (lower_cleanup): Tidy existing flag_exceptions check to match.
823
824 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
825
826         PR/41799
827         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
828         * config/i386/mingw.opt: Add fset-stack-executable.
829         * config/i386/i386.c (ix86_trampoline_init): Make call to
830         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
831         defined and its value is not zero.
832         * doc/invoke.texi
833
834 2009-10-27  Richard Guenther  <rguenther@suse.de>
835
836         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
837         handle calls to externally visible functions like in regular mode.
838         (create_variable_info_for): Do not create function infos here.
839         (have_alias_info): Remove write-only variable.
840         (solve_constraints): New function split out from common code
841         in compute_points_to_sets and ipa_pta_execute.
842         (compute_points_to_sets): Adjust.
843         (ipa_pta_execute): Likewise.  Handle clones and externally visible
844         functions like in non-IPA mode.
845
846 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
847
848         PR c/41842
849         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
850         error_mark_node.
851
852 2009-10-27  Richard Guenther  <rguenther@suse.de>
853
854         * tree-complex.c (expand_complex_div_wide): Check for
855         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
856
857 2009-10-27  Revital Eres  <eres@il.ibm.com>
858
859         PR tree-optimization/40648
860         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
861         Change decision of when to peel for alignment.
862
863 2009-10-27  Richard Guenther  <rguenther@suse.de>
864
865         PR lto/41821
866         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
867
868 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
869
870         PR bootstrap/41451
871         * fold-const.c (fold_binary_loc): Do not call
872         protected_set_expr_location.
873
874 2009-10-27  Wei Guozhi  <carrot@google.com>
875
876         PR target/41705
877         * target.h (have_conditional_execution): Add a new target hook
878         function.
879         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
880         * targhooks.h (default_have_conditional_execution): Likewise.
881         * targhooks.c (default_have_conditional_execution): Likewise.
882         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
883         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
884         (arm_have_conditional_execution): New function.
885         * ifcvt.c (noce_process_if_block, find_if_header,
886         cond_exec_find_if_block, dead_or_predicable): Change the usage of
887         macro HAVE_conditional_execution to a target hook call.
888         * recog.c (peephole2_optimize): Likewise.
889         * sched-rgn.c (add_branch_dependences): Likewise.
890         * final.c (asm_insn_count, final_scan_insn): Likewise.
891         * bb-reorder.c (HAVE_conditional_execution): Remove it.
892
893 2009-10-26  Ben Elliston  <bje@au.ibm.com>
894             Michael Meissner  <meissner@linux.vnet.ibm.com>
895             Ulrich Weigand  <uweigand@de.ibm.com>
896
897         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
898         * config/spu/spu_cache.h: New file.
899
900         * config/spu/cachemgr.c: New file.
901         * config/spu/cache.S: New file.
902
903         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
904         (ADDR_SPACE_EA): Define.
905         (TARGET_ADDR_SPACE_KEYWORDS): Define.
906         * config/spu/spu.c (EAmode): New macro.
907         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
908         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
909         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
910         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
911         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
912         (TARGET_ADDR_SPACE_CONVERT): Likewise.
913         (TARGET_ASM_SELECT_SECTION): Likewise.
914         (TARGET_ASM_UNIQUE_SECTION): Likewise.
915         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
916         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
917         (ea_symbol_ref): New function.
918         (spu_legitimate_constant_p): Handle __ea qualified addresses.
919         (spu_addr_space_legitimate_address_p): New function.
920         (spu_addr_space_legitimize_address): Likewise.
921         (cache_fetch): New global.
922         (cache_fetch_dirty): Likewise.
923         (ea_alias_set): Likewise.
924         (ea_load_store): New function.
925         (ea_load_store_inline): Likewise.
926         (expand_ea_mem): Likewise.
927         (spu_expand_mov): Handle __ea qualified memory references.
928         (spu_addr_space_pointer_mode): New function.
929         (spu_addr_space_address_mode): Likewise.
930         (spu_addr_space_subset_p): Likewise.
931         (spu_addr_space_convert): Likewise.
932         (spu_section_type_flags): Handle "._ea" section.
933         (spu_select_section): New function.
934         (spu_unique_section): Likewise.
935         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
936         and __EA64__ predefined macros.
937         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
938         -matomic-updates switches.
939
940         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
941         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
942         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
943         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
944         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
945         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
946         $(T)cache128k.o): Likewise.
947         ($(T)libgcc_%.a): Likewise.
948
949         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
950         * config/spu/spu.opt (-mea32/-mea64): Add switches.
951         (-maddress-space-conversion): Likewise.
952         (-mcache-size=): Likewise.
953         (-matomic-updates): Likewise.
954         * doc/invoke.texi (-mea32/-mea64): Document.
955         (-maddress-space-conversion): Likewise.
956         (-mcache-size=): Likewise.
957         (-matomic-updates): Likewise.
958
959 2009-10-26  Ben Elliston  <bje@au.ibm.com>
960             Michael Meissner  <meissner@linux.vnet.ibm.com>
961             Ulrich Weigand  <uweigand@de.ibm.com>
962
963         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
964
965         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
966         defined, add the named address space keywords.
967         (c_addr_space_name): New function.
968         (complete_array_type): Preserve named address space.
969         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
970         instead of targetm.valid_pointer_mode.
971
972         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
973         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
974         (ADDR_SPACE_KEYWORD): New macro.
975         (c_addr_space_name): Add prototype.
976
977         * c-tree.h (struct c_declspecs): Add address_space member.
978         (declspecs_add_addrspace): Add prototype.
979
980         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
981
982         * c-parser.c (c_parse_init): Add assertion.
983         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
984         (c_lex_one_token): Handle address space keywords.
985         (c_token_starts_typename): Likewise.
986         (c_token_starts_declspecs): Likewise.
987         (c_parser_declspecs): Likewise.
988         (c_parser_postfix_expression_after_paren_type): Diagnose compound
989         literal within function qualified with named address space.
990
991         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
992         address space qualifiers.
993         (shadow_tag_warned): Warn about useless address space qualifiers.
994         (quals_from_declspecs): Handle address space qualifiers.
995         (grokdeclarator): Likewise.
996         (build_null_declspecs): Likewise.
997         (declspecs_add_addrspace): New function.
998
999         * c-typeck.c (addr_space_superset): New function.
1000         (qualify_type): Handle named address spaces.
1001         (composite_type): Likewise.
1002         (common_pointer_type): Likewise.
1003         (comp_target_types): Likewise.
1004         (build_conditional_expr): Likewise.
1005         (handle_warn_cast_qual): Likewise.
1006         (build_c_cast): Likewise.
1007         (convert_for_assignment): Likewise.
1008         (build_binary_op): Likewise.
1009         (pointer_diff): Handle named address spaces.  Use intermediate
1010         integer type of sufficient size if required.
1011
1012 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1013             Michael Meissner  <meissner@linux.vnet.ibm.com>
1014             Ulrich Weigand  <uweigand@de.ibm.com>
1015
1016         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
1017         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1018         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1019
1020         * target.h (struct target_def): Add pointer_mode, address_mode,
1021         and valid_pointer_mode to addr_space substructure.
1022         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
1023         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1024         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1025         (TARGET_ADDR_SPACE_HOOKS): Add them.
1026         * targhooks.c (target_default_pointer_address_modes_p): New function.
1027         * target.h (target_default_pointer_address_modes_p): Add prototype.
1028         * targhooks.c (default_addr_space_pointer_mode): New function.
1029         (default_addr_space_address_mode): Likewise.
1030         (default_addr_space_valid_pointer_mode): Likewise.
1031         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
1032         (default_addr_space_address_mode): Likewise.
1033         (default_addr_space_valid_pointer_mode): Likewise.
1034         * output.h (default_valid_pointer_mode): Move to ...
1035         * targhooks.h (default_valid_pointer_mode): ... here.
1036         * varasm.c (default_valid_pointer_mode): Move to ...
1037         * targhooks.c (default_valid_pointer_mode): ... here.
1038
1039         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
1040         instead of targetm.valid_pointer_mode.
1041
1042         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
1043         * tree.c (integer_pow2p): Likewise.
1044         (tree_log2): Likewise.
1045         (tree_floor_log2): Likewise.
1046         (signed_or_unsigned_type_for): Support pointer type of different size.
1047         (int_or_pointer_precision): New function.
1048         * tree.h (int_or_pointer_precision): Add prototype.
1049         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
1050         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
1051         incoming pointer type instead of POINTER_SIZE.
1052
1053         * tree.c (build_pointer_type): Use appropriate pointer mode
1054         instead of ptr_mode.
1055         (build_reference_type): Likewise.
1056         * expr.c (store_expr): Likewise.
1057         (expand_expr_addr_expr): Likewise.
1058         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
1059         * cfgexpand.c (expand_debug_expr): Likewise.
1060
1061         * auto-inc-dec.c: Include "target.h".
1062         (try_merge): Use appropriate address mode instead of Pmode.
1063         (find_inc): Likewise.
1064         * combine.c (find_split_point): Likewise.
1065         * cselib.c (cselib_record_sets): Likewise.
1066         * dse.c (replace_inc_dec): Likewise.
1067         (canon_address): Likewise.
1068         * var-tracking.c (replace_expr_with_values): Likewise.
1069         (count_uses): Likewise.
1070         (add_uses): Likewise.
1071         (add_stores): Likewise.
1072         * emit-rtl.c: Include "target.h".
1073         (adjust_address_1): Use appropriate address mode instead of Pmode.
1074         (offset_address): Likewise.
1075         * explow.c (break_out_memory_refs): Likewise.
1076         (memory_address_addr_space): Likewise.
1077         (promote_mode): Likewise.
1078         * expr.c (move_by_pieces): Likewise.
1079         (emit_block_move_via_loop): Likewise.
1080         (store_by_pieces): Likewise.
1081         (store_by_pieces_1): Likewise.
1082         (expand_assignment): Likewise.
1083         (store_constructor): Likewise.
1084         (expand_expr_addr_expr): Likewise.
1085         (expand_expr_real_1): Likewise.
1086         * cfgexpand.c (expand_debug_expr): Likewise.
1087         * ifcvt.c (noce_try_cmove_arith): Likewise.
1088         * regcprop.c (kill_autoinc_value): Likewise.
1089         * regmove.c (try_auto_increment): Likewise.
1090         * reload.c (find_reloads): Likewise.
1091         (find_reloads_address): Likewise.
1092         (find_reloads_address_1): Likewise.
1093         * sched-deps.c: Include "target.h".
1094         (sched_analyze_1): Use appropriate address mode instead of Pmode.
1095         (sched_analyze_2): Likewise.
1096         * sel-sched-dump.c: Include "target.h".
1097         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
1098         * stor-layout.c (layout_type): Likewise.
1099         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1100         (multiplier_allowed_in_address_p): Likewise.
1101         (get_address_cost): Likewise.
1102         * varasm.c (make_decl_rtl): Likewise.
1103
1104         * expr.c (expand_assignment): Always convert offsets to appropriate
1105         address mode.
1106         (store_expr): Likewise.
1107         (store_constructor): Likewise.
1108         (expand_expr_real_1): Likewise.
1109
1110         * reload.h (form_sum): Add MODE argument.
1111         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
1112         Update recursive calls.
1113         (subst_indexed_address): Update calls to form_sum.
1114
1115         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
1116         * tree-ssa-address.c: Include "target.h".
1117         (templates): Replace by ...
1118         (mem_addr_template_list): ... this new vector.
1119         (TEMPL_IDX): Handle address space numbers.
1120         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
1121         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
1122         instead of global cache.  Update call to gen_addr_rtx.
1123         (valid_mem_ref_p): Update call to addr_for_mem_ref.
1124         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
1125
1126         * rtl.h (convert_memory_address_addr_space): Add prototype.
1127         (convert_memory_address): Define as macro.
1128         * explow.c (convert_memory_address): Rename to ...
1129         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
1130         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
1131         Update recursive calls.
1132         (memory_address_addr_space): Call convert_memory_address_addr_space.
1133         * expmed.c (make_tree): Likewise.
1134         * expr.c (expand_assignment): Likewise.
1135         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
1136         (expand_expr_addr_expr): Likewise.  Also, update call.
1137
1138         * alias.c (find_base_value): Guard pointer size optimizations.
1139         (find_base_term): Likewise.
1140         * rtlanal.c (nonzero_bits1): Likewise.
1141         (num_sign_bit_copies1): Likewise.
1142         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1143
1144         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
1145         (emit-rtl.o): Likewise.
1146         (auto-inc-dec.o): Likewise.
1147         (sched-deps.o): Likewise.
1148
1149 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1150             Michael Meissner  <meissner@linux.vnet.ibm.com>
1151             Ulrich Weigand  <uweigand@de.ibm.com>
1152
1153         * doc/extend.texi (Named Address Spaces): New section.
1154         * coretypes.h (addr_space_t): New type.
1155         (ADDR_SPACE_GENERIC): New define.
1156         (ADDR_SPACE_GENERIC_P): New macro.
1157
1158         * doc/tm.texi (Named Address Spaces): New section.
1159         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
1160         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
1161         (TARGET_ADDR_SPACE_SUBSET_P): Document.
1162         (TARGET_ADDR_SPACE_CONVERT): Document.
1163         * target.h (struct gcc_target): Add addr_space substructure.
1164         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1165         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
1166         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
1167         (TARGET_ADDR_SPACE_CONVERT): Likewise.
1168         (TARGET_ADDR_SPACE_HOOKS): Likewise.
1169         (TARGET_INITIALIZER): Initialize addr_space hooks.
1170         * targhooks.c (default_addr_space_legitimate_address_p): New function.
1171         (default_addr_space_legitimize_address): Likewise.
1172         (default_addr_space_subset_p): Likewise.
1173         (default_addr_space_convert): Likewise.
1174         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
1175         (default_addr_space_legitimize_address): Likewise.
1176         (default_addr_space_subset_p): Likewise.
1177         (default_addr_space_convert): Likewise.
1178
1179         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
1180         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
1181         (MEM_ADDR_SPACE): New macro.
1182         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
1183         address space memory attribute.
1184         (mem_attrs_htab_hash): Handle address space memory attribute.
1185         (mem_attrs_htab_eq): Likewise.
1186         (set_mem_attributes_minus_bitpos): Likewise.
1187         (set_mem_alias_set): Likewise.
1188         (set_mem_align): Likewise.
1189         (set_mem_expr): Likewise.
1190         (set_mem_offset): Likewise.
1191         (set_mem_size): Likewise.
1192         (adjust_address_1): Likewise.
1193         (offset_address): Likewise.
1194         (widen_memoy_address): Likewise.
1195         (get_spill_slot_decl): Likewise.
1196         (set_mem_attrs_for_spill): Likewise.
1197         (set_mem_addr_space): New function.
1198         * emit-rtl.h (set_mem_addr_space): Add prototype.
1199         * print-rtl.c (print_rtx): Print address space memory attribute.
1200         * expr.c (expand_assignment): Set address space memory attribute
1201         of generated MEM RTXes as appropriate.
1202         (expand_expr_real_1): Likewise.
1203         * cfgexpand.c (expand_debug_expr): Likewise.
1204         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1205
1206         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
1207         size of "spare" bitfield.
1208         (TYPE_ADDR_SPACE): New macro.
1209         (ENCODE_QUAL_ADDR_SPACE): Likewise.
1210         (DECODE_QUAL_ADDR_SPACE): Likewise.
1211         (CLEAR_QUAL_ADDR_SPACE): Likewise.
1212         (KEEP_QUAL_ADDR_SPACE): Likewise.
1213         (TYPE_QUALS): Encode type address space.
1214         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
1215         * tree.c (set_type_quals): Set type address space.
1216         (build_array_type): Inherit array address space from element type.
1217         * print-tree.c (print_node_brief): Print type address space.
1218         (print_node): Likewise.
1219         * tree-pretty-print.c (dump_generic_node): Likewise.
1220
1221         * explow.c (memory_address): Rename to ...
1222         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
1223         Use address-space aware variants of memory address routines.
1224         * recog.c (memory_address_p): Rename to ...
1225         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1226         Use address-space aware variants of memory address routines.
1227         (offsettable_address_p): Rename to ...
1228         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
1229         Use address-space aware variants of memory address routines.
1230         * reload.c (strict_memory_address_p): Rename to ...
1231         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1232         Use address-space aware variants of memory address routines.
1233         (maybe_memory_address_p): Rename to ...
1234         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1235         Use address-space aware variants of memory address routines.
1236         * expr.h (memory_address_addr_space): Add prototype.
1237         (memory_address): Define as macro.
1238         * recog.h (memory_address_addr_space_p): Add prototype.
1239         (memory_address_p): Define as macro.
1240         (offsettable_address_addr_space_p): Add prototype.
1241         (offsettable_address_p): Define as macro.
1242         (strict_memory_address_addr_space_p): Add prototype.
1243         (strict_memory_address_p): Define as macro.
1244
1245         * combine.c (find_split_point): Use address-space aware variants
1246         of memory address routines.
1247         * emit-rtl.c (operand_subword): Likewise.
1248         (change_address_1): Likewise.
1249         (adjust_address_1): Likewise.
1250         (offset_address): Likewise.
1251         * expr.c (emit_move_insn): Likewise.
1252         (expand_assignment): Likewise.
1253         (expand_expr_real_1): Likewise.
1254         * recog.c (verify_changes): Likewise.
1255         (general_operand): Likewise.
1256         (offsettable_memref_p): Likewise.
1257         (offsettable_nonstrict_memref_p): Likewise.
1258         (constrain_operands): Likewise.
1259         * reload.c (get_secondary_mem): Likewise.
1260         (find_reloads_toplev): Likewise.
1261         (find_reloads_address): Likewise.
1262         (find_reloads_subreg_address): Likewise.
1263         * reload1.c (reload): Likewise.
1264         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1265         * rtl.h (address_cost): Add ADDRSPACE argument.
1266         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
1267         aware variant of memory address routines.
1268         * loop-invariant.c (create_new_invariant): Update address_cost call.
1269         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1270         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
1271         Use address-space aware variant of memory address routines.
1272         (propagate_rtx_1): Update call to should_replace_address.
1273         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
1274         argument.
1275         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
1276         ADDRSPACE argument.  Use per-address-space instead of global cache.
1277         Use address-space aware variant of memory address routines.
1278         (get_address_cost): Likewise.
1279         (get_computation_cost_at): Update calls.
1280         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
1281         Use address-space aware variant of memory address routines.
1282         (create_mem_ref_raw): Update call to valid_mem_ref_p.
1283         (most_expensive_mult_to_index): Update call to
1284         multiplier_allowed_in_address_p.
1285
1286         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
1287         attribute to indicate named address spaces.
1288
1289         * varasm.c (get_variable_section): DECLs in named address spaces
1290         cannot be "common".
1291
1292         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
1293         for addresses in a non-generic address space.
1294
1295         * expr.c (emit_block_move_hints): Do not use libcalls for
1296         memory in non-generic address spaces.
1297         (clear_storage_hints): Likewise.
1298         (expand_assignment): Likewise.
1299
1300         * fold-const.c (operand_equal_p): Expressions refering to different
1301         address spaces are not equivalent.
1302
1303         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
1304         spaces are not equivalent.
1305         (rtx_equal_p): Likewise.
1306         * cse.c (exp_equiv_p): Likewise.
1307         * jump.c (rtx_renumbered_equal_p): Likewise.
1308         * reload.c (operands_match_p): Likewise.
1309
1310         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
1311         address spaces may alias.
1312         (true_dependence): Likewise.
1313         (canon_true_dependence): Likewise.
1314         (write_dependence_p): Likewise.
1315
1316         * dse.c (canon_address): Handle named address spaces.
1317         * ifcvt.c (noce_try_cmove_arith): Likewise.
1318
1319         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
1320         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
1321         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
1322         to handle conversions between different address spaces.
1323         * fold-const.c (fold_convert_loc): Likewise.
1324         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
1325         * tree-pretty-print.c (dump_generic_node): Likewise.
1326         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
1327         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
1328         * tree-inline.c (estimate_operator_cost): Likewise.
1329         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
1330         to different address spaces are not useless.
1331
1332 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1333
1334         PR bootstrap/41345
1335         * cfgcleanup.c (trivially_empty_bb_p): New function.
1336         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
1337
1338         PR debug/41828
1339         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
1340         add_name_and_src_coords_attributes, gen_namespace_die,
1341         dwarf2out_set_name): Handle dwarf2_name returning NULL.
1342
1343 2009-10-26  Nick Clifton  <nickc@redhat.com>
1344
1345         * config.gcc: Add support for RX target.
1346         * config/rx: New directory.
1347         * config/rx/constraints.md: New file.
1348         * config/rx/predicates.md: New file.
1349         * config/rx/rx.c: New file.
1350         * config/rx/rx.h: New file.
1351         * config/rx/rx.md: New file.
1352         * config/rx/rx.opt: New file.
1353         * config/rx/rx-protos.h: New file.
1354         * config/rx/t-rx: New file.
1355         * doc/extend.texi: Document RX function attributes.
1356         * doc/invoke.texi: Document RX specific command line options.
1357         * doc/contrib.texi: Document RX contribution.
1358         * doc/md.texi: Document RX constraints.
1359         * doc/install.texi: Document RX support.
1360
1361 2009-10-26  Michael Matz  <matz@suse.de>
1362
1363         PR tree-optimization/41783
1364         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
1365         case for simple diamonds.
1366         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
1367         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
1368         argument, use alias oracle to skip some vdefs.
1369         (phi_translate_1): Change call to above, don't allocate new
1370         value ids if they can stay the same.
1371         (compute_avail): Allow vuse walking when looking up references.
1372
1373 2009-10-26  Richard Guenther  <rguenther@suse.de>
1374
1375         PR tree-optimization/41826
1376         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
1377         access to re-allocated vector fields.
1378
1379 2009-10-26  Richard Guenther  <rguenther@suse.de>
1380
1381         * graphite-sese-to-poly.c (check_poly_representation): Fix
1382         compile without checking.
1383
1384 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
1385
1386         PR fortran/41714
1387         * gimple.h (tree_annotate_all_with_location): Remove prototype.
1388         * gimplify.c (tree_should_carry_location_p,
1389         tree_annotate_one_with_location,tree_annotate_all_with_location):
1390         Remove obsolete functions.
1391
1392 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1393
1394         PR target/41813
1395         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
1396
1397 2009-10-25  Richard Guenther  <rguenther@suse.de>
1398
1399         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1400         Stream DECL_RESTRICTED_P.
1401         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1402
1403 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
1404
1405         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
1406         a note when expanding to nothing.
1407
1408 2009-10-25  Richard Guenther  <rguenther@suse.de>
1409
1410         PR middle-end/41814
1411         * tree.c (find_decls_types_r): Deal with Java overloading
1412         BINFO_VIRTUALS for its own purpose.
1413
1414 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
1415
1416         * config/mips/predicates.md (hilo_operand): New predicate.
1417         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
1418         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
1419         splitter part from here ...:
1420         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
1421         op0 and op4 to match the DINS case.
1422         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
1423
1424 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1425
1426         PR middle-end/19154
1427         * avr.md (QIDI): Add new mode iterator.
1428         (sbrx_branch<mode>): Create new zero extract bit, test and jump
1429         patterns for all QI thru DI modes combinations.
1430         (sbrx_and_branch<mode>): Create new and based bit test and jump
1431         patterns for QI thru SI modes.
1432         avr.c (avr_out_sbxx_branch): Use only bit number.
1433
1434 2009-10-24  Jan Hubicka  <jh@suse.cz>
1435
1436         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1437         to memory.
1438         (analyze_function): When analyzing noreturn nothrow call, do not
1439         compute written stats; free bitmaps of vars early if possible.
1440         (generate_summary): Only update bitmaps if computed.
1441         (propagate): Only dump bitmaps if computed.
1442         (ipa_reference_read_summary): Fix pasto.
1443
1444 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1445
1446         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1447         (aliasing_component_refs_p): ...this.  Return true if there is no
1448         common base and the base access types have the same alias set.
1449         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1450         (indirect_refs_may_alias_p): Likewise.
1451
1452 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1453
1454         PR c/40033
1455         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1456         a C_MAYBE_CONST_EXPR.
1457
1458 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1459
1460         PR target/41787
1461         * config/rs6000/rs6000.c (struct machine_function): Add
1462         vsx_or_altivec_used_p to record if vector types are used.
1463         (rs6000_expand_to_rtl_hook): Rename from
1464         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
1465         any vector operations, so if there are, we can set VRSAVE to
1466         non-zero when only floating point vector registers are used.
1467         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1468         (rs6000_check_vector_mode): Inner function to check if vector
1469         types are used in the code.
1470         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1471         vector instructions are used.
1472
1473         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1474         Indicate that VSX registers which overlap floating point
1475         registers, can't be used across a call, since the ABI only states
1476         the scalar part of the register will be saved and restored.
1477
1478 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1479
1480         PR c/41673
1481         * alias.c (get_alias_set): Call langhook before returning 0 for
1482         types with structural equality.
1483         * c-common.c (c_common_get_alias_set): Use alias set of element
1484         type for arrays with structural comparison.
1485
1486 2009-10-23  Richard Guenther  <rguenther@suse.de>
1487
1488         PR middle-end/41805
1489         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1490         gimple_call_nothrow_p.
1491
1492 2009-10-23  Richard Guenther  <rguenther@suse.de>
1493
1494         PR tree-optimization/41778
1495         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1496         redundancy along a path in the CFG we want to optimize for speed
1497         is going to be removed.
1498         (execute_pre): Do partial-PRE only if the function is to be
1499         optimized for speed.
1500         (gate_pre): Do not turn off all of PRE when not optimizing a
1501         function for speed.
1502
1503 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1504
1505         * builtins.c (fold_builtin_cabs): Use validate_arg().
1506         (fold_builtin_cexp): Fix if-logic.
1507         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1508
1509 2009-10-22  Jeff Law  <law@redhat.com>
1510
1511         * ira-lives.c (process_single_reg_class_operands): Update the
1512         hard reg costs for all the hard registers desired by the
1513         single reg class operand.
1514
1515 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1516
1517         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1518         for rtxes that aren't handled specially.
1519
1520 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1521
1522         * rtl.h (shallow_copy_rtvec): Declare.
1523         * rtl.c (shallow_copy_rtvec): New function.
1524         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
1525         rtx field if the subrtx has changed.
1526
1527 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
1528
1529         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1530         (m32c_function_value): Make static, add new 'outgoing' argument.
1531         (m32c_libcall_value): Make static, add new 'fun' argument.
1532         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1533         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1534         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1535         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1536         (m32c_function_value, m32c_libcall_value): Delete declaration.
1537
1538 2009-10-22  Diego Novillo  <dnovillo@google.com>
1539
1540         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1541
1542 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1543
1544         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1545         space.
1546
1547 2009-10-22  Richard Guenther  <rguenther@suse.de>
1548
1549         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1550         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1551         (lto_symtab_merge): Do not merge cgraph nodes here.
1552         (lto_symtab_resolve_can_prevail_p): Simplify.
1553         (lto_symtab_resolve_symbols): Store cgraph node.
1554         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
1555         functions from the symtab.
1556         (lto_symtab_merge_cgraph_nodes_1): New function.
1557         (lto_symtab_merge_cgraph_nodes): Likewise.
1558
1559 2009-10-22  Richard Guenther  <rguenther@suse.de>
1560
1561         PR lto/41791
1562         * lto-streamer-out.c (lto_output_location): Stream the
1563         system header flag.
1564         * lto-streamer-in.c (lto_input_location): Likewise.
1565
1566 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1567
1568         * cfgloopmanip.c (duplicate_subloops): Export.
1569         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1570         (transform_to_exit_first_loop): Duplicate bbs starting from
1571         header up to loop->latch instead of exit->src.
1572         Initialize control variable to the correct number of iterations.
1573         (gather_scalar_reductions): Do not register double reductions.
1574         (parallelize_loops): Dump which loop is tested.
1575         Indicate whether the parallelized loop is inner or not.
1576         Remove the innermost-loop requirement.
1577         * cfgloop.h (duplicate_subloops): Export.
1578         * tree-cfg.c (add_phi_args_after_redirect): New function.
1579         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1580         Call duplicate_subloops.
1581         Update number of iterations at the exit condition.
1582         Don't redirect nexits always to the loop exit.
1583         Redirect copied edges from latch to the loop exit.
1584
1585 2009-10-22  Jan Hubicka  <jh@suse.cz>
1586
1587         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1588         flag_ltrans check.
1589         * ipa-inline.c (cgraph_mark_inline_edge,
1590         cgraph_decide_inlining_of_small_function,
1591         cgraph_decide_inlining, inline_read_summary): Disable indirect
1592         inlining for WPA for time being.
1593
1594         PR tree-optimize/40556
1595         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1596
1597 2009-10-22  Richard Guenther  <rguenther@suse.de>
1598
1599         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1600         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1601
1602 2009-10-22  Jan Hubicka  <jh@suse.cz>
1603
1604         PR lto/41730
1605         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1606         global vars.
1607         (check_call): Handle only indirect calls.
1608         (propagate_bits): Update comment.
1609         (write_node_summary_p): Turn bogus check to assert.
1610         (ipa_reference_write_summary): Stream calls_read_all properly.
1611         (ipa_reference_read_summary): Stream in calls_read_all properly.
1612         (read_write_all_from_decl): New function.
1613         (propagate): Handle OVERWRITABLE nodes and external calls here.
1614         * ipa-pre-const.c (check_call): In IPA mode handle indirect
1615         calls only.
1616         (analyze_function): Do not check visibility here.
1617         (add_new_function): We summary OVERWRITABLE too.
1618         (generate_summary): Stream OVERWRITABLE nodes too.
1619         (propagate): Handle external calls and OVERWRITABLE nodes here.
1620         (local_pure_const): Check visibility here.
1621
1622 2009-10-22  Jan Hubicka  <jh@suse.cz>
1623
1624         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1625         (pass_ipa_cp): Register them.
1626         (ipcp_init_stage): Analyze all functions for whopr/lto.
1627         (ipcp_propagate_stage): Skip external calls.
1628         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1629         * ipa-reference.c (write_node_summary_p): Fix thinko about
1630         availability.
1631         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1632         when in ltrans, skip executing of ipa passes since everything
1633         should've been done.
1634         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1635         (inline_generate_summary): Likewise.
1636         (inline_read_summary): New function.
1637         (inline_write_summary): New function.
1638         (pass_ipa_inline): Register new hooks.
1639         * ipa-prop.c: Inlcude lto-streamer.h
1640         (ipa_edge_args_vector): Update declaration.
1641         (ipa_count_arguments, ipa_compute_jump_functions,
1642         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1643         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1644         ipa_read_node_info): New static functions.
1645         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1646         (duplicate_array): Use xmalloc.
1647         (duplicate_ggc_array): New.
1648         (ipa_edge_duplication_hook): Use it.
1649         (ipa_update_after_lto_read): New function.
1650         * ipa-prop.h (ipa_prop_write_jump_functions,
1651         ipa_prop_read_jump_functions): Declare.
1652         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1653         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1654         (ipa_edge_args_vector): Move into GGC.
1655         (ipa_check_create_edge_args): Update.
1656         (ipa_update_after_lto_read): New.
1657         * passes.c (ipa_write_summaries_1): When in wpa, do not write
1658         summaries.
1659         (ipa_read_summaries): When in ltrans, so not read summaries.
1660         * lto-streamer.c (lto_get_section_name): Add
1661         LTO_section_jump_functions.
1662         * lto-streamer.h (LTO_section_jump_functions): New section.
1663         (produce_asm): Declare.
1664         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1665         * lto-streamer-out.c (produce_asm): Export.
1666         * lto-streamer-in.c: Include tree-pass.h
1667         (input_function): Free dominance info when done.
1668         (lto_read_body): Push ipa_inline in ltrans stage.
1669         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1670         * Makefile.in (GTFILES): Add ipa-prop.h
1671
1672 2009-10-22  Matthias Klose  <doko@ubuntu.com>
1673
1674         * doc/install.texi: Document --enable-browser-plugin.
1675
1676 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
1677
1678         * doc/invoke.texi (fira-loop-pressure): Update default value.
1679         * opts.c (decode_options): Remove default value setting for
1680         flag_ira_loop_pressure.
1681         * config/ia64/ia64.c (ia64_override_options): Set
1682         flag_ira_loop_pressure up for -O3.
1683         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1684
1685 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
1686
1687         PR tree-optimization/41497
1688         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1689         chrec_dont_know if the evolution function returned by follow_ssa_edge
1690         is constant in the analyzed loop and is not compatible with the
1691         initial value before the loop.
1692         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1693
1694 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1697
1698 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
1699
1700         PR other/25507
1701         * doc/invoke.texi: Document -print-multi-os-directory.
1702
1703 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1704
1705         PR c++/41313
1706         * gcc/config/darwin10.h: Use default_emit_unwind_label.
1707         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1708         when darwin_emit_unwind_label is used.
1709
1710 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1711
1712         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1713         order of checks.
1714
1715 2009-10-20  Richard Henderson  <rth@redhat.com>
1716
1717         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1718         before emit_post_landing_pad.
1719
1720 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
1721
1722         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1723         Use when calling rtx_costs.
1724         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
1725         global optimize_size.  Pass speed to mips_binary_cost.
1726
1727 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1728
1729         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1730         of TREE_CONSTANT.
1731
1732 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
1733
1734         * rtl.h (simplify_replace_fn_rtx): Declare.
1735         (wrap_constant, unwrap_constant): Delete.
1736         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1737         (expand_debug_expr): Don't call wrap_constant.
1738         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1739         (auto_adjust_pair): Fold into...
1740         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
1741         Just return a new value.
1742         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1743         otherwise use simplify_replace_rtx.
1744         * cselib.c (wrap_constant): Reinstate old definition.
1745         (cselib_expand_value_rtx_1): Don't wrap constants.
1746         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1747         simplify_replace_rtx.
1748         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1749         * reload1.c (reload): Skip all uses for an insn before adjusting it.
1750         Use simplify_replace_rtx.
1751         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1752         adapted from...
1753         (simplify_replace_rtx): ...here.  Turn into a wrapper for
1754         simplify_replace_fn_rtx.
1755         (simplify_unary_operation): Don't unwrap CONSTs.
1756         * var-tracking.c (check_wrap_constant): Delete.
1757         (vt_expand_loc_callback): Don't call it.
1758         (vt_expand_loc): Likewise.
1759
1760 2009-10-20  Pascal Obry  <obry@adacore.com>
1761             Eric Botcazou  <ebotcazou@adacore.com>
1762
1763         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1764
1765 2009-10-20  Michael Matz  <matz@suse.de>
1766
1767         * loop-invariant.c (create_new_invariant): Use different magic number.
1768
1769 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
1770
1771         PR target/39247
1772         * arm.c (arm_override_options): Forcibly disable hot/cold block
1773         partitioning.
1774
1775 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1776
1777         PR debug/41739
1778         * haifa-sched.c (try_ready): Skip debug deps updating speculation
1779         status.
1780
1781 2009-10-20  Richard Guenther  <rguenther@suse.de>
1782
1783         * ggc-page.c: Include cfgloop.h.
1784         (struct max_alignment): Drop long double, add void *.
1785         (extra_order_size_table): Add low non-power-of-two multiples
1786         of MAX_ALIGNMENT.  Drop small type-based entries, add
1787         tree_type, cgraph_node and loop.
1788         * alloc-pool.c (struct allocation_object_def): Drop long double
1789         aligning element.
1790
1791 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1792
1793         PR debug/41340
1794         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1795         referenced just in DEBUG_INSNs.
1796
1797 2009-10-20  Richard Guenther  <rguenther@suse.de>
1798
1799         PR lto/41761
1800         * gimple.c (gimple_register_type): Make sure we register
1801         the types main variant first.
1802
1803 2009-10-20  Richard Guenther  <rguenther@suse.de>
1804
1805         * gimple.c (gimple_types_compatible_p): Simplify.  Move
1806         cheap checks before hashtable queries.  Add checks for
1807         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1808
1809 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1810
1811         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1812         without size or with size that can't be represented as a host integer.
1813
1814 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1815
1816         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1817         the removal of a debug stmt as a significant change.
1818
1819 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
1820
1821         * config/s390/s390.md: Added agen condition to operand
1822         forwarding bypasses.  Added bypass for early address generation
1823         use of int results.  Updated comments.
1824
1825 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
1826
1827         * config/i386/i386.c: Remove signal.h #include.
1828
1829 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
1830
1831         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1832         * doc/rtl.texi: Document ss_abs.
1833
1834 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1835
1836         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1837         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
1838         instead of C_LEX_RAW_STRINGS.
1839         (lex_string): Handle CPP_UTF8STRING.
1840         * c-parser.c (c_parser_postfix_expression): Likewise.
1841         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1842         (C_LEX_STRING_NO_JOIN): ... this.
1843
1844 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
1845
1846         * config/cris/cris.c (cris_function_value, cris_libcall_value,
1847         cris_function_value_regno_p): New functions.
1848         (cris_promote_function_mode): Update comment.
1849         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1850         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1851         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1852         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1853
1854 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1855
1856         * unwind-dw2.c (execute_stack_op): Fix operand order for
1857         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1858
1859 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1860
1861         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1862         (lower_stmt) <GIMPLE_BIND>: Add comment.
1863         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1864         and return.
1865         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1866         Otherwise lower it and set cannot_fallthru to true.
1867         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1868         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1869         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1870         to true for a noreturn call.  Do not remove statements.
1871         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1872         Set cannot_fallthru to false on function exit.
1873         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1874         <GIMPLE_ASSIGN>: Remove.
1875
1876 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1877
1878         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1879
1880 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1881
1882         * config/s390/s390.c (s390_z10_optimize_cmp): Use
1883         next/prev_active_insn to skip DEBUG_INSNs as well.
1884
1885 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
1886
1887         * config/arm/arm.c (output_move_neon): Use DImode in call to
1888         adjust_address.
1889
1890 2009-10-19  Matthias Klose  <doko@ubuntu.com>
1891
1892         PR target/40134
1893         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1894
1895 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1896
1897         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1898
1899 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1900
1901         PR middle-end/41738
1902         * optabs.c (expand_binop): Make mode of shift count expression mode
1903         of shift count not target.
1904         Remove indent nit.
1905
1906 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1907
1908         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1909         case.  Force using values to replace references within the statement.
1910         (convert_local_reference_stmt): Likewise.
1911
1912 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1913
1914         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1915         remove a subsequent GOTO or RETURN statement.
1916
1917 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
1918
1919         * config/avr.md (*movqi): Add zero as equally preferable constraint
1920         as general register.
1921         (*movhi): Ditto.
1922
1923 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1924
1925         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1926
1927 2009-10-17  Richard Guenther  <rguenther@suse.de>
1928
1929         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1930
1931 2009-10-17  Richard Guenther  <rguenther@suse.de>
1932
1933         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1934         operands in COMPONENT_REFs.
1935
1936 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
1937
1938         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1939         if not defined. Change type of second argument to const_rtx.
1940         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1941         macro not defined.
1942         * targhooks.h (default_libcall_value): Update prototype.
1943         * target.h (struct gcc_target): Change type of second argument of
1944         libcall_value to const_rtx.
1945         * config/arm/arm.c (arm_libcall_value): Change type of second argument
1946         to const_rtx.
1947         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1948         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
1949
1950 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
1951
1952         PR debug/40521
1953         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1954         * cgraphunit.c (cgraph_optimize): Call it.
1955         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1956         (dwarf2out_assembly_start): ... here.  New hook.
1957         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1958         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1959         hook.
1960         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1961         * sdbout.c (sdb_debug_hooks): Likewise.
1962         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1963         (vmsdbgout_assembly_start): New hook.
1964
1965 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1966
1967         * rtl.h (RTL_LOCATION): Fix typo.
1968
1969 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1970
1971         * print-rtl.c (print_rtx): Print locators in asm_operands
1972         and asm_input.
1973
1974 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1975
1976         PR debug/41535
1977         * sched-deps.c (depl_on_debug_p): New.
1978         (attach_dep_link): Reject debug deps before nondebug deps.
1979         (add_to_deps_list): Insert debug deps after nondebug deps.
1980         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
1981         deps.
1982         (sd_add_dep): Do not reject debug deps.
1983         (add_insn_mem_dependence): Don't count debug deps.
1984         (remove_from_deps): Likewise.
1985         (sched_analyze_2): Set up mem deps on debug insns.
1986         (sched_analyze_insn): Record reg uses for deps on debug insns.
1987         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
1988         try_ready nondebug insn after debug insn.
1989         * ddg.c (create_ddg_dep_from_intra_loop_link,
1990         create_ddg_dep_no_link): Don't reject debug deps.
1991
1992 2009-10-16  Richard Guenther  <rguenther@suse.de>
1993
1994         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1995         (maybe_merge_incomplete_and_complete_type): Likewise.
1996         (lto_symtab_merge): Do not call them.  Do not warn for
1997         complete vs. incomplete compatible types.
1998         (lto_symtab_merge_decls_2): Simplify.
1999         * gimple.c (gimple_force_type_merge): Remove.
2000         (gimple_types_compatible_p): Make it static.
2001         * gimple.h (gimple_force_type_merge): Remove.
2002         (gimple_types_compatible_p): Likewise.
2003
2004 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
2005
2006         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
2007         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
2008
2009 2009-10-16  Richard Guenther  <rguenther@suse.de>
2010
2011         PR tree-optimization/41728
2012         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
2013         if fold_stmt did anything.
2014
2015 2009-10-16  Richard Guenther  <rguenther@suse.de>
2016
2017         PR lto/41715
2018         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
2019         (maybe_fixup_handled_component): New function.
2020         (input_gimple_stmt): Fixup mismatched decl replacements.
2021
2022 2009-10-16  Richard Guenther  <rguenther@suse.de>
2023
2024         PR lto/41713
2025         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
2026         the same as VAR_DECL.
2027
2028 2009-10-16  Richard Guenther  <rguenther@suse.de>
2029
2030         * gimple.c (iterative_hash_gimple_type): For integer types
2031         also hash their minimum and maximum values and the string flag.
2032         For array types hash their domain and the string flag.
2033
2034 2009-10-16  Richard Guenther  <rguenther@suse.de>
2035
2036         * gimple.c (gimple_types_compatible_p): Restrict completing
2037         types to record or unions.  Simplify completion.
2038         Do not merge records or unions with different
2039         TYPE_STRUCTURAL_EQUALITY_P tag.
2040         (iterative_hash_gimple_type): Restrict non-recursing into
2041         pointer targets for records and unions.
2042
2043 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2044
2045         PR debug/41717
2046         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
2047         * dwarf2out.c (mem_loc_descriptor): Don't handle
2048         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
2049         punt if it is not lowpart subreg or if inner mode isn't
2050         MODE_INT.
2051
2052 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2053
2054         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
2055         investigating previous or next insns.
2056
2057 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2058
2059         * tree-sra.c (build_ref_for_offset_1): Update comment.
2060
2061 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
2062
2063         * config/s390/s390.md (atype): Added missing values.
2064
2065 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2066
2067         PR target/41702
2068         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
2069         (casesi64p): Update pattern to reflect above.
2070
2071 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
2072
2073         PR rtl-optimization/41697
2074         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
2075
2076 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2077
2078         PR target/23983
2079         * config/rs6000/predicates.md: Update copyright year.
2080         * config/rs6000/altivec.md: Ditto.
2081
2082         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
2083         (MD_INCLUDES): Add a2.md.
2084
2085         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
2086         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
2087         (builtin_classify): New static vector to classify various builtins
2088         to get the tree attributes correct.
2089         (def_builtin): Set the attributes of builtins based on what the
2090         builtin does (i.e. memory operation, floating point, saturation
2091         need special attributes, others are pure functions).
2092
2093         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
2094         the builtins.
2095         (enum rs6000_builtins): Include rs6000-builtin.def to define the
2096         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
2097         RS6000_BUILTIN_COUNT.
2098         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
2099         MAX_RS6000_BUILTINS.
2100
2101         * config/rs6000/rs6000-builtin.def: New file that combines the
2102         builtin enumeration name and attributes.
2103
2104 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2105
2106         * config/i386/linux.h (ASM_SPEC): Add --32.
2107
2108 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2109
2110         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
2111         and DW_TAG_template_alias.
2112         (dwarf_attr_name): Handle DW_AT_main_subprogram,
2113         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
2114         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
2115         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
2116         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
2117         and DW_AT_GNU_odr_signature.
2118         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
2119         DW_FORM_flag_present and DW_FORM_ref_sig8.
2120         (output_signature): Only print name on the first byte.
2121         (output_die): Likewise for dw_val_class_data8.
2122
2123 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
2124
2125         * doc/invoke.texi: Clarify that most optimizations are not enabled
2126         without -O.
2127
2128 2009-10-15  Richard Guenther  <rguenther@suse.de>
2129
2130         PR lto/41668
2131         * gimple.c (compare_type_names_p): Handle anonymous names
2132         differently based on new mode argument.
2133         (gimple_types_compatible_p): For structs also compare the tags.
2134         (iterative_hash_type_name): Rename to ...
2135         (iterative_hash_name): ... this.  Hash all names.
2136         (iterative_hash_gimple_type): Fix hashing the struct tag of
2137         pointer targets.  Hash field decl names.
2138
2139 2009-10-15  Richard Guenther  <rguenther@suse.de>
2140
2141         PR lto/41669
2142         * gimple.c (gimple_get_alias_set): Avoid recursing on
2143         invalid type topology.
2144
2145 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2146
2147         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
2148
2149 2009-10-15  Richard Guenther  <rguenther@suse.de>
2150
2151         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
2152
2153 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2154
2155         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
2156         add --with-tune{,-32,-64} configured default for -mtune if explicit
2157         -mcpu is used.
2158
2159 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
2160
2161         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
2162
2163 2009-10-14  DJ Delorie  <dj@redhat.com>
2164
2165         * config/h8300/h8300.c (F): New.
2166         (Fpa): New.
2167         (h8300_emit_stack_adjustment): Call them.
2168         (push): Likewise.
2169         (h8300_push_pop): Likewise.
2170         (h8300_expand_prologue): Likewise.
2171         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
2172         (MUST_USE_SJLJ_EXCEPTIONS): Define.
2173         (INCOMING_RETURN_ADDR_RTX): Define.
2174         (INCOMING_FRAME_SP_OFFSET): Define.
2175         (DWARF_CIE_DATA_ALIGNMENT): Define.
2176
2177 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2178
2179         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
2180         fields in builtin structs.
2181         (finalize_record_size): Likewise.
2182
2183 2009-10-14  Richard Guenther  <rguenther@suse.de>
2184
2185         * gimple.c (gtc_ob): New global.
2186         (struct type_pair_d): Replace pointers with type UIDs.
2187         (type_pair_hash): Adjust.
2188         (type_pair_eq): Likewise.
2189         (lookup_type_pair): Likewise.  Allocate from an obstack.
2190         (gimple_force_type_merge): Adjust.
2191         (gimple_types_compatible_p): Likewise.
2192         (free_gimple_type_tables): Free the obstack.
2193
2194 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2195
2196         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
2197         stmts setting DEBUG_EXPR_DECLs.
2198
2199         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
2200         Don't crash if mode1 is VOIDmode.
2201
2202 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
2203
2204         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
2205         * params.h (IRA_LOOP_RESERVED_REGS): New.
2206         * tree-pass.h (pass_subregs_of_mode_init,
2207         pass_subregs_of_mode_finish): Remove.
2208         * passes.c (pass_subregs_of_mode_init,
2209         pass_subregs_of_mode_finish): Remove.
2210         (pass_reginfo_init): Move before loop optimizations.
2211         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
2212         * common.opt (fira-loop-pressure): New.
2213         * toplev.h (flag_ira_loop_pressure): New.
2214         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
2215         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
2216         Make external and void type functions.
2217         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
2218         pass_subregs_of_mode_finish): Remove.
2219         * ira-costs.c (init_costs): Call init_subregs_of_mode.
2220         * regmove.c: Include ira.h.
2221         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
2222         register pressure calculation in loops.
2223         * loop-invariant.c: Include REGS_H and ira.h.
2224         (struct loop_data): New members max_reg_pressure, regs_ref, and
2225         regs_live.
2226         (struct invariant): New member orig_regno.
2227         (curr_loop): New variable.
2228         (find_exits): Initialize regs_ref and regs_live.
2229         (create_new_invariant): Initialize orig_regno.
2230         (get_cover_class_and_nregs): New.
2231         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
2232         array.  Add code for flag_ira_loop_pressure.
2233         (gain_for_invariant): Make new_regs an array.  Add code for
2234         flag_ira_loop_pressure.
2235         (best_gain_for_invariant): Ditto.
2236         (set_move_mark): New parameter gain.  Use it for debugging output.
2237         (find_invariants_to_move): Make regs_needed and new_regs an array.
2238         Add code for flag_ira_loop_pressure.
2239         (move_invariant_reg): Set up orig_regno.
2240         (move_invariants): Set up reg classes for pseudos for
2241         flag_ira_loop_pressure.
2242         (free_loop_data): Clear regs_ref and regs_live.
2243         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
2244         get_regno_cover_class, change_pressure, mark_regno_live,
2245         mark_regno_death, mark_reg_store, mark_reg_clobber,
2246         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
2247         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
2248         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
2249         register pressure calculation in loops if new regs were added.
2250         Call finish_subregs_of_mode.
2251         * opts.c (decode_options): Set up flag_ira_loop_pressure.
2252         * Makefile.in (loop-invariant.o): Add ira.h.
2253         (regmove.o): Ditto.
2254         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
2255         Describe.
2256         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
2257
2258 2009-10-14  Richard Guenther  <rguenther@suse.de>
2259
2260         * lto-symtab.c (lto_symtab_compatible): Fold in ...
2261         (lto_symtab_merge): ... here.  Rewrite both to take the
2262         prevailing and a to-be-merged entry and to queue diagnostics properly.
2263         (lto_symtab_resolve_replaceable_p): New predicate for
2264         symbol resolution.
2265         (lto_symtab_resolve_can_prevail_p): Likewise.
2266         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
2267         handles merging commons by choosing the largest decl.  Fold
2268         in code that gives ODR errors.
2269         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
2270         diagnostics here.
2271         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
2272         case of no prevailing decl here.  Diagnose mismatches
2273         in object types here.  Drop all but the prevailing decls.
2274         (lto_symtab_prevailing_decl): Return the single prevailing decl.
2275         * lto-streamer-in.c (lto_input_tree_ref): Deal with
2276         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
2277
2278 2009-10-14  Richard Guenther  <rguenther@suse.de>
2279
2280         PR lto/41521
2281         * lto-streamer-in.c (input_bb): Replace debug stmts with
2282         nops instead of dropping them.
2283
2284 2009-10-14  Nick Clifton  <nickc@redhat.com>
2285
2286         * gcc/doc/extended.texi: Replace the dash character with @minus{}
2287         in situations where it is being used as a minus symbol.
2288         * gcc/doc/tm.texi: Likewise.
2289         * gcc/doc/md.texi: Likewise.
2290
2291 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2292
2293         PR preprocessor/41543
2294         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
2295         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
2296         * tree.c: Include intl.h.
2297         (expand_location): Handle BUILTINS_LOCATION.
2298         * Makefile.in (tree.o): Depend on intl.h.
2299
2300         PR debug/41695
2301         * dwarf2out.c (dwarf2out_var_location): Always clear
2302         last_postcall_label when changing last_label.
2303
2304 2009-10-14  Pascal Obry  <obry@adacore.com>
2305
2306         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
2307         (process_command): Handle -E as done with -c and -S.  Do not add
2308         the target executable suffix to the output file when -E is used.
2309         (main): Adjust error message accordingly.
2310
2311 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
2312
2313         PR debug/41343
2314         PR debug/41447
2315         PR debug/41264
2316         PR debug/41338
2317         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
2318         decl with rtl.
2319         (tree_code_size): Likewise.
2320
2321 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2322
2323         * builtins.c (fold_builtin_1): Support complex "arc" functions.
2324         * real.h (HAVE_mpc_arc): Define.
2325
2326 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2327
2328         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
2329         (struct builtin_description): Add fndecl field.
2330         (bdesc): Remove const qualifier.  Update initializer.
2331         (sh_media_init_builtins): Remove const qualifier for d.  Record
2332         the result of add_builtin_function to the fndecl field.
2333         (sh_builtin_decl): New.
2334         (sh_media_builtin_decl): New.
2335
2336 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
2337
2338         PR target/38948
2339         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
2340         requests between special registers.
2341
2342 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
2343
2344         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
2345
2346 2009-10-13  Richard Henderson  <rth@redhat.com>
2347
2348         PR tree-optimization/41377
2349         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
2350         (cleanup_empty_eh_merge_phis): New change_region parameter;
2351         pass it on to redirect_eh_edge_1.  Update callers.
2352         (cleanup_empty_eh_unsplit): Don't require an existing EH label
2353         at the destination block.
2354
2355 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
2356
2357         * passes.c (register_pass): Replaced gcc_unreachable by
2358         fatal_error on failure. Mentions plugins in comments & messages.
2359
2360 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
2361
2362         PR target/41693
2363         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
2364         * sched-vis.c (print_value): Use it.
2365         * cselib.c (cselib_hash_rtx): Likewise.
2366         * print-rtl.c (print_rtx): Likewise.
2367         * cfgexpand.c (expand_debug_rtx): Likewise.
2368         * var-tracking.c (vt_expand_loc_callback): Likewise.
2369
2370 2009-10-13  Richard Guenther  <rguenther@suse.de>
2371
2372         PR lto/41565
2373         * opts.c (handle_option): Split out code to handle setting
2374         the options flag var ...
2375         (set_option): ... here.
2376         * opts.h (set_option): Declare.
2377         * lto-opts.c (register_user_option_p): Include -fexceptions
2378         and all position independent code variants.
2379         (handle_common_option): Remove.
2380         (lto_reissue_options): Use set_option.
2381
2382 2009-10-13  Martin Jambor  <mjambor@suse.cz>
2383
2384         PR tree-optimization/41661
2385         * ipa-prop.c (compute_complex_pass_through): Allow only operations
2386         that are tcc_comparisons or do not change the type in any
2387         un-usleless way.
2388         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
2389         folding tcc_comparison operations.
2390
2391 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2392
2393         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
2394         properly.
2395
2396 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2397
2398         PR debug/41343
2399         PR debug/41447
2400         PR debug/41264
2401         PR debug/41338
2402         * tree.def (DEBUG_EXPR_DECL): New.
2403         * rtl.def (DEBUG_EXPR): New.
2404         * gengtype.c (adjust_field_rtx_def): Handle it.
2405         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
2406         (insert_debug_temp_for_var_def): ... this.  Drop support for
2407         moving.  Take iterator for def stmt; insert debug stmt before it.
2408         Scan early for use count and kind in debug stmts.
2409         (propagate_defs_into_debug_stmts): Rename to...
2410         (insert_debug_temps_for_defs): ... this.  Likewise.
2411         * tree.h (DEBUG_TEMP_UID): New.
2412         * tree.c (next_debug_decl_uid): New.
2413         (make_node_stat): Count debug decls separately.
2414         (copy_node_stat): Likewise.
2415         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
2416         * var-tracking.c (dv_is_decl_p): Recognize it.
2417         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
2418         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
2419         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
2420         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
2421         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
2422         (cselib_hash_rtx): Likewise.
2423         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
2424         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
2425         debug bind stmts.
2426         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
2427         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
2428         * rtl.c (copy_rtx): Likewise.
2429         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
2430         * print-rtl.c (print_rtx): Likewise.
2431         * sched-vis.c (print_value): Likewise.
2432         (print_insn): Handle DEBUG_EXPR_DECL.
2433         * tree-dump.c (dequeue_and_dump): Likewise.
2434         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2435         * gimple-iterator (gsi_replace): Check for same lhs.
2436         (gsi_remove): Insert debug temps.
2437         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2438         (move_computations_stmt): Drop explicit propagation into debug stmts.
2439         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
2440         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2441         * tree-ssa-sink.c (statement_sink_location): Likewise.
2442         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2443         * tree-ssanames.c (release_ssa_name): Adjust for rename.
2444         * tree-flow.h: Likewise.
2445         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2446         debug temps without values.
2447         (eliminate_unnecessary_stmts): Don't discard just-inserted
2448         debug stmts.
2449
2450 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
2451
2452         PR target/26515
2453         * config/cris/cris.md (andu): Check that operand 1 is one of the
2454         general registers.  Fix typo in head comment.
2455
2456 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
2457
2458         * config/i386/i386.md (vswapmov): New.
2459         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2460         (ix86_function_ms_hook_prologue): New.
2461         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2462         * configure.ac: Test for swap suffix support in as.
2463         * configure: Rebuild.
2464
2465 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
2466
2467         PR target/41680
2468         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2469         paradoxical subregs to prevent partial register stalls if the inner
2470         mode is integer mode.
2471
2472 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2473
2474         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2475
2476 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
2477
2478         PR c++/41570
2479         * gcc/dwarf2out.c (template_parameter_pack_die,
2480         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2481
2482 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2483
2484         PR debug/41616
2485         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2486         on updates too.
2487         (maybe_register_def): Likewise.  Take stmt iterator.
2488         (rewrite_update_stmt): Take stmt iterator and pass it on.
2489         (rewrite_update_enter_block): Pass stmt iterator.
2490
2491 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2492
2493         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2494         (spu_builtin_decl): New function.
2495
2496 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2497
2498         * config/i386/i386.md (SWIM): New mode iterator.
2499         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2500         using SWIM mode iterator.
2501         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2502         patterns using SWI48 mode iterator.
2503         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
2504         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2505         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2506         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2507         patterns using SWI248 mode iterator.
2508         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2509         gen_x86_movdicc_0_m1_rex64 for renamed function
2510
2511 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
2512             Eric Botcazou  <ebotcazou@adacore.com>
2513
2514         PR target/33743
2515         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2516         * config/sparc/sol2-unwind.h: New file.
2517
2518 2009-10-11  Olivier Hainque  <hainque@adacore.com>
2519             Eric Botcazou  <ebotcazou@adacore.com>
2520
2521         PR target/33743
2522         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2523         * config/i386/sol2-unwind.h: New file.
2524
2525 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2526
2527         PR target/41665
2528         * config/i386/i386.md (addsi_1_zext): Get the proper second
2529         operand for lea.
2530
2531 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
2532
2533         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2534         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
2535         replacement value.
2536
2537 2009-10-11  Richard Guenther  <rguenther@suse.de>
2538
2539         * gimple.c (iterative_hash_type_name): Do not handle special
2540         anonymous names.
2541
2542 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
2543
2544         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2545         (*setcc_si_1_and): Ditto.
2546         (*setcc_si_1_movzbl): Ditto.
2547         (*setcc_<mode>_2): Ditto.
2548         (*setcc_qi): Rename from *setcc_1.
2549         (*setcc_qi_slp): Rename from *setcc_2.
2550
2551         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2552         (*zero_extendqisi2_movzbw_and splitter): Ditto.
2553
2554         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2555         "if" condition, there is already assert with reload_completed present.
2556
2557 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
2558
2559         * plugin.c (try_init_one_plugin): Improve constness of variable err.
2560
2561 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
2562
2563         * doc/install.texi (Final install): Refer to
2564         http://gcc.gnu.org/bugs/ for bug reporting.
2565
2566 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
2567
2568         * configure.ac: Add test for dci instruction.
2569         * configure: Regenerate.
2570         * config.in: Likewise.
2571         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2572         * doc/invoke.texi: Add cpu_type 476 and 476fp.
2573         (-mmulhw): Add 476 to description.
2574         (-mdlmzb): Likewise.
2575         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2576         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2577         (processor_target_table): Add 476 and 476fp entries.
2578         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2579         (rs6000_issue_rate): Add CPU_PPC476.
2580         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2581         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2582         (processor_type): Add PROCESSOR_PPC476.
2583         (EXTRA_SPECS): Add asm_cpu_476 string.
2584         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2585         (define_attr "cpu"): Add ppc476.
2586         Include 476.md.
2587         Update comments for 476.
2588         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2589         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2590         Update copyright year.
2591         * config/rs6000/476.md: New file.
2592         * config/rs6000/40x.md: Add description for "isel" attribute.
2593         Update copyright year.
2594         * config/rs6000/440.md: Likewise.
2595         * config/rs6000/603.md: Likewise.
2596         * config/rs6000/6xx.md: Likewise.
2597         * config/rs6000/7450.md: Likewise.
2598         * config/rs6000/7xx.md: Likewise.
2599         * config/rs6000/8540.md: Likewise.
2600         * config/rs6000/cell.md: Likewise.
2601         * config/rs6000/e300c2c3.md: Likewise.
2602         * config/rs6000/e500mc.md: Likewise.
2603         * config/rs6000/mpc.md: Likewise.
2604         * config/rs6000/power4.md: Likewise.
2605         * config/rs6000/power5.md: Likewise.
2606         * config/rs6000/power6.md: Likewise.
2607         * config/rs6000/power7.md: Likewise.
2608         * config/rs6000/rios1.md: Likewise.
2609         * config/rs6000/rios2.md: Likewise.
2610         * config/rs6000/rs64.md: Likewise.
2611
2612 2009-10-10  Richard Guenther  <rguenther@suse.de>
2613
2614         PR tree-optimization/41654
2615         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2616         a cond expr before calling gimple_cond_set_condition_from_tree.
2617         (ifcombine_iforif): Likewise.
2618
2619 2009-10-09  Ian Lance Taylor  <iant@google.com>
2620
2621         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2622         * configure: Rebuild.
2623
2624 2009-10-09  Neil Vachharajani <nvachhar@google.com>
2625
2626         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2627         deprecated.
2628
2629 2009-10-09  Richard Guenther  <rguenther@suse.de>
2630
2631         PR lto/41638
2632         * target-def.h (TARGET_BUILTIN_DECL): Define.
2633         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2634         * target.h (struct gcc_target): Add builtin_decl target hook.
2635         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2636         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2637         target builtins.
2638         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2639         not gcc_unreachable.
2640         (lto_output_builtin_tree): Sorry if the target does not support
2641         streaming target builtins.
2642         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2643         (rs6000_builtin_decl): New function.
2644         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2645         (ix86_builtin_decl): New function.
2646
2647 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
2648
2649         PR preprocessor/41445
2650         * c-ppoutput.c (do_line_change): New function.
2651         (cb_line_change): Use it.
2652         (scan_translation_unit): Call do_line_change if
2653         avoid_paste or PREV_WHITE and token location is on a different line
2654         than print.src_line.
2655
2656         PR debug/40521
2657         * dwarf2out.c (dwarf2out_init): Test whether
2658         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2659         it is defined.
2660
2661         PR rtl-optimization/41646
2662         * calls.c (expand_call): For BLKmode types returned in registers
2663         avoid likely spilled hard regs in copy_blkmode_from_reg generated
2664         insns.
2665
2666 2009-10-09  Richard Guenther  <rguenther@suse.de>
2667
2668         PR tree-optimization/41634
2669         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2670         we remove the correct elements.
2671         (optimize_stmt): Make sure to update stmt operands before
2672         optimizing redundancies.
2673
2674 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2675
2676         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2677
2678 2009-10-09  Richard Guenther  <rguenther@suse.de>
2679
2680         PR driver/41637
2681         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2682         globals.
2683         (lto_wrapper_exit): New function.
2684         (fatal): Use it.
2685         (fatal_perror): Likewise.
2686         (fork_execute): Use global args_name, do not free it.
2687         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2688         * lto-streamer.h: Remove duplicate prototypes.
2689
2690 2009-10-09  Richard Guenther  <rguenther@suse.de>
2691
2692         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2693         before calling stmt_can_throw_external.
2694
2695 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2696
2697         PR tree-optimization/40071
2698         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2699         pointer if the original data reference doesn't conflict with the
2700         created vector data reference.  Fix long line.
2701
2702 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
2703
2704         * config/i386/i386.md (any_div): New code iterator.
2705         (u): Handle div and udiv.
2706         (sgnprefix): Ditto.
2707         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
2708         code iterator.
2709         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2710         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2711         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2712         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2713
2714 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
2715
2716         * gcc.c (main): Remove trailing "." from diagnostics.
2717
2718 2009-10-08  Cary Coutant  <ccoutant@google.com>
2719
2720         Add support for debugging with ICF (Identical Code Folding).
2721         * calls.c (debug.h): New #include.
2722         (emit_call_1): Call virtual_call_token debug hook.
2723         * common.opt (-fenable-icf-debug): New option.
2724         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2725         locations in the source).
2726         (poc_label_num): New variable.
2727         (dcall_entry, vcall_entry): New typedefs.
2728         (dcall_table, vcall_table): New variables.
2729         (struct vcall_insn): New type.
2730         (vcall_insn_table): New variable.
2731         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2732         (size_of_dcall_table): New function.
2733         (output_dcall_table): New function.
2734         (size_of_vcall_table): New function.
2735         (output_vcall_table): New function.
2736         (dwarf2out_direct_call): New function.
2737         (vcall_insn_table_hash): New function.
2738         (vcall_insn_table_eq): New function.
2739         (dwarf2out_virtual_call_token): New function.
2740         (dwarf2out_virtual_call): New function.
2741         (dwarf2out_init): Allocate new tables and sections.
2742         (prune_unused_types): Mark DIEs referenced from direct call table.
2743         (dwarf2out_finish): Output direct and virtual call tables.
2744         * final.c (final_scan_insn): Call direct_call and virtual_call
2745         debug hooks.
2746         * debug.h (struct gcc_debug_hooks): Add direct_call,
2747         virtual_call_token, virtual_call hooks.
2748         (debug_nothing_uid): New function.
2749         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2750         (debug_nothing_uid): New function.
2751         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2752         (xcoff_debug_hooks): Likewise.
2753         * sdbout.c (sdb_debug_hooks): Likewise.
2754         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2755         * doc/invoke.texi (-fenable-icf-debug): New option.
2756
2757 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
2758
2759         PR debug/41353
2760         * regmove.c (regmove_backward_pass): Replace src with dst in the
2761         debug insn, and check for dst before rather than after.
2762
2763 2009-10-08  Janis Johnson <janis187@us.ibm.com>
2764
2765         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2766         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2767
2768 2009-10-08  Jan Hubicka  <jh@suse.cz>
2769
2770         PR middle-end/41626
2771         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2772         do not mark cgraph nodes as needed.
2773         (record_references_in_initializer): Add new only_vars parameter.
2774         * cgraph.h (record_references_in_initializer): New parameter.
2775         * varasm.c (assemble_variable): Update call.
2776         * varpool.c (varpool_analyze_pending_decls): Always look for
2777         referenced vars.
2778
2779 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
2780
2781         * config/avr/avr.c (last_insn_address) Remove variable.
2782         (expand_prologue): Don't initialise last_insn_address variable.
2783         (final_prescan_insn): Don't output insn size.
2784         * config/avr/avr.opt (msize): Remove switch.
2785         * doc/invoke.texi (AVR Options): Remove documentation of -msize
2786         switch.
2787
2788 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
2789
2790         * combine.c (label_tick_ebb_start): Fix comment.
2791         (combine_instructions): Set label_tick and label_tick_ebb_start before
2792         calling setup_incoming_promotions.  Start them from 1.  Increment
2793         label_tick instead of deriving it from the BB index.  Rather than
2794         comparing ticks use the block from the previous iteration to decide
2795         whether to start a new EBB.  Remove empty lines before function.
2796
2797 2009-10-08  Michael Matz  <matz@suse.de>
2798
2799         PR middle-end/41573
2800         * builtins.c (fold_builtin_isascii): Use fold_build2.
2801         (fold_builtin_isdigit): Ditto.
2802         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2803         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2804         remove_useless_stmts_cond, remove_useless_stmts_tf,
2805         remove_useless_stmts_tc, remove_useless_stmts_bind,
2806         remove_useless_stmts_goto, remove_useless_stmts_label,
2807         remove_useless_stmts_1, remove_useless_stmts,
2808         pass_remove_useless_stmts): Remove.
2809         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2810         * passes.c (init_optimization_passes): Don't add
2811         pass_remove_useless_stmts.
2812         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2813         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2814         static constants.
2815         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2816         for static constants.
2817         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2818         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2819
2820 2009-10-08  Richard Guenther  <rguenther@suse.de>
2821
2822         * gimple.c (free_gimple_type_tables): New function.
2823         * gimple.h (free_gimple_type_tables): Declare.
2824
2825 2009-10-07  Mark Heffernan  <meheff@google.com>
2826
2827         * ipa-prop.c (ipa_print_node_params) Only print
2828         names of named arguments.
2829
2830 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
2831
2832         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2833         being statically linked.
2834
2835 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2836
2837         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2838
2839 2009-10-08  Jan Hubicka  <jh@suse.cz>
2840
2841         PR bootstrap/41620
2842         * ipa.c (cgraph_externally_visible_p,
2843         function_and_variable_visibility,
2844         whole_program_function_and_variable_visibility): Skip non-finalized
2845         nodes.
2846
2847 2009-10-08  Nick Clifton  <nickc@redhat.com>
2848
2849         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2850         CONST_DOUBLEs.
2851
2852 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
2853
2854         PR bootstrap/37739
2855         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2856
2857 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
2858
2859         PR c/41182
2860         * c-common.c (c_fully_fold_internal): Strip nops from the result
2861         of recursive calls to c_fully_fold_internal.
2862         (c_wrap_maybe_const): New.
2863         (c_save_expr): Use c_wrap_maybe_const.
2864         * c-common.h (c_wrap_maybe_const): Declare.
2865         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2866         build_binary_op): Use c_wrap_maybe_const.
2867
2868 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2869
2870         * real.c: Fix comment to reflect actual exponent size.
2871
2872 2009-10-08  Ben Elliston  <bje@au.ibm.com>
2873
2874         * config/rs6000/a2.md: Add FSF comment header.
2875
2876 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
2877
2878         * config/i386/i386.md (any_extend): New code iterator.
2879         (u, s): New code attributes.
2880         (sgnprefix): Ditto.
2881         (DWIH): Rewrite as code iterator for SI and DI modes.
2882         (DWI): Rewrite as mode attribute.
2883         (dwi): New mode attribute.
2884         (di): Depend on SI mode and DI mode.
2885         (doubleint_general_operand): Remove mode attribute.
2886
2887         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2888         DWIH mode iterator.
2889
2890         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2891         (*sub<mode>3_doubleword): Ditto.
2892
2893         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2894         using SWIM248 mode iterator.
2895         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2896         using SWI48 mode iterator.
2897         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2898         patterns using DWIH mode iterator and any_extend code iterator.
2899         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2900         using any_extend code iterator.
2901         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2902         patterns using DWIH mode iterator and any_extend code iterator.
2903         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2904         using any_extend code iterator.
2905         (<s>mul<mode>3_highpart): Macroize expander from
2906         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2907         and any_extend code iterator.
2908         (*<s>muldi3_highpart_1): Macroize insn from
2909         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2910         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2911         patterns using any_extend code iterator.
2912         (*<s>mulsi3_highpart_zext): Macroize insn from
2913         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2914
2915 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
2916
2917         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2918         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2919         refering to a DIE with DW_AT_const_value.
2920
2921 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
2922
2923         PR middle-end/22072
2924         * ira-lives.c (check_and_make_def_conflict): Process all operands.
2925
2926 2009-10-06  Jan Hubicka  <jh@suse.cz>
2927
2928         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2929         correctly.
2930
2931 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2932
2933         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2934         *lea_2_rex64): Move before *add<mode>_1 pattern.
2935
2936 2009-10-07  Jan Hubicka  <jh@suse.cz>
2937
2938         * collect2.c (main): Add -fno-whole-program.
2939         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2940
2941 2009-10-07  Jan Hubicka  <jh@suse.cz>
2942
2943         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2944         has no address taken.
2945         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2946         never needed.
2947         (cgraph_clone_node): Clear externally_visible flag for clones.
2948         * cgraph.h (cgraph_only_called_directly_p,
2949         cgraph_can_remove_if_no_direct_calls_p): New predicates.
2950         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2951         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2952         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2953         ipcp_insert_stage): Likwise.
2954         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2955         externally_visible flag.
2956         (verify_cgraph_node): Verify that inline clones look right.
2957         (process_function_and_variable_attributes): Do not set
2958         externally_visible flags.
2959         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2960         been already run.
2961         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2962         boundaries.
2963         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2964         clear externally_visible when turning into inline clones
2965         (cgraph_mark_inline_edge): Use new predicates.
2966         (cgraph_estimate_growth): Likewise.
2967         (cgraph_decide_inlining): Likewise.
2968         * ipa.c (cgraph_postorder): Likewise.
2969         (cgraph_remove_unreachable_nodes): Likewise; sanity check
2970         that inline clones are not needed.
2971         (cgraph_externally_visible_p): New predicate.
2972         (function_and_variable_visibility): Add whole_program parameter;
2973         always set externally_visible flag; handle COMDAT function
2974         privatization.
2975         (local_function_and_variable_visibility): New function.
2976         (gate_whole_program_function_and_variable_visibility): New function.
2977         (whole_program_function_and_variable_visibility): New function.
2978         (pass_ipa_whole_program_visibility): New function.
2979         * passes.c  (init_optimization_passes): Add whole program visibility
2980         pass.
2981         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2982         not care about needed/reachable flags.
2983         * varpool.c: Include flags.h
2984         (decide_is_variable_needed): When doing LTO assume whole-program mode.
2985         (varpool_finalize_decl): When we are in LTO read-back, all variables
2986         are analyzed.
2987         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2988
2989 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2990
2991         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2992         add MASK_HARD_DFP.
2993
2994 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2995
2996         * config.gcc: Don't include the makefile fragments intended for
2997         libgcc.
2998         * config/s390/fixdfdi.h: File removed.
2999         * config/s390/libgcc-glibc.ver: File removed.
3000         * config/s390/s390.h: Remove the fixdfdi.h hack.
3001         * config/s390/t-crtstuff: File moved to libgcc dir.
3002         * config/s390/t-linux: Likewise.
3003         * config/s390/t-tpf: libgcc specific parts removed.
3004         * config/s390/t-linux64: Likewise.
3005
3006 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
3007
3008         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
3009         (lto-compress.o): Likewise.
3010
3011 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
3012
3013         PR target/41512
3014         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
3015         dllexport to class members here.
3016         (i386_pe_determine_dllimport_p): Only check static class data for
3017         definition.
3018         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
3019         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
3020         functions for vague linkage.
3021         (i386_pe_type_dllexport_p): Fix formatting.
3022         (maybe_add_dllexport) New function.
3023         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
3024         to class members.
3025
3026 2009-10-07  Ben Elliston  <bje@au.ibm.com>
3027
3028         * config/rs6000/a2.md: Remove duplicated lines.
3029
3030 2009-10-07  Ben Elliston  <bje@au.ibm.com>
3031
3032         * config.gcc (powerpc*-*-*): Handle a2.
3033         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
3034         * config/rs6000/a2.md: New file.
3035         * config/rs6000/rs6000.opt (mno-update): New.
3036         (mupdate): Return to using a mask, not a var.
3037         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
3038         (enum processor_type): Add PROCESSOR_PPCA2.
3039         * config/rs6000/rs6000.c (ppca2_cost): New costs.
3040         (rs6000_override_options): Add "a2" to processor_target_table.
3041         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
3042         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
3043
3044 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3045
3046         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3047         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
3048         reference to nonexistent gen_truncxfxf2 function.
3049
3050 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3051
3052         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
3053         (DWIH, g, di, doubleint_general_operand): New mode attributes.
3054         (general_operand): Handle TI mode.
3055         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
3056         using SDWIM mode iterator.
3057         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
3058         pattern from *add{di,ti}3_1 patterns and corresponding splitters
3059         using DWI mode iterator.
3060         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
3061         patterns using SWI mode iterator.
3062         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
3063         using SWI48 mode iterator.
3064         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
3065         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
3066         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
3067         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
3068         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
3069         using SDWIM mode iterator.
3070         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
3071         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
3072         using DWI mode iterator.
3073         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
3074         patterns using SWI mode iterator.
3075         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
3076         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
3077         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
3078         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
3079         patterns using plusminus code iterator.
3080         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
3081         sub<mode>3 patterns using plusminus code iterator.
3082         * config/i386/i386.c (override_options): Update the call to
3083         gen_subdi_carry_rex64 for renamed function.
3084         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
3085         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
3086         calls to instruction expanders.
3087
3088 2009-10-06  Martin Jambor  <mjambor@suse.cz>
3089
3090         PR bootstrap/41395
3091         * opts.c (decode_options): Run IPA-SRA at -O2.
3092
3093 2009-10-06  Richard Guenther  <rguenther@suse.de>
3094
3095         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
3096
3097 2009-10-06  Tobias Burnus  <burnus@net-b.de>
3098
3099         PR lto/41591
3100         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
3101         -flto and -fwhole-program flags can be combined.
3102
3103 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
3104
3105         PR driver/41217
3106         * gcc.c (process_command): Check that -o argument was specified.
3107
3108 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
3109
3110         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
3111
3112 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3113
3114         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
3115         * doc/invoke.texi (Warning Options): Annotate allowed languages
3116         for -Wunsuffixed-float-constants.
3117
3118 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
3119
3120         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
3121         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
3122         same name and isn't the main variant.
3123
3124         PR debug/41558
3125         * dwarf2out.c (loc_by_reference): Removed.
3126         (dw_loc_list_1): New function.
3127         (dw_loc_list): Remove toplev argument, add want_address argument.
3128         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
3129         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
3130         want_address == 2 to dw_loc_list.  For successful dw_loc_list
3131         set have_address to 1 only if want_address is not 0.
3132
3133 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
3134
3135         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
3136         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
3137         a code block followed by two pointers.
3138         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
3139         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
3140         (MIPS_MOVE): Likewise.
3141         (MIPS_LUI): Likewise.
3142         (MIPS_JR): Likewise.
3143         (MIPS_BAL): Likewise.
3144         (MIPS_NOP): Likewise.
3145         (mips_asm_trampoline_template): Delete.
3146         (mips_trampoline_code_size): New function.
3147         (mips_trampoline_init): Add shorter sequences for all cases
3148         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
3149         Calculate the opcodes directly, rather than copying from a template.
3150         Only flush the code part of the trampoline.
3151         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
3152
3153 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
3154
3155         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
3156         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
3157         (INCOMING_RETURN_ADDR_RTX): Likewise.
3158         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
3159         with AT_REGNUM.
3160         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
3161         with RETURN_ADDR_REGNUM.
3162         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
3163         * config/mips/mips.c (mips16_build_call_stub): Replace
3164         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
3165         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
3166         (mips_print_operand_punctuation): Likewise.
3167         (mips_frame_set): Likewise.
3168         (mips16e_output_save_restore): Likewise.
3169         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3170         (mips_save_reg_p): Likewise.
3171         (mips_return_addr): Likewise.
3172         (mips_set_return_address): Likewise.
3173         (mips_direct_save_slot_move_p): Likewise.
3174         (mips_output_function_prologue): Likewise.
3175         (mips_restore_reg): Likewise.
3176         (mips_expand_epilogue): Likewise.
3177         (mips_epilogue_uses): Likewise.
3178         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
3179         (*mov<mode>_ra): Use it instead of a hard-coded 31.
3180         (clear_hazard_<mode>): Likewise.
3181         (call_internal): Likewise.
3182         (call_internal_direct): Likewise.
3183         (call_direct_split): Likewise.
3184         (call_value_internal): Likewise.
3185         (call_value_split): Likewise.
3186         (call_value_internal_direct): Likewise.
3187         (call_value_direct_split): Likewise.
3188         (call_value_multiple_internal): Likewise.
3189         (call_value_multiple_split): Likewise.
3190
3191 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
3192             Jakub Jelinek  <jakub@redhat.com>
3193
3194         PR rtl-optimization/41511
3195         * combine.c (record_value_for_reg): Pass explicit values as argument
3196         to get_last_value_validate.
3197         (get_last_value_validate): Document INSN parameter.
3198         For non-readonly MEMs, assume they might have been modified if INSN
3199         was in another basic block.
3200         (get_last_value): Minor reformatting.
3201
3202 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3203
3204         PR tree-opt/40992
3205         * final.c (asm_str_count): Split out from asm_insn_count.
3206         * rtl.h (asm_str_count): New prototype.
3207         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
3208         asm_str_count.
3209
3210 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
3211
3212         * doc/plugins.texi: Change plugin_pass to register_pass_info.
3213
3214 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
3215             Rafael Espindola  <espindola@google.com>
3216
3217         * gengtype.c (write_types): Moved call to write_func_for_structure
3218         into seperate loops.
3219
3220 2009-10-05  Richard Guenther  <rguenther@suse.de>
3221
3222         PR lto/41281
3223         * lto-cgraph.c (output_cgraph): Output toplevel asms.
3224         (input_cgraph_1): Input toplevel asms.
3225
3226 2009-10-05  Richard Guenther  <rguenther@suse.de>
3227
3228         PR lto/40902
3229         * lto-symtab.c (lto_compatible_attributes_p): Remove.
3230         (external_aggregate_decl_p): Likewise.
3231         (lto_symtab_compatible): Re-structure.  Remove dead code.
3232         For variables ignore toplevel qualifiers when comparing types.
3233         Issue warnings, not errors for mismatched user-alignment.
3234
3235 2009-10-05  Richard Guenther  <rguenther@suse.de>
3236
3237         PR lto/41552
3238         PR lto/41487
3239         * lto-symtab.c (struct lto_symtab_base_def): Remove.
3240         (struct lto_symtab_identifier_def): Likewise.
3241         (struct lto_symtab_decl_def): Likewise.
3242         (struct lto_symtab_entry_def): New.
3243         (lto_symtab_identifier_t): Rename to ...
3244         (lto_symtab_entry_t): ... this.
3245         (lto_symtab_decls): Remove.
3246         (lto_symtab_base_hash): Rename to ...
3247         (lto_symtab_entry_hash): ... this.
3248         (lto_symtab_base_eq): Rename to ...
3249         (lto_symtab_entry_eq): ... this.
3250         (lto_symtab_base_marked_p): Rename to ...
3251         (lto_symtab_entry_marked_p): ... this.
3252         (lto_symtab_identifier_marked_p): Remove.
3253         (lto_symtab_decl_marked_p): Likewise.
3254         (lto_symtab_maybe_init_hash_tables): Rename to ...
3255         (lto_symtab_maybe_init_hash_table): ... this.
3256         (lto_symtab_set_resolution_and_file_data): Remove.
3257         (lto_symtab_register_decl): New function.
3258         (lto_symtab_get_identifier): Remove.
3259         (lto_symtab_get): New function.
3260         (lto_symtab_get_resolution): Adjust.
3261         (lto_symtab_get_identifier_decl): Remove.
3262         (lto_symtab_set_identifier_decl): Likewise.
3263         (lto_symtab_merge_decl): Rename to ...
3264         (lto_symtab_merge): ... this.  Rewrite.
3265         (lto_symtab_merge_var): Remove.
3266         (lto_symtab_merge_fn): Likewise.
3267         (lto_symtab_prevailing_decl): Adjust.
3268         (lto_cgraph_replace_node): New function.
3269         (lto_symtab_merge_decls_2): Likewise.
3270         (lto_symtab_merge_decls_1): Likewise.
3271         (lto_symtab_fixup_var_decls): Likewise.
3272         (lto_symtab_resolve_symbols): Likewise.
3273         (lto_symtab_merge_decls): Likewise.
3274         (lto_symtab_prevailing_decl): Adjust.
3275         (lto_symtab_get_symtab_def): Remove.
3276         (lto_symtab_get_file_data): Likewise.
3277         (lto_symtab_clear_resolution): Adjust.
3278         (lto_symtab_clear_resolution): Likewise.
3279         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
3280         (input_cgraph_1): Likewise.
3281         * lto-streamer-in.c (get_resolution): Do not provide fake
3282         symbol resolutions here.
3283         (deferred_global_decls): Remove.
3284         (lto_register_deferred_decls_in_symtab): Likewise.
3285         (lto_register_var_decl_in_symtab): Change signature, register
3286         variable via lto_symtab_register_decl.
3287         (lto_register_function_decl_in_symtab): Likewise.
3288         (lto_read_tree): Adjust.
3289         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
3290         (lto_symtab_merge_var): Likewise.
3291         (lto_symtab_merge_fn): Likewise.
3292         (lto_symtab_register_decl): Declare.
3293         (lto_symtab_merge_decls): Likewise.
3294
3295 2009-10-05  Richard Guenther  <rguenther@suse.de>
3296
3297         PR tree-optimization/23821
3298         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
3299         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
3300         simple IV increments.
3301
3302 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3303
3304         * config/arm/arm.c (arm_override_options): Really initialize
3305         flag_dwarf2_cfi_asm to 0.
3306
3307 2009-10-05  Doug Kwan  <dougkwan@google.com>
3308
3309         PR rtl-optimization/41574
3310         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
3311         floating point and we are not doing unsafe math optimizations.
3312
3313 2009-10-03  Simon Baldwin  <simonb@google.com>
3314             Cary Coutant  <ccoutant@google.com>
3315             Rafael Espindola  <espindola@google.com>
3316             Richard Guenther  <rguenther@suse.de>
3317             Jan Hubicka  <jh@suse.cz>
3318             Doug Kwan <dougkwan@google.com>
3319             H.J. Lu  <hongjiu.lu@intel.com>
3320             Bill Maddox  <maddox@google.com>
3321             Ryan Mansfield  <rmansfield@qnx.com>
3322             Diego Novillo  <dnovillo@google.com>
3323             Ollie Wild  <aaw@google.com>
3324             Kenneth Zadeck <zadeck@naturalbridge.com>
3325
3326         * lto-cgraph.c: New file.
3327         * lto-compress.c: New file.
3328         * lto-compress.h: New file.
3329         * lto-opts.c: New file.
3330         * lto-section-in.c: New file.
3331         * lto-section-out.c: New file.
3332         * lto-streamer-in.c: New file.
3333         * lto-streamer-out.c: New file.
3334         * lto-streamer.c: New file.
3335         * lto-streamer.h: New file.
3336         * lto-symtab.c: New file.
3337         * lto-wpa-fixup.c: New file.
3338         * lto-wrapper.c: New file.
3339
3340 2009-10-03  Simon Baldwin  <baldwin@google.com>
3341             Ben Elliston  <bje@au.ibm.com>
3342             Rafael Espindola  <espindola@google.com>
3343             Nathan Froyd  <froydnj@codesourcery.com>
3344             Jan Hubicka  <jh@suse.cz>
3345             Doug Kwan  <dougkwan@google.com>
3346             Diego Novillo  <dnovillo@google.com>
3347             Kenneth Zadeck  <zadeck@naturalbridge.com>
3348
3349         * Makefile.in (enable_lto): New.
3350         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
3351         (LINKER_PLUGIN_API_H): Define.
3352         (LTO_SYMTAB_H): Define.
3353         (LTO_STREAMER_H): Define.
3354         (TREE_VECTORIZER_H): Define.
3355         (INCLUDES): Add LIBELFINC.
3356         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
3357         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
3358         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
3359         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
3360         (native): Add lto-wrapper$(exeext)
3361         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
3362         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
3363         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
3364         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
3365         (varasm.o): Add dependency on tree-iterator.h.
3366         (cgraph.o): Add dependency on cif-code.def.
3367         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
3368         (ipa-pure-const.o): Likewise.
3369         (GTFILES): Add lto-symtab.c.
3370         (install-lto-wrapper): New.
3371         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
3372         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
3373         * config.in: Regenerate.
3374
3375 2009-10-03  Rafael Espindola  <espindola@google.com>
3376             Diego Novillo  <dnovillo@google.com>
3377
3378         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
3379         ipa_write_summaries.
3380         Call execute_ipa_summary_passes for all_regular_ipa_passes and
3381         all_lto_gen_passes.
3382         (cgraph_optimize): Make extern.
3383
3384 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
3385             Kenneth Zadeck <zadeck@naturalbridge.com>
3386
3387         * toplev.c (in_lto_p): Declare.
3388         * collect2.c (scan_prog_file): Read all the output when reading
3389         information for LTO.
3390         (enum lto_mode_d): Declare.
3391
3392 2009-10-03  Richard Guenther  <rguenther@suse.de>
3393             Diego Novillo  <dnovillo@google.com>
3394
3395         * gimple.c: Include target.h and alias.h.
3396         (gimple_types): Declare.
3397         (type_hash_cache): Declare.
3398         (gimple_alloc_stat): Make extern.
3399         (gimple_build_eh_must_not_throw): Call
3400         gimple_eh_must_not_throw_set_fndecl.
3401         (struct type_pair_d): Declare.
3402         (type_pair_t): Declare.
3403         (type_pair_hash): New.
3404         (type_pair_eq): New.
3405         (lookup_type_pair): New.
3406         (gimple_force_type_merge): New.
3407         (compare_type_names_p): New.
3408         (compare_field_offset): New.
3409         (gimple_types_compatible_p): New.
3410         (struct sccs): Declare.
3411         (next_dfs_num): Declare.
3412         (iterative_hash_gimple_type): New.
3413         (visit): New.
3414         (iterative_hash_type_name): New.
3415         (iterative_hash_gimple_type): New.
3416         (gimple_type_hash): New.
3417         (gimple_type_eq): New.
3418         (gimple_register_type): New.
3419         (print_gimple_types_stats): New.
3420         (gimple_signed_or_unsigned_type): New.
3421         (gimple_unsigned_type): New.
3422         (gimple_signed_type): New.
3423         (gimple_get_alias_set): New.
3424         (gimple_decl_printable_name): Do not use DMGL_TYPES.
3425         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
3426         (gimple_force_type_merge): Declare.
3427         (gimple_types_compatible_p): Declare.
3428         (gimple_register_type): Declare.
3429         (print_gimple_types_stats): Declare.
3430         (gimple_unsigned_type): Declare.
3431         (gimple_signed_type): Declare.
3432         (gimple_get_alias_set): Declare.
3433         (gimple_eh_must_not_throw_set_fndecl): New.
3434
3435 2009-10-03  Jan Hubicka  <jh@suse.cz>
3436             Kenneth Zadeck <zadeck@naturalbridge.com>
3437
3438         * ipa-pure-const.c: Include lto-streamer.h.
3439         (register_hooks): Factor out of ...
3440         (generate_summary): ... here.
3441         (pure_const_write_summary): New.
3442         (pure_const_read_summary): New.
3443         (pass_ipa_pure_const): Add pure_const_write_summary and
3444         pure_const_read_summary.
3445         * ipa-reference.c: Include lto-streamer.h.
3446         (add_new_function): New.
3447         (remove_node_data): New.
3448         (duplicate_node_data): New.
3449         (ipa_init): Guard against multiple calls.
3450         Move hook setup from analyze_function.
3451         (write_node_summary_p): New.
3452         (ipa_reference_write_summary): New.
3453         (ipa_reference_read_summary): New.
3454         (pass_ipa_reference): Add ipa_reference_write_summary and
3455         ipa_reference_read_summary.
3456         * cgraph.h (cgraph_local_info): Add field lto_file_data.
3457         (struct cgraph_edge): Add fields lto_stmt_uid and
3458         call_stmt_cannot_inline_p.
3459         (cgraph_optimize): Declare.
3460         (cgraph_decide_is_function_needed): Declare.
3461         (reset_inline_failed): Declare.
3462         (enum LTO_cgraph_tags): Declare.
3463         (LTO_cgraph_tag_names): Declare.
3464         (LCC_NOT_FOUND): Define.
3465
3466 2009-10-03  Doug Kwan  <dougkwan@google.com>
3467             Rafael Espindola  <espindola@google.com>
3468             Jan Hubicka  <jh@suse.cz>
3469             Diego Novillo  <dnovillo@google.com>
3470             Kenneth Zadeck  <zadeck@naturalbridge.com>
3471
3472         * passes.c (all_regular_ipa_passes): New.
3473         (all_ipa_passes): Rename to all_small_ipa_passes.
3474         (init_optimization_passes): Init all_regular_ipa_passes.
3475         * tree-pass.h (all_regular_ipa_passes): New.
3476         (all_ipa_passes): Rename to all_small_ipa_passes.
3477         * passes.c (all_lto_gen_passes): New.
3478         (init_optimization_passes): Initialize all_lto_gen_passes.
3479         (execute_ipa_summary_passes): Make non-static.
3480         (ipa_write_summaries_1): New.
3481         (ipa_write_summaries_2): New.
3482         (ipa_write_summaries): New.
3483         (ipa_write_summaries_of_cgraph_node_set): New.
3484         (ipa_read_summaries_1): New.
3485         (ipa_read_summaries): New.
3486         (execute_ipa_pass_list): Call cgraph_process_new_functions.
3487         (execute_regular_ipa_pass_list): Remove.
3488         (init_optimization_passes): Schedule
3489         pass_rebuild_cgraph_edges and pass_early_inline outside
3490         of pass_all_early_optimizations.  Document reason.
3491         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3492         pass_ipa_lto_finish_out): New pass.
3493         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3494         (execute_all_ipa_transforms): New.
3495         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3496         (dump_properties, debug_properties): New.
3497         * tree-optimize.c (gate_all_early_local_passes): Return
3498         false if we are in lto1.
3499         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3500         * tree-pass.h (execute_all_ipa_transforms): Declare.
3501         (pass_ipa_function_and_variable_visibility): Declare.
3502         (pass_ipa_early_inline): Declare.
3503         (pass_ipa_lto_gimple_out): Declare.
3504         (pass_ipa_lto_wpa_fixup): Declare.
3505         (pass_ipa_lto_finish_out): Declare.
3506         (all_small_ipa_passes, all_regular_ipa_passes,
3507         all_lto_gen_passes): Declare.
3508         (execute_ipa_summary_passes): Declare.
3509         (execute_all_ipa_transforms): Declare.
3510         (ipa_write_summaries): Declare
3511         (ipa_write_summaries_of_cgraph_node_set): Declare.
3512         (ipa_read_summaries): Declare.
3513
3514 2009-10-03  Doug Kwan  <dougkwan@google.com>
3515             Ollie Wild  <aaw@google.com>
3516
3517         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3518
3519         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3520         (lto_mode): New variable.
3521         (maybe_run_lto_and_relink): Handle the -fwpa option.
3522         (main): Handle the -fwpa option.
3523         (maybe_unlink_list): New function.
3524         * gcc.c (link_lto_options): Replace -flto with -fwpa.
3525         * common.opt (flto): New flag.
3526         * toplev.c (flag_generate_lto): Declare.
3527
3528 2009-10-03  Simon Baldwin  <simonb@google.com>
3529
3530         * common.opt (flto-compression-level): New flag.
3531
3532         * opts.c: Include lto-opts.h.
3533         (handle_option): Call lto_register_user_option for each
3534         valid option handled.
3535         (decode_options): Clear registered options before the options
3536         handling loop.
3537
3538 2009-10-03  Cary Coutant  <ccoutant@google.com>
3539
3540         * collect2.c (is_elf): New function.
3541         (scan_prog_file): Require LTO object to be in ELF format.
3542
3543 2009-10-03  Rafael Espindola  <espindola@google.com>
3544
3545         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3546         libgcc to the linker.
3547
3548         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3549
3550         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3551         (collect_execute): Add flags argument. Pass flags to pex_run. Update
3552         all callers.
3553         * collect2.h (collect_execute): Add flags argument.
3554         * tlink.c (tlink_execute): Update call to collect_execute.
3555         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3556         (use_linker_plugin): New.
3557         (use_linker_plugin_spec_function): New.
3558         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3559         (linker_plugin_file_spec): New.
3560         (lto_wrapper_spec): New.
3561         (lto_gcc_spec): New.
3562         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3563         (static_spec_functions): Add use-linker-plugin.
3564         (process_command): Handle -use-linker-plugin.
3565         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3566         linker_plugin_file_spec and lto_gcc_spec.
3567         (use_linker_plugin_spec_function): New.
3568
3569 2009-10-03  Richard Guenther  <rguenther@suse.de>
3570
3571         PR lto/41547
3572         PR lto/41548
3573         * tree.h (is_lang_specific): Include LANG_TYPE.
3574         * tree.c (find_decls_types_r): Manually add interesting parts
3575         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
3576
3577         * gimple.c (type_pair_hash): Make symmetric.
3578         (type_pair_eq): Likewise.
3579         (lookup_type_pair): Increase initial hashtable size.
3580         (gimple_force_type_merge): Rely on type-pair symmetry.
3581         (visit): Remove excessive checking code.
3582         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3583         (gimple_register_type): Remove getenv calls, shrink initial
3584         hashtable size.
3585
3586         PR middle-end/41502
3587         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3588         inline functions if not generating lto output.
3589
3590         PR lto/41379
3591         * toplev.c (finalize): In WPA mode remove the asm file.
3592
3593 2009-10-03  Doug Kwan  <dougkwan@google.com>
3594
3595         * ipa-inline.c (cgraph_mark_inline): Check
3596         edge->call_stmt_cannot_inline_p instead of calling
3597         gimple_call_cannot_inline_p.
3598         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3599         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3600         (inline_generate_summary): Do nothing in LTRANS.
3601         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3602         exists before calling gimple_call_cannot_inline_p.
3603         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3604         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
3605         Update new_edge->lto_stmt_uid.
3606         * cgraphbuild.c (reset_inline_failed): New.
3607
3608         * common.opt (fwpa): New flag.
3609         (fltrans): New option.
3610         * gcc.c (gcc_lto_option_t): New type.
3611         (current_lto_option): New variable.
3612         (lto_single_spec_function): Remove and is replaced by ..
3613         (lto_option_spec_function): New function.
3614         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3615         passing the -flto flag.
3616         (cc1_options): Separate non-LTO related parts into ..
3617         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3618         (lto1_options): New spec for lto FE.
3619         (link_lto_options): New spec for handling LTO flags in linker.
3620         (invoke_lto_single): Re-format to fit in 80 column.  Replace
3621         lto-single with lto-option.
3622         (static_specs): Add cc1_non_lto_options, lto1_options and
3623         link_lto_options.
3624         (static_spec_function): Replace lto-single with lto-option.
3625         (process_command): Handle -flto, -fwpa and -fltran by setting
3626         current_lto_option and not passing it to subprocess unconditionally.
3627
3628 2009-10-03  Bill Maddox  <maddox@google.com>
3629
3630         Add `gcc' driver support for link-time code generation (LTO).
3631
3632         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3633         (lto_flag, lto_objects, lto_o_file): New variables.
3634         (struct lto_object, struct lto_object_list): New structures.
3635         (collect_exit, handler): Remove LTO temporary output file on exit.
3636         (add_lto_object): New function.
3637         (maybe_run_lto_and_relink): New function. Perform link time code
3638         generation and relinking for object files containing LTO information.
3639         (main): Invoke maybe_run_lto_and_relink().
3640         (dump_argv): New function.  For debugging, currently disabled.
3641         (scan_prog_file): Add LTO information pass.
3642         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3643         collect2.
3644         * toplev.c (compile_file): Emit assembler directive to create
3645         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3646
3647 2009-10-03  Diego Novillo  <dnovillo@google.com>
3648
3649         * c.opt: Add LTO to warn_abi and warn_psabi.
3650
3651         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
3652         inline function.  Ignore language-specific nodes.  Update all users.
3653         (find_decls_types_r): Do not traverse the subtrees of
3654         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
3655         * tree.h (is_lang_specific): New.
3656         * langhooks.h (struct lang_hooks_for_decls): Remove
3657         may_need_assembler_name_p.  Update all users.
3658
3659         * c-common.c (set_builtin_user_assembler_name): Move ...
3660         * builtins.c (set_builtin_user_assembler_name): ... here.
3661         (is_builtin_name): Add comment
3662         (is_builtin_fn): New.
3663         * except.c (output_ttype): Only call
3664         lookup_type_for_runtime if TYPE is not a runtime type.
3665
3666         * passes.c (register_pass): Call position_pass on
3667         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3668         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3669         (TV_IPA_LTO_DECL_IO): Define.
3670         (TV_IPA_LTO_CGRAPH_IO): Define.
3671         (TV_LTO): Define.
3672         (TV_WHOPR_WPA): Define.
3673         (TV_WHOPR_WPA_IO): Define.
3674         (TV_WHOPR_LTRANS): Define.
3675         (TV_WHOPR_WPA_FIXUP): Define.
3676         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3677         * tree-cfg.c (tree_node_can_be_shared): Make extern.
3678         * tree-flow.h (tree_node_can_be_shared): Declare.
3679         * tree-inline.c (tree_can_inline_p): Check that E has a
3680         statement associated with it.
3681         * tree.c (free_lang_data_in_binf): Factor out of ...
3682         (free_lang_data_in_type): ... here.
3683         Call RECORD_OR_UNION_TYPE_P.
3684         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3685         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
3686         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3687         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
3688         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
3689         (gate_free_lang_data): Return true if flag_generate_lto is set.
3690         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3691         * c-common.h (set_builtin_user_assembler_name): Move ...
3692         * tree.h (set_builtin_user_assembler_name): ... here.
3693
3694         * common.opt (flto-report): New flag.
3695         * opts.c (complain_wrong_lang): Do not complain if running lto1.
3696         * collect2.c (scan_prog_file): Send the error output of
3697         'nm' to HOST_BIT_BUCKET.
3698
3699 2009-10-03  Ollie Wild  <aaw@google.com>
3700
3701         * langhooks-def.h (lhd_begin_section): New function declaration.
3702         (lhd_write_section): New function declaration.
3703         (lhd_end_section): New function declaration.
3704         (LANG_HOOKS_BEGIN_SECTION): New macro.
3705         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3706         (LANG_HOOKS_END_SECTION): New macro.
3707         (LANG_HOOKS_LTO): New macro.
3708         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3709         * langhooks.c (output.h): Add include.
3710         (saved_section): New static variable.
3711         (lhd_begin_section): New function.
3712         (lhd_write_section_data): New function.
3713         (lhd_end_section): New function.
3714         * langhooks.h (struct lang_hooks_for_lto): New structure.
3715         (struct lang_hooks): Add member lto.
3716         * Makefile.in (langhooks.o): Add dependency on output.h.
3717
3718         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3719
3720 2009-10-03  Richard Guenther  <rguenther@suse.de>
3721
3722         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3723         Handle LTO.
3724
3725 2009-10-03  Simon Baldwin  <simonb@google.com>
3726             Richard Guenther  <rguenther@suse.de>
3727             Janis Johnson  <janis187@us.ibm.com>
3728             Doug Kwan  <dougkwan@google.com>
3729             Diego Novillo  <dnovillo@google.com>
3730             Ramana Radhakrishnan  <ramana.r@gmail.com>
3731             Ollie Wild  <aaw@google.com>
3732
3733         * doc/install.texi: Add documentation for libelf and --enable-lto.
3734         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3735         -flto-report, -flto-compression-level and -use-linker-plugin.
3736         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
3737         Add section for LTO Testing.
3738
3739 2009-10-02  Cary Coutant  <ccoutant@google.com>
3740
3741         Add support for comdat type sections for DWARF v4.
3742         Merge from dwarf4 branch.
3743
3744         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3745         (dw_die_ref): Define vector type.
3746         (enum dw_val_class): Add dw_val_class_data8.
3747         (struct dw_val_struct): Add v.val_data8.
3748         (comdat_type_node_ref): New type.
3749         (struct die_struct): Move die_symbol into a union; add new field
3750         die_type_node.  Change all uses.
3751         (comdat_type_node): New type.
3752         (skeleton_chain_node): New type.
3753         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3754         (comdat_type_list): New variable.
3755         (dwarf_tag_name): Add DW_TAG_type_unit.
3756         (dwarf_attr_name): Add DW_AT_signature.
3757         (add_AT_data8): New function.
3758         (replace_child): New function.
3759         (move_all_children): New function.
3760         (print_signature): New function.
3761         (print_die): Print signature information; add dw_val_class_data8.
3762         (attr_checksum): Support dw_val_class_data8.
3763         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3764         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3765         (checksum_sleb128, checksum_uleb128): New functions.
3766         (checksum_die_context): New function.
3767         (loc_checksum_ordered): New function.
3768         (attr_checksum_ordered): New function.
3769         (struct checksum_attributes): New structure.
3770         (collect_checksum_attributes): New function.
3771         (die_checksum_ordered): New function.
3772         (generate_type_signature): New function.
3773         (same_dw_val_p): Add dw_val_class_data8.
3774         (is_symbol_die): Use new is_declaration_die function.
3775         (is_declaration_die): New function.
3776         (should_move_die_to_comdat): New function.
3777         (clone_die): New function.
3778         (clone_tree): New function.
3779         (clone_as_declaration): New function.
3780         (copy_declaration_context): New function.
3781         (generate_skeleton_ancestor_tree): New function.
3782         (generate_skeleton_bottom_up): New function.
3783         (generate_skeleton): New function.
3784         (remove_child_or_replace_with_skeleton): New function.
3785         (break_out_comdat_types): New function.
3786         (struct decl_table_entry): New type.
3787         (htab_decl_hash): New function.
3788         (htab_decl_eq): New function.
3789         (htab_decl_del): New function.
3790         (copy_ancestor_tree): New function.
3791         (copy_decls_walk): New function.
3792         (copy_decls_for_unworthy_types): New function.
3793         (build_abbrev_table): Don't assert on missing die_symbol when doing
3794         comdat type sections.
3795         (size_of_die): Use DW_FORM_sig8 for external references.  Add
3796         dw_val_class_data8.
3797         (unmark_dies): Don't assert for unmarked dies when doing comdat
3798         type sections.
3799         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3800         (output_signature): New function.
3801         (output_die): Likewise.
3802         (output_compilation_unit_header): Mark output as DWARF version 3
3803         even if generating DWARF 4.
3804         (output_comdat_type_unit): New function.
3805         (output_line_info): Mark output as DWARF version 3 even if generating
3806         DWARF 4.
3807         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3808         DWARF-4.
3809         (dwarf2out_end_source_file): Likewise.
3810         (prune_unused_types_walk_attribs): Don't follow references into
3811         comdat type sections.
3812         (prune_unused_types_mark): When generating type units, do not mark
3813         children of non-defining declarations of types; do mark children of
3814         type entries.
3815         (prune_unused_types): Process comdat type sections.
3816         (htab_ct_hash): New function.
3817         (htab_ct_eq): New function.
3818         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3819         Add a pointer to the line table from type unit entries so
3820         DW_AT_decl_file has meaning.
3821         * varasm.c (default_elf_asm_named_section): Use identifier name as
3822         comdat key instead of lang hook.
3823
3824 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
3825
3826         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3827
3828 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
3829
3830         * config/i386/i386.md (SWIM248): New mode iterator.
3831         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3832         divmodhi4 patterns using SWIM248 macro.
3833         (*divmod<mode>4): Macroize insn_and_split pattern from
3834         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3835         and their corresponding splitters usign SWIM248 macro.  Split SImode
3836         insn to generate cltd and DImode insn to generate cqto instead of
3837         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3838         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3839         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3840         *divmodsi_noext patterns using SWIM248 macro.
3841         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3842         udivmodhi4 patterns using SWIM248 macro.
3843         (*udivmod<mode>4): Macroize insn_and_split pattern from
3844         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3845         corresponding splitters using SWIM248 macro.
3846         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3847         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3848
3849 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
3850
3851         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3852         of zero-sized element is zero-sized regardless of its extent.
3853
3854 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
3855
3856         PR debug/40521
3857         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3858         * configure: Regenerated.
3859         * config.in: Regenerated.
3860         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3861         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3862         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3863         not emitting .eh_frame, emit .cfi_sections .debug_frame
3864         directive.
3865
3866         PR debug/41404
3867         PR debug/41353
3868         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3869         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3870         with '\0'.
3871         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3872         vars use DECL_RTL with resetting it back to NULL afterwards.
3873         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3874         rtx_equal_p instead of asserting it is a SYMBOL_REF.
3875         (value_format): For dw_val_class_addr only use DW_FORM_addr if
3876         the attribute type allows it, otherwise use DW_FORM_dataN.
3877         (mem_loc_descriptor): Handle CONST_STRING.
3878         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3879         Handle MEM with CONST_STRING address using add_AT_string.
3880         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3881         CONST_STRING for const arrays initialized with a string literal.
3882         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3883         (dwarf2out_finish): Call resolve_addr.
3884
3885 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
3886             Maxim Kuvyrkov  <maxim@codesourcery.com>
3887
3888         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3889
3890 2009-10-02  Nick Clifton  <nickc@redhat.com>
3891
3892         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3893         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3894
3895 2009-10-01  Jan Hubicka  <jh@suse.cz>
3896
3897         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3898         (cgraph_create_virtual_clone): Just pass redirect_callers
3899         around.
3900         * cgraph.h (cgraph_clone_node): Update prototype.
3901         * ipa-pure-const.c (self_recursive_p): New function.
3902         (propagate): Use it.
3903         * ipa-inline.c (cgraph_clone_inlined_nodes,
3904         cgraph_decide_recursive_inlining): Update.
3905
3906 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
3907
3908         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3909         instructions for TARGET_OCTEON.
3910
3911 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3912
3913         * config/arm/arm.c (arm_override_options): Turn off
3914         flag_dwarf2_cfi_asm for AAPCS variants.
3915
3916 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3917
3918         PR middle-end/12392
3919         * tree-sra.c (convert_callers): Do not call
3920         compute_inline_parameters on one caller more than once.
3921
3922 2009-10-01  Nick Clifton  <nickc@redhat.com>
3923
3924         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3925         an empty string if not already defined.
3926
3927 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3928
3929         PR bootstrap/41395
3930         * tree-sra.c (is_va_list_type): New function.
3931         (find_var_candidates): Call is_va_list_type.
3932         (find_param_candidates): Check that the type or the type pointed
3933         to are not va_list types.
3934
3935 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3936
3937         PR c++/41503
3938         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3939         DECL_ARTIFICIAL (param_decl) is true.
3940
3941 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
3942
3943         * tree.h (tree_decl_common::lang_flag_8): New.
3944         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
3945         keyword.
3946         * c-common.h (RID_CONSTEXPR): New.
3947
3948 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3949
3950         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3951         Use ref-all pointers.
3952         (alpha_gimplify_va_arg): Ditto.
3953
3954 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
3955
3956         PR target/41279
3957         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3958         before insn counting loop now that BB_END (bb) is counted.  Ensure
3959         the return value isn't zero.
3960
3961 2009-09-30  Nick Clifton  <nickc@redhat.com>
3962
3963         * config.gcc (sh-symbianelf): Replace definition of extra_objs
3964         with separate definitions of c_target_objs and cxx_target_objs.
3965         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3966         and symbian-base.o.
3967         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3968         sh_symbian_import_export_class.
3969         * config/sh/sh-protos.h: Fix names of exported symbian functions.
3970         * config/sh/symbian.c: Delete, moving code into...
3971         * config/sh/symbian-base.c: ... here
3972         * config/sh/symbian-c.c: ... and here
3973         * config/sh/symbian-cxx.c: ... and here.
3974
3975 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3976
3977         PR target/22093
3978         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3979         of plus RTX into register.
3980
3981 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3982
3983         * doc/install.texi: Linguistic and markup fixes.
3984         (Configuration) <--disable-cpp>: Remove description.
3985         <--enable-maintainer-mode>: Autotools files are affected, too.
3986         <--with-sysroot>: Improve description.
3987         (Building): Bump required GNU make version.
3988
3989 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3990
3991         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3992         (x86_64-*-*): Ditto.
3993
3994         * config/i386/fma4intrin.h: New file, provide common x86 compiler
3995         intrinisics for FMA4.
3996         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3997         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3998         Add FMA4 check and fma4intrin.h.
3999         * config/i386/i386-c.c(ix86_target_macros_internal): Check
4000         ISA_FLAG for FMA4.
4001         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
4002         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
4003         constant for FMA4 support.
4004         (UNSPEC_FMA4_FMADDSUB): Ditto.
4005         (UNSPEC_FMA4_FMSUBADD): Ditto.
4006         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
4007         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
4008         (ix86_expand_fma4_multiple_memory): Ditto.
4009         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
4010         (OPTION_MASK_ISA_FMA4_UNSET): New.
4011         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
4012         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
4013         (ix86_handle_option): Handle -mfma4.
4014         (isa_opts): Handle -mfma4.
4015         (enum pta_flags): Add PTA_FMA4.
4016         (override_options): Add FMA4 support.
4017         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
4018         (IX86_BUILTIN_VFMADDSD): Ditto.
4019         (IX86_BUILTIN_VFMADDPS): Ditto.
4020         (IX86_BUILTIN_VFMADDPD): Ditto.
4021         (IX86_BUILTIN_VFMSUBSS): Ditto.
4022         (IX86_BUILTIN_VFMSUBSD): Ditto.
4023         (IX86_BUILTIN_VFMSUBPS): Ditto.
4024         (IX86_BUILTIN_VFMSUBPD): Ditto.
4025         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
4026         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
4027         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
4028         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
4029         (IX86_BUILTIN_VFNMADDSS): Ditto.
4030         (IX86_BUILTIN_VFNMADDSD): Ditto.
4031         (IX86_BUILTIN_VFNMADDPS): Ditto.
4032         (IX86_BUILTIN_VFNMADDPD): Ditto.
4033         (IX86_BUILTIN_VFNMSUBSS): Ditto.
4034         (IX86_BUILTIN_VFNMSUBSD): Ditto.
4035         (IX86_BUILTIN_VFNMSUBPS): Ditto.
4036         (IX86_BUILTIN_VFNMSUBPD): Ditto.
4037         (IX86_BUILTIN_VFMADDPS256): Ditto.
4038         (IX86_BUILTIN_VFMADDPD256): Ditto.
4039         (IX86_BUILTIN_VFMSUBPS256): Ditto.
4040         (IX86_BUILTIN_VFMSUBPD256): Ditto.
4041         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
4042         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
4043         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
4044         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
4045         (IX86_BUILTIN_VFNMADDPS256): Ditto.
4046         (IX86_BUILTIN_VFNMADDPD256): Ditto.
4047         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
4048         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
4049         (enum multi_arg_type): New enum for describing the various FMA4
4050         intrinsic argument types.
4051         (bdesc_multi_arg): New table for FMA4 intrinsics.
4052         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
4053         (ix86_expand_multi_arg_builtin): New function for creating FMA4
4054         intrinsics.
4055         (ix86_expand_builtin): Add FMA4 intrinsic support.
4056         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
4057         operand instructions.
4058         (ix86_expand_fma4_multiple_memory): New function to split the
4059         second memory reference from FMA4 instructions.
4060         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
4061         (ssemodesuffixf2s): Ditto.
4062         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
4063         instructions.
4064         (fma4_fmsub<mode>4): Ditto.
4065         (fma4_fnmadd<mode>4): Ditto.
4066         (fma4_fnmsub<mode>4): Ditto.
4067         (fma4_vmfmadd<mode>4): Ditto.
4068         (fma4_vmfmsub<mode>4): Ditto.
4069         (fma4_vmfnmadd<mode>4): Ditto.
4070         (fma4_vmfnmsub<mode>4): Ditto.
4071         (fma4_fmadd<mode>4256): Ditto.
4072         (fma4_fmsub<mode>4256): Ditto.
4073         (fma4_fnmadd<mode>4256): Ditto.
4074         (fma4_fnmsub<mode>4256): Ditto.
4075         (fma4_fmaddsubv8sf4): Ditto.
4076         (fma4_fmaddsubv4sf4): Ditto.
4077         (fma4_fmaddsubv4df4): Ditto.
4078         (fma4_fmaddsubv2df4): Ditto.
4079         (fma4_fmsubaddv8sf4): Ditto.
4080         (fma4_fmsubaddv4sf4): Ditto.
4081         (fma4_fmsubaddv4df4): Ditto.
4082         (fma4_fmsubaddv2df4): Ditto.
4083         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
4084         instructions for intrinsics.
4085         (fma4i_fmsub<mode>4): Ditto.
4086         (fma4i_fnmadd<mode>4): Ditto.
4087         (fma4i_fnmsub<mode>4): Ditto.
4088         (fma4i_vmfmadd<mode>4): Ditto.
4089         (fma4i_vmfmsub<mode>4): Ditto.
4090         (fma4i_vmfnmadd<mode>4): Ditto.
4091         (fma4i_vmfnmsub<mode>4): Ditto.
4092         (fma4i_fmadd<mode>4256): Ditto.
4093         (fma4i_fmsub<mode>4256): Ditto.
4094         (fma4i_fnmadd<mode>4256): Ditto.
4095         (fma4i_fnmsub<mode>4256): Ditto.
4096         (fma4i_fmaddsubv8sf4): Ditto.
4097         (fma4i_fmaddsubv4sf4): Ditto.
4098         (fma4i_fmaddsubv4df4): Ditto.
4099         (fma4i_fmaddsubv2df4): Ditto.
4100         (fma4i_fmsubaddv8sf4): Ditto.
4101         (fma4i_fmsubaddv4sf4): Ditto.
4102         (fma4i_fmsubaddv4df4): Ditto.
4103         (fma4i_fmsubaddv2df4): Ditto.
4104
4105         * doc/invoke.texi (-mfma4): Add documentation.
4106         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
4107
4108 2009-09-29  Richard Henderson  <rth@redhat.com>
4109
4110         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
4111         an edge to the new destination block.
4112
4113 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4114
4115         PR target/41393
4116         * pa.c (hppa_profile_hook): Use
4117         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
4118
4119 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
4120             Alexander Monakov  <amonakov@ispras.ru>
4121
4122         PR target/41365
4123         * config/ia64/predicates.md (not_postinc_destination_operand): New.
4124         (not_postinc_memory_operand): New.
4125         (not_postinc_move_operand): New.
4126         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
4127         (*cmovsi_internal): Ditto.
4128
4129 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
4130
4131         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
4132         restrict issue_rate in first pass when scheduling for register
4133         pressure.
4134
4135 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
4136             Rafael Avila de Espindola  <espindola@google.com>
4137
4138         * gengtype.c (plugin_output): New.
4139         (get_output_file_with_visibility): Return plugin_output for plugins.
4140         (main): Parse and use the -P option.
4141         * gty.texi: Update the command line format.
4142
4143 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
4144
4145         PR debug/41438
4146         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
4147         functions.
4148         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
4149         out if !const_ok_for_output.
4150
4151         PR debug/41474
4152         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
4153         case VAR_LOCATION>: Remove gcc_unreachable ().
4154
4155 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
4156
4157         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
4158         (x86_64-*-*): Ditto.
4159         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
4160         back to smmintrin.h.
4161         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
4162         * config/i386/x86intrin.h: Remove SSE5.
4163         * config/i386/mmintrin-common.h: Delete file.
4164         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
4165
4166 2009-09-29  Richard Guenther  <rguenther@suse.de>
4167
4168         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
4169         resulting from stack temporaries on STRICT_ALIGNMENT targets.
4170
4171 2009-09-29  Nick Clifton  <nickc@redhat.com>
4172
4173         * function.c (current_function_name): If there is no current
4174         function just return "<none>".
4175
4176 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
4177
4178         * tree-pass.h (register_pass_info): New structure.
4179         (pass_positioning_ops): Move enum from gcc-plugin.h.
4180         (register_pass): New function.
4181         * gcc-plugin.h (plugin_pass): Delete structure.
4182         (pass_positioning_ops): Delete enum.
4183         * plugin.c (regsiter_pass): Delete function.
4184         (position_pass): Delete function.
4185         (added_pass_nodes): Delete variable.
4186         (prev_added_pass_nodes): Delete variable.
4187         (pass_list_node): Delete structure.
4188         * passes.c (make_pass_instance): New function.
4189         (next_pass_1): Change to call make_pass_instance.
4190         (pass_list_node): Move structure from gcc-plugin.h.
4191         (added_pass_nodes): Move variable from plugin.c.
4192         (prev_added_pass_nodes): Move variable from plugin.c.
4193         (position_pass): New function.
4194         (register_pass): New function.
4195
4196 2009-09-28  Easwaran Raman  <eraman@google.com>
4197
4198         * ifcvt.c (noce_try_abs): Recognize pattern and call
4199         expand_one_cmpl_abs_nojump.
4200         * optabs.c (expand_one_cmpl_abs_nojump): New function.
4201         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
4202
4203 2009-09-28  Ian Lance Taylor  <iant@google.com>
4204
4205         PR middle-end/40500
4206         * c-opts.c (c_common_handle_option): Don't set
4207         warn_jump_misses_init for -Wall.
4208         * doc/invoke.texi (Warning Options): Update documentation.
4209
4210 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4211
4212         * Makefile.in ($(out_object_file)): Depend on
4213         gt-$(basename $(notdir $(out_file))).h.
4214
4215 2009-09-28  Richard Henderson  <rth@redhat.com>
4216
4217         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
4218         * except.c (gen_eh_region): Set it.
4219         (duplicate_eh_regions_1): Copy it.
4220         * tree-eh.c (lower_resx): Use it to determine which function
4221         to call to resume.
4222
4223         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
4224         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
4225         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
4226         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
4227         BUILT_IN_CXA_END_CLEANUP if necessary.
4228
4229         * c-common.c (c_define_builtins): Update call to
4230         build_common_builtin_nodes.
4231
4232 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4233
4234         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
4235
4236 2009-09-28  Michael Matz  <matz@suse.de>
4237
4238         * builtins.c (interclass_mathfn_icode): New helper.
4239         (expand_builtin_interclass_mathfn): Use it here, and split folding
4240         into ...
4241         (fold_builtin_interclass_mathfn): ... this new folder.
4242         (build_call_nofold_loc): New static helper.
4243         (build_call_nofold): New wrapper macro for above.
4244         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
4245         (expand_builtin_pow): Ditto.
4246         (expand_builtin_memset_args): Ditto.
4247         (expand_builtin_printf): Ditto.
4248         (expand_builtin_fprintf): Ditto.
4249         (expand_builtin_sprintf): Ditto.
4250         (expand_builtin_memory_chk): Ditto.
4251         (expand_builtin_mempcpy_args): Ditto and don't call folders.
4252         (expand_builtin_stpcpy): Ditto.
4253         (expand_builtin_strcmp): Ditto.
4254         (expand_builtin_strncmp): Ditto.
4255         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
4256         (expand_builtin_strcpy_args): Don't call folders.
4257         (expand_builtin_memcmp): Ditto.
4258         (expand_builtin_strncpy): Ditto, and use target.
4259         (expand_builtin_memcpy): Ditto.
4260         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
4261         expand_builtin_strpbrk, expand_builtin_memmove,
4262         expand_builtin_memmove_args, expand_builtin_bcopy,
4263         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
4264         expand_builtin_strspn, expand_builtin_strcspn,
4265         expand_builtin_fputs): Remove these.
4266         (expand_builtin): Don't call the above, change calls to other
4267         expanders that changed prototype.
4268         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
4269         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
4270         fold_builtin_interclass_mathfn.
4271         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
4272         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
4273
4274         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
4275         * passes.c (init_optimization_passes): Move pass_fold_builtins
4276         after last phiopt pass.
4277         * tree-inline.c (fold_marked_statements): When folding builtins
4278         iterate over all instruction potentially generated.
4279         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
4280         earlier.
4281         (fold_gimple_call): Use it to always fold calls (into potentially
4282         multiple instructions).
4283         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
4284         calls into zero at this time.
4285         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
4286         statements generated by builtin folding.
4287
4288 2009-09-28  Nick Clifton  <nickc@redhat.com>
4289
4290         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
4291
4292 2009-09-28  Duncan Sands  <baldrick@free.fr>
4293
4294         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
4295         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
4296         (register_callback): Dispatch it.
4297         (invoke_plugin_callbacks): Incorporate in sanity check.
4298         * ggc.h (ggc_register_cache_tab): Add declaration.
4299         * ggc-common.c (ggc_register_root_tab): Simplify.
4300         (const_ggc_cache_tab_t): New typedef.
4301         (extra_cache_vec): New vector of dynamically added cache tables.
4302         (ggc_register_cache_tab): New function.
4303         (ggc_scan_cache_tab): New function.
4304         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
4305         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
4306
4307 2009-09-27  Richard Henderson  <rth@redhat.com>
4308
4309         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
4310         which we remove __builtin_stack_restore.
4311
4312 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4313
4314         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
4315         to test for GRD_INVARIANT.
4316         (simple_rhs_p): Anything that's function_invariant_p is fine.
4317
4318 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
4319
4320         * gengtype.c (main): Use plunge_files instead of plugin_output.
4321
4322 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
4323             Rafael Avila de Espindola  <espindola@google.com>
4324
4325         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
4326         Don't print pch related info if it is false.
4327         (main): Don't print pch info in plugin mode.
4328
4329 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4330
4331         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
4332         with dw_val_class_const_double.
4333         (struct dw_val_struct): Replace val_long_long with val_double and
4334         adjust for above change.
4335         (output_loc_operands): Likewise.
4336         (add_AT_long_long): Rename into...
4337         (add_AT_double): ...this.
4338         (print_die): Replace dw_val_class_long_long with
4339         dw_val_class_const_double and adjust.
4340         (attr_checksum): Likewise.
4341         (same_dw_val_p): Likewise.
4342         (size_of_die): Likewise.
4343         (value_format): Likewise.
4344         (output_die): Likewise.
4345         (loc_descriptor) <CONST_DOUBLE>: Likewise.
4346         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
4347         instead of add_AT_long_long.
4348         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
4349         value with the precision of its type.
4350
4351 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
4352
4353         PR c/41476
4354         * c-typeck.c (build_conditional_expr): Use the readonly and
4355         volatile flags of the operand types, not of the operands itself.
4356
4357 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
4358
4359         * collect2.c (main): Look for -brtl before adding libraries.
4360
4361 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
4362
4363         * config.gcc: Update OpenBSD targets.
4364         * config/openbsd-stdint.h: New file.
4365         * config/openbsd-libpthread.h: New file.
4366         * config/openbsd.h: Update and break out LIB_SPEC definition.
4367         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
4368         * config/i386/openbsdelf.h: Correct types.
4369         * config/m68k/openbsd.h: Likewise.
4370         * config/mips/openbsd.h: Likewise.
4371         * config/vax/openbsd.h: Likewise.
4372
4373 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4374
4375         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
4376         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
4377         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
4378         of the length and zero.
4379
4380 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4381
4382         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
4383         (FLAGS_H): Add options.h $(REAL_H).
4384         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
4385         (TREE_VECTORIZER_H): New.
4386         (EBITMAP_H): Renamed from EBIMAP_H.
4387         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
4388         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
4389         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
4390         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
4391         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
4392         (graphite-clast-to-gimple.o, graphite-dependences.o)
4393         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
4394         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
4395         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
4396         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
4397         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
4398         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
4399         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
4400         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
4401         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
4402         updated and fixed as per above changes and per
4403         check_makefile_deps.sh output.
4404
4405         PR bootstrap/40928
4406         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
4407         * configure: Regenerate.
4408
4409 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4410
4411         * doc/install.texi: Update minimum MPC version to 0.7.
4412
4413 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
4414
4415         * doc/install.texi (Binaries): Remove reference to the binary
4416         distribution CD-ROM from the FSF.
4417
4418 2009-09-26  Michael Matz  <matz@suse.de>
4419
4420         PR lto/40758
4421         PR middle-end/41470
4422         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
4423         that are mentioned in the body.
4424
4425 2009-09-26  Michael Matz  <matz@suse.de>
4426
4427         PR tree-optimization/41454
4428         * tree-ssa-dom (stmts_to_rescan): Remove variable.
4429         (tree_ssa_dominator_optimize): Don't allocate and free it.
4430         (dom_opt_leave_block): Don't iterate over it.
4431         (eliminate_redundant_computations): Don't return a value.
4432         (cprop_operand, cprop_into_stmt): Ditto.
4433         (optimize_stmt): Don't defer updating stmts.
4434
4435 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
4436
4437         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4438         generic_parameter_die, template_parameter_pack_die,
4439         gen_formal_parameter_die, gen_subprogram_die): Adjust after
4440         renaming DW_TAG_formal_parameter_pack and
4441         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4442         and DW_TAG_GNU_template_parameter_pack.
4443
4444 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
4445
4446         * config/v850/v850.h (FUNCTION_VALUE): Remove.
4447         * config/v850/v850.c (v850_function_value): New function.
4448         (TARGET_FUNCTION_VALUE): Define.
4449
4450 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
4451
4452         * tree-vect-stmts.c (vectorizable_call): Call
4453         mark_symbols_for_renaming after vect_finish_stmt_generation.
4454
4455         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4456         to loc_descriptor_from_tree.
4457         (add_location_or_const_value_attribute): Pass 0 instead of 2
4458         for decl_by_reference_p decls.
4459
4460 2009-09-25  Richard Guenther  <rguenther@suse.de>
4461
4462         PR middle-end/41463
4463         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4464         arrays again.
4465
4466 2009-09-25  Ben Elliston  <bje@au.ibm.com>
4467
4468         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4469         after `power7'.
4470
4471 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
4472
4473         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4474         form of instruction.
4475
4476 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4477
4478         PR middle-end/41435
4479         * fold-const.c (const_binop): Handle complex int division.
4480         * tree-complex.c (expand_complex_div_straight,
4481         expand_complex_div_wide): Update comments.
4482
4483 2009-09-24  DJ Delorie  <dj@redhat.com>
4484
4485         PR target/41456
4486         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4487         (reg_class): Likewise.
4488         (REG_CLASS_NAMES): Likewise.
4489         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4490         (m32c_override_options): Disable -fivopts for M32C.
4491
4492 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4493
4494         * config/rs6000/predicates.md (indexed_or_indirect_operand):
4495         Delete VSX load/store with update support.
4496         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4497         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4498         (vsx_movti): Ditto.
4499         (VSX_U): Delete.
4500         (VSbit): Ditto.
4501         (VStype_load_update): Ditto.
4502         (VStype_store_update): Ditto.
4503         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4504         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4505
4506         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4507         load/store with update builtins.
4508
4509 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
4510
4511         * libgcc2.c (L_trampoline): Prototype for getpagesize
4512         and mprotect in WINNT case.
4513
4514 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
4515
4516         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4517         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4518         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4519         'outgoing' argument.
4520         (TARGET_FUNCTION_VALUE): Define.
4521
4522 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4523
4524         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4525
4526 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4527
4528         PR bootstrap/41405
4529         * common.opt: Initialize dwarf_strict to -1.
4530         * toplev.c (process_options): Catch unset dwarf_strict
4531         and set to 0 for all targets not overriding.
4532         * config/darwin.c (darwin_override_options): Catch unset
4533         dwarf_strict and override to 1.
4534
4535 2009-09-24  Jeff Law  <law@redhat.com>
4536
4537         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4538
4539 2009-09-24  Richard Guenther  <rguenther@suse.de>
4540
4541         PR tree-optimization/36143
4542         PR tree-optimization/38747
4543         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4544         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4545
4546 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4547
4548         PR bootstrap/41457
4549         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4550         return false instead of gcc_unreachable ().  For CONST return the
4551         value returned by recursive call instead of always returning true.
4552         (tree_add_const_value_attribute): Return the value returned by
4553         add_const_value_attribute instead of always returning true if rtl
4554         is non-NULL.
4555
4556 2009-09-23  Justin Seyster  <jrseys@gmail.com>
4557
4558         * Makefile.in (PLUGIN_HEADERS): Include real.h.
4559
4560 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4561
4562         * cgraphunit.c (cgraph_lower_function): Revert last change.
4563         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4564         instead of DECL_NO_STATIC_CHAIN.
4565         * tree-cfg.c (verify_gimple_call): Likewise.
4566         * tree-nested.c (get_chain_decl, get_chain_field,
4567         convert_tramp_reference_op, convert_gimple_call): Likewise.
4568         (convert_all_function_calls): Likewise.  Always set or clear
4569         DECL_STATIC_CHAIN initially, for !n->outer clear it.
4570         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4571         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4572         if nested.
4573         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4574         DECL_NO_STATIC_CHAIN.
4575         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4576         instead of DECL_NO_STATIC_CHAIN.
4577         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
4578         decl_function_context.
4579         * varasm.c (initializer_constant_valid_p): Likewise.
4580         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4581         (DECL_STATIC_CHAIN): ... this.
4582         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4583         instead of DECL_NO_STATIC_CHAIN.
4584
4585 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
4586             Rafael Avila de Espindola  <espindola@google.com>
4587
4588         * gengtype.c (nb_plugin_files): Make it unsigned to match
4589         num_gt_files. Adjust other variables to avoid warnings.
4590         (main): Allocate an all zero lang_bitmap before each plugin file name
4591         to match regular file names.
4592
4593 2009-09-23  Richard Henderson  <rth@redhat.com>
4594
4595         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4596         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4597         static chain passed in memory.
4598         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4599         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4600         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
4601         STATIC_CHAIN_REGNUM defined.
4602
4603         * config/picochip/picochip-protos.h: s/class/klass/.
4604         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4605         (picochip_static_chain): New.
4606         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4607         (STATIC_CHAIN_INCOMING): Remove.
4608
4609         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4610         (xtensa_static_chain): New.
4611         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4612         (STATIC_CHAIN_INCOMING): Remove.
4613
4614 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4615
4616         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4617         * config/pa/pa-protos.h (function_value): Remove.
4618         * config/pa/pa.c (pa_function_value): Rename from function_value.
4619         Make static, add 'outgoing' argument.
4620         (TARGET_FUNCTION_VALUE): Define.
4621
4622 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4623
4624         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4625         instead of cfun->machine->is_leaf.
4626         * config/avr/avr.h (machine_function): Remove is_leaf field.
4627
4628 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4629
4630         PR debug/41439
4631         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4632         DW_OP_piece after DW_OP_stack_value, adjust size calculations
4633         for it, when DW_OP_stack_value and DW_OP_implicit_value has
4634         the same size, prefer DW_OP_stack_value.
4635         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4636         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4637
4638 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4639
4640         PR debug/41353
4641         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4642
4643 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4644
4645         PR debug/41248
4646         * cfgexpand.c (convert_debug_memory_address): New.
4647         (expand_debug_expr): Convert base address and offset to the same
4648         mode.  Use it to convert addresses to other modes.  Accept
4649         ptr_mode addresses.
4650
4651 2009-09-23  Richard Guenther  <rguenther@suse.de>
4652
4653         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4654         produced for bigendian targets with promoted subregs.
4655
4656 2009-09-23  Richard Guenther  <rguenther@suse.de>
4657
4658         * value-prof.c (gimple_ic): Purge old EH edges only after building
4659         the new ones.
4660
4661 2009-09-23  Nick Clifton  <nickc@redhat.com>
4662
4663         * config/arc/arc.c (arc_trampoline_init): Fix typo.
4664
4665 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4666
4667         PR bootstrap/41405
4668         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4669
4670         PR bootstrap/41436
4671         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4672         on non-nested functions.
4673
4674 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4675             Jan Hubicka  <jh@suse.cz>
4676
4677         * dwarf2out.c (loc_list_plus_const): Only define if
4678         DWARF2_DEBUGGING_INFO.
4679         (address_of_int_loc_descriptor): Likewise.
4680
4681         PR debug/41411
4682         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4683
4684 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
4685
4686         PR c/39779
4687         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4688         constant is more than zero.
4689
4690 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
4691
4692         PR target/40473
4693         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4694         call final to emit non-scheduled prologue, instead insert at entry.
4695
4696 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4697             Joseph S. Myers  <joseph@codesourcery.com>
4698
4699         * doc/install.texi (*-*-freebsd*): Add proper format codes.
4700
4701 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4702             Rafael Avila de Espindola  <espindola@google.com>
4703
4704         * gengtype.c (is_file_equal): New function.
4705         (close_output_files): Use is_file_equal. Free of->buf.
4706
4707 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4708             Rafael Avila de Espindola  <espindola@google.com>
4709
4710         * gengtype.c (write_types, write_local): Add the output_header
4711         argument. Update all callers.
4712
4713 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
4714
4715         * dwarf2out.c (template_parameter_pack_die,
4716         gen_formal_parameter_pack_die ): New functions.
4717         (make_ith_pack_parameter_name): Remove this function.
4718         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4719         DW_TAG_formal_parameter_pack.
4720         (gen_generic_params_dies): Represent each template parameter pack
4721         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4722         represented by usual DW_TAG_template_*_parameter DIEs that are
4723         children of the DW_TAG_template_parameter_pack element DIE.
4724         (generic_parameter_die): This doesn't deal with parameter pack
4725         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4726         of parameter pack DIEs.
4727         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4728         in certain cases, e.g. for pack elements.
4729         (gen_formal_types_die, gen_decl_die): Adjust usage of
4730         gen_formal_parameter_die.
4731         (gen_subprogram_die): Represent each function parameter pack by a
4732         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4733         represented by usual DW_TAG_formal_parameter DIEs that are children
4734         of the DW_TAG_formal_parameter_pack DIE. Remove references to
4735         ____builtin_va_alist decls as no part of the compiler uses those
4736         anymore.
4737         * langhooks.h (struct lang_hooks_for_decls): Add
4738         function_parm_expanded_from_pack_p, get_generic_function_decl
4739         and function_parameter_pack_p hooks.  Fix comment for
4740         get_innermost_generic_parms hook.
4741         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4742         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4743         macros and use them to initialize lang_hook.
4744
4745 2009-09-22  Richard Henderson  <rth@redhat.com>
4746
4747         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4748         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4749         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4750         on TRAMPOLINE_TEMPLATE.
4751         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4752         TRAMPOLINE_ADJUST_ADDRESS.
4753         * targhooks.c (default_asm_trampoline_template): Remove.
4754         (default_trampoline_adjust_address): Remove.
4755         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4756         * targhooks.h: Update decls.
4757
4758 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4759
4760         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4761         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4762         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4763
4764 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
4765
4766         PR debug/41295
4767         * reload1.c (reload): Reset debug insns with pseudos without
4768         equivalences.
4769
4770 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
4771
4772         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4773         unconditional true for decimal float modes.
4774         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4775         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4776
4777 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4778
4779         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4780         Enable a new case for __FreeBSD__ >= 7.
4781         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4782         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4783         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4784         and USE_LD_AS_NEEDED.
4785
4786         * doc/install.texi (*-*-freebsd*): Update target information.
4787
4788 2009-09-22  Richard Guenther  <rguenther@suse.de>
4789
4790         PR middle-end/41395
4791         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4792         arrays really properly.
4793
4794 2009-09-22  Richard Henderson  <rth@redhat.com>
4795
4796         PR target/41246
4797         * target.h (struct gcc_target): Add asm_out.trampoline_template,
4798         calls.static_chain, calls.trampoline_init,
4799         calls.trampoline_adjust_address.
4800         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4801         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4802         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4803         * builtins.c (expand_builtin_setjmp_receiver): Use
4804         targetm.calls.static_chain; only clobber registers.
4805         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4806         set up memory attributes properly for the trampoline block.
4807         (expand_builtin_adjust_trampoline): Use
4808         targetm.calls.trampoline_adjust_address.
4809         * calls.c (prepare_call_address): Add fndecl argument.  Use
4810         targetm.calls.static_chain.
4811         * df-scan.c (df_need_static_chain_reg): Remove.
4812         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4813         consolodate static chain handling.
4814         * doc/tm.texi: Document new hooks.
4815         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4816         (init_emit_regs): Don't initialize them.
4817         * expr.h (prepare_call_address): Update decl.
4818         * final.c (profile_function): Use targetm.calls.static_chain.
4819         * function.c (expand_function_start): Likewise.
4820         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4821         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4822         only clobber registers.
4823         * targhooks.c (default_static_chain): New.
4824         (default_asm_trampoline_template, default_trampoline_init): New.
4825         (default_trampoline_adjust_address): New.
4826         * targhooks.h: Declare them.
4827         * varasm.c (assemble_trampoline_template): Use
4828         targetm.asm_out.trampoline_template.  Make the memory block const
4829         and set its size.
4830
4831         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4832         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
4833         differences into the TARGET_ABI_OPEN_VMS code block.
4834         (TARGET_TRAMPOLINE_INIT): New.
4835         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4836         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4837         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4838         (INITIALIZE_TRAMPOLINE): Remove.
4839
4840         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4841         (TRAMPOLINE_TEMPLATE): Merge with ...
4842         (INITIALIZE_TRAMPOLINE): ... this and move ...
4843         * config/arc/arc.c (arc_trampoline_init): ... here.
4844         (TARGET_TRAMPOLINE_INIT): New.
4845
4846         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4847         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4848         (arm_asm_trampoline_template): New.
4849         (arm_trampoline_init, arm_trampoline_adjust_address): New.
4850         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4851         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4852         code to arm_asm_trampoline_template.
4853         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4854         arm_trampoline_adjust_address.
4855         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4856         adjust for target hook parameters.
4857
4858         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4859         Remove.
4860
4861         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4862         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4863         (bfin_trampoline_init): Rename from initialize_trampoline;
4864         make static; update for target hook parameters.
4865         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4866         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4867         bfin_asm_trampoline_template.
4868         (INITIALIZE_TRAMPOLINE): Remove.
4869
4870         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4871         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4872         cris_trampoline_init): New.
4873         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4874         cris_asm_trampoline_template.
4875         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4876         adjust for target hook parameters.
4877
4878         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4879
4880         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4881         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4882         fr30_trampoline_init): New.
4883         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4884         fr30_asm_trampoline_template.
4885         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4886         adjust for target hook parameters.
4887
4888         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4889         (frv_trampoline_init): Rename from frv_initialize_trampoline;
4890         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4891         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4892         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4893
4894         * config/h8300/h8300.c (h8300_trampoline_init): New.
4895         (TARGET_TRAMPOLINE_INIT): New.
4896         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4897         to h8300_trampoline_init and adjust for hook parameters.
4898
4899         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4900         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4901         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4902         make static; adjust for hook parameters.
4903         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4904
4905         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4906         (TARGET_TRAMPOLINE_INIT): New.
4907         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4908         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4909         iq2000_asm_trampoline_template.
4910         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4911         (TRAMPOLINE_CODE_SIZE): New.
4912         (TRAMPOLINE_SIZE): Use it.
4913         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4914
4915         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4916         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4917         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4918         adjust for hook parameters.
4919         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4920
4921         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4922         (m32r_trampoline_init): New.
4923         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4924         m32r_trampoline_init.
4925
4926         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4927         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4928         make static; update for hook parameters.
4929         * config/m68hc11/m68hc11-protos.h: Update.
4930         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4931
4932         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4933         (TARGET_TRAMPOLINE_INIT): New.
4934         (mcore_function_value): Fix typo.
4935         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
4936         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
4937         to mcore_asm_trampoline_template.
4938         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4939
4940         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4941         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4942         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4943         update for hook parameters.
4944         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4945
4946         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4947         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4948         mips_trampoline_init): New.
4949         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4950         mips_asm_trampoline_template.
4951         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4952         update for hook parameters.
4953
4954         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4955         (TARGET_TRAMPOLINE_INIT): New.
4956         (mmix_trampoline_size): Remove.
4957         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4958         make static.  Remove out-of-date tetra vs octa comment.
4959         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4960         make static; update for hook parameters.
4961         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4962         (INITIALIZE_TRAMPOLINE): Remove.
4963         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4964         (TRAMPOLINE_ALIGNMENT): New.
4965         * gcc/config/mmix/mmix-protos.h: Update.
4966
4967         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4968         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4969         mn10300_trampoline_init): New.
4970         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4971         mn10300_asm_trampoline_template.
4972         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4973
4974         * config/moxie/moxie.c (moxie_static_chain,
4975         moxie_asm_trampoline_template, moxie_trampoline_init,
4976         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4977         TARGET_TRAMPOLINE_INIT): New.
4978         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4979         moxie_trampoline_init.
4980         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4981         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4982
4983         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4984         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4985         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4986         pa_trampoline_adjust_address): New.
4987         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4988         pa_asm_trampoline_template.
4989         (TRAMPOLINE_ALIGNMENT): New.
4990         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4991         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4992         adjust for hook parameters.
4993         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4994
4995         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4996         (TARGET_TRAMPOLINE_INIT): New.
4997         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4998         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4999
5000         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
5001
5002         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
5003         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
5004         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
5005         make static; adjust parameters for the hook.
5006         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
5007
5008         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
5009         s390_trampoline_template; make static.
5010         (s390_trampoline_init): Rename from s390_initialize_trampoline;
5011         make static; adjust for target hook.
5012         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
5013         * config/s390/s390-protos.h: Remove trampoline decls.
5014         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
5015         (TRAMPOLINE_TEMPLATE): Remove.
5016         (TRAMPOLINE_ALIGNMENT): New.
5017
5018         * config/score/score-protos.h (score_initialize_trampoline): Remove.
5019         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5020         (TARGET_TRAMPOLINE_INIT): New.
5021         (score_asm_trampoline_template): New.
5022         (score_trampoline_init): Rename from score_initialize_trampoline;
5023         make static; adjust for hook parameters.
5024         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
5025         score[37]_asm_trampoline_template.
5026         (INITIALIZE_TRAMPOLINE): Remove.
5027         * config/score/score3.c (score3_asm_trampoline_template): New.
5028         (score3_trampoline_init): Rename from score3_initialize_trampoline;
5029         adjust for target hook.
5030         * config/score/score7.c (score7_asm_trampoline_template): New.
5031         (score7_trampoline_init): Rename from score7_initialize_trampoline;
5032         adjust for target hook.
5033         * config/score/score3.h, config/score/score7.h: Update.
5034
5035         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
5036         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
5037         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5038         (sh_trampoline_init): Rename from sh_initialize_trampoline;
5039         make static; adjust for target hook parameters.
5040         (sh_trampoline_adjust_address): New.
5041         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
5042         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
5043
5044         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
5045         (sparc32_initialize_trampoline): Rename from
5046         sparc_initialize_trampoline; make static; replace tramp parameter
5047         with m_tramp and update memory accesses.
5048         (sparc64_initialize_trampoline): Similarly.
5049         (sparc_trampoline_init): New.
5050         * config/sparc/sparc-protos.h: Remove trampoline decls.
5051         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
5052         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
5053
5054         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
5055         (array_to_constant): Make ARR parameter const.
5056         (spu_trampoline_init): Rename from spu_initialize_trampoline;
5057         make static; update for hook parameters.
5058         * config/spu/spu-protos.h: Update decls.
5059         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
5060
5061         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
5062         from xstormy16_initialize_trampoline; make static; update for
5063         hook parameters.
5064         (TARGET_TRAMPOLINE_INIT): New.
5065         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
5066
5067         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5068         (TARGET_TRAMPOLINE_INIT): New.
5069         (v850_can_eliminate): Make static.
5070         (v850_asm_trampoline_template, v850_trampoline_init): New.
5071         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
5072         v850_asm_trampoline_template.
5073         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
5074         and adjust for target hook parameters.
5075
5076         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5077         (TARGET_TRAMPOLINE_INIT): New.
5078         (vax_asm_trampoline_template, vax_trampoline_init): New.
5079         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
5080         vax_asm_trampoline_template.
5081         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
5082
5083         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5084         (TARGET_TRAMPOLINE_INIT): New.
5085         (xtensa_asm_trampoline_template): Rename from
5086         xtensa_trampoline_template; make static.
5087         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
5088         make static; update for hook parameters.
5089         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
5090         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
5091         (INITIALIZE_TRAMPOLINE): Remove.
5092
5093         * config/i386/i386.c (ix86_function_regparm): Do not issue an
5094         error for nested functions with regparm=3.
5095         (ix86_compute_frame_layout): Adjust frame pointer offset for
5096         ix86_static_chain_on_stack.
5097         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
5098         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
5099         don't reset to UNITS_PER_WORD.
5100         (ix86_emit_leave): Adjust ix86_cfa_state.
5101         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
5102         (ix86_static_chain): New.
5103         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
5104         make static; update for target hook parameters; use ix86_static_chain.
5105         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5106         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
5107         (INITIALIZE_TRAMPOLINE): Remove.
5108         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
5109         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
5110         to the end.  Add static_chain_on_stack.
5111         (ix86_static_chain_on_stack): New.
5112
5113         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
5114         (m68k_output_mi_thunk): Don't use static_chain_rtx.
5115         (m68k_trampoline_init): New.
5116         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
5117         m68k_trampoline_init and adjust for hook parameters.
5118         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
5119         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
5120
5121 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
5122
5123         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
5124         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
5125
5126         * reload1.c (reload): Call wrap_constant when substituting
5127         reg for equiv inside of DEBUG_INSNs.
5128
5129         PR bootstrap/41405
5130         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
5131         add_call_src_coords_attributes, add_high_low_attributes,
5132         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
5133         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
5134         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
5135         when -gdwarf-2 -gstrict-dwarf.
5136         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
5137         -gdwarf-[23] -gstrict-dwarf.
5138         (address_of_int_loc_descriptor, loc_descriptor,
5139         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
5140         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
5141         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
5142
5143 2009-09-22  Richard Guenther  <rguenther@suse.de>
5144
5145         PR tree-optimization/41428
5146         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
5147         (ccp_finalize): Pass it to substitute_and_fold.
5148
5149 2009-09-22  Richard Guenther  <rguenther@suse.de>
5150
5151         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
5152         (substitute_and_fold): Adjust prototype.
5153         * tree-vrp.c (vrp_evaluate_conditional): Make static.
5154         (simplify_stmt_using_ranges): Likewise.
5155         (fold_predicate_in): Move here from tree-ssa-propagate.c.
5156         (vrp_fold_stmt): New function.
5157         (vrp_finalize): Pass it to substitute_and_fold.
5158         * tree-flow.h (vrp_evaluate_conditional): Remove.
5159         (simplify_stmt_using_ranges): Likewise.
5160         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
5161         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5162         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
5163         member.
5164         (fold_predicate_in): Move to tree-vrp.c.
5165         (substitute_and_fold): Use the callback instead of calling into
5166         tree-vrp.c functions directly.
5167
5168 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
5169
5170         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
5171         comparison warning on rs6000.
5172
5173         PR middle-end/41429
5174         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
5175         GIMPLE_EH_MUST_NOT_THROW cleanup.
5176         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5177
5178 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
5179
5180         PR middle-end/41260
5181         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
5182         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
5183         LIB_SPEC for darwin10 and later since it always uses the unwinder in
5184         libSystem which is derived from the gcc 4.2.1 unwinder.
5185
5186 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5187
5188         PR middle-end/41357
5189         * varasm.c (default_encode_section_info): Copy TLS model into
5190         sym_ref flags regardless of backend support for TLS, for all
5191         model types except TLS_MODEL_EMULATED.
5192
5193 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5194
5195         PR bootstrap/41404
5196         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
5197         we can handle it correctly.
5198
5199 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
5200
5201         * doc/install.texi (os2): Remove section.
5202
5203 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
5204
5205         * doc/standards.texi (Objective-C): Adjust two URLs.
5206
5207 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
5208
5209         * tree-tailcall.c (process_assignment): Don't check if a
5210         multiplication or an addition are already present.
5211         (find_tail_calls): Combine multiple additions and multiplications.
5212         (adjust_accumulator_values): Emit accumulators.
5213
5214 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
5215
5216         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
5217         xmm register restore.
5218
5219 2009-09-21  Jan Hubicka  <jh@suse.cz>
5220
5221         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
5222         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
5223         restore at the end.
5224
5225 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
5226
5227         * stor-layout.c (layout_type): Remove obsolete code.
5228
5229 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
5230
5231         PR middle-end/41395
5232         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
5233
5234 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5235
5236         PR middle-end/30789
5237         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
5238         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
5239         (fold_builtin_2, do_mpc_arg1): Update accordingly.
5240         * fold-const.c (const_binop): Likewise.
5241         * real.h (do_mpc_arg2): Update prototype.
5242
5243 2009-09-20  Jan Hubicka  <jh@suse.cz>
5244
5245         * dwarf2out.c (add_const_value_attribute): Return true if successful.
5246         (add_location_or_const_value_attribute): Rewrite using
5247         loc_list_from_tree.
5248         (tree_add_const_value_attribute): Return true if successful.
5249         (tree_add_const_value_attribute_for_decl): Likewise.
5250
5251         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
5252         (loc_descriptor): ... here;
5253         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5254         (cst_pool_loc_descr): Break out from ...; do not reffer constant
5255         pool items that was not marked for output.
5256         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
5257         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5258         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5259         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
5260         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
5261         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
5262         DW_OP_stack_value to get address of items that are not available
5263         as addresses.
5264         (dw_loc_list): Handle single element lists correctly.
5265
5266 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
5267             Pascal Obry  <obry@adacore.com>
5268
5269         * unwind-dw2-fde.c (classify_object_over_fdes):
5270         Cast the constant 1 to _Unwind_Ptr.
5271         (add_fdes): Likewise.
5272         (linear_search_fdes): Likewise.
5273
5274 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
5275
5276         * stor-layout.c (set_sizetype): Avoid useless type copy.
5277
5278 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
5279
5280         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
5281         feature check.
5282         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
5283         * configure, config.in: Regenerate.
5284         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
5285         DW_EH_PE_absptr.
5286         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
5287         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
5288         for global data if the output could be used in a shared library.
5289         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
5290         to 0 if TARGET_WRITABLE_EH_FRAME.
5291
5292 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
5293
5294         PR rtl-optimization/39886
5295         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
5296         just when insn is equal to BB_END (bb).
5297
5298 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
5299
5300         * config/mips/mips.opt (mrelax-pic-calls): New option.
5301         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
5302         the file.
5303         (mips_unspec_call): Change "unspec_call" expander into this.
5304         (mips_strip_unspec_call): New function.
5305         (mips_got_load): Call mips_unspec_call instead of
5306         gen_unspec_call<mode>.
5307         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
5308         MIPS_CALL.
5309         (mips_cfg_in_reorg): New function.
5310         (mips16_lay_out_constants): Use it to decide whether to call
5311         CFG-aware insn splitting.
5312         (r10k_insert_cache_barriers): Move CFG set-up code from here to
5313         mips_reorg.  Move DF set-up code from here ...
5314         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
5315         from here.
5316         (mips_reorg): Call mips_df_reorg instead of
5317         r10k_insert_cache_barriers.  Move CFG set-up code here from
5318         r10k_insert_cache_barriers.
5319         (mips_call_expr_from_insn): New function.
5320         (mips_pic_call_symbol_from_set): Likewise.
5321         (mips_find_pic_call_symbol): Likewise.
5322         (mips_annotate_pic_call_expr): Likewise.
5323         (mips_get_pic_call_symbol): Likewise.
5324         (mips_annotate_pic_calls): Likewise.
5325         (mips_override_options): Disable -mrelax-pic-calls unless PIC
5326         calls are used.
5327         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
5328         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
5329         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
5330         directive.
5331         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
5332         (unspec_call<mode>): Remove it.
5333         (sibcall_internal, sibcall_value_internal,
5334         sibcall_value_multiple_internal, call_internal, call_split,
5335         call_value_internal, call_value_split,
5336         call_value_multiple_internal, call_value_multiple_split): Pass
5337         SIZE_OPNO to MIPS_CALL.
5338         (call_internal_direct, call_direct_split,
5339         call_value_internal_direct, call_value_direct_split): Pass -1 as
5340         SIZE_OPNO to MIPS_CALL.
5341         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
5342         * configure: Regenerate.
5343         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
5344         and -mno-relax-pic-calls.
5345         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
5346
5347 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5348
5349         PR bootstrap/35619
5350         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
5351         in the directory this rule is called from, rather than the
5352         toplevel 'gcc' directory, to fix in-tree build.
5353
5354 2009-09-19  Chris Demetriou  <cgd@google.com>
5355
5356         PR preprocessor/28435:
5357         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
5358         to cpplib that the preprocessor output is needed.
5359
5360 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
5361
5362         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
5363         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
5364         *return_and_restore_fpregs_<mode>,
5365         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
5366
5367         PR bootstrap/41397
5368         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
5369         instead of assuming it has always a REG inside of it.
5370
5371 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
5372
5373         * config/freebsd.h: Update comment on types.
5374         (WINT_TYPE): Define.
5375
5376 2009-09-18  Jason Merrill  <jason@redhat.com>
5377
5378         * c.opt: Add -fno-deduce-init-list.
5379
5380 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
5381
5382         * value-prof.c (interesting_stringop_to_profile_p): Added output
5383         argument to indicate which parameter is the size parameter.
5384         * value-prof.c (gimple_stringop_fixed_value): Use
5385         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
5386         * value-prof.c (gimple_stringops_transform): Update call sites to
5387         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
5388
5389 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
5390
5391         PR target/38288
5392         From David Binderman <dcb314@hotmail.com>:
5393         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
5394         local variable f.  Remove stale comments.
5395         (ix86_compute_frame_layout): Remove useless local variable total_size.
5396         Remove #if 0'd code.
5397         (legitimate_address_p): Remove useless local variables
5398         reason_rtx and reason.
5399         (ix86_split_copysign_const): Remove useless local variable op1.
5400         (scale_counter): Remove useless local variable piece_size_mask.
5401
5402 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
5403
5404         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
5405         output decl.
5406
5407 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5408
5409         PR target/40913
5410         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
5411
5412 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
5413
5414         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
5415         TYPE_STUB_DECL.
5416
5417 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
5418
5419         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
5420         DW_OP_implicit_value even without dwarf_version 4.
5421
5422 2009-09-17  Jan Hubicka  <jh@suse.cz>
5423
5424         * dwarf2out.c: Include tree-pass.h and gimple.h.
5425         (loc_list_plus_const): New function.
5426         (loc_descriptor_from_tree_1): Rename to ...
5427         (loc_descriptor_from_tree): ... remove original.
5428         (loc_list_from_tree): New function.
5429         (add_AT_location_description): Accept location list.
5430         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5431         (concatn_mem_loc_descriptor): Remove.
5432         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5433         returning NULL.
5434         (secname_for_decl): Move up.
5435         (hidden_reference_p): New function; break out from ...
5436         (loc_by_refernece): ... here; move up.
5437         (dw_loc_list): New function.
5438         (single_element_loc_list): New function.
5439         (single_element_loc_list_p): New function.
5440         (add_loc_descr_to_each): New function.
5441         (add_loc_list): New function.
5442         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5443         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5444         add diagnostics why expansion failed.
5445         (add_location_or_const_value_attribute): Support location lists.
5446         (add_bound_info): Likewise.
5447         (descr_info_loc): Update call of loc_descriptor_from_tree.
5448         (gen_variable_die): Work on location lists.
5449         * final.c (pass_final): Add dump file.
5450         * Makefile.in (dwarf2out.o): Add new dependencies.
5451
5452 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
5453
5454         PR c/41049
5455         * real.c decimal_from_integer, decimal_integer_string): New.
5456         (real_from_integer): Use them as special case for decimal float.
5457         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5458         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5459         Do not append zero after the decimal point in string to convert.
5460
5461 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
5462
5463         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5464         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
5465
5466 2009-09-17  Martin Jambor  <mjambor@suse.cz>
5467
5468         * common.opt (fipa-sra): New switch.
5469         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5470         * timevar.def (TV_IPA_SRA): New timevar.
5471         * params.def (ipa-sra-ptr-growth-factor): New parameter.
5472         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5473         * tree-sra.c: Include cgraph.c.
5474         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5475         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5476         and grp_not_necessarilly_dereferenced.
5477         (func_param_count): New variable.
5478         (encountered_apply_args): New variable.
5479         (bb_dereferences): New variable.
5480         (final_bbs): New variable.
5481         (no_accesses_representant): New variable.
5482         (no_accesses_p): New function.
5483         (dump_access): Dump the new fields.
5484         (sra_initialize): Set encountered_apply_args to false.
5485         (get_ssa_base_param): New function.
5486         (mark_parm_dereference): New function.
5487         (create_access): Caring for INIDRECT_REFs and different handling of
5488         varialble length accesses in early IPA SRA.  Store the stmt - a new
5489         parameter - to the new access.
5490         (build_access_from_expr_1): New parameter stmt, passed to
5491         create_access.  Handle INDIRECT_REFs.
5492         (build_access_from_expr): Pass the current statement to
5493         build_access_from_expr_1.
5494         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5495         passes.
5496         (build_accesses_from_assign): Pass the current statement to
5497         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
5498         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
5499         final_bbs when necessary.  Check for calls to __builtin_apply_args.
5500         Fixup EH info if anythng was changed.
5501         (is_unused_scalar_param): New function.
5502         (ptr_parm_has_direct_uses): New function.
5503         (find_param_candidates): New function.
5504         (mark_maybe_modified): New function.
5505         (analyze_modified_params): New function.
5506         (propagate_dereference_distances): New function.
5507         (dump_dereferences_table): New function.
5508         (analyze_caller_dereference_legality): New function.
5509         (unmodified_by_ref_scalar_representative): New function.
5510         (splice_param_accesses): New function.
5511         (decide_one_param_reduction): New function.
5512         (enum ipa_splicing_result): New type.
5513         (splice_all_param_accesses): New function.
5514         (get_param_index): New function.
5515         (turn_representatives_into_adjustments): New function.
5516         (analyze_all_param_acesses): New function.
5517         (get_replaced_param_substitute): New function.
5518         (get_adjustment_for_base): New function.
5519         (replace_removed_params_ssa_names): New function.
5520         (sra_ipa_reset_debug_stmts): New function.
5521         (sra_ipa_modify_expr): New function.
5522         (sra_ipa_modify_assign): New function.
5523         (convert_callers): New function.
5524         (modify_function): New function.
5525         (ipa_sra_preliminary_function_checks): New function.
5526         (ipa_early_sra): New function.
5527         (ipa_early_sra_gate): New function.
5528         (pass_early_ipa_sra): New variable.
5529         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5530
5531 2009-09-17  Michael Matz  <matz@suse.de>
5532
5533         PR middle-end/41347
5534         * tree.c (build_type_attribute_qual_variant): Export.
5535         * tree.h (build_type_attribute_qual_variant): Declare.
5536         * tree-inline.c (remap_type_1): Use it to build variants with
5537         the original qualifiers and attributes.
5538
5539 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5540
5541         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5542         without a fallthrough edge.
5543
5544 2009-09-16  DJ Delorie  <dj@redhat.com>
5545
5546         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5547         chip and ignore the "fast_interrupt" attribute if so.
5548
5549 2009-09-16  Richard Henderson  <rth@redhat.com>
5550
5551         PR middle-end/41360
5552         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5553         barrier fix.
5554
5555 2009-09-16  Richard Henderson  <rth@redhat.com>
5556
5557         PR target/41246
5558         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5559         is set only if DECL_NO_STATIC_CHAIN is unset.
5560         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5561         (FOR_EACH_NEST_INFO): New.
5562         (walk_all_functions): Use it.
5563         (finalize_nesting_tree): Likewise.
5564         (unnest_nesting_tree): Likewise.
5565         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5566         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5567         (convert_gimple_call): Early out if gimple_call_chain already set.
5568         (convert_all_function_calls): Iterate until no new functions
5569         require a static chain.
5570         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5571         when building a trampoline.  Use dump_function_to_file instead
5572         of dump_function.
5573         (lower_nested_functions): Open dump_file.  Validate that decls
5574         that have DECL_NO_STATIC_CHAIN from the front end don't have that
5575         bit reset by this pass.
5576
5577 2009-09-16  Michael Matz  <matz@suse.de>
5578
5579         PR fortran/41212
5580         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5581         shorten decl_common_unused.
5582         (DECL_RESTRICTED_P): New accessor.
5583         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5584         to disambiguate marked decls and restrict pointers.
5585
5586 2009-09-16  Richard Henderson  <rth@redhat.com>
5587
5588         PR middle-end/41360
5589         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5590
5591 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
5592
5593         * integrate.c (set_block_abstract_flags): Call
5594         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5595
5596 2009-09-16  Richard Guenther  <rguenther@suse.de>
5597
5598         PR middle-end/34011
5599         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5600         as non-aliased.
5601
5602 2009-09-16  DJ Delorie  <dj@redhat.com>
5603             Kaz Kojima  <kkojima@gcc.gnu.org>
5604
5605         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5606         (sh_expand_prologue): Update calls to output_stack_adjust.
5607         (sh_expand_epilogue): Likewise.
5608
5609 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
5610
5611         PR bootstrap/41349
5612         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5613         trying to limit the extent of searches in the insn stream.
5614
5615 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
5616             Jakub Jelinek  <jakub@redhat.com>
5617
5618         PR target/41175
5619         PR target/40677
5620         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5621         problem.
5622         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5623         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5624         (rs6000_savres_strategy): Always save FP registers inline if the
5625         target doesn't support hardware double-precision.  Set the above
5626         bits in return value when needed.
5627         (rs6000_savres_routine_sym): Fix computation for cache selector.
5628         Mark the generated symbol as a function.  Rename exitp argument to
5629         lr.  Move code for determining the name of the symbol...
5630         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
5631         getting the names right on AIX and 64-bit Linux.
5632         (savres_routine_name): New variable.
5633         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
5634         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
5635         on what the target routine uses as a base register.  If savep && lr
5636         describe saving of r0 into memory slot.
5637         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
5638         line calls for AIX ABI.
5639         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5640         determine FP save/restore functions.
5641         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5642         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
5643         gen_addsi3.
5644         (rs6000_emit_epilogue): Adjust computation of restore_lr.
5645         Duplicate restoration of LR and execute the appropriate one
5646         depending on whether GPRs are being restored inline.  Set r11 from
5647         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5648         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
5649         Fix out of line calls for AIX ABI.
5650         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5651         New insn.
5652         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5653         register 11.
5654         (*restore_gpregs_spe): Likewise.
5655         (*return_and_restore_gpregs_spe): Likewise.
5656         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5657         Define to empty string unconditionally.
5658         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5659         Define to empty string unconditionally.
5660         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5661         !TARGET_64BIT.
5662
5663 2009-09-15  Jan Hubicka  <jh@suse.cz>
5664
5665         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5666         * params.def (inline-insns-auto): Likewise.
5667
5668 2009-09-15  Martin Jambor  <mjambor@suse.cz>
5669
5670         * ipa-inline.c (estimate_function_body_sizes): Dump info about
5671         individual statements only at TDF_DETAILS dump level.  Format
5672         source for 80 characters per line.
5673
5674 2009-09-15  Christian Bruel  <christian.bruel@st.com>
5675
5676         * regrename.c (do_replace): Update REG_DEAD notes.
5677
5678 2009-09-15  Revital Eres  <eres@il.ibm.com>
5679
5680         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5681         * targhooks.c (default_builtin_support_vector_misalignment):
5682         New builtin function.
5683         * targhooks.h (default_builtin_support_vector_misalignment):
5684         Declare.
5685         * target.h (builtin_support_vector_misalignment):
5686         New field in struct gcc_target.
5687         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5688         new builtin function.
5689         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5690         Define.
5691         * config/rs6000/rs6000.c
5692         (rs6000_builtin_support_vector_misalignment): New function.
5693         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5694
5695 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
5696
5697         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5698         instead of INSN_P.
5699         (bfin_optimize_loop): Likewise.
5700         (bfin_gen_bundles): Likewise.
5701         (workaround_speculation): Likewise.
5702         (find_load): Return NULL_RTX for debug_insn.
5703
5704 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
5705
5706         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5707         (sminsf3): Ditto.
5708
5709 2009-09-14  DJ Delorie  <dj@redhat.com>
5710
5711         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5712         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5713         VLIW mode.
5714
5715 2009-09-14  Richard Henderson  <rth@redhat.com>
5716             Jakub Jelinek  <jakub@redhat.com>
5717
5718         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5719         * cfgbuild.c (make_edges): Handle asm goto.
5720         * cfglayout.c (fixup_reorder_chain): Likewise.
5721         * cfgrtl.c (patch_jump_insn): Likewise.
5722         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5723         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5724         (gimple_build_asm_vec): Add and use labels parameter.
5725         (gimple_build_asm): Remove.
5726         (walk_gimple_asm): Walk labels too.
5727         * gimple.def (GIMPLE_ASM): Update docs.
5728         * gimple.h: Update decls.
5729         (struct gimple_statement_asm): Change nc to use unsigned char;
5730         add nl member.
5731         (gimple_asm_nlabels): New.
5732         (gimple_asm_label_op, gimple_asm_set_label_op): New.
5733         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5734         into gimple_build_asm_vec.
5735         * jump.c (mark_jump_label_asm): New.
5736         (mark_jump_label): Use it.
5737         (redirect_jump_1): Handle asm goto.
5738         (invert_jump_1): Soft fail if X is null.
5739         * recog.c (extract_asm_operands): New.
5740         (asm_noperands): Use it; handle asm labels.
5741         (decode_asm_operands): Use extract_asm_operands.
5742         (asm_operand_ok): Properly handle empty string.
5743         * reg-stack.c (get_asm_operands_in_out): Rename from
5744         get_asm_operand_n_inputs; use extract_asm_operands; return both
5745         inputs and outputs by reference; update all callers.
5746         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5747         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5748         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5749         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5750         (extract_asm_operands): Declare.
5751         * stmt.c (expand_asm_operands): Add and use labels parameter.
5752         (check_unique_operand_names): Likewise.
5753         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5754         (expand_asm_stmt): Handle asm labels.
5755         * tree-cfg.c (make_gimple_asm_edges): New.
5756         (make_edges): Use it.
5757         (cleanup_dead_labels): Handle asm labels.
5758         (is_ctrl_altering_stmt): Likewise.
5759         (gimple_redirect_edge_and_branch): Likewise.
5760         * tree.def (ASM_EXPR): Add 5th operand.
5761         * tree.h (ASM_LABELS): New.
5762         (resolve_asm_operand_names): Update decl.
5763
5764         * c-parser.c (c_parser_asm_statement): Parse asm goto.
5765         (c_parser_asm_goto_operands): New.
5766         * c-tree.h (build_asm_expr): Update decl.
5767         * c-typeck.c (build_asm_expr): Add and use labels parameter.
5768         * doc/extend.texi: Document asm goto.
5769
5770 2009-09-14  Richard Henderson  <rth@redhat.com>
5771
5772         * except.h: Update declarations.
5773         (struct pointer_map_t): Forward declare.
5774         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5775         (struct eh_landing_pad_d, eh_landing_pad): New.
5776         (struct eh_catch_d, eh_catch): New.
5777         (struct eh_region_d): Remove next_region_sharing_label, aka,
5778         label, tree_label, landing_pad, post_landing_pad, resume,
5779         may_contain_throw.  Rename region_number to index.  Remove
5780         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
5781         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5782         (VEC(eh_landing_pad,gc)): New.
5783         (struct eh_status): Remove last_region_number.  Add lp_array,
5784         throw_stmt_table, ttype_data, ehspec_data.
5785         (ehr_next, FOR_ALL_EH_REGION_AT): New.
5786         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5787         * except.c (lang_protect_cleanup_actions): Return tree.
5788         (struct ehl_map_entry): Remove.
5789         (init_eh_for_function): Push zero entries for region and lp_array.
5790         (gen_eh_region): Add to region_array immediately.
5791         (gen_eh_region_catch): Operate on eh_catch objects.
5792         (gen_eh_landing_pad): New.
5793         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5794         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5795         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5796         (get_eh_landing_pad_from_number_fn): New.
5797         (get_eh_landing_pad_from_number): New.
5798         (get_eh_region_from_lp_number_fn): New.
5799         (get_eh_region_from_lp_number): New.
5800         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5801         (get_exception_pointer, get_exception_filter): Remove.
5802         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5803         (current_function_has_exception_handlers): Simplify.
5804         (bring_to_root, eh_region_replaceable_by_p): Remove.
5805         (replace_region, hash_type_list, hash_eh_region): Remove.
5806         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5807         (label_to_region_map, num_eh_regions): Remove.
5808         (get_next_region_sharing_label, must_not_throw_labels): Remove.
5809         (find_exception_handler_labels): Remove.
5810         (duplicate_eh_regions_0, find_prev_try): Remove.
5811         (struct duplicate_eh_regions_data): New.
5812         (duplicate_eh_regions_1): Rewrite.
5813         (duplicate_eh_regions): Return a pointer map instead of an
5814         integer offset.
5815         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5816         (redirect_eh_edge_to_label): Remove.
5817         (eh_region_outermost): Rewrite using eh_region pointers
5818         instead of integers.
5819         (add_ttypes_entry): Update for ttype_data move to eh_status.
5820         (add_ehspec_entry): Rewrite with VEC instead of varray.
5821         (assign_filter_values): Likewise.  Export.
5822         (build_post_landing_pads, connect_post_landing_pads): Remove.
5823         (dw2_build_landing_pads): Rewrite to use lp_array.
5824         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5825         (sjlj_assign_call_site_values): Rewrite to use lp_array.
5826         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5827         (sjlj_mark_call_sites): Update for landing pad numbers.
5828         (finish_eh_generation): Rewrite.
5829         (gate_handle_eh): Do nothing for no eh tree.
5830         (pass_rtl_eh): Move up near finish_eh_generation.
5831         (remove_eh_landing_pad): New.
5832         (remove_eh_handler): Export.
5833         (remove_eh_region, remove_eh_handler_and_replace): Remove.
5834         (for_each_eh_label): Rewrite to use lp_array.
5835         (make_reg_eh_region_note): New.
5836         (make_reg_eh_region_note_nothrow_nononlocal): New.
5837         (insn_could_throw_p): New.
5838         (copy_reg_eh_region_note_forward): New.
5839         (copy_reg_eh_region_note_backward): New.
5840         (check_handled, add_reachable_handler): Remove.
5841         (reachable_next_level, foreach_reachable_handler): Remove.
5842         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5843         (get_eh_region_and_lp_from_rtx): New.
5844         (get_eh_region_from_rtx): New.
5845         (can_throw_internal_1, can_throw_external_1): Remove.
5846         (can_throw_internal): Use get_eh_region_from_rtx.
5847         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5848         (insn_nothrow_p, can_nonlocal_goto): New.
5849         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5850         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5851         (add_action_record): Use VEC not varray.
5852         (collect_one_action_chain): Update for eh_region changes.
5853         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
5854         Use get_eh_region_and_lp_from_rtx.
5855         (gate_convert_to_eh_region_ranges): New.
5856         (pass_convert_to_eh_region_ranges): Use it.
5857         (push_uleb128, push_sleb128): Use VEC not varray.
5858         (output_one_function_exception_table): Likewise.
5859         (dump_eh_tree): Update for eh_region changes.
5860         (verify_eh_tree): Likewise.
5861         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5862         * tree-eh.c: Include target.h.
5863         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5864         Don't disallow GIMPLE_RESX; adjust argument check.
5865         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5866         (record_stmt_eh_region): Update for landing pad numbers;
5867         generate a landing pad if necessary.
5868         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5869         (remove_stmt_from_eh_lp_fn): Similarly.
5870         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5871         Update for lp numbers; don't special case missing throw_stmt_table.
5872         (lookup_expr_eh_lp): Similarly.
5873         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5874         (eh_seq, eh_region_may_contain_throw): New.
5875         (struct leh_state): Add ehp_region.
5876         (struct leh_tf_state): Remove eh_label.
5877         (emit_post_landing_pad): New.
5878         (emit_resx, emit_eh_dispatch): New.
5879         (note_eh_region_may_contain_throw): New.
5880         (frob_into_branch_around): Take eh_region not eh label;
5881         emit eh code into eh_seq.
5882         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
5883         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
5884         lower_eh_must_not_throw.  Emit code to eh_seq.
5885         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5886         (lower_try_finally_onedest): Likewise.
5887         (lower_try_finally_copy): Likewise.
5888         (lower_try_finally_switch): Likewise.
5889         (lower_try_finally): Initialize ehp_region.
5890         (lower_catch): Update for eh_catch objects.
5891         (lower_eh_filter): Don't handle must_not_throw.
5892         (lower_eh_must_not_throw): New.
5893         (lower_cleanup): Don't set eh_label.
5894         (lower_eh_constructs_2): Resolve eh builtins.
5895         Handle GIMPLE_EH_MUST_NOT_THROW.
5896         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5897         Add eh_seq to the end of the function body.
5898         (make_eh_dispatch_edges): New.
5899         (make_eh_edge): Remove.
5900         (make_eh_edges): Simplify for landing pads.
5901         (redirect_eh_edge_1): New.
5902         (redirect_eh_edge): Use it.
5903         (redirect_eh_dispatch_edge): New.
5904         (stmt_could_throw_p): Use a switch.  Allow RESX.
5905         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5906         (stmt_can_throw_internal): Likewise.
5907         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5908         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5909         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5910         (gate_refactor_eh): New.
5911         (pass_refactor_eh): Use it.
5912         (lower_resx, execute_lower_resx, pass_lower_resx): New.
5913         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5914         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5915         (remove_unreachable_handlers): Rename from
5916         tree_remove_unreachable_handlers; rewrite for landing pads;
5917         call remove_eh_handler directly.
5918         (remove_unreachable_handlers_no_lp): New.
5919         (unsplit_eh, unsplit_all_eh): New.
5920         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5921         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5922         (cleanup_empty_eh_unsplit): New.
5923         (cleanup_empty_eh): Rewrite.
5924         (cleanup_all_empty_eh): New.
5925         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
5926         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
5927         (gate_cleanup_eh): New.
5928         (pass_cleanup_eh): Use it.
5929         (verify_eh_edges): Move later in file.  Expect one EH edge.
5930         (verify_eh_dispatch_edge): New.
5931
5932         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5933         (gtype-desc.o): Add TARGET_H.
5934         (tree.o): Use EXCEPT_H, not except.h.
5935         (cfgbuild.o): Add EXPR_H.
5936         (GTFILES): Add vecprim.h.
5937         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5938         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5939         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5940         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5941         * calls.c (emit_call_1): Use make_reg_eh_region_note.
5942         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5943         calls to can_throw_internal.
5944         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5945         (make_edges): Don't handle RESX; use can_nonlocal_goto.
5946         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5947         (expand_gimple_stmt): Use make_reg_eh_region_note.
5948         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5949         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5950         or find_exception_handler_labels.
5951         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
5952         there is exacly one EH edge.  Use can_nonlocal_goto and
5953         can_throw_internal.
5954         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5955         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5956         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5957         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5958         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5959         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5960         * dse.c (scan_insn): Use insn_could_throw_p.
5961         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5962         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5963         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5964         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5965         EXC_PTR_EXPR or FILTER_EXPR.
5966         (tree_expr_nonzero_warnv_p): Likewise.
5967         * function.h: Include vecprim.h, not varray.h
5968         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5969         move ttype_data and ehspec_data members to struct eh_status; change
5970         action_record_data member to a VEC.
5971         * gcse.c (hash_scan_set): Use can_throw_internal.
5972         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5973         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5974         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5975         (block_may_fallthru): Don't handle RESX_EXPR.
5976         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5977         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5978         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5979         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5980         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5981         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5982         (gimple_size): Likewise.
5983         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5984         (gimple_build_resx): Use gimple_build_with_ops.
5985         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5986         (is_gimple_val): Likewise.
5987         (is_gimple_stmt): Remove RESX_EXPR.
5988         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5989         (GIMPLE_RESX): Reorder with other EH constructs.
5990         * gimple.h (struct gimple_statement_eh_mnt): New.
5991         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5992         (gimple_eh_filter_must_not_throw): Remove.
5993         (gimple_eh_filter_set_must_not_throw): Remove.
5994         (gimple_eh_must_not_throw_fndecl): New.
5995         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5996         (is_gimple_resx): New.
5997         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5998         Don't copy EH_FILTER_MUST_NOT_THROW.
5999         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
6000         * ipa-inline.c (estimate_function_body_sizes): Don't try to
6001         handle must_not_throw_labels specially.
6002         * ipa-pure-const.c (check_call): Update debug statement for LP.
6003         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
6004         * ipa-utils.c (get_base_var): Likewise.
6005         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
6006         * lower-subreg.c (move_eh_region_note): Remove.
6007         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
6008         * omp-low.c (new_omp_context): Update for eh_lp_nr.
6009         (create_task_copyfn): Likewise.
6010         (maybe_catch_exception): Use gimple_build_eh_filter.
6011         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
6012         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
6013         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
6014         and pass_lower_resx.
6015         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
6016         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
6017         can_throw_internal, can_nonlocal_goto.
6018         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
6019         copy_reg_eh_region_note_forward.
6020         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
6021         (emit_output_reload_insns): Likewise.
6022         (copy_eh_notes): Remove.
6023         * rtl.def (RESX): Remove.
6024         * rtl.h: Update declarations.
6025         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
6026         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
6027         (update_eh_label): Remove.
6028         (cleanup_dead_labels_eh): New.
6029         (cleanup_deal_labels): Use it instead of update_eh_label.
6030         (gimple_merge_blocks): Update landing pad data structure when
6031         removing a landing pad label.
6032         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
6033         test; handle GIMPLE_EH_MUST_NOT_THROW.
6034         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
6035         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
6036         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
6037         (verify_stmt): Likewise.  Verify landing pads.
6038         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
6039         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
6040         (struct move_stmt_d): Add eh_map.
6041         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
6042         (move_stmt_r): Remap eh region numbers in builtin calls,
6043         resx and eh_dispatch.
6044         (move_block_to_fn): Remove eh_offset parameter.  Use
6045         maybe_duplicate_eh_stmt_fn.
6046         (find_outermost_region_in_block): Operate on eh_region pointers
6047         instead of region numbers.
6048         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
6049         duplicate_eh_regions.
6050         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
6051         test earlier.  Disallow EH landing pads.
6052         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
6053         * tree-flow.h: Update declarations.
6054         (struct tree_ann_common_d): Replace rn with lp_nr.
6055         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
6056         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
6057         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
6058         resx and eh_dispatch.
6059         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
6060         (copy_edges_for_bb): Use make_eh_dispatch_edges.
6061         (copy_cfg_body): Expect eh_map instead of eh_region_offset
6062         from duplicate_eh_regions.
6063         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
6064         update RESX; handle EH_DISPATCH.
6065         (expand_call_inline): Set eh_lp_nr, not eh_region.
6066         (maybe_inline_call_in_expr): Likewise.
6067         * tree-inline.h (struct copy_body_data): Replace eh_region with
6068         eh_lp_nr, eh_region_offset with eh_map.
6069         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
6070         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
6071         * tree-pretty-print.c (dump_generic_node): Don't handle
6072         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
6073         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
6074         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
6075         EXC_PTR_EXPR, FILTER_EXPR.
6076         * tree-ssa-operands.c (get_expr_operands): Likewise.
6077         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
6078         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6079         (ao_ref_init_from_vn_reference): Likewise.
6080         * tree-ssa-sink.c (statement_sink_location): Likewise.
6081         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6082         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
6083         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
6084         EXC_PTR_EXPR, FILTER_EXPR.
6085         (is_exception_related): Remove.
6086         (compute_avail): Don't call it.
6087         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
6088         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
6089         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
6090         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
6091         Build EH builtins.
6092         (build_resx): Remove.
6093         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
6094         * tree.h: Update declarations.
6095         (EH_FILTER_MUST_NOT_THROW): Remove.
6096         (struct tree_label_decl): Add eh_landing_pad_nr.
6097         (EH_LANDING_PAD_NR): New.
6098         * value-prof.c (gimple_ic): Tidy variable names.  Update for
6099         landing pad numbers.
6100         (gimple_stringop_fixed_value): Tidy variable names.  Assert
6101         that neither call stmt can throw.
6102         * vecprim.h (uchar): New.
6103         (VEC(uchar,heap), VEC(uchar,gc)): New.
6104
6105         * c-common.c (c_define_builtins): Update call to
6106         build_common_builtin_nodes.
6107         * c-parser.c (c_parse_file): Don't call
6108         default_init_unwind_resume_libfunc.
6109
6110 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6111
6112         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
6113         (mips_cprestore_address_p): Likewise.
6114         (mips_save_gp_to_cprestore_slot): Likewise.
6115         (mips_restore_gp): Rename to...
6116         (mips_restore_gp_from_cprestore_slot): ...this.
6117         (mips_must_initialize_gp_p): Declare.
6118         (mips_emit_save_slot_move): Likewise.
6119         (mips_output_load_label): Return nothing.
6120         (mips_eh_uses): Declare.
6121         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
6122         (TARGET_CPRESTORE_DIRECTIVE): New macro.
6123         (TARGET_ABSOLUTE_JUMPS): Likewise.
6124         (EH_USES): Likewise.
6125         (FIRST_PSEUDO_REGISTER): Update comment.
6126         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
6127         (MIPS_CALL): ...here.
6128         (REGISTER_NAMES): Add $cprestore.
6129         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
6130         Add load_label_length, has_inflexible_gp_insn_p,
6131         has_flexible_gp_insn_p, must_initialize_gp_p and
6132         must_restore_gp_when_clobbered_p.
6133         (mips_expand_call): Don't generate split instructions here.
6134         (mips_split_call): Update the call to mips_restore_gp after
6135         the above name change.
6136         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
6137         (mips_find_gp_ref): New function.
6138         (mips_insn_has_inflexible_gp_ref_p): Likewise.
6139         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
6140         (mips_insn_has_flexible_gp_ref_p): Likewise.
6141         (mips_cfun_has_flexible_gp_ref_p): Likewise.
6142         (mips_function_has_gp_insn): Delete.
6143         (mips_global_pointer): Drop the df_regs_ever_live_p check.
6144         Use the new functions above.  Only return INVALID_REGNUM
6145         for TARGET_ABSOLUTE_JUMPS.
6146         (mips_must_initialize_gp_p): New function.
6147         (mips_get_cprestore_base_and_offset): New function, extracted from...
6148         (mips_cprestore_slot): ...here.  Take a bool parameter.
6149         (mips_cfun_has_cprestore_slot_p): New function.
6150         (mips_cprestore_address_p): Likewise.
6151         (mips_save_gp_to_cprestore_slot): Likewise.
6152         (mips_restore_gp): Rename to...
6153         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
6154         epilogue_completed.  Update the call to mips_cprestore_slot.
6155         Test cfun->machine->must_restore_gp_when_clobbered_p.
6156         (mips_direct_save_slot_move_p): New function.
6157         (mips_emit_save_slot_move): Likewise.
6158         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
6159         of cfun->machine->global_pointer.
6160         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
6161         (mips_save_reg): Use mips_emit_save_slot_move.
6162         (mips_expand_prologue): Set must_initialize_gp_p.
6163         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
6164         for all cprestore saves.  Emit a use_cprestore instruction after
6165         setting up the cprestore slot.
6166         (mips_restore_reg): Use mips_emit_save_slot_move.
6167         (mips_process_load_label): New function.
6168         (mips_load_label_length): Likewise.
6169         (mips_output_load_label): Don't return asm: output it here instead.
6170         Use mips_process_load_label.
6171         (mips_adjust_insn_length): Adjust the length of branch instructions
6172         that have length MAX_PIC_BRANCH_LENGTH.
6173         (mips_output_conditional_branch): Update the call to
6174         mips_output_load_label.  Assume the branch target is OPERANDS[0]
6175         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
6176         (mips_output_order_conditional_branch): Swap the meaning of
6177         OPERANDS[0] and OPERANDS[1].
6178         (mips_variable_issue): Don't count ghost instructions.
6179         (mips_expand_ghost_gp_insns): New function.
6180         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
6181         (mips_output_mi_thunk): Set must_initialize_gp_p.
6182         (mips_eh_uses): New function.
6183         * config/mips/predicates.md (cprestore_save_slot_operand)
6184         (cprestore_load_slot_operand): New predicates.
6185         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
6186         (UNSPEC_MOVE_GP): Likewise.
6187         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
6188         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
6189         (CPRESTORE_SLOT_REGNUM): New register.
6190         (MAX_PIC_BRANCH_LENGTH): New constant.
6191         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
6192         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
6193         branches.  Fix commentary.
6194         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
6195         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
6196         Change type to "ghost".
6197         (loadgp_absolute_<mode>): Likewise.
6198         (loadgp_rtp_<mode>): Likewise.
6199         (copygp_mips16): Likewise.
6200         (loadgp_blockage): Remove redundant mode attribute.
6201         (potential_cprestore): New instruction.
6202         (cprestore): Turn into an unspec set.
6203         (use_cprestore): New instruction.
6204         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
6205         (*branch_fp_inverted): Likewise.
6206         (*branch_order<mode>): Likewise.
6207         (*branch_order<mode>_inverted): Likewise.
6208         (*branch_equality<mode>): Likewise.
6209         (*branch_equality<mode>_inverted): Likewise.
6210         (*branch_bit<bbv><mode>): Likewise.
6211         (*branch_bit<bbv><mode>_inverted): Likewise.
6212         (*branch_equality<mode>_mips16): Remove redundant mode.
6213         (jump): Turn into a define_expand.
6214         (*jump_absolute): New instruction.
6215         (*jump_pic): Likewise.
6216         (*jump_mips16): Rename previously-unnamed pattern.  Remove
6217         redundant mode attribute.
6218         (restore_gp): Split on epilogue_completed rather than
6219         reload_completed.  Change type to "ghost".
6220         (move_gp<mode>): New instruction.
6221         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
6222         Remove redundant mode attribute.
6223         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
6224         (bc1any4f, bc1any2t, bc1any2f): Likewise.
6225         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
6226
6227 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6228
6229         PR target/41210
6230         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
6231         are returned in the same register (vs34 or v2) that Altivec vector
6232         types are returned in.
6233         (rs6000_libcall_value): Ditto.
6234
6235         PR target/41331
6236         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
6237         instead of explicit addsi3/adddi3 calls.
6238         (rs6000_split_multireg_move): Ditto.
6239         (rs6000_emit_allocate_stack): Ditto.
6240         (rs6000_emit_prologue): Ditto.
6241         (rs6000_output_mi_thunk): Ditto.
6242
6243         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
6244         size is 64 bits if we can use 64-bit registers.
6245
6246 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
6247
6248         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
6249         symbols.
6250
6251         From Jie Zhang <jie.zhang@analog.com>:
6252         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
6253         save FP and RETS with saveall attribute.
6254         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
6255         with saveall attribute.
6256
6257         * config/bfin/bfin.c (bfin_expand_builtin,
6258         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
6259         operands.
6260
6261         From Jie Zhang <jie.zhang@analog.com>:
6262         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
6263         before use in two places.
6264         * config/bfin/bfin.md (AREG): Define mode iterator.
6265         (reload_in, reload_out): Use mode iterator AREG.
6266
6267 2009-09-14  Richard Guenther  <rguenther@suse.de>
6268
6269         PR middle-end/41350
6270         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
6271         EH personality path.
6272
6273 2009-09-13  Richard Guenther  <rguenther@suse.de>
6274             Rafael Avila de Espindola  <espindola@google.com>
6275
6276         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
6277         (LANG_HOOKS_EH_PERSONALITY): Likewise.
6278         (LANG_HOOKS_INITIALIZER): Adjust.
6279         (lhd_pass_through_t): Declare.
6280         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
6281         eh_personality.
6282         * langhooks.c (lhd_pass_through_t): New function.
6283         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
6284         dwarf2out_begin_prologue): Use personality from current_function_decl.
6285         * expr.h (get_personality_function): Declare.
6286         * expr.c (get_personality_function): New function.
6287         (build_personality_function): Likewise.
6288         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
6289         (eh_personality_libfunc): Remove.
6290         * optabs.c (build_libfunc_function): New function split out from ...
6291         (init_one_libfunc): ... here.
6292         * tree.h (DECL_FUNCTION_PERSONALITY): New.
6293         (tree_function_decl): Add personality.
6294         (lhd_gcc_personality): Declare.
6295         (build_personality_function): Likewise.
6296         * tree.c (gcc_eh_personality_decl): New.
6297         (lhd_gcc_personality): New function.
6298         * except.h (lang_eh_runtime_type): Remove.
6299         (enum eh_personality_kind): New.
6300         (build_personality_function): Declare.
6301         (function_needs_eh_personality): Declare.
6302         * except.c (lang_eh_runtime_type): Remove.
6303         (function_needs_eh_personality): New function.
6304         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
6305         (sjlj_emit_function_enter, output_function_exception_table):
6306         Use personality from current_function_decl.
6307         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
6308         * tree-inline.c (tree_can_inline_p): Do not inline across different
6309         EH personalities.
6310         (expand_call_inline): Likewise.  Adjust the callers EH personality.
6311         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
6312         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
6313         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
6314         (c-parser.o): Likewise
6315         * c-tree.h (c_eh_initialized_p): Remove.
6316         (c_maybe_initialize_eh): Likewise.
6317         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
6318         (finish_decl): Don't call c_maybe_initialize_eh.
6319         (c_eh_initialized_p): Remove.
6320         (c_maybe_initialize_eh): Likewise.
6321         * c-parser.c (c_parser_omp_construct): Likewise.
6322         (c_parse_file): Initialize exception handling.
6323
6324 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
6325
6326         * config.gcc (tm_file): Remove i386/biarch32.h
6327         for i?86-w64-mingw* case.
6328         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
6329         support.
6330         * config.host: Set for x64 mingw the option
6331         use_long_long_for_widest_fast_int to yes.
6332
6333 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
6334
6335         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6336         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
6337         (dbxout_begin_function): Likewise.
6338         * final.c (dwarf2_debug_info_emitted_p): New predicate.
6339         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
6340         set on the function.
6341         (final_end_function): Likewise.
6342         (final_scan_insn): Likewise.
6343         (rest_of_handle_final): Likewise.
6344         * varasm.c (assemble_start_function): Likewise.
6345         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6346
6347 2009-09-12  Jason Merrill  <jason@redhat.com>
6348
6349         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
6350         * opts.c (common_handle_option): constify.
6351
6352 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
6353
6354         * doc/install.texi (avr): Remove obsolete reference site.
6355
6356 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
6357
6358         * doc/install.texi (Binaries): Adjust AIX link.
6359
6360 2009-09-12  Akim Demaille  <demaille@gostai.com>
6361
6362         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
6363         Use an imperative sentence.
6364
6365 2009-09-11  Richard Henderson  <rth@redhat.com>
6366
6367         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
6368         structure-name and has-tree-operands arguments; update all entries.
6369         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
6370         update all entries.
6371         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
6372         (gsstruct_code_size): New.
6373         (gss_for_code_): New.
6374         (gss_for_code): Remove.
6375         (gimple_size): Rewrite using gsstruct_code_size.
6376         (gimple_statement_structure): Move to gimple.h.
6377         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
6378         (gss_for_code, gimple_statement_structure): New.
6379         (gimple_ops): Use new arrays; tidy.
6380
6381 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6382
6383         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
6384         operand to be a PLUS expression.
6385         * config/pa/pa.c (pa_secondary_reload): Likewise.
6386
6387 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
6388
6389         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
6390
6391         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
6392         XEXP (in_rtx, 8).
6393
6394 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6395
6396         From Jie Zhang <jie.zhang@analog.com>:
6397         * doc/extend.texi (node Function Attributes): Document l2
6398         function attribute.
6399         (node Blackfin Variable Attributes): Document l2 variable attributes.
6400
6401 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
6402
6403         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
6404         to match the system compiler's configuration at inflection point.
6405         Add comment to remark a remaining difference with system compiler.
6406
6407         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
6408         * configure: Regenerate.
6409
6410 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6411
6412         From Jie Zhang <jie.zhang@analog.com>:
6413         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
6414         (bfin_handle_l2_attribute): New.
6415         (bfin_attribute_table): Add l2 attribute.
6416
6417 2009-09-11  Michael Matz  <matz@suse.de>
6418
6419         PR middle-end/41275
6420         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
6421         on the local_decls list.
6422
6423 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
6424
6425         PR debug/41276
6426         PR debug/41307
6427         * cselib.c (cselib_expand_value_rtx_cb): Document callback
6428         interface.
6429         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
6430         for VALUEs, to implement the documented interface.
6431         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6432         Adjust for VALUEs and anything else, to implement the
6433         documented interface.
6434
6435 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
6436
6437         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6438         with actual SPE/paired vector modes before using 64-bit alignment.
6439         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6440
6441 2009-09-10  DJ Delorie  <dj@redhat.com>
6442
6443         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6444         emitted.
6445
6446         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6447         * config/mep/mep.c (mep_legitimate_constant_p): New.
6448         * config/mep/mep-protos.h: Prototype it.
6449
6450 2009-09-10  Richard Henderson  <rth@redhat.com>
6451
6452         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6453
6454 2009-09-10  Jason Merrill  <jason@redhat.com>
6455
6456         * tree.c (chain_index): New fn.
6457         * tree.h: Declare it.
6458
6459 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6460
6461         * config/sol2-c.c (cmn_err_length_specs): Initialize
6462         scalar_identity_flag.
6463
6464 2009-09-10  Richard Henderson  <rth@redhat.com>
6465
6466         * tree.h (struct tree_decl_common): Move align member earlier;
6467         move label_decl_uid member ...
6468         (struct tree_label_decl): ... here.
6469         (LABEL_DECL_UID): Update to match.
6470
6471         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6472         not TDF_DETAILS.
6473
6474         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6475         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6476
6477         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6478         dest_prev if the edge is complex.
6479
6480         * tree-cfg.c (is_ctrl_stmt): Use a switch.
6481
6482         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6483         loop latch tests earlier.
6484
6485         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6486         before GIMPLE_RETURN, not after its predecessor; insert
6487         before GIMPLE_RESX.
6488
6489         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6490         gimple_seq_empty_p to test for no PHI nodes.
6491         * tree-cfg.c (split_critical_edges): Likewise.
6492
6493         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6494
6495 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6496
6497         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6498         introduced by the VTA branch merge.
6499
6500 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6501
6502         * ira-conflicts.c: Use fputs or putc instead of fprintf
6503         where appropriate.
6504         * cfg.c: Ditto.
6505         * toplev.c: Ditto.
6506         * tree-switch-conversion.c: Ditto.
6507
6508 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6509
6510         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6511         introduced by the VTA branch merge.
6512
6513 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6514
6515         Revert:
6516         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6517
6518         PR rtl-optimization/39779
6519         * expr.c (convert_modes): Return when mode == oldmode after
6520         CONST_INTs are processed.
6521
6522 2009-09-10  Nick Clifton  <nickc@redhat.com>
6523
6524         * config/mep/mep.c (mep_encode_section_info): Copy weakness
6525         attribute and referring decl when creating renamed symbol.
6526
6527 2009-09-10  Richard Guenther  <rguenther@suse.de>
6528
6529         PR middle-end/41257
6530         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6531         reachable nodes.
6532         (cgraph_finalize_compilation_unit): Compute reachability
6533         before emitting thunks.  Properly process aliases before
6534         possibly removing unreachable nodes.
6535
6536 2009-09-10  Richard Guenther  <rguenther@suse.de>
6537
6538         PR middle-end/41254
6539         * tree.c (struct free_lang_data_d): Add worklist member.
6540         (find_decls_types_r): Push onto the worklist instead of recursing.
6541         Handle TREE_BINFOs properly.
6542         (find_decls_types): New function wrapped around find_decls_types_r
6543         to process the worklist.
6544         (find_decls_types_in_eh_region): Use it.
6545         (find_decls_types_in_node): Likewise.
6546         (find_decls_types_in_var): Likewise.
6547         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
6548         * tree.h (RECORD_OR_UNION_TYPE_P): New.
6549         (AGGREGATE_TYPE_P): Adjust.
6550
6551 2009-09-09  Jason Merrill  <jason@redhat.com>
6552
6553         * configure.ac: Check glibc version even if we have an in-tree
6554         assembler.
6555
6556 2009-09-09  Anthony Green  <green@moxielogic.com>
6557
6558         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6559         the constant 0 when appropriate.
6560         * config/moxie/constraints.md: Add constraint O.
6561
6562         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6563         to pass up to 6 32-bit argument values in registers.
6564         (moxie_function_arg): Ditto.
6565         (moxie_arg_partial_bytes): Ditto.
6566         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6567         (REG_PARM_STACK_SPACE): Ditto.
6568         (FUNCTION_ARG_REGNO_P): Ditto.
6569
6570         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6571         instruction to allocate stack space.
6572
6573 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6574
6575         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6576         unnecessarily stringent constraints.  Fix address
6577         calculation in the splitters.
6578
6579 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6580
6581         PR rtl-optimization/39779
6582         * expr.c (convert_modes): Return when mode == oldmode after
6583         CONST_INTs are processed.
6584
6585 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
6586
6587         PR/41315
6588         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6589         (ix86_expand_prologue): Take frame.padding0 into logic of
6590         to_allocate checks.
6591         (ix86_expand_epilogue): Likewise.
6592
6593 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
6594
6595         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6596         New variables.
6597         (SHLIB_LINK, SHLIB_INSTALL): Use them.
6598         * config/t-slibgcc-libgcc: New file.
6599         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6600
6601 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6602
6603         PR tree-optimization/41089
6604         * tree-sra.c (find_var_candidates): Do not consider va_lists in
6605         early SRA.
6606
6607 2009-09-09  Richard Henderson  <rth@redhat.com>
6608
6609         * gimple.h (CASE_GIMPLE_OMP): New.
6610         (is_gimple_omp): Use it.
6611         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6612         (verify_gimple_debug): Likewise.
6613
6614 2009-09-09  Richard Guenther  <rguenther@suse.de>
6615
6616         PR tree-optimization/41101
6617         * tree-ssa-pre.c (maximal_set): Remove.
6618         (compute_antic_aux): Treat the maximal set as implicitly all ones.
6619         Defer all blocks we didn't visit at least one successor.
6620         (add_to_exp_gen): Do not add to the maximal set.
6621         (make_values_for_phi): Likewise.
6622         (compute_avail): Likewise.
6623         (init_pre): Do not allocate the maximal set.
6624         (execute_pre): Do not dump it.
6625
6626 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6627
6628         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6629         an SSA_NAME rather than a is_gimple_variable.
6630
6631 2009-09-09  Richard Guenther  <rguenther@suse.de>
6632
6633         PR middle-end/41317
6634         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6635         code dealing with plain pointer bases.
6636         (maybe_fold_offset_to_reference): Likewise.
6637         (maybe_fold_stmt_addition): Adjust.
6638
6639 2009-09-09  Richard Guenther  <rguenther@suse.de>
6640
6641         * tree.c (free_lang_data_in_type): Do not free the type variant
6642         chains.
6643         (free_lang_data): Merge char_type_node with its properly signed
6644         variant.
6645         (pass_ipa_free): Collect after freeing language specific data.
6646
6647 2009-09-09  Michael Matz  <matz@suse.de>
6648
6649         PR middle-end/41268
6650         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6651         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6652         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6653         to reflect reality.
6654
6655 2009-09-08  DJ Delorie  <dj@redhat.com>
6656
6657         * config/mep/mep.c (conversions[]): Add "ml" pattern.
6658
6659 2009-09-04  Jason Merrill  <jason@redhat.com>
6660
6661         * tree.c (tree_find_value): Remove.
6662         * tree.h: Remove prototype.
6663         * varasm.c (assemble_external): Use value_member instead.
6664
6665 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6666
6667         * toplev.c (process_options): Choose default debugging type when
6668         gtoggle enables debug info and type is unset.
6669
6670 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6671
6672         PR debug/41276
6673         PR debug/41307
6674         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6675         invalid subreg.
6676
6677 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6678
6679         * configure: Rebuilt with modified libtool.m4.
6680
6681 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6682
6683         PR debug/41229
6684         PR debug/41291
6685         PR debug/41300
6686         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6687
6688 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6689
6690         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6691         (remove_statement): Likewise.
6692         (rewrite_use_nonlinear_expr): Adjust.
6693         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6694         * tree-ssa.c (release_defs_bitset): ... this.  New.
6695         * tree-flow.h (release_defs_bitset): Declare.
6696
6697 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6698
6699         PR debug/41232
6700         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6701         in the middle block.
6702
6703 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
6704
6705         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6706         via intptr_t to long type.
6707         (insert_operand_rank): Cast long type via intptr_t to
6708         pointer type.
6709         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6710         pointer to scalar.
6711         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6712         from pointer to unsigned via uintptr_t.
6713
6714         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6715         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6716         and HAVE_INTPTR_T.
6717         * configure: Regenerated.
6718         * config.in: Regenerated
6719         * system.h (stdint.h): Add include.
6720         (inttypes.h): Likewise.
6721         * Makefile.in (aclocal): Add config/stdint.m4.
6722         * aclocal.m4: Regenerated.
6723
6724 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
6725
6726         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6727         variables.
6728         (note_np_check_stores): New function.
6729         (harmless_null_pointer_p): New function.
6730         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
6731         changed.  Take into account whether we're in the shadow of a condjump
6732         that tested NP_REG for NULL.
6733         Lose all code that tested for SEQUENCEs.
6734         (workaround_speculation): Avoid inserting NOPs for loads that are
6735         either always executed or a NULL pointer.
6736
6737 2009-09-08  Jan Hubicka  <jh@suse.cz>
6738
6739         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6740         * params.def (early-inlining-insns): Likewise.
6741
6742 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
6743
6744         PR rtl-optimization/41239
6745         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6746         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6747         lists.
6748         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6749         across calls, as the calls might not always return normally.
6750         (call_may_noreturn_p): New function.
6751         (deps_analyze_insn): Update last_function_call_may_noreturn list.
6752         (init_deps): Initialize it.
6753         (remove_from_deps): Also remove calls from
6754         last_function_call_may_noreturn list.
6755
6756 2009-09-07  Richard Henderson  <rth@redhat.com>
6757
6758         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6759         more VR->OPERANDS than LHS operands.  Free LHS before returning.
6760
6761 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6762
6763         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6764         (attr "addrtype"): New member "spreg".
6765         Use it if mem_spfp_address_operand is true for the address.
6766         (attr "type"): New entry "stall".
6767         (cpu_unit "load"): New.
6768         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6769         "load".
6770         (insn_reservation "loadsp"): New.
6771         (insn_reservation "load_stall1"): New.
6772         (insn_reservation "load_stall3"): New.
6773         (stall): New insn.
6774         * config/bfin/predicates.md (const1_operand, const3_operand): New.
6775         (mem_p_address_operand): Exclude stack and frame pointer based
6776         addresses.
6777         (mem_spfp_address_operand): New; match them here.
6778         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6779         (bfin_reorg): Call it if scheduling insns.
6780         (bfin_gen_bundles): Remove dummy insns created by
6781         add_sched_insns_for_speculation.
6782
6783         From Jie Zhang <jie.zhang@analog.com>:
6784         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6785         bfin_si_revision, bfin_workarounds): Move these ...
6786         * config/bfin/bfin.h: ... here.
6787
6788         From Mike Frysinger  <michael.frysinger@analog.com>
6789         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6790         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6791         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6792         bf547m, bf548m, and bf549m.
6793         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6794         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6795         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6796         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6797         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6798         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6799         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6800         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6801         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6802         bf542m, bf544m, bf547m, bf548m, and bf549m.
6803
6804         From Jie Zhang <jie.zhang@analog.com>:
6805         * config/bfin/predicates.md (p_register_operand): New predicate.
6806         (dp_register_operand): New predicate.
6807         * config/bfin/bfin-protos.h (WA_05000074): Define.
6808         (ENABLE_WA_05000074): Define.
6809         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6810         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6811         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6812         (define_attr addrtype): Allow load/store register to be P register.
6813         (define_attr storereg): New.
6814         (define_cpu_unit anomaly_05000074): New.
6815         (define_insn_reservation dsp32shiftimm): New.
6816         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6817         (define_insn_reservation loadp): Cannot use slot2.
6818         (define_insn_reservation loadsp): Cannot use slot2.
6819         (define_insn_reservation storep): Cannot use slot2. Does not
6820         apply when working around 05000074.
6821         (define_insn_reservation storep_anomaly_05000074): New.
6822         (define_insn_reservation storei): Does not apply when working
6823         around 05000074.
6824         (define_insn_reservation storei_anomaly_05000074): New.
6825         (define_attr length): Add dsp32shiftimm case.
6826         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6827         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6828         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6829         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6830         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6831
6832 2009-09-07  Martin Jambor  <mjambor@suse.cz>
6833
6834         PR middle-end/41282
6835         * tree-sra.c (create_artificial_child_access): Return NULL if
6836         build_ref_for_offset fails.
6837         (propagate_subacesses_accross_link): Allow build_ref_for_offset
6838         and create_artificial_child_access to fail.
6839
6840 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
6841
6842         PR c++/41214
6843         * unwind-dw2.c (uw_init_context_1): Mark noinline.
6844         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6845         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6846
6847 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6848
6849         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6850         block, ensure it has an exit edge.  Emit a barrier after a jump.
6851
6852 2009-09-07  Nick Clifton  <nickc@redhat.com>
6853
6854         * gcc.c (this_is_linker_script): New variable.  Like
6855         this_is_library_file but for the %T constructor.
6856         (end_going_arg): If this_is_linker_script is set then locate the
6857         script and insert a --script switch before it
6858         (do_spec_2): Initialise this_is_linker_script.
6859         (do_spec_1): Likewise.  Handle %T construct.
6860         (eval_spec_function): Preserve this_is_linker_script.
6861         * doc/invoke.texi: Document %T construct in spec files.
6862         * config/m32c/m32c.h (LIB_SPEC): Use it.
6863
6864 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6865
6866         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6867         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6868         when volatile flag is set.
6869         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6870
6871 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
6872
6873         PR bootstrap/41241
6874         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6875         (combine_stack_adjustments_for_block): Allow insns between stack
6876         adjustments and stores with corresponding pre-(dec|inc)rement or
6877         pre-modify operation.
6878
6879 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
6880
6881         PR bootstrap/41241
6882         * combine-stack-adj.c (struct csa_memlist): Rename to...
6883         (struct csa_reflist): ... this.  Rename mem field to ref.
6884         (free_csa_memlist): Rename to...
6885         (free_csa_reflist): ... this.
6886         (record_one_stack_memref): Rename to...
6887         (record_one_stack_ref): ... this.  Handle also REG_P.
6888         (try_apply_stack_adjustment): Handle also REG_P.
6889         (struct record_stack_memrefs_data): Rename to...
6890         (struct record_stack_refs_data): ... this.  Rename memlist field to
6891         reflist.
6892         (record_stack_memrefs): Rename to...
6893         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
6894         subexpressions instead of failing when a MEM contains SP references.
6895         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6896         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6897
6898 2009-09-06  Richard Guenther  <rguenther@suse.de>
6899
6900         PR middle-end/41144
6901         * tree.c (build_array_type): Do not record types marked
6902         with structural equality in the canonical type hashtable.
6903
6904 2009-09-06  Richard Guenther  <rguenther@suse.de>
6905
6906         PR middle-end/41261
6907         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6908
6909 2009-09-05  Richard Guenther  <rguenther@suse.de>
6910
6911         PR middle-end/41181
6912         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6913
6914 2009-09-05  Richard Guenther  <rguenther@suse.de>
6915
6916         PR debug/41273
6917         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6918
6919 2009-09-05  Richard Guenther  <rguenther@suse.de>
6920
6921         PR middle-end/41271
6922         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6923         before comparing function argument types.
6924
6925 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6926
6927         PR target/41024
6928         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6929         the assembler.
6930
6931 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6932
6933         Revert:
6934         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6935
6936         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6937         locators before emit_insn is called.
6938
6939 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
6940
6941         PR bootstrap/41241
6942         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6943         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6944         (reginfo_init): Don't call allocate_reg_info.
6945
6946 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6947
6948         PR target/41262
6949         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6950         NONDEBUG_INSN_P instead of INSN_P.
6951
6952 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6953
6954         PR debug/41225
6955         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6956
6957 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6958
6959         PR target/41252
6960         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6961         pattern of the split.
6962
6963 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6964
6965         * toplev.c (process_options): Move setter of flag_var_tracking
6966         before other tests that depend on it.  Move down setter of
6967         flag_rename_registers.  Don't enable var-tracking-assignments
6968         by default if selective scheduling is enabled.  Warn if both
6969         are enabled.
6970
6971 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6972
6973         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6974         comment.  Use switch statement to catch overlaps between rtx
6975         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
6976         (IS_DECL_CODE): ... here. Remove.
6977         (check_value_is_not_decl): Remove.
6978         (dv_from_decl, dv_from_value): Check after conversion.
6979
6980 2009-09-04  Richard Guenther  <rguenther@suse.de>
6981
6982         PR middle-end/41257
6983         * (cgraph_finalize_compilation_unit): Move finalizing aliases
6984         after emitting tunks.  Move emitting thunks and ctors from ...
6985         (cgraph_optimize): ... here.  Remove redundant
6986         cgraph_analyze_functions.
6987         * varasm.c (find_decl_and_mark_needed): Remove no longer
6988         necessary check.
6989         (finish_aliases_1): Adjust check for thunk aliases.
6990
6991 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
6992
6993         * config/arm/arm.md (ctzsi2): Added braces
6994         to avoid warning that broke booststrap.
6995
6996 2009-09-04  Martin Jambor  <mjambor@suse.cz>
6997
6998         PR tree-optimization/41112
6999         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
7000         handle variable-bounded arrays.
7001         (expr_with_var_bounded_array_refs_p): New function.
7002         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
7003
7004 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
7005
7006         * config/s390/2097.md: Removed two incorrect bypasses.
7007         (z10_fsimpdf): Fixed latency.
7008         (z10_fhex): New insn_reservation.
7009         (z10_floaddf): Fixed latency.
7010         (z10_floadsf): Fixed latency.
7011         (z10_ftrunctf): Fixed latency.
7012         (z10_ftruncdf): Fixed latency.
7013         * config/s390/s390.c (z10_cost): Fixed values.
7014         (s390_adjust_priority): Added z10 path.
7015         * config/s390/s390.md (type): Added fhex.
7016         (*mov<mode>_64dfp): Updated type attribute.
7017         (*mov<mode>_64): Updated type attribute.
7018         (*mov<mode>_31): Updated type attribute.
7019         (*mov<mode>"): Likewise.
7020         * config/s390/2084.md (x_fsimpdf): Updated condition.
7021
7022 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
7023
7024         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
7025         RTXs in the predicate for operand 1.
7026
7027 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
7028
7029         * config/arm/arm.md (UNSPEC_RBIT): New constant.
7030         (rbitsi2): New insn.
7031         (ctzsi2): New expand.
7032         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
7033
7034 2009-09-03  Martin Jambor  <mjambor@suse.cz>
7035
7036         * tree-sra.c (duplicate_expr_for_different_base): Removed.
7037         (create_artificial_child_access): Use build_ref_for_offset instead
7038         of duplicate_expr_for_different_base.
7039         (propagate_subacesses_accross_link): Likewise.
7040
7041 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
7042
7043         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
7044         of INSN_P.
7045         (mips16e_collect_argument_saves): Skip debug instructions.
7046         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
7047         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
7048         (r10k_insert_cache_barriers): Likewise.
7049         (mips_reorg_process_insns): Likewise.
7050
7051 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
7052
7053         PR bootstrap/41241
7054         * ira.c (update_equiv_reg): Remove check on class likely spill.
7055
7056 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
7057
7058         PR debug/41236
7059         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
7060         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
7061         it or SUBREG.
7062
7063         PR debug/41238
7064         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
7065         the stack slot if it is passed by invisible reference.
7066         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
7067         by invisible reference.
7068
7069 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
7070
7071         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7072         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7073         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
7074         0.
7075         * config/bfin/sync.md: New file.
7076         * config/bfin/bfin.md: Include it.
7077         (UNSPEC_ATOMIC): New.
7078         (UNSPEC_ONES): Provide a unique number.
7079
7080         From Jie Zhang <jie.zhang@analog.com>:
7081         * config/bfin/bfin.c (ret_regs): New.
7082         (must_save_fp_p): Don't return true because of frame_pointer_needed.
7083         (must_save_rets_p): New.
7084         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
7085         current_function_is_leaf.
7086         (do_link): Likewise.
7087         (do_unlink): Likewise.
7088         (expand_interrupt_handler_prologue): Use ret_regs array.
7089         (expand_interrupt_handler_epilogue): Use ret_regs array and
7090         pass return register to gen_return_internal.
7091         (bfin_expand_epilogue): Pass return register to
7092         gen_return_internal.
7093         (bfin_expand_call): Explicitly clobber RETS.
7094         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
7095         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
7096         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
7097         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
7098         RETS.
7099         (return_internal): Take a reg rtx rather than the register number.
7100
7101 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
7102
7103         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
7104         when comparing against estimated_loop_iterations_int return.
7105
7106 2009-09-03  Richard Guenther  <rguenther@suse.de>
7107
7108         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
7109         eh_personality_libfunc.
7110
7111 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7112
7113         * tree-parloops.c (separate_decls_in_region): Add space.
7114
7115 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7116
7117         * tree-parloops.c (separate_decls_in_region): Change the condition
7118         checking if there are reductions in the loop.
7119
7120 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7121
7122         PR tree-optimization/38275
7123         * tree-parloops.c (parallelize_loops): Replace profitability condition
7124         for expected number of iterations.
7125
7126 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
7127
7128         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
7129         (bootstrap-debug): Explain conditions in which it becomes default.
7130         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
7131         make it add to it.
7132
7133 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
7134
7135         * doc/invoke.texi (Optimize Options): Move
7136         -finline-small-functions to the -O2 list.
7137
7138 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
7139
7140         * toplev.c (process_options): Enable var-tracking-assignments
7141         by default if var-tracking is enabled.
7142
7143 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
7144
7145         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
7146         barrier.
7147         * emit-rtl.c (prev_nonnote_insn_bb): New function.
7148         * rtl.h (prev_nonnote_insn_bb): Declare it.
7149
7150 2009-09-03  Diego Novillo  <dnovillo@google.com>
7151
7152         * cgraph.c (cgraph_node_for_decl): New.
7153         * cgraph.h (cgraph_node_for_decl): Declare.
7154         * tree.c (host_integerp): Return 0 if T is NULL.
7155
7156 2009-09-03  Diego Novillo  <dnovillo@google.com>
7157
7158         * tree.h (struct alias_pair): Move from varasm.c.
7159         (alias_pairs): Likewise.
7160         (TYPE_MAXVAL): Define.
7161         (TYPE_MINVAL): Define.
7162         (iterative_hash_host_wide_int): Declare.
7163         (remove_unreachable_alias_pairs): Declare.
7164         * tree-pass.h (pass_ipa_free_lang_data): Declare.
7165         * diagnostic.c (default_diagnostic_starter): Make extern.
7166         (default_diagnostic_finalizer): Make extern.
7167         * diagnostic.h (default_diagnostic_starter): Declare.
7168         (default_diagnostic_finalizer): Declare.
7169         (default_tree_printer): Declare.
7170         * toplev.c (default_tree_printer): Make extern.
7171
7172 2009-09-03  Richard Guenther  <rguenther@suse.de>
7173             Diego Novillo  <dnovillo@google.com>
7174
7175         * cgraph.c (cgraph_add_new_function): Remove gimplification.
7176         * cgraphunit.c (cgraph_expand_function): Do not emit
7177         associated thunks from here.
7178         (cgraph_emit_thunks): New.
7179         (cgraph_optimize): Call it.
7180         Return if any IPA pass finds an error.
7181         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
7182         by thunks.
7183
7184 2009-09-03  Simon Baldwin  <simonb@google.com>
7185             Rafael Espindola  <espindola@google.com>
7186             Richard Guenther  <rguenther@suse.de>
7187             Doug Kwan  <dougkwan@google.com>
7188             Diego Novillo  <dnovillo@google.com>
7189
7190         * tree.c: Include tree-pass.h, langhooks-def.h,
7191         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
7192         (free_lang_data_in_type): New.
7193         (need_assembler_name_p): New.
7194         (free_lang_data_in_block): New.
7195         (free_lang_data_in_decl): New.
7196         (struct free_lang_data_d): New.
7197         (add_tree_to_fld_list): New.
7198         (find_decls_types_r): New.
7199         (get_eh_types_for_runtime): New.
7200         (find_decls_types_in_eh_region): New.
7201         (find_decls_types_in_node): New.
7202         (find_decls_types_in_var): New.
7203         (free_lang_data_in_cgraph): New.
7204         (free_lang_data): New.
7205         (gate_free_lang_data): New.
7206         (pass_ipa_free_lang_data): New.
7207
7208 2009-09-03  Diego Novillo  <dnovillo@google.com>
7209
7210         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
7211         * langhooks.h (struct lang_hooks): Add field free_lang_data.
7212         (lang_hooks): Remove const qualifier.
7213         * ipa.c (cgraph_remove_unreachable_nodes): Call
7214         remove_unreachable_alias_pairs.
7215         * except.c (add_type_for_runtime): Check if TYPE has
7216         already been converted.
7217         (lookup_type_for_runtime): Likewise.
7218         (check_handled): Handle converted types.
7219         * varasm.c (remove_unreachable_alias_pairs): New.
7220         * gimple.c: Include demangle.h.
7221         (gimple_decl_printable_name): New.
7222         (gimple_fold_obj_type_ref): New.
7223         * gimple.h (gimple_decl_printable_name): Declare.
7224         (gimple_fold_obj_type_ref): Declare.
7225         * passes.c (init_optimization_passes): Add pass
7226         pass_ipa_free_lang_data.
7227         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
7228         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
7229
7230 2009-09-03  Diego Novillo  <dnovillo@google.com>
7231
7232         * c-lang.c (lang_hooks): Remove const qualifier.
7233
7234 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
7235
7236         * doc/install.texi (*-*-freebsd*): Update target information.
7237
7238 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
7239
7240         * hard-reg-set.h (call_fixed_regs): Remove.
7241         * reginfo.c (call_fixed_regs): Remove.
7242         (init_reg_sets_1): Remove initialization of call_fixed_regs.
7243         (globalize_reg): Don't use call_fixed_regs.
7244         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
7245         call_fixed_regs.
7246
7247 2009-09-01  Michael Matz  <matz@suse.de>
7248
7249         * expr.h (emit_storent_insn, expand_expr_real_1,
7250         expand_expr_real_2): Declare.
7251         * expr.c (emit_storent_insn, expand_expr_real_1,
7252         expand_expr_real_2): Export.
7253         (store_expr): Setting and evaluating dont_return_target is useless.
7254         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
7255         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
7256         * except.c (expand_resx_expr): Rename to ...
7257         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
7258         * except.h (expand_resx_stmt): Declare.
7259         * stmt.c: Add include gimple.h
7260         (expand_asm_expr): Rename to ...
7261         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
7262         (expand_case): Rewrite to take gimple statement.
7263         * tree.h (expand_asm_stmt): Declare.
7264         (expand_case): Change prototype.
7265         * Makefile.in (stmt.o): Depend on gimple.h.
7266         * builtins.c (expand_builtin_synchronize): Build gimple asm
7267         statement, not an ASM_EXPR.
7268         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
7269         gimple_to_tree, release_stmt_tree): Remove.
7270         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
7271         ggc_free, but hold comparison code and operands separately.
7272         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
7273         (expand_call_stmt, expand_gimple_stmt_1,
7274         expand_gimple_stmt): New helpers.
7275         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
7276         release_stmt_tree.  Call expand_gimple_stmt instead.
7277         (expand_gimple_basic_block): Ditto.
7278
7279         * calls.c (emit_call_1): Don't look at EH regions here, make
7280         fntree parameter useless.
7281         (expand_call): New local rettype for TREE_TYPE(exp), use it
7282         throughout.  Remove local p, use addr instead.
7283         Don't look at EH regions here.
7284
7285 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
7286
7287         * doc/invoke.texi (-fsched-pressure): Document it.
7288         (-fsched-reg-pressure-heuristic): Remove it.
7289
7290         * reload.c (ira.h): Include.
7291         (find_reloads): Add choosing reload on number of small spilled
7292         classes.
7293
7294         * haifa-sched.c (ira.h): Include.
7295         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
7296         saved_reg_pressure, curr_reg_live, saved_reg_live,
7297         region_ref_regs): New variables.
7298         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
7299         initiate_reg_pressure_info, setup_ref_regs,
7300         initiate_bb_reg_pressure_info, save_reg_pressure,
7301         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
7302         functions.
7303         (setup_insn_reg_pressure_info): New function.
7304         (rank_for_schedule): Add pressure checking and insn issue time.
7305         Remove comparison of insn reg weights.
7306         (ready_sort): Set insn reg pressure info.
7307         (update_register_pressure, setup_insn_max_reg_pressure,
7308         update_reg_and_insn_max_reg_pressure,
7309         sched_setup_bb_reg_pressure_info): New functions.
7310         (schedule_insn): Add code for printing and updating reg pressure info.
7311         (find_set_reg_weight, find_insn_reg_weight): Remove.
7312         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
7313         (debug_ready_list): Print reg pressure info.
7314         (schedule_block): Ditto.  Check insn issue time.
7315         (sched_init): Set up sched_pressure_p.  Allocate and set up some
7316         reg pressure related info.
7317         (sched_finish): Free some reg pressure related info.
7318         (fix_tick_ready): Make insn always ready if pressure_p.
7319         (init_h_i_d): Don't call find_insn_reg_weight.
7320         (haifa_finish_h_i_d): Free insn reg pressure info.
7321
7322         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7323         ira_memory_move_cost, ira_class_hard_regs,
7324         ira_class_hard_regs_num, ira_no_alloc_regs,
7325         ira_available_class_regs, ira_reg_class_cover_size,
7326         ira_reg_class_cover, ira_class_translate): Move to ira.h.
7327
7328         * ira-lives.c (single_reg_class): Check mode to find how many
7329         registers are necessary for operand.
7330         (ira_implicitly_set_insn_hard_regs): New.
7331
7332         * common.opt (fsched-pressure): New options.
7333         (fsched-reg-pressure-heuristic): Remove.
7334
7335         * ira.c (setup_eliminable_regset): Rename to
7336         ira_setup_eliminable_regset.  Make it external.
7337         (expand_reg_info): Pass cover class to setup_reg_classes.
7338         (ira): Call resize_reg_info instead of allocate_reg_info.
7339
7340         * sched-deps.c: Include ira.h.
7341         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
7342         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
7343         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
7344         mark_insn_hard_regno_birth, mark_insn_reg_birth,
7345         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
7346         mark_insn_reg_store, mark_insn_reg_clobber,
7347         setup_insn_reg_pressure_info): New.
7348         (sched_analyze_1): Update implicit_reg_pending_uses.
7349         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
7350         Use them to create dependencies.  Set insn reg uses and pressure
7351         info.  Process reg_pending_uses in one place.
7352         (free_deps): Free implicit sets.
7353         (remove_from_deps): Remove implicit sets if necessary.  Check
7354         implicit sets when clearing reg_last_in_use.
7355         (init_deps_global): Clear implicit_reg_pending_clobbers and
7356         implicit_reg_pending_uses.
7357
7358         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7359         ira_memory_move_cost, ira_class_hard_regs,
7360         ira_class_hard_regs_num, ira_no_alloc_regs,
7361         ira_available_class_regs, ira_reg_class_cover_size,
7362         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
7363         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
7364         ira_implicitly_set_insn_hard_regs): New prototypes.
7365
7366         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
7367         cost_elements_num): New variables.
7368         (allocno_costs, total_costs): Rename to costs and
7369         total_allocno_costs.
7370         (COSTS_OF_ALLOCNO): Rename to COSTS.
7371         (allocno_pref): Rename to pref.
7372         (allocno_pref_buffer): Rename to pref_buffer.
7373         (common_classes): Rename to regno_cover_class.
7374         (COST_INDEX): New.
7375         (record_reg_classes): Set allocno attributes only if allocno_p.
7376         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
7377         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
7378         and COSTS_OF_ALLOCNO.
7379         (print_costs): Rename to print_allocno_costs.
7380         (print_pseudo_costs): New.
7381         (process_bb_node_for_costs): Split into 2 functions with new
7382         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
7383         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
7384         new parameter dump_file.  Use cost_elements_num instead of
7385         ira_allocnos_num.  Make one iteration if preferred classes were
7386         already calculated for scheduler.  Make 2 versions of code
7387         depending on allocno_p.
7388         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
7389         regno_cover_class and COSTS instead of common_classes and
7390         COSTS_OF_ALLOCNO.
7391         (init_costs, finish_costs): New.
7392         (ira_costs): Set up allocno_p and cost_elements_num.  Call
7393         init_costs and finish_costs.
7394         (ira_set_pseudo_classes): New.
7395
7396         * rtl.h (allocate_reg_info): Remove.
7397         (resize_reg_info): Change return type.
7398         (reg_cover_class): New.
7399         (setup_reg_classes): Add new parameter.
7400
7401         * sched-int.h (struct deps_reg): New member implicit_sets.
7402         (sched_pressure_p, sched_regno_cover_class): New external definitions.
7403         (INCREASE_BITS): New macro.
7404         (struct reg_pressure_data, struct reg_use_data): New.
7405         (struct _haifa_insn_data): Remove reg_weight.  Add members
7406         reg_pressure, reg_use_list, reg_set_list, and
7407         reg_pressure_excess_cost_change.
7408         (struct deps): New member implicit_sets.
7409         (pressure_p): New variable.
7410         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
7411         (struct reg_pressure_data, struct reg_use_data): New.
7412         (INSN_REG_WEIGHT): Remove.
7413         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
7414         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
7415         (sched_init_region_reg_pressure_info,
7416         sched_setup_bb_reg_pressure_info): New prototypes.
7417
7418         * reginfo.c (struct reg_pref): New member coverclass.
7419         (reg_cover_class): New function.
7420         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
7421         (reg_info_size): New variable.
7422         (allocate_reg_info): Make static.  Setup reg_info_size.
7423         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
7424         (setup_reg_classes): Add a new parameter.  Setup cover class too.
7425
7426         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
7427         the dependencies.
7428
7429         * sched-rgn.c (deps_join): Set up implicit_sets.
7430         (schedule_region): Set up region and basic blocks pressure
7431         relative info.
7432
7433         * passes.c (init_optimization_passes): Move
7434         pass_subregs_of_mode_init before pass_sched.
7435
7436 2009-09-02  Martin Jambor  <mjambor@suse.cz>
7437
7438         * tree-sra.c (struct access): New field grp_hint.
7439         (dump_access): Dump grp_hint.
7440         (sort_and_splice_var_accesses): Set grp_hint if a group is read
7441         multiple times.
7442         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7443         those which have been specifically read and somehow written to.
7444         (propagate_subacesses_accross_link): Set grp_hint of right child and
7445         also possibly of the left child.
7446
7447 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
7448
7449         * tree-object-size.c (addr_object_size): Always use object_size_type
7450         0 or 2 when determining the pointer pointed object size.
7451
7452 2009-09-02  Richard Guenther  <rguenther@suse.de>
7453
7454         Revert
7455         2009-08-31  Richard Guenther  <rguenther@suse.de>
7456
7457         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7458         to query if the memory regions for memmove overlap.
7459         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7460         asserts on pointers, instead deal with odd trees.
7461         (ptr_derefs_may_alias_p): Likewise.
7462         (refs_may_alias_p_1): Constructor bases also never alias.
7463
7464 2009-08-01  Christian Bruel  <christian.bruel@st.com>
7465
7466         Revert:
7467         2009-07-31  Christian Bruel  <christian.bruel@st.com>
7468         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7469
7470 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
7471
7472         * doc/invoke.texi (-fvar-tracking-assignments): New.
7473         (-fvar-tracking-assignments-toggle): New.
7474         (-fdump-final-insns=file): Mark filename as optional.
7475         (--param min-nondebug-insn-uid): New.
7476         (-gdwarf-@{version}): Mention version 4.
7477         * opts.c (common_handle_option): Accept it.
7478         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7479         * regrename.c (regrename_optimize): Drop last.  Don't count debug
7480         insns as uses.  Don't reject change because of debug insn.
7481         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
7482         from the chain starter, and check for inexact matches in DEBUG_INSNS.
7483         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7484         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7485         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7486         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7487         * doc/gimple.texi (is_gimple_debug): New.
7488         (gimple_debug_bind_p): New.
7489         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7490         * doc/install.texi (bootstrap-debug): More details.
7491         (bootstrap-debug-big, bootstrap-debug-lean): Document.
7492         (bootstrap-debug-lib): More details.
7493         (bootstrap-debug-ckovw): Update.
7494         (bootstrap-time): New.
7495         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7496         (insert_phi_nodes_for): Insert debug stmts.
7497         (rewrite_stmt): Take iterator.  Insert debug stmts.
7498         (rewrite_enter_block): Adjust.
7499         (maybe_replace_use_in_debug_stmt): New.
7500         (rewrite_update_stmt): Use it.
7501         (mark_use_interesting): Return early for debug stmts.
7502         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7503         stmts before replacing stmt.
7504         (move_computations_stmt): Likewise.
7505         * ira-conflicts.c (add_copies): Skip debug insns.
7506         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7507         (regstat_bb_compute_ri): Skip debug insns.
7508         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7509         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7510         check_loop_closed_ssa_stmt): Skip debug stmts.
7511         * tree-tailcall.c (find_tail_calls): Likewise.
7512         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7513         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7514         (build_var_debug_value_stat): Declare.
7515         (build_var_debug_value): Define.
7516         (target_for_debug_bind): Declare.
7517         * reload.c (find_equiv_reg): Skip debug insns.
7518         * rtlanal.c (reg_used_between_p): Skip debug insns.
7519         (side_effects_p): Likewise.
7520         (canonicalize_condition): Likewise.
7521         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7522         insns never depend on debug insns.
7523         (create_ddg_dep_no_link): Likewise.
7524         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7525         Don't add inter-loop dependencies for debug insns.
7526         (build_intra_loop_deps): Likewise.
7527         (create_ddg): Count debug insns.
7528         * ddg.h (struct ddg::num_debug): New.
7529         (num_backargs): Pair up with previous int field.
7530         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7531         -fcompare-debug-second.
7532         * final.c (get_attr_length_1): Skip debug insns.
7533         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7534         * gcc.c (invoke_as): Call compare-debug-dump-opt.
7535         (driver_self_specs): Map -fdump-final-insns to
7536         -fdump-final-insns=..
7537         (get_local_tick): New.
7538         (compare_debug_dump_opt_spec_function): Test for . argument and
7539         compute output name.  Compute temp output spec without flag name.
7540         Compute -frandom-seed.
7541         (OPT): Undef after use.
7542         * cfgloopanal.c (num_loop_insns): Skip debug insns.
7543         (average_num_loop_insns): Likewise.
7544         * params.h (MIN_NONDEBUG_INSN_UID): New.
7545         * gimple.def (GIMPLE_DEBUG): New.
7546         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7547         * auto-inc-dec.c (merge_in_block): Skip debug insns.
7548         (merge_in_block): Fix whitespace.
7549         * toplev.c (flag_var_tracking): Update comment.
7550         (flag_var_tracking_assignments): New.
7551         (flag_var_tracking_assignments_toggle): New.
7552         (process_options): Don't open final insns dump file if we're not
7553         going to write to it.  Compute defaults for var_tracking.
7554         * df-scan.c (df_insn_rescan_debug_internal): New.
7555         (df_uses_record): Handle debug insns.
7556         * haifa-sched.c (ready): Initialize n_debug.
7557         (contributes_to_priority): Skip debug insns.
7558         (dep_list_size): New.
7559         (priority): Use it.
7560         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
7561         they're ready.  Disregard previous debug insns to make decisions.
7562         (queue_insn): Never queue debug insns.
7563         (ready_add, ready_remove_first, ready_remove): Count debug insns.
7564         (schedule_insn): Don't reject debug insns because of issue rate.
7565         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7566         (queue_to_ready): Skip and discount debug insns.
7567         (choose_ready): Let debug insns through.
7568         (schedule_block): Check boundary debug insns.  Discount debug
7569         insns, schedule them early.  Adjust whitespace.
7570         (set_priorities): Check for boundary debug insns.
7571         (add_jump_dependencies): Use dep_list_size.
7572         (prev_non_location_insn): New.
7573         (check_cfg): Use it.
7574         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7575         stmts.
7576         (remove_unused_ivs): Reset debug stmts.
7577         * modulo-sched.c (const_iteration_count): Skip debug insns.
7578         (res_MII): Discount debug insns.
7579         (loop_single_full_bb_p): Skip debug insns.
7580         (sms_schedule): Likewise.
7581         (sms_schedule_by_order): Likewise.
7582         (ps_has_conflicts): Likewise.
7583         * caller-save.c (refmarker_fn): New.
7584         (save_call_clobbered_regs): Replace regs with saved mem in
7585         debug insns.
7586         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
7587         Call refmarker_fn mark for hardregnos.
7588         (mark_reg_as_referenced): New.
7589         (replace_reg_with_saved_mem): New.
7590         * ipa-pure-const.c (check_stmt): Skip debug stmts.
7591         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
7592         searching back.
7593         (cse_extended_basic_block): Skip debug insns.
7594         (count_reg_usage): Likewise.
7595         (is_dead_reg): New, split out of...
7596         (set_live_p): ... here.
7597         (insn_live_p): Use it for debug insns.
7598         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7599         (execute_optimize_stdarg): Likewise.
7600         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7601         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7602         changes in debug stmts as changes.
7603         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7604         (moveup_expr): Don't move across debug insns.  Don't move
7605         debug insn if it would create a bookkeeping block.
7606         (moveup_expr_cached): Don't use cache for debug insns that
7607         are heads of blocks.
7608         (compute_av_set_inside_bb): Skip debug insns.
7609         (sel_rank_for_schedule): Schedule debug insns first.  Remove
7610         dead code.
7611         (block_valid_for_bookkeeping_p); Support lax searches.
7612         (create_block_for_bookkeeping): Adjust block numbers when
7613         encountering debug-only blocks.
7614         (find_place_for_bookkeeping): Deal with debug-only blocks.
7615         (generate_bookkeeping_insn): Accept no place to insert.
7616         (remove_temp_moveop_nops): New argument full_tidying.
7617         (prepare_place_to_insert): Deal with debug insns.
7618         (advance_state_on_fence): Debug insns don't start cycles.
7619         (update_boundaries): Take fence as argument.  Deal with
7620         debug insns.
7621         (schedule_expr_on_boundary): No full_tidying on debug insns.
7622         (fill_insns): Deal with debug insns.
7623         (track_scheduled_insns_and_blocks): Don't count debug insns.
7624         (need_nop_to_preserve_insn_bb): New, split out of...
7625         (remove_insn_from_stream): ... this.
7626         (fur_orig_expr_not_found): Skip debug insns.
7627         * rtl.def (VALUE): Move up.
7628         (DEBUG_INSN): New.
7629         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7630         (nearest_common_dominator_of_uses): Take debug_stmts argument.
7631         Set it if debug stmts are found.
7632         (statement_sink_location): Skip debug stmts.  Propagate
7633         moving defs into debug stmts.
7634         * ifcvt.c (first_active_insn): Skip debug insns.
7635         (last_active_insns): Likewise.
7636         (cond_exec_process_insns): Likewise.
7637         (noce_process_if_block): Likewise.
7638         (check_cond_move_block): Likewise.
7639         (cond_move_convert_if_block): Likewise.
7640         (block_jumps_and_fallthru_p): Likewise.
7641         (dead_or_predicable): Likewise.
7642         * dwarf2out.c (debug_str_hash_forced): New.
7643         (find_AT_string): Add comment.
7644         (gen_label_for_indirect_string): New.
7645         (get_debug_string_label): New.
7646         (AT_string_form): Use it.
7647         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
7648         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
7649         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7650         several operations that cannot be represented with DWARF opcodes.
7651         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
7652         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7653         (dwarf2out_var_location): Take during-call mark into account.
7654         (output_indirect_string): Update comment.  Output if there are
7655         label and references.
7656         (prune_indirect_string): New.
7657         (prune_unused_types): Call it if debug_str_hash_forced.
7658         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7659         (dw_long_long_const): Remove.
7660         (struct dw_val_struct): Change val_long_long type to rtx.
7661         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7662         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7663         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
7664         component instead of HOST_BITS_PER_LONG.
7665         (output_loc_operands): Likewise.  For const8* assert
7666         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7667         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7668         rather than HOST_BITS_PER_LONG is >= 64.
7669         (add_AT_long_long): Remove val_hi and val_lo arguments, add
7670         val_const_double.
7671         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7672         HOST_BITS_PER_LONG for dw_val_class_long_long.
7673         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
7674         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
7675         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7676         DW_OP_stack_value.
7677         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7678         Handle DW_OP_implicit_value.
7679         (extract_int): Move prototype earlier.
7680         (mem_loc_descriptor): For SUBREG punt if inner
7681         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
7682         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
7683         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7684         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7685         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7686         instead of Pmode size.
7687         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
7688         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7689         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
7690         (concat_loc_descriptor, concatn_loc_descriptor,
7691         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7692         (add_location_or_const_value_attribute): Likewise.  For single
7693         location loc_lists attempt to use add_const_value_attribute
7694         for constant decls.  Add DW_AT_const_value even if
7695         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7696         in its expression.
7697         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7698         (control_flow_insn_p): Likewise.
7699         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7700         (separate_decls_in_region_debug_bind): New.
7701         (separate_decls_in_region): Process debug bind stmts afterwards.
7702         * recog.c (verify_changes): Handle debug insns.
7703         (extract_insn): Likewise.
7704         (peephole2_optimize): Skip debug insns.
7705         * dse.c (scan_insn): Skip debug insns.
7706         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7707         Pass it on.
7708         (setup_id_for_insn): Handle debug insns.
7709         (maybe_tidy_empty_bb): Adjust whitespace.
7710         (tidy_control_flow): Skip debug insns.
7711         (sel_remove_insn): Adjust for debug insns.
7712         (sel_estimate_number_of_insns): Skip debug insns.
7713         (create_insn_rtx_from_pattern): Handle debug insns.
7714         (create_copy_of_insn_rtx): Likewise.
7715         * sel-sched-.h (sel_bb_end): Declare.
7716         (sel_bb_empty_or_nop_p): New.
7717         (get_all_loop_exits): Use it.
7718         (_eligible_successor_edge_p): Likewise.
7719         (return_nop_to_pool): Adjust.
7720         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7721         * ira-lives.c (process_bb_node_lives): Skip debug insns.
7722         * gimple-pretty-print.c (dump_gimple_debug): New.
7723         (dump_gimple_stmt): Use it.
7724         (dump_bb_header): Skip gimple debug stmts.
7725         * regmove.c (optimize_reg_copy_1): Discount debug insns.
7726         (fixup_match_2): Likewise.
7727         (regmove_backward_pass): Likewise.  Simplify combined
7728         replacement.  Handle debug insns.
7729         * function.c (instantiate_virtual_regs): Handle debug insns.
7730         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7731         * print-rtl.h: Include cselib.h.
7732         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
7733         * df.h (df_inns_rescan_debug_internal): Declare.
7734         * gcse.c (alloc_hash_table): Estimate n_insns.
7735         (cprop_insn): Don't regard debug insns as changes.
7736         (bypass_conditional_jumps): Skip debug insns.
7737         (one_pre_gcse_pass): Adjust.
7738         (one_code_hoisting_pass): Likewise.
7739         (compute_ld_motion_mems): Skip debug insns.
7740         (one_cprop_pass): Adjust.
7741         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7742         (if_convertible_stmt_p): Handle debug stmts.
7743         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7744         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7745         * ira-build.c (create_bb_allocnos): Skip debug insns.
7746         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7747         (has_single_use): Likewise.
7748         (single_imm_use): Likewise.
7749         (num_imm_uses): Likewise.
7750         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7751         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7752         (create_outofssa_var_map): Likewise.
7753         * lower-subreg.c (adjust_decomposed_uses): New.
7754         (resolve_debug): New.
7755         (decompose_multiword_subregs): Use it.
7756         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7757         * emit-rtl.c: Include params.h.
7758         (cur_debug_insn_uid): Define.
7759         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7760         (copy_rtx_if_shared_1): Handle debug insns.
7761         (reset_used_flags): Likewise.
7762         (set_used_flags): LIkewise.
7763         (get_max_insn_count): New.
7764         (next_nondebug_insn): New.
7765         (prev_nondebug_insn): New.
7766         (make_debug_insn_raw): New.
7767         (emit_insn_before_noloc): Handle debug insns.
7768         (emit_jump_insn_before_noloc): Likewise.
7769         (emit_call_insn_before_noloc): Likewise.
7770         (emit_debug_insn_before_noloc): New.
7771         (emit_insn_after_noloc): Handle debug insns.
7772         (emit_jump_insn_after_noloc): Likewise.
7773         (emit_call_insn_after_noloc): Likewise.
7774         (emit_debug_insn_after_noloc): Likewise.
7775         (emit_insn_after): Take loc from earlier non-debug insn.
7776         (emit_jump_insn_after): Likewise.
7777         (emit_call_insn_after): Likewise.
7778         (emit_debug_insn_after_setloc): New.
7779         (emit_debug_insn_after): New.
7780         (emit_insn_before): Take loc from later non-debug insn.
7781         (emit_jump_insn_before): Likewise.
7782         (emit_call_insn_before): Likewise.
7783         (emit_debug_insn_before_setloc): New.
7784         (emit_debug_insn_before): New.
7785         (emit_insn): Handle debug insns.
7786         (emit_debug_insn): New.
7787         (emit_jump_insn): Handle debug insns.
7788         (emit_call_insn): Likewise.
7789         (emit): Likewise.
7790         (init_emit): Take min-nondebug-insn-uid into account.
7791         Initialize cur_debug_insn_uid.
7792         (emit_copy_of_insn_after): Handle debug insns.
7793         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7794         location of single rhs in place.
7795         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7796         (floor_sdiv_adjust): New.
7797         (cell_sdiv_adjust): New.
7798         (cell_udiv_adjust): New.
7799         (round_sdiv_adjust): New.
7800         (round_udiv_adjust): New.
7801         (wrap_constant): Moved from cselib.
7802         (unwrap_constant): New.
7803         (expand_debug_expr): New.
7804         (expand_debug_locations): New.
7805         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
7806         debug bind stmts.
7807         (gimple_expand_cfg): Expand debug locations.
7808         * cselib.c: Include tree-pass.h.
7809         (struct expand_value_data): New.
7810         (cselib_record_sets_hook): New.
7811         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7812         (cselib_clear_table): Move, and implemnet in terms of...
7813         (cselib_reset_table_with_next_value): ... this.
7814         (cselib_get_next_unknown_value): New.
7815         (discard_useless_locs): Don't discard preserved values.
7816         (cselib_preserve_value): New.
7817         (cselib_preserved_value_p): New.
7818         (cselib_preserve_definitely): New.
7819         (cselib_clear_preserve): New.
7820         (cselib_preserve_only_values): New.
7821         (new_cselib_val): Take rtx argument.  Dump it in details.
7822         (cselib_lookup_mem): Adjust.
7823         (expand_loc): Take regs_active in struct.  Adjust.  Silence
7824         dumps unless details are requested.
7825         (cselib_expand_value_rtx_cb): New.
7826         (cselib_expand_value_rtx): Rename and reimplment in terms of...
7827         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
7828         without details.  Copy more subregs.  Try to resolve values
7829         using a callback.  Wrap constants.
7830         (cselib_subst_to_values): Adjust.
7831         (cselib_log_lookup): New.
7832         (cselib_lookup): Call it.
7833         (cselib_invalidate_regno): Don't count preserved values as useless.
7834         (cselib_invalidate_mem): Likewise.
7835         (cselib_record_set): Likewise.
7836         (struct set): Renamed to cselib_set, moved to cselib.h.
7837         (cselib_record_sets): Adjust.  Call hook.
7838         (cselib_process_insn): Reset table when it would be cleared.
7839         (dump_cselib_val): New.
7840         (dump_cselib_table): New.
7841         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7842         (remove_forwarder_block): Support moving debug stmts.
7843         * cselib.h (cselib_record_sets_hook): Declare.
7844         (cselib_expand_callback): New type.
7845         (cselib_expand_value_rtx_cb): Declare.
7846         (cselib_reset_table_with_next_value): Declare.
7847         (cselib_get_next_unknown_value): Declare.
7848         (cselib_preserve_value): Declare.
7849         (cselib_preserved_value_p): Declare.
7850         (cselib_preserve_only_values): Declare.
7851         (dump_cselib_table): Declare.
7852         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7853         (try_crossjump_to_edge): Likewise.
7854         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7855         dominated blocks when debug stmts are present.
7856         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7857         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7858         (set_var_live_on_entry): Likewise.
7859         * loop-invariant.c (find_invariants_bb): Skip debug insns.
7860         * cfglayout.c (curr_location, last_location): Make static.
7861         (set_curr_insn_source_location): Don't avoid bouncing.
7862         (get_curr_insn_source_location): New.
7863         (get_curr_insn_block): New.
7864         (duplicate_insn_chain): Handle debug insns.
7865         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7866         into debug stmts.
7867         * common.opt (fcompare-debug): Move to sort order.
7868         (fdump-unnumbered-links): Likewise.
7869         (fvar-tracking-assignments): New.
7870         (fvar-tracking-assignments-toggle): New.
7871         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7872         because of debug stmts.
7873         (mark_stmt_if_obviously_necessary): Mark debug stmts.
7874         (eliminate_unnecessary_stmts): Walk dominated blocks before
7875         dominators.
7876         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7877         * ira.c (memref_used_between_p): Skip debug insns.
7878         (update_equiv_regs): Likewise.
7879         * sched-deps.c (sd_lists_size): Accept empty list.
7880         (sd_init_insn): Mark debug insns.
7881         (sd_finish_insn): Unmark them.
7882         (sd_add_dep): Reject non-debug deps on debug insns.
7883         (fixup_sched_groups): Give debug insns group treatment.
7884         Skip debug insns.
7885         (sched_analyze_reg): Don't mark debug insns for sched before call.
7886         (sched_analyze_2): Handle debug insns.
7887         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
7888         insns.
7889         (deps_analyze_insn): Handle debug insns.
7890         (deps_start_bb): Skip debug insns.
7891         (init_deps): Initialize last_debug_insn.
7892         * tree-ssa.c (target_for_debug_bind): New.
7893         (find_released_ssa_name): New.
7894         (propagate_var_def_into_debug_stmts): New.
7895         (propagate_defs_into_debug_stmts): New.
7896         (verify_ssa): Skip debug bind stmts without values.
7897         (warn_uninialized_vars): Skip debug stmts.
7898         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7899         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7900         (rtx_equal_p): Likewise.
7901         * ira-costs.c (scan_one_insn): Skip debug insns.
7902         (process_bb_node_for_hard_reg_moves): Likewise.
7903         * rtl.h (DEBUG_INSN_P): New.
7904         (NONDEBUG_INSN_P): New.
7905         (MAY_HAVE_DEBUG_INSNS): New.
7906         (INSN_P): Accept debug insns.
7907         (RTX_FRAME_RELATED_P): Likewise.
7908         (INSN_DELETED_P): Likewise
7909         (PAT_VAR_LOCATION_DECL): New.
7910         (PAT_VAR_LOCATION_LOC): New.
7911         (PAT_VAR_OCATION_STATUS): New.
7912         (NOTE_VAR_LOCATION_DECL): Reimplement.
7913         (NOTE_VAR_LOCATION_LOC): Likewise.
7914         (NOTE_VAR_LOCATION_STATUS): Likewise.
7915         (INSN_VAR_LOCATION): New.
7916         (INSN_VAR_LOCATION_DECL): New.
7917         (INSN_VAR_LOCATION_LOC): New.
7918         (INSN_VAR_LOCATION_STATUS): New.
7919         (gen_rtx_UNKNOWN_VAR_LOC): New.
7920         (VAR_LOC_UNKNOWN_P): New.
7921         (NOTE_DURING_CALL_P): New.
7922         (SCHED_GROUP_P): Accept debug insns.
7923         (emit_debug_insn_before): Declare.
7924         (emit_debug_insn_before_noloc): Declare.
7925         (emit_debug_insn_beore_setloc): Declare.
7926         (emit_debug_insn_after): Declare.
7927         (emit_debug_insn_after_noloc): Declare.
7928         (emit_debug_insn_after_setloc): Declare.
7929         (emit_debug_insn): Declare.
7930         (make_debug_insn_raw): Declare.
7931         (prev_nondebug_insn): Declare.
7932         (next_nondebug_insn): Declare.
7933         (delegitimize_mem_from_attrs): Declare.
7934         (get_max_insn_count): Declare.
7935         (wrap_constant): Declare.
7936         (unwrap_constant): Declare.
7937         (get_curr_insn_source_location): Declare.
7938         (get_curr_insn_block): Declare.
7939         * tree-inline.c (insert_debug_decl_map): New.
7940         (processing_debug_stmt): New.
7941         (remap_decl): Don't create new mappings in debug stmts.
7942         (remap_gimple_op_r): Don't add references in debug stmts.
7943         (copy_tree_body_r): Likewise.
7944         (remap_gimple_stmt): Handle debug bind stmts.
7945         (copy_bb): Skip debug stmts.
7946         (copy_edges_for_bb): Likewise.
7947         (copy_debug_stmt): New.
7948         (copy_debug_stmts): New.
7949         (copy_body): Copy debug stmts at the end.
7950         (insert_init_debug_bind): New.
7951         (insert_init_stmt): Take id.  Skip and emit debug stmts.
7952         (setup_one_parameter): Remap variable earlier, register debug mapping.
7953         (estimate_num_insns): Skip debug stmts.
7954         (expand_call_inline): Preserve debug_map.
7955         (optimize_inline_calls): Check for no debug_stmts left-overs.
7956         (unsave_expr_now): Preserve debug_map.
7957         (copy_gimple_seq_and_replace_locals): Likewise.
7958         (tree_function_versioning): Check for no debug_stmts left-overs.
7959         Init and destroy debug_map as needed.  Split edges unconditionally.
7960         (build_duplicate_type): Init and destroy debug_map as needed.
7961         * tree-inline.h: Include gimple.h instead of pointer-set.h.
7962         (struct copy_body_data): Add debug_stmts and debug_map.
7963         * sched-int.h (struct ready_list): Add n_debug.
7964         (struct deps): Add last_debug_insn.
7965         (DEBUG_INSN_SCHED_P): New.
7966         (BOUNDARY_DEBUG_INSN_P): New.
7967         (SCHEDULE_DEBUG_INSN_P): New.
7968         (sd_iterator_cond): Accept empty list.
7969         * combine.c (create_log_links): Skip debug insns.
7970         (combine_instructions): Likewise.
7971         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
7972         return value is always unshared.
7973         (struct rtx_subst_pair): New.
7974         (auto_adjust_pair): New.
7975         (propagate_for_debug_subst): New.
7976         (propagate_for_debug): New.
7977         (try_combine): Skip debug insns.  Propagate removed defs into
7978         debug insns.
7979         (next_nonnote_nondebug_insn): New.
7980         (distribute_notes): Use it.  Skip debug insns.
7981         (distribute_links): Skip debug insns.
7982         * tree-outof-ssa.c (set_location_for_edge): Likewise.
7983         * resource.c (mark_target_live_regs): Likewise.
7984         * var-tracking.c: Include cselib.h and target.h.
7985         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7986         MO_VAL_SET.
7987         (micro_operation_type_name): New.
7988         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7989         (struct micro_operation_def): Update comments.
7990         (decl_or_value): New type.  Use instead of decls.
7991         (struct emit_note_data_def): Add vars.
7992         (struct attrs_def): Use decl_or_value.
7993         (struct variable_tracking_info_def): Add permp, flooded.
7994         (struct location_chain_def): Update comment.
7995         (struct variable_part_def): Use decl_or_value.
7996         (struct variable_def): Make var_part a variable length array.
7997         (valvar_pool): New.
7998         (scratch_regs): New.
7999         (cselib_hook_called): New.
8000         (dv_is_decl_p): New.
8001         (dv_is_value_p): New.
8002         (dv_as_decl): New.
8003         (dv_as_value): New.
8004         (dv_as_opaque): New.
8005         (dv_onepart_p): New.
8006         (dv_pool): New.
8007         (IS_DECL_CODE): New.
8008         (check_value_is_not_decl): New.
8009         (dv_from_decl): New.
8010         (dv_from_value): New.
8011         (dv_htab_hash): New.
8012         (variable_htab_hash): Use it.
8013         (variable_htab_eq): Support values.
8014         (variable_htab_free): Free from the right pool.
8015         (attrs_list_member, attrs_list_insert): Use decl_or_value.
8016         (attrs_list_union): Adjust.
8017         (attrs_list_mpdv_union): New.
8018         (tie_break_pointers): New.
8019         (canon_value_cmp): New.
8020         (unshare_variable): Return possibly-modified slot.
8021         (vars_copy_1): Adjust.
8022         (var_reg_decl_set): Adjust.  Split out of...
8023         (var_reg_set): ... this.
8024         (get_init_value): Adjust.
8025         (var_reg_delete_and_set): Adjust.
8026         (var_reg_delete): Adjust.
8027         (var_regno_delete): Adjust.
8028         (var_mem_decl_set): Split out of...
8029         (var_mem_set): ... this.
8030         (var_mem_delete_and_set): Adjust.
8031         (var_mem_delete): Adjust.
8032         (val_store): New.
8033         (val_reset): New.
8034         (val_resolve): New.
8035         (variable_union): Adjust.  Speed up merge of 1-part vars.
8036         (variable_canonicalize): Use unshared slot.
8037         (VALUED_RECURSED_INTO): New.
8038         (find_loc_in_1pdv): New.
8039         (struct dfset_merge): New.
8040         (insert_into_intersection): New.
8041         (intersect_loc_chains): New.
8042         (loc_cmp): New.
8043         (canonicalize_loc_order_check): New.
8044         (canonicalize_values_mark): New.
8045         (canonicalize_values_star): New.
8046         (variable_merge_over_cur): New.
8047         (variable_merge_over_src): New.
8048         (dataflow_set_merge): New.
8049         (dataflow_set_equiv_regs): New.
8050         (remove_duplicate_values): New.
8051         (struct dfset_post_merge): New.
8052         (variable_post_merge_new_vals): New.
8053         (variable_post_merge_perm_vals): New.
8054         (dataflow_post_merge_adjust): New.
8055         (find_mem_expr_in_1pdv): New.
8056         (dataflow_set_preserve_mem_locs): New.
8057         (dataflow_set_remove_mem_locs): New.
8058         (dataflow_set_clear_at_call): New.
8059         (onepart_variable_different_p): New.
8060         (variable_different_p): Use it.
8061         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
8062         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
8063         if not needed.
8064         (track_loc_p): Pass it true.
8065         (struct count_use_info): New.
8066         (find_use_val): New.
8067         (replace_expr_with_values): New.
8068         (log_op_type): New.
8069         (use_type): New, partially split out of...
8070         (count_uses): ... this.  Count new micro-ops.
8071         (count_uses_1): Adjust.
8072         (count_stores): Adjust.
8073         (count_with_sets): New.
8074         (VAL_NEEDS_RESOLUTION): New.
8075         (VAL_HOLDS_TRACK_EXPR): New.
8076         (VAL_EXPR_IS_COPIED): New.
8077         (VAL_EXPR_IS_CLOBBERED): New.
8078         (add_uses): Adjust.  Generate new micro-ops.
8079         (add_uses_1): Adjust.
8080         (add_stores): Generate new micro-ops.
8081         (add_with_sets): New.
8082         (find_src_status): Adjust.
8083         (find_src_set_src): Adjust.
8084         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
8085         Handle new micro-ops.  Canonicalize value equivalances.
8086         (vt_find_locations): Compute total size of hash tables for
8087         dumping.  Perform merge for var-tracking-assignments.  Don't
8088         disregard single-block loops.
8089         (dump_attrs_list): Handle decl_or_value.
8090         (dump_variable): Take variable.  Deal with decl_or_value.
8091         (dump_variable_slot): New.
8092         (dump_vars): Use it.
8093         (dump_dataflow_sets): Adjust.
8094         (set_slot_part): New, extended to support one-part variables
8095         after splitting out of...
8096         (set_variable_part): ... this.
8097         (clobber_slot_part): New, split out of...
8098         (clobber_variable_part): ... this.
8099         (delete_slot_part): New, split out of...
8100         (delete_variable_part): .... this.
8101         (check_wrap_constant): New.
8102         (vt_expand_loc_callback): New.
8103         (vt_expand_loc): New.
8104         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
8105         EMIT_NOTE_AFTER_CALL_INSN.
8106         (emit_notes_for_differences_1): Adjust.  Handle values.
8107         (emit_notes_for_differences_2): Likewise.
8108         (emit_notes_for_differences): Adjust.
8109         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
8110         Adjust.  Handle new micro-ops.
8111         (vt_add_function_parameters): Adjust.  Create and bind values.
8112         (vt_initialize): Adjust.  Initialize scratch_regs and
8113         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
8114         operations.  Move some code to count_with_sets and add_with_sets.
8115         (delete_debug_insns): New.
8116         (vt_debug_insns_local): New.
8117         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
8118         cselib.
8119         (var_tracking_main): If var-tracking-assignments is enabled
8120         but var-tracking isn't, delete debug insns and leave.  Likewise
8121         if we exceed limits or fail the stack adjustments tests, and
8122         after all var-tracking processing.
8123         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
8124         (dataflow_set): Add traversed_vars.
8125         (value_chain, const_value_chain): New typedefs.
8126         (value_chain_pool, value_chains): New variables.
8127         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
8128         add_value_chains, add_cselib_value_chains, remove_value_chain,
8129         remove_value_chains, remove_cselib_value_chains): New functions.
8130         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
8131         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
8132         static inlines.
8133         (shared_hash_find_slot_unshare, shared_hash_find_slot,
8134         shared_hash_find_slot_noinsert, shared_hash_find): Update.
8135         (dst_can_be_shared): New variable.
8136         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
8137         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
8138         different from set->vars, look up slot again instead of using the
8139         passed in slot.
8140         (dataflow_set_init): Initialize traversed_vars.
8141         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
8142         lookup if set->vars is shared.  Don't keep slot cleared before
8143         calling unshare_variable.  Unshare set->vars if needed.  Adjust
8144         unshare_variable callers.  Clear dst_can_be_shared if needed.
8145         Even ->refcount == 1 vars must be unshared if set->vars is shared
8146         and var needs to be modified.
8147         (dataflow_set_union): Set traversed_vars during canonicalization.
8148         (VALUE_CHANGED, DECL_CHANGED): Define.
8149         (set_dv_changed, dv_changed_p): New static inlines.
8150         (track_expr_p): Clear DECL_CHANGED.
8151         (dump_dataflow_sets): Set it.
8152         (variable_was_changed): Call set_dv_changed.
8153         (emit_note_insn_var_location): Likewise.
8154         (changed_variables_stack): New variable.
8155         (check_changed_vars_1, check_changed_vars_2): New functions.
8156         (emit_notes_for_changes): Do nothing if changed_variables is
8157         empty.  Traverse changed_variables with check_changed_vars_1,
8158         call check_changed_vars_2 on each changed_variables_stack entry.
8159         (emit_notes_in_bb): Add SET argument.  Just clear it at the
8160         beginning, use it instead of local &set, don't destroy it at the end.
8161         (vt_emit_notes): Call dataflow_set_clear early on all
8162         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
8163         computed set, dataflow_set_clear also VTI(bb)->in when we are
8164         done with the basic block.  Initialize changed_variables_stack,
8165         free it afterwards.  If ENABLE_CHECKING verify that after noting
8166         differences to an empty set value_chains hash table is empty.
8167         (vt_initialize): Initialize value_chains and value_chain_pool.
8168         (vt_finalize): Delete value_chains htab, free value_chain_pool.
8169         (variable_tracking_main): Call dump_dataflow_sets before calling
8170         vt_emit_notes, not after it.
8171         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
8172         (propagate_var_def_into_debug_stmts): Declare.
8173         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
8174         (df_set_note): Reject debug insns.
8175         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
8176         add notes to debug insns.
8177         (df_note_bb_compute): Adjust.  Likewise.
8178         (df_simulate_uses): Skip debug insns.
8179         (df_simulate_initialize_backwards): Likewise.
8180         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
8181         (subst_stack_regs_pat): Reject debug insns.
8182         (convert_regs_1): Handle debug insns.
8183         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
8184         (print-rtl.o): Depend on cselib.h.
8185         (cselib.o): Depend on TREE_PASS_H.
8186         (var-tracking.o): Depend on cselib.h and TARGET_H.
8187         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
8188         (init_ready_list): Skip boundary debug insns.
8189         (add_branch_dependences): Skip debug insns.
8190         (free_block_dependencies): Check for blocks with only debug insns.
8191         (compute_priorities): Likewise.
8192         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
8193         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
8194         all callers.
8195         (gimple_build_debug_bind_stat): New.
8196         (empty_body_p): Skip debug stmts.
8197         (gimple_has_side_effects): Likewise.
8198         (gimple_rhs_has_side_effects): Likewise.
8199         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
8200         (gimple_build_debug_bind_stat): Declare.
8201         (gimple_build_debug_bind): Define.
8202         (is_gimple_debug): New.
8203         (gimple_debug_bind_p): New.
8204         (gimple_debug_bind_get_var): New.
8205         (gimple_debug_bind_get_value): New.
8206         (gimple_debug_bind_get_value_ptr): New.
8207         (gimple_debug_bind_set_var): New.
8208         (gimple_debug_bind_set_value): New.
8209         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
8210         (gimple_debug_bind_reset_value): New.
8211         (gimple_debug_bind_has_value_p): New.
8212         (gsi_next_nondebug): New.
8213         (gsi_prev_nondebug): New.
8214         (gsi_start_nondebug_bb): New.
8215         (gsi_last_nondebug_bb): New.
8216         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
8217         (print_insn): Handle DEBUG_INSN.
8218         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
8219         of first insn prevail.
8220         (first_stmt): Skip debug stmts.
8221         (first_non_label_stmt): Likewise.
8222         (last_stmt): Likewise.
8223         (has_zero_uses_1): New.
8224         (single_imm_use_1): New.
8225         (verify_gimple_debug): New.
8226         (verify_types_in_gimple_stmt): Handle debug stmts.
8227         (verify_stmt): Likewise.
8228         (debug_loop_num): Skip debug stmts.
8229         (remove_edge_and_dominated_blocks): Remove dominators last.
8230         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
8231         (linearize_expr): Likewise.
8232         * config/i386/i386.c (ix86_delegitimize_address): Call
8233         default implementation.
8234         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
8235         (group_barrier_needed): Skip debug insns.
8236         (emit_insn_group_barriers): Likewise.
8237         (emit_all_insn_group_barriers): Likewise.
8238         (ia64_variable_issue): Handle debug insns.
8239         (ia64_dfa_new_cycle): Likewise.
8240         (final_emit_insn_group_barriers): Skip debug insns.
8241         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
8242         def cfa without frame.
8243         (process_set): Likewise.
8244         (process_for_unwind_directive): Pass frame on.
8245         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8246         (rs6000_delegitimize_address): New.
8247         (rs6000_debug_adjust_cost): Handle debug insns.
8248         (is_microcoded_insn): Likewise.
8249         (is_cracked_insn): Likewise.
8250         (is_nonpipeline_insn): Likewise.
8251         (insn_must_be_first_in_group): Likewise.
8252         (insn_must_be_last_in_group): Likewise.
8253         (force_new_group): Likewise.
8254         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
8255         contains only debug insns.
8256         (rtl_merge_blocks): Skip debug insns.
8257         (purge_dead_edges): Likewise.
8258         (rtl_block_ends_with_call_p): Skip debug insns.
8259         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
8260         (mark_reg_dependencies): Skip debug insns.
8261         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
8262         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
8263         * tree-ssa-threadedge.c
8264         (record_temporary_equivalences_from_stmts): Skip debug stmts.
8265         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
8266         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
8267         (copyprop_hardreg_forward_1): Handle debug insns.
8268         * reload1.c (reload): Skip debug insns.  Replace unassigned
8269         pseudos in debug insns with their equivalences.
8270         (eliminate_regs_in_insn): Skip debug insns.
8271         (emit_input_reload_insns): Skip debug insns at first, adjust
8272         them later.
8273         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
8274         (get_indirect_ref_operands): Pass opf_no_vops on.
8275         (get_expr_operands): Likewise.  Skip debug stmts.
8276         (parse_ssa_operands): Scan debug insns with opf_no_vops.
8277
8278 2009-09-01  Richard Henderson  <rth@redhat.com>
8279
8280         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
8281         stmt_ends_pp_p statements at least once.
8282         * tree-vrp.c (vrp_initialize): Likewise.
8283         (vrp_visit_stmt): Be prepared for non-interesting stmts.
8284
8285 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
8286
8287         PR bootstrap/41205
8288         Fix AIX bootstrap after PR debug/30161
8289         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
8290         that is a GNU extension.
8291         (tmpl_value_parm_die_table): Move the definition of this global
8292         outside #ifdef DWARF2_DEBUGGING_INFO region.
8293
8294 2009-09-01  Richard Guenther  <rguenther@suse.de>
8295
8296         * tree.c (tree_expr_size): New function.
8297         * tree.h (tree_expr_size): Declare.
8298         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
8299         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
8300         * langhooks.c (lhd_expr_size): Remove.
8301         * langhooks.h (struct lang_hooks): Remove expr_size.
8302         * explow.c (expr_size): Use tree_expr_size.
8303         (int_expr_size): Likewise.
8304         * langhooks-def.h (lhd_expr_size): Remove.
8305         (LANG_HOOKS_EXPR_SIZE): Likewise.
8306         (LANG_HOOKS_INITIALIZER): Adjust.
8307
8308 2009-09-01  Richard Guenther  <rguenther@suse.de>
8309
8310         * tree-flow.h (mark_addressable): Move declaration ...
8311         * tree.h (mark_addressable): ... here.
8312         * stmt.c (expand_asm_operands): Use mark_addressable, not
8313         lang_hooks.mark_addressable.
8314         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8315         LANG_HOOKS_MARK_ADDRESSABLE.
8316         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
8317         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
8318
8319 2009-08-31  Chris Demetriou  <cgd@google.com>
8320
8321         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
8322         vectorize if not TARGET_SSE2.
8323
8324 2009-08-31  DJ Delorie  <dj@redhat.com>
8325
8326         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
8327         registers if no coprocessor is enabled.
8328
8329 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
8330
8331         PR debug/30161
8332         * cgraph.h (cgraph_get_node): Declare ...
8333         * cgraph.c (cgraph_get_node): ... new function.
8334         * dwarf2out.c (gen_generic_params_dies,
8335         generic_parameter_die, tree_add_const_value_attribute_for_decl,
8336         make_ith_pack_parameter_name,
8337         append_entry_to_tmpl_value_parm_die_table,
8338         gen_remaining_tmpl_value_param_die_attribute): New functions.
8339         (gen_subprogram_die): Generate debug info for template parameters
8340         if debug info level is higher than DINFO_LEVEL_TERSE.
8341         Use tree_add_const_value_attribute_for_decl instead of
8342         tree_add_const_value_attribute.
8343         (gen_const_die): Use tree_add_const_value_attribute_for_decl
8344         instead of tree_add_const_value_attribute.
8345         (gen_struct_or_union_type_die): Generate debug
8346         info for template parameters if debug info level is higher than
8347         DINFO_LEVEL_TERSE.
8348         (tree_add_const_value_attribute): Handle integral and pointer
8349         constants. Update comment.
8350         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
8351         (dwarf_attr_name): Support DW_AT_GNU_template_name.
8352         (reference_to_unused): Fix thinko. Remove redundant predicates from
8353         tests.
8354         (tree_add_const_value_attribute): Make this work for constant
8355         expressions only.
8356         tree_add_const_value_attribute_for_decl is to be used for variable
8357         DECLs now.
8358         (add_location_or_const_value_attribute): Use
8359         tree_add_const_value_attribute_for_decl now.
8360         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
8361         DW_TAG_template_value_param DIEs after function DIEs have been
8362         emitted.
8363         * langhooks.h (lang_hooks_for_types): Add
8364         get_argument_pack_elems.
8365         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
8366         (lang_hooks): Added get_innermost_generic_parms,
8367         get_innermost_generic_args.
8368         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
8369         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
8370         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
8371         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
8372
8373 2009-08-31  DJ Delorie  <dj@redhat.com>
8374
8375         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
8376         it once we start generating the prologue or epilogue.
8377         (mep_call_saves_register): If the frame is locked, re-use
8378         cached values.
8379         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
8380         (mep_expand_prologue): Call it.
8381         (mep_expand_epilogue): Likewise.
8382         (mep_start_function): Use the same logic as mep_expand_prologue.
8383         (mep_pass_by_reference): Make logic more readable.
8384         (mep_return_in_memory): Zero-sized objects are passed in memory.
8385         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
8386
8387 2009-08-31  Richard Guenther  <rguenther@suse.de>
8388
8389         * builtins.c (fold_builtin_memory_op): Use the alias oracle
8390         to query if the memory regions for memmove overlap.
8391         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8392         asserts on pointers, instead deal with odd trees.
8393         (ptr_derefs_may_alias_p): Likewise.
8394         (refs_may_alias_p_1): Constructor bases also never alias.
8395
8396 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8397
8398         * doc/install.texi (Final install): Adjust reference on where to
8399         order printed manuals.
8400
8401 2009-08-30  Olivier Hainque  <hainque@adacore.com>
8402
8403         * dwarf2out.c (switch_to_frame_table_section): Move
8404         definition prior to first use.
8405
8406 2009-08-30  Richard Guenther  <rguenther@suse.de>
8407
8408         PR tree-optimization/41186
8409         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
8410         (ao_ref_init_from_ptr_and_size): New function.
8411         (ref_maybe_used_by_call_p_1): Be more precise tracking
8412         used ranges for builtin functions.
8413         (ref_maybe_used_by_call_p): Adjust.
8414         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
8415         ranges for builtin functions.
8416         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
8417
8418 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
8419
8420         PR target/41081
8421         * fwprop.c (get_reg_use_in): Delete.
8422         (free_load_extend): New function.
8423         (forward_propagate_subreg): Use it.
8424
8425 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8426
8427         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
8428
8429 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
8430
8431         PR/41184
8432         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8433         padding.
8434
8435 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
8436
8437         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8438         fini or fini_array section.
8439
8440 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8441
8442         * graphite-dependences.c (graphite_legal_transform_bb): Call
8443         pbb_remove_duplicate_pdrs.
8444         * graphite-poly.c (can_collapse_pdr): Removed.
8445         (pdr_find_duplicate): Removed.
8446         (can_collapse_pdrs): New.
8447         (pbb_remove_duplicate_pdrs): New.
8448         (new_poly_dr): Do not look for duplicates.
8449         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8450         (PBB_PDR_DUPLICATES_REMOVED): New.
8451         (pbb_remove_duplicate_pdrs): Declared.
8452
8453 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8454
8455         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8456         the strides by multiplying by PDR_NB_REFS.
8457         * graphite-poly.c (can_collapse_pdr): New.
8458         (pdr_find_duplicate): New.
8459         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
8460         Initialize PDR_NB_REFS.
8461         * graphite-poly.h (struct poly_dr): Add field nb_refs.
8462         (PDR_NB_REFS): New.
8463         (new_poly_dr): Number of subscripts is a graphite_dim_t.
8464
8465 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8466
8467         PR middle-end/40965
8468         * graphite-poly.c (apply_poly_transforms): Remove legality test before
8469         any transform.
8470
8471 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8472
8473         * graphite-dependences.c (pddr_original_scattering): Return NULL
8474         for read-read dependence relations.
8475         * graphite-poly.h (enum poly_dr_type): Fix comment.
8476         (pdr_read_p): New.
8477         (pdr_write_p): New.
8478         (pdr_may_write_p): New.
8479
8480 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8481
8482         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8483         (struct poly_dr): Same.
8484         (new_poly_dr): Same.
8485         * graphite-poly.c (new_poly_dr): Same.
8486         * graphite-dependences.c (dot_deps): Disable call to system.
8487
8488 2009-08-28  Cary Coutant  <ccoutant@google.com>
8489
8490         PR debug/41063
8491         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8492         struct/union/enum types local to a function.
8493
8494 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8495             Sebastian Pop  <sebastian.pop@amd.com>
8496
8497         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8498         pbb_strip_mine_time_depth.  Changed the implementation so that
8499         transformation is expressed as a transformation on
8500         time (scatttering) dimensions.  Also, ensures that the 2d+1
8501         scheduling format is preserved.
8502         (pbb_strip_mine_profitable_p): Profitability is based on the
8503         iteration number of a given time (scattering) dimension,
8504         and not on a original loop depth dimension.
8505         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8506         (pbb_do_strip_mine): Call psct_dynamic_dim.
8507         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8508         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8509         (pbb_nb_dynamic_scattering_transform): New.
8510         (psct_dynamic_dim): New.
8511
8512 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8513
8514         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8515         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8516         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8517         * graphite-interchange.c (build_linearized_memory_access): Same.
8518         (memory_stride_in_loop): Same.
8519
8520 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8521
8522         * graphite-dependences.c (pddr_original_scattering): New.
8523         (graphite_legal_transform_dr): Call pddr_original_scattering.
8524         (dot_deps_1): New.
8525         (dot_deps): New.
8526         * graphite-dependences.h (dot_deps): Declared.
8527         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8528         (print_pdr): Print PDR_ID.
8529         * graphite-poly.h (struct poly_dr): Add field id.
8530         (PDR_ID): New.
8531         (pbb_index): New.
8532         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8533
8534 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8535
8536         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8537         not delete the original dependence relation.
8538
8539 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8540
8541         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8542         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8543         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8544         (free_poly_ddr): New.
8545         (pddr_is_empty): New.
8546         (dependence_polyhedron_1): Now returns a poly_ddr_p.
8547         (dependence_polyhedron): Same.  Remove useless gcc_assert.
8548         Remove fprintfs.
8549         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8550         (graphite_carried_dependence_level_k): Call pddr_is_empty.
8551         * graphite-dependences.h (enum poly_dependence_kind): New.
8552         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
8553         (PDRP_SOURCE): Renamed PDDR_SOURCE.
8554         (PDRP_SINK): Renamed PDDR_SINK.
8555         (PDRP_DDP): Renamed PDDR_DDP.
8556         (PDDR_KIND): New.
8557         (free_poly_ddr): Declared.
8558         * graphite-poly.c (new_scop): Use the new hash function names.
8559         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8560         into original_pddrs.
8561         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8562
8563 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8564
8565         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8566         bounds with LT_EXPR to make niter analysis more precise on code
8567         generated by Graphite.
8568
8569 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8570
8571         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8572         (graphite_legal_transform_bb): Same.
8573         (poly_drs_may_alias_p): Same.
8574
8575 2009-08-28  Richard Guenther  <rguenther@suse.de>
8576
8577         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8578
8579 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8580
8581         * config/i386/netware.c: Include langhooks.h.
8582         (i386_nlm_encode_section_info): Simplify.
8583         (netware_override_options): Delete.
8584         * config/i386/netware.h (netware_override_options): Delete
8585         declaration.
8586         (OVERRIDE_OPTIONS): Delete definition.
8587         (SUBTARGET_OVERRIDE_OPTIONS): Define.
8588         (ASM_COMMENT_START): Define.
8589         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8590
8591 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8592
8593         * configure.ac: For in-tree ld, do a plain version check to
8594         determine whether comdat groups are supported.
8595         * configure: Regenerate.
8596
8597 2009-08-28  Olivier Hainque  <hainque@adacore.com>
8598
8599         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8600         always defined.  Reflect definition or absence of such for
8601         COLLECT_EXPORT_LIST.  Readability helper.
8602         (scanfilter): New enum, to help control what symbols
8603         are to be considered or ignored by scan_prog_file.
8604         (enum pass): Rename as "scanpass", moved together with scanfilter
8605         prior to scan_prog_file's prototype.
8606         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8607         Group prototype with the scanpass/scanfilter definitions, factorize
8608         head comments for the several implementations at the prototype.
8609         (main): Reorganize the first pass link control to let AIX
8610         drag only the needed frame tables in executables.  Prevent
8611         frame tables collection during the scan aimed at static ctors.
8612         Pre-link and scan for frame tables later to compensate.
8613         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8614         A C statement to issue assembly directives that create a reference
8615         to the given DWARF table identifier label from the current function
8616         section.
8617         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8618         to differentiate first time section entry.  Only emit a .data
8619         tables start identifier label the first time around.
8620         (switch_to_frame_table_section): New function.  Helper for
8621         output_call_frame_info to switch possibly BACK into the eh_frame
8622         or the debug_frame section depending on FOR_EH.
8623         (output_call_frame_info): Use helper to first enter the proper
8624         frame section.
8625         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8626         emit a link to the frame table start label from each function
8627         section.
8628         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8629         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8630         * config/rs6000/rs6000-protos.h: Declare it.
8631         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8632
8633 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8634
8635         * config/sh/sh.c (split_branches): Check the result of
8636         next_active_insn.
8637
8638 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
8639
8640         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8641         using -pthread -fopenmp
8642
8643 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
8644
8645         * doc/service.texi (service directory): Update URL.
8646
8647 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
8648
8649         PR rtl-optimization/40861
8650         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8651         extract word from a multi-word subreg for negative byte positions.
8652
8653 2009-08-27  Tristan Gingold  <gingold@adacore.com>
8654             Douglas B Rupp  <rupp@gnat.com>
8655
8656         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8657         (SECTION_VMS_OVERLAY): Define.
8658         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
8659         attribute.
8660         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
8661         for common_object.
8662         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
8663         common_object declarations.
8664         (ia64_section_type_flags): Set section flag for common_object.
8665         * config/ia64/ia64-protos.h
8666         (ia64_vms_output_aligned_decl_common): Declare.
8667         (ia64_vms_elf_asm_named_section): Declare.
8668
8669 2009-08-27  Michael Matz  <matz@suse.de>
8670
8671         * expr.c (expand_expr_real_2): New function taking exploded
8672         unary or binary expression, split out from ...
8673         (expand_expr_real_1): ... here.  Move over all unary/binary
8674         switch parts to above function, in particular these codes:
8675         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8676         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8677         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8678         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8679         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8680         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8681         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8682         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8683         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8684         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8685         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8686         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8687         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8688         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8689         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8690         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8691         VEC_PACK_FIX_TRUNC_EXPR.
8692         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8693         full expression.
8694
8695 2009-08-27  Richard Guenther  <rguenther@suse.de>
8696
8697         * gengtype.c (main): Handle uint64_t.
8698         * ipa-utils.c (get_base_var): Indent properly.
8699         * tree-ssa-live.c (debug_scope_block): New function.
8700         * tree-flow.h (debug_scope_block): Declare.
8701         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8702         * basic-block.h (enum profile_status): Rename to
8703         enum profile_status_d.
8704         (x_profile_status): Adjust type.
8705
8706 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
8707
8708         PR debug/41170
8709         * dwarf2out.c (get_context_die): Declare this static function.
8710         (gen_type_die_with_usage): Make sure a DIE is a generated for
8711         the context of a typedef.
8712
8713 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
8714
8715         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8716         switch.
8717
8718 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
8719
8720         * config/mips/mips-protos.h (mips_output_sync): Declare.
8721         (mips_sync_loop_insns): Likewise.
8722         (mips_output_sync_loop): Replace first two parameters with an rtx.
8723         * config/mips/mips.c (mips_multi_member): New structure.
8724         (mips_multi_members): New variable.
8725         (mips_multi_start): New function.
8726         (mips_multi_add): Likewise.
8727         (mips_multi_add_insn): Likewise.
8728         (mips_multi_add_label): Likewise.
8729         (mips_multi_last_index): Likewise.
8730         (mips_multi_copy_insn): Likewise.
8731         (mips_multi_set_operand): Likewise.
8732         (mips_multi_write): Likewise.
8733         (mips_print_operand_punctuation): Remove '%|' and '%-'.
8734         (mips_init_print_operand_punct): Update accordingly.
8735         (mips_start_ll_sc_sync_block): New function.
8736         (mips_end_ll_sc_sync_block): Likewise.
8737         (mips_output_sync): Likewise.
8738         (mips_sync_insn1_template): Likewise.
8739         (mips_sync_insn2_template): Likewise.
8740         (mips_get_sync_operand): Likewise.
8741         (mips_process_sync_loop): Likewise.
8742         (mips_output_sync_loop): Use mips_process_sync_loop.
8743         (mips_sync_loop_insns): New function.
8744         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8745         (MIPS_COMPARE_AND_SWAP_12): Likewise.
8746         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8747         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8748         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8749         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8750         (MIPS_SYNC_OLD_OP_12): Likewise.
8751         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8752         (MIPS_SYNC_NEW_OP_12): Likewise.
8753         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8754         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8755         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8756         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8757         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8758         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8759         * config/mips/mips.md (sync_mem): New attribute.
8760         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8761         (sync_exclusive_mask, sync_required_oldval): Likewise.
8762         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8763         (sync_release_barrier): Likewise.
8764         (length): Handle sync loops.
8765         (sync): Use mips_output_sync.
8766         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8767         (sync_compare_and_swap<mode>): Set the new sync_* attributes
8768         and use mips_output_sync_loop.
8769         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8770         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8771         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8772         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8773         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8774         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8775         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8776         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8777         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8778
8779 2009-08-26  Richard Guenther  <rguenther@suse.de>
8780
8781         PR middle-end/41163
8782         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8783         the types to not match.
8784         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8785         verification.
8786         * tree-ssa.c (useless_type_conversion_p): Conversions to
8787         pointers to unprototyped functions are useless.
8788
8789 2009-08-26  Richard Guenther  <rguenther@suse.de>
8790
8791         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8792         whole-program condition, prepare to be called for non-globals.
8793         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8794         params build a representative with known type and track its fields.
8795
8796 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
8797
8798         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8799         clearing by a taken branch.
8800         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8801         effectively after bbro pass.
8802         (sync_nand<mode>): Ditto.
8803         (sync_old_<fetchop_name><mode>): Ditto.
8804         (sync_old_nand<mode>): Ditto.
8805         (sync_new_<fetchop_name><mode>): Dito.
8806         (sync_new_nand<mode>): Ditto.
8807         (sync_compare_and_swap<mode>_1): Ditto.
8808         (*sync_compare_and_swap<mode>): Ditto.
8809         (sync_lock_test_and_set<mode>_1): Ditto.
8810         ("sync_lock_test_and_set<mode>): Ditto.
8811
8812 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
8813
8814         * hwint.h (HOST_LONG_FORMAT): New macro
8815         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8816         Use HOST_PTR_PRINTF.
8817         * system.h (HOST_PTR_PRINTF): Resurrect old macro
8818         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8819         (HOST_PTR_PRINTF): Document.
8820
8821 2009-08-25 Jan Hubicka  <jh@suse.cz>
8822
8823         * config/i386/bmmintrin.h: Replace by #error.
8824
8825         Revert:
8826         Michael Meissner  <michael.meissner@amd.com>
8827         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8828         Tony Linthicum  <tony.linthicum@amd.com>
8829
8830         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8831         (TARGET_ROUND): New macro for the round/ptest instructions which
8832         are shared between SSE4.1 and SSE5.
8833         (OPTION_MASK_ISA_ROUND): Ditto.
8834         (OPTION_ISA_ROUND): Ditto.
8835         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8836         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8837
8838         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8839         (-mfused-madd): New switch to give users control over whether the
8840         compiler optimizes to use the multiply/add SSE5 instructions.
8841
8842         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8843         (ix86_handle_option): Turn off 3dnow if -msse5.
8844         (override_options): Add SSE5 support.
8845         (print_operand): %Y prints comparison codes for SSE5 com/pcom
8846         instructions.
8847         (ix86_expand_sse_movcc): Add SSE5 support.
8848         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8849         vector type to the next largest size.
8850         (ix86_expand_sse5_pack): New function to use pperm to pack a
8851         vector type to the next smallest size.
8852         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8853         (IX86_BUILTIN_FMADDSD): Ditto.
8854         (IX86_BUILTIN_FMADDPS): Ditto.
8855         (IX86_BUILTIN_FMADDPD): Ditto.
8856         (IX86_BUILTIN_FMSUBSS): Ditto.
8857         (IX86_BUILTIN_FMSUBSD): Ditto.
8858         (IX86_BUILTIN_FMSUBPS): Ditto.
8859         (IX86_BUILTIN_FMSUBPD): Ditto.
8860         (IX86_BUILTIN_FNMADDSS): Ditto.
8861         (IX86_BUILTIN_FNMADDSD): Ditto.
8862         (IX86_BUILTIN_FNMADDPS): Ditto.
8863         (IX86_BUILTIN_FNMADDPD): Ditto.
8864         (IX86_BUILTIN_FNMSUBSS): Ditto.
8865         (IX86_BUILTIN_FNMSUBSD): Ditto.
8866         (IX86_BUILTIN_FNMSUBPS): Ditto.
8867         (IX86_BUILTIN_FNMSUBPD): Ditto.
8868         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8869         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8870         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8871         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8872         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8873         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8874         (IX86_BUILTIN_PPERM): Ditto.
8875         (IX86_BUILTIN_PERMPS): Ditto.
8876         (IX86_BUILTIN_PERMPD): Ditto.
8877         (IX86_BUILTIN_PMACSSWW): Ditto.
8878         (IX86_BUILTIN_PMACSWW): Ditto.
8879         (IX86_BUILTIN_PMACSSWD): Ditto.
8880         (IX86_BUILTIN_PMACSWD): Ditto.
8881         (IX86_BUILTIN_PMACSSDD): Ditto.
8882         (IX86_BUILTIN_PMACSDD): Ditto.
8883         (IX86_BUILTIN_PMACSSDQL): Ditto.
8884         (IX86_BUILTIN_PMACSSDQH): Ditto.
8885         (IX86_BUILTIN_PMACSDQL): Ditto.
8886         (IX86_BUILTIN_PMACSDQH): Ditto.
8887         (IX86_BUILTIN_PMADCSSWD): Ditto.
8888         (IX86_BUILTIN_PMADCSWD): Ditto.
8889         (IX86_BUILTIN_PHADDBW): Ditto.
8890         (IX86_BUILTIN_PHADDBD): Ditto.
8891         (IX86_BUILTIN_PHADDBQ): Ditto.
8892         (IX86_BUILTIN_PHADDWD): Ditto.
8893         (IX86_BUILTIN_PHADDWQ): Ditto.
8894         (IX86_BUILTIN_PHADDDQ): Ditto.
8895         (IX86_BUILTIN_PHADDUBW): Ditto.
8896         (IX86_BUILTIN_PHADDUBD): Ditto.
8897         (IX86_BUILTIN_PHADDUBQ): Ditto.
8898         (IX86_BUILTIN_PHADDUWD): Ditto.
8899         (IX86_BUILTIN_PHADDUWQ): Ditto.
8900         (IX86_BUILTIN_PHADDUDQ): Ditto.
8901         (IX86_BUILTIN_PHSUBBW): Ditto.
8902         (IX86_BUILTIN_PHSUBWD): Ditto.
8903         (IX86_BUILTIN_PHSUBDQ): Ditto.
8904         (IX86_BUILTIN_PROTB): Ditto.
8905         (IX86_BUILTIN_PROTW): Ditto.
8906         (IX86_BUILTIN_PROTD): Ditto.
8907         (IX86_BUILTIN_PROTQ): Ditto.
8908         (IX86_BUILTIN_PROTB_IMM): Ditto.
8909         (IX86_BUILTIN_PROTW_IMM): Ditto.
8910         (IX86_BUILTIN_PROTD_IMM): Ditto.
8911         (IX86_BUILTIN_PROTQ_IMM): Ditto.
8912         (IX86_BUILTIN_PSHLB): Ditto.
8913         (IX86_BUILTIN_PSHLW): Ditto.
8914         (IX86_BUILTIN_PSHLD): Ditto.
8915         (IX86_BUILTIN_PSHLQ): Ditto.
8916         (IX86_BUILTIN_PSHAB): Ditto.
8917         (IX86_BUILTIN_PSHAW): Ditto.
8918         (IX86_BUILTIN_PSHAD): Ditto.
8919         (IX86_BUILTIN_PSHAQ): Ditto.
8920         (IX86_BUILTIN_FRCZSS): Ditto.
8921         (IX86_BUILTIN_FRCZSD): Ditto.
8922         (IX86_BUILTIN_FRCZPS): Ditto.
8923         (IX86_BUILTIN_FRCZPD): Ditto.
8924         (IX86_BUILTIN_CVTPH2PS): Ditto.
8925         (IX86_BUILTIN_CVTPS2PH): Ditto.
8926         (IX86_BUILTIN_COMEQSS): Ditto.
8927         (IX86_BUILTIN_COMNESS): Ditto.
8928         (IX86_BUILTIN_COMLTSS): Ditto.
8929         (IX86_BUILTIN_COMLESS): Ditto.
8930         (IX86_BUILTIN_COMGTSS): Ditto.
8931         (IX86_BUILTIN_COMGESS): Ditto.
8932         (IX86_BUILTIN_COMUEQSS): Ditto.
8933         (IX86_BUILTIN_COMUNESS): Ditto.
8934         (IX86_BUILTIN_COMULTSS): Ditto.
8935         (IX86_BUILTIN_COMULESS): Ditto.
8936         (IX86_BUILTIN_COMUGTSS): Ditto.
8937         (IX86_BUILTIN_COMUGESS): Ditto.
8938         (IX86_BUILTIN_COMORDSS): Ditto.
8939         (IX86_BUILTIN_COMUNORDSS): Ditto.
8940         (IX86_BUILTIN_COMFALSESS): Ditto.
8941         (IX86_BUILTIN_COMTRUESS): Ditto.
8942         (IX86_BUILTIN_COMEQSD): Ditto.
8943         (IX86_BUILTIN_COMNESD): Ditto.
8944         (IX86_BUILTIN_COMLTSD): Ditto.
8945         (IX86_BUILTIN_COMLESD): Ditto.
8946         (IX86_BUILTIN_COMGTSD): Ditto.
8947         (IX86_BUILTIN_COMGESD): Ditto.
8948         (IX86_BUILTIN_COMUEQSD): Ditto.
8949         (IX86_BUILTIN_COMUNESD): Ditto.
8950         (IX86_BUILTIN_COMULTSD): Ditto.
8951         (IX86_BUILTIN_COMULESD): Ditto.
8952         (IX86_BUILTIN_COMUGTSD): Ditto.
8953         (IX86_BUILTIN_COMUGESD): Ditto.
8954         (IX86_BUILTIN_COMORDSD): Ditto.
8955         (IX86_BUILTIN_COMUNORDSD): Ditto.
8956         (IX86_BUILTIN_COMFALSESD): Ditto.
8957         (IX86_BUILTIN_COMTRUESD): Ditto.
8958         (IX86_BUILTIN_COMEQPS): Ditto.
8959         (IX86_BUILTIN_COMNEPS): Ditto.
8960         (IX86_BUILTIN_COMLTPS): Ditto.
8961         (IX86_BUILTIN_COMLEPS): Ditto.
8962         (IX86_BUILTIN_COMGTPS): Ditto.
8963         (IX86_BUILTIN_COMGEPS): Ditto.
8964         (IX86_BUILTIN_COMUEQPS): Ditto.
8965         (IX86_BUILTIN_COMUNEPS): Ditto.
8966         (IX86_BUILTIN_COMULTPS): Ditto.
8967         (IX86_BUILTIN_COMULEPS): Ditto.
8968         (IX86_BUILTIN_COMUGTPS): Ditto.
8969         (IX86_BUILTIN_COMUGEPS): Ditto.
8970         (IX86_BUILTIN_COMORDPS): Ditto.
8971         (IX86_BUILTIN_COMUNORDPS): Ditto.
8972         (IX86_BUILTIN_COMFALSEPS): Ditto.
8973         (IX86_BUILTIN_COMTRUEPS): Ditto.
8974         (IX86_BUILTIN_COMEQPD): Ditto.
8975         (IX86_BUILTIN_COMNEPD): Ditto.
8976         (IX86_BUILTIN_COMLTPD): Ditto.
8977         (IX86_BUILTIN_COMLEPD): Ditto.
8978         (IX86_BUILTIN_COMGTPD): Ditto.
8979         (IX86_BUILTIN_COMGEPD): Ditto.
8980         (IX86_BUILTIN_COMUEQPD): Ditto.
8981         (IX86_BUILTIN_COMUNEPD): Ditto.
8982         (IX86_BUILTIN_COMULTPD): Ditto.
8983         (IX86_BUILTIN_COMULEPD): Ditto.
8984         (IX86_BUILTIN_COMUGTPD): Ditto.
8985         (IX86_BUILTIN_COMUGEPD): Ditto.
8986         (IX86_BUILTIN_COMORDPD): Ditto.
8987         (IX86_BUILTIN_COMUNORDPD): Ditto.
8988         (IX86_BUILTIN_COMFALSEPD): Ditto.
8989         (IX86_BUILTIN_COMTRUEPD): Ditto.
8990         (IX86_BUILTIN_PCOMEQUB): Ditto.
8991         (IX86_BUILTIN_PCOMNEUB): Ditto.
8992         (IX86_BUILTIN_PCOMLTUB): Ditto.
8993         (IX86_BUILTIN_PCOMLEUB): Ditto.
8994         (IX86_BUILTIN_PCOMGTUB): Ditto.
8995         (IX86_BUILTIN_PCOMGEUB): Ditto.
8996         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8997         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8998         (IX86_BUILTIN_PCOMEQUW): Ditto.
8999         (IX86_BUILTIN_PCOMNEUW): Ditto.
9000         (IX86_BUILTIN_PCOMLTUW): Ditto.
9001         (IX86_BUILTIN_PCOMLEUW): Ditto.
9002         (IX86_BUILTIN_PCOMGTUW): Ditto.
9003         (IX86_BUILTIN_PCOMGEUW): Ditto.
9004         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
9005         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
9006         (IX86_BUILTIN_PCOMEQUD): Ditto.
9007         (IX86_BUILTIN_PCOMNEUD): Ditto.
9008         (IX86_BUILTIN_PCOMLTUD): Ditto.
9009         (IX86_BUILTIN_PCOMLEUD): Ditto.
9010         (IX86_BUILTIN_PCOMGTUD): Ditto.
9011         (IX86_BUILTIN_PCOMGEUD): Ditto.
9012         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
9013         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
9014         (IX86_BUILTIN_PCOMEQUQ): Ditto.
9015         (IX86_BUILTIN_PCOMNEUQ): Ditto.
9016         (IX86_BUILTIN_PCOMLTUQ): Ditto.
9017         (IX86_BUILTIN_PCOMLEUQ): Ditto.
9018         (IX86_BUILTIN_PCOMGTUQ): Ditto.
9019         (IX86_BUILTIN_PCOMGEUQ): Ditto.
9020         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
9021         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
9022         (IX86_BUILTIN_PCOMEQB): Ditto.
9023         (IX86_BUILTIN_PCOMNEB): Ditto.
9024         (IX86_BUILTIN_PCOMLTB): Ditto.
9025         (IX86_BUILTIN_PCOMLEB): Ditto.
9026         (IX86_BUILTIN_PCOMGTB): Ditto.
9027         (IX86_BUILTIN_PCOMGEB): Ditto.
9028         (IX86_BUILTIN_PCOMFALSEB): Ditto.
9029         (IX86_BUILTIN_PCOMTRUEB): Ditto.
9030         (IX86_BUILTIN_PCOMEQW): Ditto.
9031         (IX86_BUILTIN_PCOMNEW): Ditto.
9032         (IX86_BUILTIN_PCOMLTW): Ditto.
9033         (IX86_BUILTIN_PCOMLEW): Ditto.
9034         (IX86_BUILTIN_PCOMGTW): Ditto.
9035         (IX86_BUILTIN_PCOMGEW): Ditto.
9036         (IX86_BUILTIN_PCOMFALSEW): Ditto.
9037         (IX86_BUILTIN_PCOMTRUEW): Ditto.
9038         (IX86_BUILTIN_PCOMEQD): Ditto.
9039         (IX86_BUILTIN_PCOMNED): Ditto.
9040         (IX86_BUILTIN_PCOMLTD): Ditto.
9041         (IX86_BUILTIN_PCOMLED): Ditto.
9042         (IX86_BUILTIN_PCOMGTD): Ditto.
9043         (IX86_BUILTIN_PCOMGED): Ditto.
9044         (IX86_BUILTIN_PCOMFALSED): Ditto.
9045         (IX86_BUILTIN_PCOMTRUED): Ditto.
9046         (IX86_BUILTIN_PCOMEQQ): Ditto.
9047         (IX86_BUILTIN_PCOMNEQ): Ditto.
9048         (IX86_BUILTIN_PCOMLTQ): Ditto.
9049         (IX86_BUILTIN_PCOMLEQ): Ditto.
9050         (IX86_BUILTIN_PCOMGTQ): Ditto.
9051         (IX86_BUILTIN_PCOMGEQ): Ditto.
9052         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
9053         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
9054         (enum multi_arg_type): New enum for describing the various SSE5
9055         intrinsic argument types.
9056         (bdesc_multi_arg): New table for SSE5 intrinsics.
9057         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
9058         (ix86_expand_multi_arg_builtin): New function for creating SSE5
9059         intrinsics.
9060         (ix86_expand_builtin): Add SSE5 intrinsic support.
9061         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
9062         operand instructions.
9063         (ix86_expand_sse5_multiple_memory): New function to split the
9064         second memory reference from SSE5 instructions.
9065         (type_has_variadic_args_p): Delete in favor of stdarg_p.
9066         (ix86_return_pops_args): Use stdarg_p to determine if the function
9067         has variable arguments.
9068         (ix86_setup_incoming_varargs): Ditto.
9069         (x86_this_parameter): Ditto.
9070
9071         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
9072         declaration.
9073         (ix86_expand_sse5_pack): Ditto.
9074         (ix86_sse5_valid_op_p): Ditto.
9075         (ix86_expand_sse5_multiple_memory): Ditto.
9076
9077         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
9078         constant for SSE5 support.
9079         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
9080         (UNSPEC_SSE5_TRUEFALSE): Ditto.
9081         (UNSPEC_SSE5_PERMUTE): Ditto.
9082         (UNSPEC_SSE5_ASHIFT): Ditto.
9083         (UNSPEC_SSE5_LSHIFT): Ditto.
9084         (UNSPEC_FRCZ): Ditto.
9085         (UNSPEC_CVTPH2PS): Ditto.
9086         (UNSPEC_CVTPS2PH): Ditto.
9087         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
9088         (PCOM_TRUE): Ditto.
9089         (COM_FALSE_S): Ditto.
9090         (COM_FALSE_P): Ditto.
9091         (COM_TRUE_S): Ditto.
9092         (COM_TRUE_P): Ditto.
9093         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
9094         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
9095         types.
9096         (memory attribute): Ditto.
9097         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9098         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
9099         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9100         (floor<mode>2): Ditto.
9101         (ceil<mode>2): Ditto.
9102         (btrunc<mode>2): Ditto.
9103         (nearbyintdf2): Ditto.
9104         (nearbyintsf2): Ditto.
9105         (sse_setccsf): Disable if SSE5.
9106         (sse_setccdf): Ditto.
9107         (sse5_setcc<mode>): New support for SSE5 conditional move.
9108         (sse5_pcmov_<mode>): Ditto.
9109
9110         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
9111         (SSEMODEF4): Ditto.
9112         (SSEMODEF2P): Ditto.
9113         (ssemodesuffixf4): New mode attribute for SSE5.
9114         (ssemodesuffixf2s): Ditto.
9115         (ssemodesuffixf2c): Ditto.
9116         (sserotatemax): Ditto.
9117         (ssescalarmode): Ditto.
9118         (sse_maskcmpv4sf3): Disable if SSE5.
9119         (sse_maskcmpv2df3): Ditto.
9120         (sse_vmmaskcmpv4sf3): Ditto.
9121         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
9122         (sse5_vmfmadd<mode>4): Ditto.
9123         (sse5_fmsub<mode>4): Ditto.
9124         (sse5_vmfmsub<mode>4): Ditto.
9125         (sse5_fnmadd<mode>4): Ditto.
9126         (sse5_vmfnmadd<mode>4): Ditto.
9127         (sse5_fnmsub<mode>4): Ditto.
9128         (sse5_vmfnmsub<mode>4): Ditto.
9129         (sse5i_fmadd<mode>4): Ditto.
9130         (sse5i_fmsub<mode>4): Ditto.
9131         (sse5i_fnmadd<mode>4): Ditto.
9132         (sse5i_fnmsub<mode>4): Ditto.
9133         (sse5i_vmfmadd<mode>4): Ditto.
9134         (sse5i_vmfmsub<mode>4): Ditto.
9135         (sse5i_vmfnmadd<mode>4): Ditto.
9136         (sse5i_vmfnmsub<mode>4): Ditto.
9137         (mulv16qi3): Add SSE5 support.
9138         (mulv4si3): Ditto.
9139         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
9140         (sse2_mulv4si3): Disable if SSE5.
9141         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
9142         (sse4_1_roundps): Ditto.
9143         (sse4_1_roundsd): Ditto.
9144         (sse4_1_roundss): Ditto.
9145         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
9146         be generated.
9147         (sse_maskcmpsf3): Ditto.
9148         (sse_vmmaskcmpv4sf3): Ditto.
9149         (sse2_maskcmpv2df3): Ditto.
9150         (sse2_maskcmpdf3): Ditto.
9151         (sse2_vmmaskcmpv2df3): Ditto.
9152         (sse2_eq<mode>3): Ditto.
9153         (sse2_gt<mode>3): Ditto.
9154         (sse5_pcmov_<mode>): Add SSE5 support.
9155         (vec_unpacku_hi_v16qi): Ditto.
9156         (vec_unpacks_hi_v16qi): Ditto.
9157         (vec_unpacku_lo_v16qi): Ditto.
9158         (vec_unpacks_lo_v16qi): Ditto.
9159         (vec_unpacku_hi_v8hi): Ditto.
9160         (vec_unpacks_hi_v8hi): Ditto.
9161         (vec_unpacku_lo_v8hi): Ditto.
9162         (vec_unpacks_lo_v8hi): Ditto.
9163         (vec_unpacku_hi_v4si): Ditto.
9164         (vec_unpacks_hi_v4si): Ditto.
9165         (vec_unpacku_lo_v4si): Ditto.
9166         (vec_unpacks_lo_v4si): Ditto.
9167         (sse5_pmacsww): New SSE5 intrinsic insn.
9168         (sse5_pmacssww): Ditto.
9169         (sse5_pmacsdd): Ditto.
9170         (sse5_pmacssdd): Ditto.
9171         (sse5_pmacssdql): Ditto.
9172         (sse5_pmacssdqh): Ditto.
9173         (sse5_pmacsdqh): Ditto.
9174         (sse5_pmacsswd): Ditto.
9175         (sse5_pmacswd): Ditto.
9176         (sse5_pmadcsswd): Ditto.
9177         (sse5_pmadcswd): Ditto.
9178         (sse5_pcmov_<move>): Conditional move support on SSE5.
9179         (sse5_phaddbw): New SSE5 intrinsic insn.
9180         (sse5_phaddbd): Ditto.
9181         (sse5_phaddbq): Ditto.
9182         (sse5_phaddwd): Ditto.
9183         (sse5_phaddwq): Ditto.
9184         (sse5_phadddq): Ditto.
9185         (sse5_phaddubw): Ditto.
9186         (sse5_phaddubd): Ditto.
9187         (sse5_phaddubq): Ditto.
9188         (sse5_phadduwd): Ditto.
9189         (sse5_phadduwq): Ditto.
9190         (sse5_phaddudq): Ditto.
9191         (sse5_phsubbw): Ditto.
9192         (sse5_phsubwd): Ditto.
9193         (sse5_phsubdq): Ditto.
9194         (sse5_pperm): Ditto.
9195         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
9196         (sse5_pperm_zero_v16qi_v8hi): Ditto.
9197         (sse5_pperm_sign_v8hi_v4si): Ditto.
9198         (sse5_pperm_zero_v8hi_v4si): Ditto.
9199         (sse5_pperm_sign_v4si_v2di): Ditto.
9200         (sse5_pperm_sign_v4si_v2di): Ditto.
9201         (sse5_pperm_pack_v2di_v4si): Ditto.
9202         (sse5_pperm_pack_v4si_v8hi): Ditto.
9203         (sse5_pperm_pack_v8hi_v16qi): Ditto.
9204         (sse5_perm<mode>): New SSE5 intrinsic insn.
9205         (rotl<mode>3): Ditto.
9206         (sse5_rotl<mode>3): Ditto.
9207         (sse5_ashl<mode>3): Ditto.
9208         (sse5_lshl<mode>3): Ditto.
9209         (sse5_frcz<mode>2): Ditto.
9210         (sse5s_frcz<mode>2): Ditto.
9211         (sse5_cvtph2ps): Ditto.
9212         (sse5_cvtps2ph): Ditto.
9213         (sse5_vmmaskcmp<mode>3): Ditto.
9214         (sse5_com_tf<mode>3): Ditto.
9215         (sse5_maskcmp<mode>3): Ditto.
9216         (sse5_maskcmp_uns<mode>3): Ditto.
9217         (sse5_maskcmp_uns2<mode>3): Ditto.
9218         (sse5_pcom_tf<mode>3): Ditto.
9219
9220         * config/i386/predicates.md (sse5_comparison_float_operator):
9221         New predicate to match the comparison operators supported by
9222         the SSE5 com instruction.
9223         (ix86_comparison_int_operator): New predicate to match just the
9224         signed int comparisons.
9225         (ix86_comparison_uns_operator): New predicate to match just the
9226         unsigned int comparisons.
9227
9228         * doc/invoke.texi (-msse5): Add documentation.
9229         (-mfused-madd): Ditto.
9230
9231         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
9232
9233         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
9234         mmintrin-common.h.
9235         (x86_64-*-*): Ditto.
9236
9237         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
9238
9239         * config/i386/bmmintrin.h: New file, provide common x86 compiler
9240         intrinisics for SSE5.
9241
9242         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
9243         mmintrin-common.h.
9244
9245         * config/i386/mmintrin-common.h: New file, to contain common
9246         instructions between SSE4.1 and SSE5.
9247
9248         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
9249         FOREACH_FUNCTION_ARGS to iterate over the argument list.
9250         (gen_regparm_prefix): Ditto.
9251
9252         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
9253         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
9254         prototype_p to determine if a function is prototyped.
9255
9256 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
9257
9258         * c-common.c (c_common_reswords) add the alignof keyword,
9259         with same RID as __alignof and __alignof__
9260
9261 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
9262
9263         * hooks.h (hook_bool_const_int_const_int_true): Declare.
9264         * hooks.c (hook_bool_const_int_const_int_true): New function.
9265         * target.h (struct gcc_target): Add can_eliminate field.
9266         * target-def.h (TARGET_CAN_ELIMINATE): Define.
9267         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
9268         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
9269         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
9270         (elim_table): Revise comment.
9271         * system.h (CAN_ELIMINATE): Poison.
9272         * defaults.h (CAN_ELIMINATE): Remove.
9273         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
9274
9275         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
9276         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
9277         Define macro.
9278         (alpha_vms_can_eliminate): Declare as static, change return type to
9279         bool.
9280         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
9281
9282         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
9283         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
9284         (arm_can_eliminate): New function.
9285
9286         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
9287         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
9288         (avr_can_eliminate): Declare as static.
9289         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
9290
9291         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
9292         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
9293         (bfin_can_eliminate): New function.
9294
9295         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
9296         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
9297         (crx_can_eliminate): New function.
9298
9299         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
9300         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
9301         (fr30_can_eliminate): New function.
9302
9303         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
9304         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
9305         (frv_can_eliminate): New function.
9306
9307         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
9308         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
9309         (h8300_can_eliminate): New function.
9310
9311         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
9312         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
9313         (i386_can_eliminate): Declare as static, change return type to bool.
9314         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
9315
9316         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
9317         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
9318         (ia64_can_eliminate): New function.
9319
9320         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
9321         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
9322         (iq2000_can_eliminate): New function.
9323
9324         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
9325         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
9326         (m32r_can_eliminate): New function.
9327
9328         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
9329         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
9330         (m68hc11_can_eliminate): New function.
9331
9332         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
9333         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
9334         (m68k_can_eliminate): New function.
9335
9336         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
9337         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
9338         (mep_can_eliminate): New function.
9339
9340         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
9341         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
9342         (mips_can_eliminate): New function.
9343
9344         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
9345         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
9346         (rs6000_can_eliminate): New function.
9347
9348         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
9349         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
9350         (s390_can_eliminate): Declare as static.
9351         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
9352
9353         * config/score/score.h (CAN_ELIMINATE): Remove macro.
9354         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
9355         (score_can_eliminate): New function.
9356
9357         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
9358         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
9359         (sparc_can_eliminate): Declare as static.
9360         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
9361
9362         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
9363         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
9364         (xstormy16_can_eliminate): New function.
9365
9366         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
9367         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
9368         (v850_can_eliminate): New function.
9369
9370 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
9371
9372         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
9373         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
9374         (*movdfcc_ext[1234]): Disable for IEEE mode.
9375
9376 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
9377
9378         * gimplify.c (prepare_gimple_addressable): New static function.
9379         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
9380         it addressable.
9381         (gimplify_addr_expr): Invoke it similarly on the operand instead of
9382         manually fiddling with it.
9383
9384 2009-08-25  Michael Matz  <matz@suse.de>
9385
9386         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
9387         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
9388         full expression.
9389         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
9390         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
9391         (do_jump): Split out code for simple binary comparisons into ...
9392         (do_jump_1): ... this, taking the individual operands and code.
9393         Change callers to helper function above accordingly.
9394         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
9395         comparisons.
9396
9397 2009-08-25  Michael Matz  <matz@suse.de>
9398
9399         * expr.h (struct separate_ops, sepops): New type for passing
9400         around an exploded simple expression.
9401         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
9402         Use this structure instead of expression tree.
9403         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
9404         expression, only its type.
9405         (expand_vec_cond_expr): Take type and individual operands instead
9406         of full expression.
9407         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
9408         expand_vec_shift_expr): Change prototype accordingly.
9409         * tree-vect-stmts.c (vectorizable_condition): Change call of
9410         expand_vec_cond_expr_p to pass only type.
9411         * expr.c (do_store_flags): Change prototype and implementation
9412         to take an exploded expression.
9413         (expand_expr_real_1): New local ops initialized with details
9414         of the full expression.  Use it instead of full
9415         expression in calls to do_store_flags, expand_vec_cond_expr,
9416         expand_widen_pattern_expr and expand_vec_shift_expr.
9417
9418 2009-08-25  Michael Matz  <matz@suse.de>
9419
9420         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
9421         treeop2 initialized with first three operands of the full expression.
9422         Substitute all TREE_OPERAND (exp, [012]) calls with them.
9423
9424 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
9425
9426         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
9427         (__gthread_objc_condition_allocate): Mark arguments as unused.
9428         (__gthread_objc_condition_deallocate): Likewise.
9429         (__gthread_objc_condition_wait): Likewise.
9430         (__gthread_objc_condition_broadcast): Likewise.
9431         (__gthread_objc_condition_signal): Likewise.
9432         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9433         (__gthread_objc_thread_id): Likewise.
9434
9435 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
9436
9437         PR middle-end/41149
9438         * tree-pretty-print.c (print_call_name): Print the correct call name
9439         for procedure pointer components.
9440
9441 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
9442
9443         * config/ia64/ia64.c (ia64_promote_function_mode): Call
9444         default_promote_function_mode when not VMS.
9445
9446 2009-08-24  Olivier Hainque  <hainque@adacore.com>
9447
9448         * convert.c (convert_to_integer): Don't assume an input pointer is
9449         POINTER_SIZE wide.  Fetch from the type instead.
9450
9451 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9452
9453         * configure.ac (AC_PREREQ): Bump to 2.64.
9454
9455 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
9456
9457         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9458         (process_command): Don't search standard_exec_prefix_1 and
9459         standard_exec_prefix_2.
9460
9461 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9462
9463         * config/arm/arm.c (output_return_instruction): Handle for
9464         unified syntax.
9465
9466 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9467
9468         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9469
9470 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9471
9472         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9473         (*arm_movdf_vfp): Likewise.
9474
9475 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9476
9477         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9478         (vashr<mode>3): Rename from ashr<mode>3.
9479         (vlshr<mode>3): Rename from lshr<mode>3.
9480
9481 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
9482
9483         PR/40786
9484         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9485         (check_format_info_main): Use scalar_identify_flag.
9486         (check_format_types): Check for scalar size identity if
9487         scalar_identify_flag is set.
9488         (printf_length_specs): Extend by new field.
9489         (asm_fprintf_length_specs): Likewise.
9490         (gcc_diag_length_specs): Likewise.
9491         (scanf_length_specs): Likewise.
9492         (strfmon_length_specs): Likewise.
9493         (gcc_gfc_length_specs): Likewise.
9494         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9495         (ms_printf_flag_specs): Likewise.
9496         * c-format.h (format_length_info): Add new member scalar_identity_flag.
9497
9498 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
9499
9500         PR target/40718
9501         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9502         (*call_value_pop_1): Ditto.
9503         (*sibcall_pop_1): New insn pattern.
9504         (*sibcall_value_pop_1): Ditto.
9505
9506 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9507
9508         PR target/41081
9509         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9510         ashrsi3_64): New.
9511
9512 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9513
9514         PR target/41081
9515         * fwprop.c (try_fwprop_subst): Allow multiple sets.
9516         (get_reg_use_in): New function.
9517         (forward_propagate_subreg): Propagate through subreg of zero_extend
9518         or sign_extend.
9519
9520 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9521
9522         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9523         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9524
9525 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9526
9527         * configure.ac: Remove --with-datarootdir, --with-docdir,
9528         --with-htmldir switches.  No need to call AC_SUBST for
9529         datarootdir, docdir, htmldir any more.
9530         * configure: Regenerate.
9531         * doc/install.texi (Configuration): Document --datarootdir,
9532         --docdir, --htmldir, --pdfdir; update documentation for
9533         --infodir, --mandir.
9534         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9535         M4 to 1.4.6.
9536
9537         * aclocal.m4: Regenerate.
9538         * config.in: Regenerate.
9539         * configure: Regenerate.
9540
9541 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
9542             Olivier Hainque  <hainque@adacore.com>
9543
9544         * config/ia64/ia64.c: Include libfuncs.h.
9545         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9546         (ia64_expand_call): Use reg 25 on VMS.
9547         (ia64_initialize_trampoline): Fix for VMS ABI.
9548         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9549         (ia64_function_arg): Initialize reg 25 on VMS.
9550         Fix OpenVMS ABI issues for varargs.
9551         For OpenVMS, emit the Argument Information register set in the
9552         incoming/sibcall case as well.
9553         (ia64_arg_type): New function.
9554         (ia64_function_arg_advance): Keep track of cum->words.
9555         Fix OpenVMS ABI issues for varargs.
9556         (ia64_function_value): On VMS, promote mode of non-aggregate types.
9557         (ia64_override_options): Set flag_no_common on VMS.
9558         (ia64_init_builtins): Disable FWRITE builtin.
9559         (ia64_asm_output_external): Call DO_CRTL_NAMES.
9560         (ia64_vms_init_libfuncs): Add decc$ routines.
9561         (ia64_vms_valid_pointer_mode): New function.
9562         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9563         (ia64_promote_function_mode): New function
9564         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9565         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9566         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9567         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9568         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9569         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9570         Suppress trailing '#' if VALUE is numeric.
9571         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9572         ia64_promote_function_mode.
9573         (TARGET_VALID_POINTER_MODE): Define.
9574
9575 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9576
9577         PR target/40671
9578         * config/rs6000/rs6000.c (rs6000_override_options): Use
9579         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9580
9581         PR target/41145
9582         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9583         reporting of vector + decimal/boolean/complex error.
9584
9585 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
9586
9587         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9588         __vector double TYPE_DECL.
9589
9590 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
9591
9592         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
9593         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9594         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9595         to pointer to enum machine_mode.  Update all callers as needed.
9596
9597 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9598
9599         * config/alpha/alpha.md (exception_receiver): Emit alternative
9600         GP load sequence if flag_reorder_blocks_and_partition is set.
9601         (*exception_receiver_2): Also enable when
9602         flag_reorder_blocks_and_partition is set.
9603
9604 2009-08-20  Matt Rice  <ratmice@gmail.com>
9605             Diego Novillo  <dnovillo@google.com>
9606
9607         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9608         tree-ssa-sccvn.h.
9609
9610 2009-08-20  Richard Guenther  <rguenther@suse.de>
9611
9612         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9613         * c-tree.h (c_dup_lang_specific_decl): Remove.
9614         (struct lang_decl, struct lang_type): Move definitions ...
9615         * c-lang.h: ... here.  New file.
9616         * c-decl.c: Include c-lang.h.
9617         (c_dup_lang_specific_decl): Remove.
9618         * c-typeck.c: Include c-lang.h.
9619         * Makefile.in (c-decl.o): Add c-lang.h dependency.
9620         (c-typeck.o): Likewise.
9621         * c-config-lang.in (gtfiles): Add c-lang.h.
9622         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9623         like c-tree.h.
9624
9625 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
9626
9627         * config/alpha/alpha.c (alpha_end_function): Do not clear
9628         crtl->emit structure and free insn locators if cfun->is_thunk is true,
9629         this is now handled in generic code.
9630
9631 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9632
9633         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9634         (s390_z10_fix_long_loop_prediction): New function.
9635         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9636         (s390_reorg): Walk over the INSNs and invoke
9637         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9638
9639 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9640
9641         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9642         "*brx_64bit", "*brx_31bit"): New patterns.
9643         * config/s390/s390.c ('E'): New output modifier.
9644
9645 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9646             Richard Earnshaw  <richard.earnshaw@arm.com>
9647
9648         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9649         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9650
9651 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9652
9653         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9654         patterns.
9655         * pa.c (emit_move_sequence): Check if address of operand1 is valid
9656         for mode mode of operand0 when doing secondary reload for SAR.
9657
9658 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9659
9660         PR middle-end/41123
9661         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9662         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9663
9664 2009-08-19  Jason Merrill  <jason@redhat.com>
9665
9666         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9667         supported template depth in C++0x.
9668
9669 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9670
9671         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9672         free_after_compilation.
9673         * config/score/score7.c (score7_output_mi_thunk): Likewise.
9674         * config/score/score3.c (score3_output_mi_thunk): Likewise.
9675         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9676         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9677         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9678         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9679         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9680
9681 2009-08-19  Ian Lance Taylor  <iant@google.com>
9682
9683         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9684         of (plus (mult (neg B) C) A).
9685
9686 2009-08-18  Michael Matz  <matz@suse.de>
9687
9688         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9689         instead of comparing TYPE_MAIN_VARIANT for equality.
9690         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9691         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9692         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9693         * gimplify.c (goa_lhs_expr_p): Ditto and use
9694         STRIP_USELESS_TYPE_CONVERSION.
9695
9696 2009-08-18  Michael Matz  <matz@suse.de>
9697
9698         * tree-ssa-structalias.c (create_variable_info_for): Also mark
9699         first field in a struct.
9700         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9701
9702 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9703
9704         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9705         locators before emit_insn is called.  Remove assert that
9706         cfun->is_thunk.
9707         (alpha_end_function): Clear crtl->emit structure and free insn
9708         locators if cfun->is_thunk is true.
9709
9710 2009-08-18  Jason Merrill  <jason@redhat.com>
9711
9712         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9713         type if available.
9714         * configure.ac: Test for it.
9715         * configure, config.in: Regenerate.
9716         * doc/install.texi: Document --enable-gnu-unique-object.
9717
9718 2009-08-18  Richard Guenther  <rguenther@suse.de>
9719
9720         PR middle-end/41094
9721         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9722         pow(x,y*z) only if x is nonnegative.
9723
9724 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
9725
9726         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9727         on jumps.
9728
9729         PR target/40971
9730         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9731         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9732
9733 2009-08-17  DJ Delorie  <dj@redhat.com>
9734
9735         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9736         * config/m32c/prologue.md (epilogue_freit): New.
9737         (fset_b): New.
9738         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9739         (bank_switch_p): Likewise.
9740         (fast_interrupt_p): Likewise.
9741         (interrupt_p): Likewise.
9742         (m32c_conditional_register_usage): Round memregs size up.
9743         (need_to_save): We only need to save $a0 when we use ENTER.
9744         (interrupt_p): Check for fast_interrupt too.
9745         (bank_switch_p): New.
9746         (fast_interrupt_p): New.
9747         (m32c_attribute_table): Add bank_switch and fast_interrupt.
9748         (m32c_emit_prolog): Support bank switching and fast interrupts.
9749         * doc/extend.texi (Function Attributes): Add bank_switch and
9750         fast_interrupt.
9751
9752 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
9753
9754         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9755         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9756
9757 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
9758
9759         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9760         (menu): Add IA-64/VMS Options.
9761         (IA-64/VMS Options): Likewise.
9762
9763 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9764
9765         PR target/38599
9766         * config/mips/mips.md (*lwxs): Use :P for pointer values.
9767
9768 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9769
9770         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9771         (mips_pop_asm_switch): Likewise.
9772         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9773         with...
9774         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9775         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9776         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9777         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
9778         instead of set_noreorder.
9779         (mips_output_function_prologue): Use the new functions.
9780         (mips_output_function_epilogue): Likewise.
9781         (mips_need_noat_wrapper_p): New function, split out from...
9782         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9783         Use mips_push_asm_switch and mips_pop_asm_switch.
9784         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9785         and mips_pop_asm_switch.
9786         (ASM_OUTPUT_REG_POP): Likewise.
9787         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9788         Use mips_pop_asm_switch.
9789         (mips_asm_switch): New structure.
9790         (set_noreorder, set_nomacro): Replace with...
9791         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9792         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9793         instead of set_nomacro.
9794         (fix_truncsfsi2_macro): Likewise.
9795         (cprestore): Likewise.
9796         (hazard): Use mips_noreorder instead of set_noreorder.
9797         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9798
9799 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
9800
9801         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9802         from prev_active_insn.
9803
9804 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
9805
9806         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9807         * config/avr/avr.c (avr_override_options): Initialize
9808         avr_current_arch variable.
9809         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9810         __AVR_HAVE_16BIT_SP__ according to the device type.
9811         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9812         TARGET_TINY_STACK.
9813         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9814         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9815
9816 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
9817
9818         PR debug/37801
9819         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9820         generating inlined subroutine die only. We shouldn't be
9821         called for anything else.
9822         (gen_block_die): Don't generate inline subroutine debug info for
9823         abstract blocks.
9824
9825 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9826
9827         * graphite-poly.c (print_pbb): Print PBB index.
9828
9829 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9830
9831         PR middle-end/40981
9832         * graphite-interchange.c (ppl_max_for_le): Moved...
9833         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9834         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
9835         ppl_Pointset_Powerset_C_Polyhedron_maximize.
9836         * graphite-ppl.h (ppl_max_for_le): Declared.
9837
9838 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
9839
9840         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9841         supported on all platforms.
9842         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9843         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9844         * c-pragma.c: Likewise.
9845         * target-def.h (TARGET_INITIALIZER): Remove
9846         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9847         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9848
9849 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9850
9851         * config/ia64/fde-vms.c: New file.
9852         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9853         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9854         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9855         (uw_frame_state_for): Only register a personality routine if it is
9856         known to be compatible with our expectations.
9857         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9858         Declare unw_table_entry stack variable and
9859         mod all calls to _Unwind_FindTableEntry to add arg.
9860         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9861         (_Unwind_FindTableEntry): Add arg to prototype.
9862
9863 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
9864
9865         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9866         field 'signal_pfs_loc'.
9867         (uw_frame_state_for): Remove duplicate code dealing with leaf
9868         procedures without unwind info.
9869         If in the frame after unwinding through a signal handler, restore
9870         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9871         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9872         'pfs_loc' to the AR.PFS location in the signal context; instead
9873         set 'signal_pfs_loc'.
9874         Manually generate the unwind info for the AR.PFS register.
9875         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9876         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9877         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9878         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9879         instead set 'signal_pfs_loc'.
9880         Remove code preventing the AR.PFS register from being restored
9881         from the signal context.
9882
9883 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9884             Tristan Gingold  <gingold@adacore.com>
9885
9886         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9887         * config/ia64/t-vms: New file.
9888         * config/ia64/vms64.h: New file.
9889         * config/ia64/vms.h: New file.
9890         * config/ia64/vms-crtinit.asm: New file.
9891         * config/ia64/vms_symvec_libgcc_s.opt: New file.
9892         * config/ia64/vms-unwind.h: New file.
9893
9894 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9895
9896         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9897         TFmode compares.
9898
9899 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9900
9901         PR middle-end/30789
9902         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9903         Move declaration...
9904         * real.h (do_mpc_arg2): ... here.
9905         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9906         and RDIV_EXPR.
9907
9908 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
9909
9910         * final.c (add_debug_prefix_map): Don't use GC memory for
9911         old_prefix and new_prefix.
9912
9913 2009-08-14  Richard Guenther  <rguenther@suse.de>
9914
9915         * ipa-prop.c (compute_complex_pass_through): If we cannot
9916         compute a non-varying offset for IPA_JF_ANCESTOR punt.
9917
9918 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9919
9920         * c-lex.c (c_lex_with_flags): Increase size of local variable
9921         to avoid memory clobber.
9922
9923 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
9924
9925         PR target/40934
9926         * config/i386/i386.c (ix86_fp_comparison_strategy):
9927         Only enable/disable sahf at function granularity.
9928
9929 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
9930
9931         PR rtl-optimization/41064
9932         * reload1.c (reload_as_needed): Don't call extract_insn
9933         for known invalid replacements after calling
9934         validate_replace_rtx_group and verify_changes.
9935
9936 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9937
9938         PR target/41019
9939         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9940         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9941         ix86_expand_fp_vcond.
9942         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9943         Assert that operation is supported by ix86_expand_int_vcond.
9944         (vcondu<SSEMODE124C8:mode>): Ditto.
9945
9946 2009-08-13  DJ Delorie  <dj@redhat.com>
9947
9948         * config/i386/djgpp-stdint.h: New.
9949         * config.gcc (djgpp): Use it.
9950
9951 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9952
9953         * config/sh/sh.c (sh_override_options): When flag_exceptions or
9954         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
9955
9956 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9957
9958         * tree-ssa-loop-prefetch.c
9959         (prune_ref_by_group_reuse): Enhance probabilistic analysis
9960         for long-stride pruning.
9961         (compute_miss_rate): New function to compute the probability
9962         that two memory references access different cache lines.
9963
9964 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
9965
9966         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9967
9968 2009-08-13  Richard Guenther  <rguenther@suse.de>
9969
9970         PR middle-end/41047
9971         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9972         use the constant pointer type.
9973         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9974         of CV qualifiers on the target pointer type.
9975         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9976         conversion check before restrict check.
9977
9978 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9979
9980         PR target/41029
9981         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9982
9983 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9984
9985         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9986
9987 2009-08-12  Richard Guenther  <rguenther@suse.de>
9988
9989         PR tree-optimization/41011
9990         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9991         and reference constructing.
9992
9993 2009-08-12  Xinliang David Li  <davidxl@google.com>
9994
9995         PR tree-optimization/41012
9996         * tree-flow.h : New external interface.
9997         * gimple-low.c (check_call_arg): Change to public function.
9998         Remove argument mismatch check in lowering.
9999         * tree-inline.h (tree_can_inline_p): Interface change.
10000         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
10001         into this function.
10002         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
10003         Call change to tree_can_inline_p function.
10004         (cgraph_decide_inlining_incrementally): Ditto.
10005
10006 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
10007
10008         PR tree-optimization/41031
10009         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
10010         on the partition variable rather than promote_mode on the source
10011         type.  Assert that the partition variable's type has the same
10012         mode as the source value's.
10013
10014 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
10015
10016         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
10017         for for_return == 2.
10018         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
10019         comments.
10020         * calls.c (expand_call): Fix typo.
10021         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
10022         and PARM_DECL.
10023         * stmt.c (expand_value_return): Use promote_function_mode to copy out
10024         of pseudo.
10025         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
10026         * config/cris/cris.c (cris_promote_function_mode): Likewise.
10027         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
10028         * config/pa/pa.c (pa_promote_function_mode): Likewise.
10029
10030 2009-08-12  Andrew Haley  <aph@redhat.com>
10031
10032         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
10033
10034 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10035
10036         PR bootstrap/40103
10037         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
10038
10039 2009-08-12  Richard Guenther  <rguenther@suse.de>
10040
10041         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
10042         * gimplify.c (gimplify_modify_expr): Do not use
10043         lang_hooks.types_compatible_p.
10044         * tree-ssa.c (useless_type_conversion_p): For aggregates
10045         just return false if the canonical types differ.
10046
10047 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10048
10049         PR middle-end/40980
10050         * sese.c (convert_for_phi_arg): New.
10051         (add_guard_exit_phis): Use convert_for_phi_arg.
10052
10053 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10054
10055         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
10056         unknown subscript upper bounds.
10057
10058 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10059             Pranav Garg  <pranav.garg2107@gmail.com>
10060
10061         * graphite-interchange.c (gather_access_strides): Removed.
10062         (ppl_max_for_le): New.
10063         (build_linearized_memory_access): New.
10064         (memory_stride_in_loop): New.
10065         (pbb_interchange_profitable_p): Reimplemented.
10066         * graphite-ppl.h (ppl_new_id_map): New.
10067         (ppl_interchange): New.
10068
10069 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10070
10071         * graphite-interchange.c (compute_subscript): Removed.
10072         (compute_array_size_cstr): Removed.
10073         (compute_array_size_poly): Removed.
10074         (compute_array_size): Removed.
10075         (gather_access_strides_poly): Removed.
10076         (gather_access_strides): Empty.
10077
10078 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10079
10080         * graphite-dependences.c (dependence_polyhedron_1): Replace
10081         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
10082         (graphite_legal_transform_dr): Same.
10083         (graphite_carried_dependence_level_k): Same.
10084         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
10085         Initialize PDR_NB_SUBSCRIPTS.
10086         (print_pdr_access_layout): Replace pdr_nb_subscripts with
10087         PDR_NB_SUBSCRIPTS.
10088         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
10089         (PDR_NB_SUBSCRIPTS): New.
10090         (pdr_nb_subscripts): Removed.
10091         (pdr_dim): Simplified.
10092         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
10093         with PDR_NB_SUBSCRIPTS.
10094
10095 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10096
10097         * graphite-interchange.c (compute_array_size): Remove use of
10098         PDR_DATA_CONTAINER.
10099         * graphite-poly.c (new_poly_dr): Remove argument data_container.
10100         Do not initialize PDR_DATA_CONTAINER.
10101         (print_pdr): Do not print PDR_DATA_CONTAINER.
10102         * graphite-poly.h (struct poly_dr): Remove data_container field.
10103         (PDR_DATA_CONTAINER): Removed.
10104         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
10105         PDR_DATA_CONTAINER.
10106         (build_poly_dr): Same.
10107
10108 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
10109             Sebastian Pop  <sebastian.pop@amd.com>
10110
10111         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
10112         copy of the dependence polyhedron.  Free the temporary objects.
10113         (graphite_carried_dependence_level_k): Free unused objects before
10114         returning.
10115
10116 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10117
10118         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
10119         Early return without analyzing the data dependences if no
10120         transform has been done.  Call restore_scattering if the transform
10121         is not legal.
10122         (graphite-interchange.c): Same.
10123         * graphite-poly.c (print_scattering_function): Test for
10124         PBB_TRANSFORMED.
10125         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
10126         (apply_poly_transforms): Do not gcc_assert that
10127         the transform is legal.
10128         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
10129         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
10130         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
10131         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
10132         * graphite-poly.h (struct poly_scattering): New.
10133         (struct poly_bb): Add original, transformed, and saved fields.
10134         Remove transformed_scattering, original_scattering,
10135         nb_local_variables and nb_scattering_transform fields.
10136         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
10137         (poly_scattering_new): New.
10138         (poly_scattering_free): New.
10139         (poly_scattering_copy): New.
10140         (store_scattering_pbb): New.
10141         (store_scattering): New.
10142         (restore_scattering_pbb): New.
10143         (restore_scattering): New.
10144         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10145         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
10146
10147 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10148
10149         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
10150         (print_scop): Same.
10151
10152 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10153
10154         * Makefile.in (graphite.o): Depends on PREDICT_H.
10155         * graphite.c: Include predict.h.
10156         (graphite_finalize): Call tree_estimate_probability.
10157         * predict.c (predict_loops): Do not call scev_initialize and
10158         scev_finalize.
10159         (tree_estimate_probability_bb): New.
10160         (tree_estimate_probability): Do not initialize loops: move that
10161         code to the driver.  Call tree_estimate_probability_bb.
10162         (tree_estimate_probability_driver): New.
10163         (pass_profile): Use tree_estimate_probability_driver.
10164         * predict.h (tree_estimate_probability): Declared.
10165
10166 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10167
10168         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
10169         * graphite-dependences.c (graphite_legal_transform): Add time to
10170         TV_GRAPHITE_DATA_DEPS.
10171         (dependency_between_pbbs_p): Same.
10172         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
10173
10174 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
10175
10176         PR rtl-optimization/41033
10177         * alias.c (nonoverlapping_component_refs_p): Punt when strict
10178         aliasing is disabled.
10179
10180 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
10181
10182         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
10183         si_mask_operand, and_load_operand, low_bitmask_operand,
10184         and_reg_operand, and_operand): New predicates.
10185         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
10186         * config/mips/mips.c (and_operands_ok): New function.
10187         * config/mips/mips-protos.h (and_operands_ok): Declare it.
10188         * config/mips/mips.md (move_type): Add ext_ins and logical.
10189         (type): Handle them.
10190         (and<mode>3): Use and_reg_operand as the second operand's predicate.
10191         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
10192         shift_shift.  Remove commutative constraint modifier.
10193         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
10194         shift_shift.
10195         (*clear_upper32_dext): Remove define_insn_and_split.
10196         (*clear_upper32): Turn this define_insn_and_split ...
10197         (splitter for ANDing register with 0xffff_ffff): .. into this.
10198
10199 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
10200
10201         * combine.c (try_widen_shift_mode): Factor out code to check if an
10202         integer constant is a low-order bitmask from here ...
10203         * rtlanal.c (low_bitmask_len): ... to here.
10204         * rtl.h (low_bitmask_len): Declare.
10205
10206 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
10207
10208         PR target/8603
10209         * config/alpha/alpha.md (addsi3): Remove expander.
10210         (addsi3): Rename from *addsi3_internal insn pattern.
10211         (subsi3): Remove expander.
10212         (subsi3): Rename from *subsi3_internal insn pattern.
10213
10214 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
10215
10216         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
10217         FWRITE_UNLOCKED.
10218
10219 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
10220             Eric Botcazou  <botcazou@adacore.com>
10221             Douglas B Rupp  <rupp@gnat.com>
10222
10223         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
10224         that records that fit in 64 bits are returned by immediate value,
10225         as required by OpenVMS Calling Standard.
10226         (function_value): Adjust for above modification.
10227         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
10228         virtual_incoming_args_rtx as base object, not next_arg.
10229         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10230
10231 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10232
10233         * reload.c (find_reloads_subreg_address): Check the original
10234         req_equiv_mem address to detect the case where an address is
10235         not valid in the outer mode.
10236
10237 2009-08-11  Richard Guenther  <rguenther@suse.de>
10238
10239         PR bootstrap/40788
10240         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
10241
10242 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
10243
10244         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
10245         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
10246
10247 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
10248             Douglas B Rupp  <rupp@gnat.com>
10249
10250         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
10251         PT_STACK when frame_pointer_needed on OpenVMS.
10252         (alpha_pv_save_size, alpha_using_fp): Remove.
10253         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
10254         with proper processing for PT_NULL.
10255         (alpha_vms_initial_elimination_offset): New function. Support for
10256         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
10257         (alpha_sa_size): Force procedure type to PT_STACK when
10258         frame_pointer_needed on OpenVMS.
10259         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
10260         (alpha_using_fp): Likewise.
10261         (alpha_vms_can_eliminate): Add prototype.
10262         (alpha_vms_initial_elimination_offset): Likewise.
10263         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
10264         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
10265
10266 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
10267             Douglas B Rupp  <rupp@gnat.com>
10268
10269         * config/alpha/alpha.c (common_object_handler): New function.
10270         (vms_attribute_table): Declare a single attribute "common_object".
10271         (vms_output_aligned_decl_common): New global function.
10272         (SECTION_VMS_OVERLAY): Delete.
10273         (SECTION_VMS_GLOBAL): Likewise.
10274         (SECTION_VMS_INITIALIZE): Likewise.
10275         (vms_asm_named_section): Remove support for above flags.
10276         (vms_section_type_flags): Delete.
10277         (TARGET_SECTION_TYPE_FLAGS): Likewise.
10278         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
10279         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
10280         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
10281
10282 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10283
10284         PR target/41015
10285         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
10286         (sub_ddmmss): Likewise.
10287
10288 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
10289
10290         PR bootstrap/41018
10291         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
10292         year.
10293
10294 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10295
10296         PR target/37053
10297         * reload1.c (reload_as_needed): Use cancel_changes to completely
10298         undo a failed replacement attempt.
10299
10300 2009-08-10  Richard Guenther  <rguenther@suse.de>
10301
10302         PR middle-end/41006
10303         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
10304         (useless_type_conversion_p): ... here.  Require pointer targets
10305         to be compatible.
10306
10307 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
10308
10309         PR c++/40866
10310         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
10311         loose the original type of the statement list.
10312
10313 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10314
10315         * config/alpha/alpha.c: Include libfuncs.h
10316         (avms_asm_output_extern): New function.
10317         (alpha_init_libfuncs): Init some decc libfuncs.
10318         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
10319         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
10320         (DO_CRTL_NAMES): Define.
10321         (LIB_SPEC): Remove.
10322         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
10323         (LONG_TYPE_SIZE): Define.
10324         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
10325         (SUBTARGET_SWITCHES): Define malloc64 switch.
10326         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
10327         (MASK_RETURN_ADDR): Define.
10328         doc/invoke.texi (mmalloc64): Document switch.
10329
10330 2009-08-09  Olivier Hainque  <hainque@adacore.com>
10331             Douglas B Rupp  <rupp@gnat.com>
10332
10333         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
10334         uses_condition_handler.
10335         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
10336         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
10337         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
10338         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
10339         (code_for_builtin): New insn codes for the new alpha_builtins.
10340         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
10341         (alpha_sa_size): Account for uses_condition_handler.
10342         (alpha_expand_prologue): Likewise.
10343         (alpha_start_function): Likewise.
10344         (alpha_expand_epilogue): Likewise.
10345         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
10346         establish/revert expanders.
10347         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
10348         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
10349         New expander, resorting to the alpha.c associated function.
10350         (builtin_revert_vms_condition_handler): Likewise.
10351         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
10352         __gcc_shell_handler, the static VMS condition handler used as
10353         an indirection wrapper to the current dynamically established
10354         handler.
10355         * config/alpha/vms-unwind.h: Complete rewrite.
10356         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
10357         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
10358
10359 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
10360             Douglas B Rupp  <rupp@gnat.com>
10361
10362         * config/alpha/alpha.c (alpha_links): Add 'target' field.
10363         (alpha_need_linkage): Handle aliases.  Return function symbol.
10364         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
10365         Use ultimate alias target for the linkage name.
10366         * config/alpha/alpha.md (movmemdi): Use the symbol returned
10367         by alpha_need_linkage for the function symbol.
10368         (setmemdi): Likewise.
10369
10370 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10371
10372         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
10373         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
10374         (ASM_WEAKEN_LABEL): Define.
10375         (CRT_CALL_STATIC_FUNCTION): Define.
10376         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
10377         (ENDFILE_SPEC): Define.
10378         (INIT_SECTION_ASM_OP): Define.
10379         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
10380         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
10381         crtend.o crtendS.o.
10382         (MULTILIB_OSDIRNAMES): Define.
10383         (shlib_version): Define.
10384         (SHLIB_EXT): Define.
10385         (SHLIB_OBJS): Define.
10386         (SHLIB_NAME): Define.
10387         (SHLIB_MULTILIB): Define.
10388         (SHLIB_INSTALL): Define.
10389         (SHLIB_SYMVEC): Define.
10390         (SHLIB_SYMVECX2): Define.
10391         (SHLIB_LINK): Define.
10392
10393 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10394
10395         * config/alpha/alpha.c (alpha_initialize_trampoline):
10396         Initialize VMS trampoline IAW ABI for bounded procedure calls.
10397         (alpha_start_function): Emit transfer address on nested functions
10398         for VMS trampoline call.
10399         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
10400         since no longer used.
10401         * config/alpha/vms-tramp.asm: Remove.
10402         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
10403         since now only data initialized at runtime.
10404
10405 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10406
10407         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
10408         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10409         (MD_EXEC_PREFIX): Remove, no longer used.
10410         (MD_STARTFILE_PREFIX): Likewise.
10411         (INCLUDE_DEFAULTS): Likewise.
10412         * config/alpha/t-vms:
10413         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
10414
10415 2009-08-09  Richard Guenther  <rguenther@suse.de>
10416
10417         PR tree-optimization/41016
10418         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
10419         (operand_precision): Remove.
10420         (integral_operand_p): Likewise.
10421         (recognize_single_bit_test): Adjust.
10422
10423 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10424
10425         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
10426         operation overflows.  Likewise non-cast unary arithmetic.
10427         If one arm of a conditional expression is always taken,
10428         inhibit evaluation warnings for the other arm.  Likewise inhibit
10429         evaluation warnings for the second && or || operand if the first
10430         operand is enough to determine the result.
10431         * c-typeck.c (build_conditional_expr): Apply the same inhibition
10432         rules here.
10433         (build_binary_op): Prevent duplicate evaluation warnings.
10434
10435 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10436
10437         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10438         and destination have different modes, Use promote_mode to
10439         determine the signedness of the conversion.  Assert that the
10440         promoted source mode matches the destination mode.  Don't pass
10441         the destination and destination mode to expand_expr if the source
10442         mode is different.  Simplify conversion logic.
10443
10444 2009-08-09  Ira Rosen  <irar@il.ibm.com>
10445
10446         PR tree-optimization/41008
10447         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10448         from condition only in case it's a comparison. Adjust checks.
10449
10450 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
10451
10452         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10453         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10454         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10455         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10456         (dump_cand): Handle them.
10457         (struct iv_cand): New members COST_STEP and AINC_USE.
10458         (stmt_after_increment): Likewise.
10459         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
10460         callers changed.  Use gimple_uid comparison instead of scanning.
10461         (add_candidate_1): When looking for identical candidates, take
10462         AINC_USE into account.  Set it for new candidates.
10463         (force_expr_to_var_cost): Cast target_spill_cost to int.
10464         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10465         All callers changed.  Check for availability of autoinc addressing
10466         modes, both in general for a given mode, and in the specific use case.
10467         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
10468         changed.
10469         (get_computation_cost): Likewise.
10470         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10471         add_autoinc_candidates): New static functions.
10472         (add_candidate): Call add_autoinc_candidates for candidates based on
10473         a USE_ADDRESS use.
10474         (find_iv_candidates): Call set_autoinc_for_original_candidates.
10475         (determine_use_iv_cost_address): If we have an autoinc candidate at
10476         the matching use, verify autoinc is possible and subtract the cost
10477         of the candidate's step from the cost.
10478         (determine_iv_cost): Record the cost of the increment in the COST_STEP
10479         member of the candidate.
10480         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10481         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
10482
10483 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10484
10485         * config.build (ia64-hp-*vms*): New target.
10486         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10487         with ia64-hp-*vms*.
10488         * config.gcc (ia64-hp-*vms*): New target.
10489         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10490         with ia64-hp-*vms*.
10491         * config.host (ia64-hp-*vms*): New target.
10492         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10493         with ia64-hp-*vms*.
10494
10495 2009-08-08  Richard Guenther  <rguenther@suse.de>
10496
10497         PR tree-optimization/40991
10498         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10499
10500 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
10501
10502         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10503         mode check.  Do truncations in an integer mode.
10504         (force_to_mode): Handle subregs for all mode types.  Only do
10505         arithmetic simplifications on integer modes.
10506
10507 2009-08-07  Richard Guenther  <rguenther@suse.de>
10508
10509         PR tree-optimization/40999
10510         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10511         (maybe_fold_reference): Lookup constant initializers.
10512         (fold_gimple_assign): Likewise.
10513
10514 2009-08-07  Richard Guenther  <rguenther@suse.de>
10515
10516         * tree-ssa.c (useless_type_conversion_p_1): Only for types
10517         that require structural equality defer to the langhook.
10518
10519 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10520
10521         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10522         comments.
10523         (struct ipa_pass_through_data): New type.
10524         (struct ipa_ancestor_jf_data): New type.
10525         (union jump_func_value): Removed field formal_id, added fields
10526         pass_through and ancestor.
10527         (struct ipa_param_call_note): Changed type of formal_id to int from
10528         unsigned.
10529         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10530         operations jump functions and ancestor jump functions.
10531         (compute_complex_pass_through): New function.
10532         (compute_scalar_jump_functions): Call compute_complex_pass_through,
10533         reflect changes in the jump function strucutre.
10534         (update_jump_functions_after_inlining): Ignore complex pass-through
10535         and ancestor jump functions.
10536         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10537         polynomial pass-through with operation jump functions.
10538
10539 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
10540
10541         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10542         fde->dw_fde_begin as begin label instead of hot/cold label.
10543         Use LLSDAC label instead of LLSDA for second section lsda.
10544         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
10545         label instead of LLSDA if it is true.
10546         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10547         callers.
10548         * except.c (add_call_site, dw2_size_of_call_site_table): Add
10549         SECTION argument.  Use it as index into crtl->eh.call_site_record
10550         array.
10551         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
10552         use it to determine how to print table entries instead of using
10553         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
10554         label instead of normal begin label as base.
10555         (sjlj_assign_call_site_values): Adjust add_call_site caller.
10556         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10557         ensure no EH range spans between sections and that landing pads
10558         are always in the corresponding section.
10559         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10560         for crtl->eh.call_site_record being an array rather than scalar.
10561         (output_one_function_exception_table): New function, copied
10562         from output_function_exception_table.  Adjust
10563         dw2_size_of_call_site_table, dw2_output_call_site_table
10564         callers.  For SECOND section use *C suffixed labels.
10565         (output_function_exception_table): Call
10566         output_one_function_exception_table and, when doing hot/cold
10567         partitioning, also another time for the second section.
10568         * opts.c: Include except.h.
10569         (decode_options): Allow -freorder-blocks-and-partition with
10570         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10571         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10572         * function.h (struct rtl_eh): Change call_site_record from
10573         scalar into array of 2 elements.
10574
10575 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10576
10577         * ipa-prop.c (count_formal_params_1): New function.
10578         (ipa_get_vector_of_formal_parms): New function.
10579         (get_vector_of_formal_parm_types): New function.
10580         (ipa_modify_formal_parameters): New function.
10581         (ipa_modify_call_arguments): New function.
10582         (index_in_adjustments_multiple_times_p): New function.
10583         (ipa_combine_adjustments): New function.
10584         (ipa_dump_param_adjustments): New function.
10585         * ipa-prop.h (struct ipa_parm_adjustment): New type.
10586         (ipa_get_vector_of_formal_parms): Declare.
10587         (ipa_modify_formal_parameters): Declare.
10588         (ipa_modify_call_arguments): Declare.
10589         (ipa_combine_adjustments): Declare.
10590         (ipa_dump_param_adjustments): Declare.
10591         (build_ref_for_offset): Declare.
10592         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10593         * tree-sra.c: Include ipa-prop.c.
10594         (build_ref_for_offset): Make public.
10595
10596 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
10597
10598         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10599
10600 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
10601
10602         * gcc/doc/extend.texi (__builtin_extract_return_address)
10603         (__builtin_frob_return_address): Document.
10604
10605 2009-08-06  Paul Brook  <paul@codesourcery.com>
10606
10607         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10608         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10609         implementation on ARMv6-M.
10610
10611 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10612
10613         * doc/extend.texi (pcs): Document new attribute for ARM.
10614
10615 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10616
10617         * arm.c (pcs_attribute_args): Comment out unsupported attribute
10618         variants.
10619
10620 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10621
10622         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10623         warning ().
10624
10625 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10626
10627         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10628
10629 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10630
10631         Merge ARM/hard_vfp_branch to trunk.
10632
10633         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
10634
10635         * arm.c (libcall_eq): New function.
10636         (libcall_hash): New function.
10637         (add_libcall): New function.
10638         (arm_libcall_uses_aapcs_base): New function.
10639         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10640         libcalls using the base PCS.
10641         (arm_init_cumulative_args): Likewise.
10642
10643         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
10644
10645         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10646         Use base ABI for conversion libfuncs between HFmode and SFmode.
10647
10648         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10649
10650         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10651         V4SImode as representatives of all 64-bit and 128-bit vector
10652         types.  Allow vector types without vector modes.
10653         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10654         without vector modes like BLKmode.
10655         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10656         BLKmode.  Avoid unsupported vector modes or TImode moves for
10657         non-TARGET_NEON.
10658         (aapcs_vfp_allocate_return_reg): Likewise.
10659         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10660         V8QImode if TARGET_NEON || TARGET_IWMMXT.
10661
10662         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10663
10664         * config/arm/arm.c (arm_handle_pcs_attribute): New.
10665         (arm_get_pcs_model): Pass attribute arguments to
10666         arm_pcs_from_attribute.
10667         (arm_init_cumulative_args): Use base AAPCS for conversions from
10668         floating-point types to DImode.
10669         (arm_attribute_table): Add pcs attribute.
10670         (arm_handle_pcs_attribute): New.
10671         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10672         conversions from floating-point types to DImode, also declare them
10673         to use base AAPCS and declare functions they call to use base
10674         AAPCS and their RTABI names.
10675
10676         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10677
10678         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10679         -mfloat-abi=hard not being supported for VFP.
10680
10681         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
10682
10683         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10684         SYMBOL_REF to hard_libcall_value.
10685
10686         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10687             Richard Earnshaw  <rearnsha@arm.com>
10688
10689         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10690         has been put on the stack, all remaining co-processory arguments for
10691         that co-processor also go on the stack.
10692
10693         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10694
10695         * config/arm/arm.c (arm_return_in_memory): Handle returning
10696         vectors of suitable size in registers also for AAPCS case.
10697
10698         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
10699
10700         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10701
10702         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
10703
10704         ARM Hard-VFP calling convention
10705         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10706         * target.h (gcc_target): Add libcall_value to table of call hooks.
10707         * targhooks.h (default_libcall_value): Default implementation.
10708         * targhooks.c (default_libcall_value): Likewise.
10709         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10710         * optabs.c (expand_unop): Use it.
10711         * expr.h (hard_libcall_value): Pass the function RTX through.
10712         * calls.c (emit_library_call_value_1): Update call to
10713         hard_libcall_value.
10714         * explow.c (hard_libcall_value): Use new target hook.
10715         * config/arm/arm.c: Include cgraph.h
10716         (TARGET_FUNCTION_VALUE): Override default hook.
10717         (arm_pcs_default): New variable.
10718         (arm_override_options): Don't fault hard calling convention with VFP.
10719         Add support for AAPCS variants.
10720         (arm_function_value): Make static.  Handle AAPCS variants.
10721         (arm_libcall_value): New function.
10722         (arm_apply_result_size): Handle VFP registers in results.
10723         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10724         conventions.
10725         (pcs_attribute_args): New variable.
10726         (arm_pcs_from_attribute): New function.
10727         (arm_get_pcs_model): New function.
10728         (aapcs_vfp_cum_init): New function.
10729         (aapcs_vfp_sub_candidate): New function.
10730         (aapcs_vfp_is_return_candidate): New function.
10731         (aapcs_vfp_is_call_candidate): New function.
10732         (aapcs_vfp_allocate): New function.
10733         (aapcs_vfp_allocate_return_reg): New function.
10734         (aapcs_vfp_advance): New function.
10735         (aapcs_cp_arg_layout): New variable.
10736         (aapcs_select_call_coproc): New function.
10737         (aapcs_select_return_coproc): New function.
10738         (aapcs_allocate_return_reg): New function.
10739         (aapcs_libcall_value): New function.
10740         (aapcs_layout_arg): New function.
10741         (arm_init_cumulative_args): Initialize AAPCS args data.
10742         (arm_function_arg): Handle AAPCS variants using new interface.
10743         (arm_arg_parital_bytes): Likewise.
10744         (arm_function_arg_advance): New function.
10745         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10746         calling conventions.
10747         (arm_setup_incoming_varargs): Handle new AAPCS args data.
10748         * arm.h (NUM_VFP_ARG_REGS): Define.
10749         (LIBCALL_VALUE): Update.
10750         (FUNCTION_VALUE): Delete.
10751         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10752         (arm_pcs): New enum.
10753         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10754         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10755         (FUNCTION_ARG_REGNO_P): Add VFP regs.
10756         * arm-protos.h (arm_function_arg_advance): Add.
10757         (aapcs_libcall_value): Add.
10758         (arm_function_value): Delete.
10759
10760 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
10761             H.J. Lu  <hongjiu.lu@intel.com>
10762
10763         PR target/40957
10764         * config/i386/i386.c (standard_sse_mode_p): Remove.
10765         (standard_sse_constant_p): Return 2 for integer mode
10766         vector_all_ones_operand when SSE2 is enabled.
10767         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10768         (ix86_expand_vector_move): Do not check for negative values from
10769         standard_sse_constant_p.
10770
10771 2009-08-06  Richard Guenther  <rguenther@suse.de>
10772
10773         * tree-ssa.c (useless_type_conversion_p_1): Make function and
10774         array type comparisons frontend independent.
10775         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10776         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10777         out array reference lower bound and element size operands.
10778         (ao_ref_init_from_vn_reference): Properly compute the offset
10779         for ARRAY_RANGE_REF.
10780         (vn_reference_fold_indirect): Fill out array reference lower
10781         bound and element size operands.
10782         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10783         a non gimple valued reference operand which can happen for
10784         array reference lower bound or element size.
10785         (create_component_ref_by_pieces_1): Properly generate the
10786         element size operand for array references.
10787
10788 2009-08-06  Richard Guenther  <rguenther@suse.de>
10789
10790         PR tree-optimization/40964
10791         * tree.c (iterative_hash_host_wide_int): Export.
10792         * tree.h (iterative_hash_host_wide_int): Declare.
10793         * tree-ssa-structalias.c (heapvar_map): New struct.
10794         (heapvar_map_eq): New function.
10795         (heapvar_map_hash): Likewise.
10796         (heapvar_lookup): Adjust.
10797         (heapvar_insert): Likewise.
10798         (make_constraint_from_heapvar): Allow multiple heap variables
10799         per decl at different offsets.
10800         (init_alias_heapvars): Adjust.
10801
10802 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10803
10804         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10805         * mips_output_sync_loop (mips_output_sync_loop): Only emit
10806         trailing sync if TARGET_SYNC_AFTER_SC.
10807
10808 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
10809
10810         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10811         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10812         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10813         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10814         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10815         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10816         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10817         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10818         test_and_set_12): Rewrite calls to mips_output_sync_loop.
10819         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10820         the prototype declaration match the definition.
10821         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
10822         instructions explicitly.  Add barrier_before and operands
10823         parameters.
10824         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10825         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10826         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10827         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10828         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10829         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10830
10831 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
10832
10833         * tree-ssa-alias.c: Fix intervals to use [) syntax.
10834
10835 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
10836             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10837
10838         PR target/40906
10839         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10840         source operand.
10841
10842 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
10843
10844         PR rtl-optimization/40924
10845         * dse.c (canon_address): Before calling cselib_expand_value_rtx
10846         make sure canon_rtx (mem_address) isn't simpler than
10847         canon_rtx (expanded_mem_address).
10848
10849 2009-08-05  Li Feng  <nemokingdom@gmail.com>
10850
10851         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10852         for each poly_bb_p.
10853         (build_scop_drs): Build alias set for each SCoP.
10854
10855 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
10856
10857         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10858         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10859         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10860         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10861         (BASE_DRIVER_SELF_SPECS): Likewise.
10862
10863 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
10864
10865         * tree-ssa-alias.c: Fix some comment typos.
10866
10867 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10868
10869         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10870         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10871
10872 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
10873
10874         PR c/39902
10875         * simplify-rtx.c (simplify_binary_operation_1): Disable
10876         simplifications for decimal float operations.
10877
10878 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
10879
10880         PR middle-end/40943
10881         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10882         operand of INDIRECT_REF.
10883
10884 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
10885
10886         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10887         constants referencing TLS symbols.
10888
10889 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10890
10891         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10892         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10893
10894 2009-08-03  Richard Guenther  <rguenther@suse.de>
10895
10896         * tree.c (make_vector_type): Build a main variant first,
10897         get the canonical one and then build the variant.
10898         * tree-ssa.c (useless_type_conversion_p_1): Handle
10899         fixed-point types.
10900         (useless_type_conversion_p): Conversions to pointers to
10901         incomplete record types are useless.
10902
10903 2009-08-03  Richard Guenther  <rguenther@suse.de>
10904
10905         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10906         file will be created.
10907         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10908         * toplev.c (compile_file): Adjust comment.
10909
10910 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10911
10912         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10913         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10914         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10915         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10916         (sh_promote_function_mode): Fix typo.
10917
10918 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
10919
10920         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10921
10922 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10923
10924         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10925         declaration arguments.
10926
10927 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
10928
10929         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10930         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10931         (ix86_split_ashl): Ditto.
10932         (ix86_expand_vector_init_one_nonzero): Ditto.
10933         (ix86_expand_vector_set): Ditto.
10934         (ix86_expand_reduc_v4sf): Ditto.
10935
10936 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10937
10938         * explow.c (promote_function_mode): Remove assert.
10939         * config/sh/sh.c (sh_promote_function_mode): Declare.
10940
10941 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10942
10943         * config/pa/pa.c (pa_promote_function_mode): Declare.
10944         Change to static.  Fix promote_mode call.
10945
10946         * gthr-dce.h (CONST_CAST2): Define if not defined.
10947         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10948
10949         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10950
10951 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
10952
10953         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10954         now write-only variable unsignedp.
10955         (expand_expr_real_1): Use promote_decl_mode.
10956         * expr.h (promote_function_mode, promote_decl_mode): New.
10957         (promote_mode): Remove last argument.
10958         * function.c (assign_temp): Drop last argument of promote_mode.
10959         (assign_parm_find_data_types): Use promote_function_mode.
10960         (assign_parm_setup_reg): Likewise.
10961         (expand_function_end): Use promote_function_mode.
10962         * calls.c (initialize_argument_information): Use promote_function_mode.
10963         (precompute_arguments): Use promote_mode instead of checking if
10964         only PROMOTE_FUNCTION_MODE is defined.
10965         (expand_call): When making sibcall decisions, use promote_function_mode.
10966         Below, remove an if for targetm.calls.promote_function_return and
10967         and use promote_function_mode.
10968         (emit_library_call_value_1): Use promote_function_mode, fix bug
10969         where promote_mode was passed FOR_CALL == 0 for a return value in an
10970         assertion.
10971         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10972         * explow.c (promote_function_mode, promote_decl_mode): New.
10973         (promote_mode): Keep only the FOR_CALL == 0 case.
10974         * combine.c (setup_incoming_promotion): Remove test of
10975         promote_function_args.  Use promote_function_mode.
10976         * stmt.c (expand_value_return): Use promote_decl_mode.
10977         (expand_decl): Use promote_decl_mode.
10978
10979         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10980         now write-only variable unsignedp.
10981         (expand_expr_real_1): Use promote_decl_mode.
10982         * expr.h (promote_function_mode, promote_decl_mode): New.
10983         (promote_mode): Remove last argument.
10984         * function.c (assign_temp): Drop last argument of promote_mode.
10985         (assign_parm_find_data_types): Use promote_function_mode.
10986         (assign_parm_setup_reg): Likewise.
10987         (expand_function_end): Use promote_function_mode.
10988         * calls.c (initialize_argument_information): Use promote_function_mode.
10989         (precompute_arguments): Use promote_mode instead of checking if
10990         only PROMOTE_FUNCTION_MODE is defined.
10991         (expand_call): When making sibcall decisions, use promote_function_mode.
10992         Below, remove an if for targetm.calls.promote_function_return and
10993         and use promote_function_mode.
10994         (emit_library_call_value_1): Use promote_function_mode, fix bug
10995         where promote_mode was passed FOR_CALL == 0 for a return value in an
10996         assertion.
10997         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10998         * explow.c (promote_function_mode, promote_decl_mode): New.
10999         (promote_mode): Keep only the FOR_CALL == 0 case.
11000         * combine.c (setup_incoming_promotion): Remove test of
11001         promote_function_args.  Use promote_function_mode.
11002         * stmt.c (expand_value_return): Use promote_decl_mode.
11003         (expand_decl): Use promote_decl_mode.
11004
11005         * explow.c (promote_function_mode): Just call the target hook.
11006         * targhooks.c (default_promote_function_mode,
11007         default_promote_function_mode_always_promote): New.
11008         * targhooks.h (default_promote_function_mode,
11009         default_promote_function_mode_always_promote): Declare.
11010         * target.h (promote_function_args, promote_function_return): Remove.
11011         (promote_function_mode): New.
11012         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
11013         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11014         (TARGET_PROMOTE_FUNCTION_MODE): New.
11015         (TARGET_CALLS): Adjust.
11016         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
11017         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
11018
11019         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
11020         * config/s390/s390.c (s390_promote_function_mode): ... here,
11021         with pointer handling.
11022         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11023         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11024
11025         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
11026         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
11027         with pointer handling.
11028         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11029         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11030
11031         * config/sh/sh-protos.h (sh_promote_function_mode): New.
11032         * config/sh/sh.c (sh_promote_function_mode): New.
11033         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11034         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11035
11036         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
11037         * config/cris/cris.c (cris_promote_function_mode): ... here.
11038         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11039         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11040
11041         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
11042         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
11043         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11044         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11045
11046         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
11047         * config/arm/arm.c (arm_promote_function_mode): ... here, without
11048         complex type handling.
11049         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11050         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11051
11052         * config/pa/pa.c (pa_promote_function_mode): New.
11053         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11054         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11055
11056         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
11057         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11058         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
11059         * config/xtensa/xtensa.c: Likewise.
11060         * config/stormy16/stormy16.c: Likewise.
11061         * config/iq2000/iq2000.c: Likewise.
11062         * config/rs6000/rs6000.c: Likewise.
11063         * config/picochip/picochip.c: Likewise.
11064         * config/arc/arc.c: Likewise.
11065         * config/mcore/mcore.c: Likewise.
11066         * config/score/score.c: Likewise.
11067         * config/mips/mips.c: Likewise.
11068         * config/bfin/bfin.c: Likewise.
11069         * config/ia64/ia64.c: Likewise (disabled though).
11070
11071         * config/frv/frv.h: Remove pointless remark.
11072
11073         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
11074         TARGET_PROMOTE_FUNCTION_ARGS,
11075         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
11076         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
11077
11078 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
11079
11080         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
11081         -floop-parallelize-all.
11082         * toplev.c (process_options): Rename flag_graphite_force_parallel to
11083         flag_loop_parallelize_all.
11084         * tree-ssa-loop.c (gate_graphite_transforms): Same.
11085         * graphite.c (graphite_transform_loops): Same.
11086         * common.opt: Same.
11087         * graphite-poly.c (apply_poly_transforms): Same.
11088
11089 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
11090
11091         PR tree-optimization/40914
11092         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
11093         if set, then check the delta field of the PMF record.
11094         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
11095         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
11096         call is stored in the delta.
11097
11098 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
11099
11100         * config/mips/mips.md (*clear_upper32_dext): New pattern.
11101
11102 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
11103
11104         * config/i386/bsd.h (ASM_BYTE): New define.
11105         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
11106         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
11107         .byte.  Use fputs or putc instead of fprintf where appropriate.
11108         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
11109         fputs or putc instead of fprintf where appropriate.
11110         * config/i386/i386elf.h: Ditto.
11111         * config/i386/sysv4.h: Ditto.
11112
11113         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
11114         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
11115         (*tls_global_dynamic_64): Ditto.
11116
11117 2009-07-31  Christian Bruel  <christian.bruel@st.com>
11118
11119         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
11120
11121 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11122
11123         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
11124         Remove dead code for MINUS.
11125
11126 2009-07-31  Anthony Green  <green@moxielogic.com>
11127
11128         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
11129         $r12 in prologue.
11130         (moxie_expand_epilogue): Ditto for epilogue.
11131         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
11132         incoming arguments.
11133         (moxie_function_arg): Ditto.
11134         (moxie_pass_by_reference): Ditto.
11135         (moxie_arg_partial_bytes): Ditto.
11136         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
11137         (FUNCTION_ARG_ADVANCE) Ditto.
11138         (REG_PARM_STACK_SPACE) Ditto.
11139         (FUNCTION_ARG_REGNO_P) Dito.
11140
11141         * config.gcc: Add moxie linux config support.
11142         * gcc/config/moxie/uclinux.h: New file.
11143
11144 2009-07-31  DJ Delorie  <dj@redhat.com>
11145
11146         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11147         (UNSPECV_SP_SWITCH_E): New.
11148         (sp_switch_1): Change to an unspec.
11149         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
11150         replace $r15.
11151         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
11152         reference the new stack's address
11153
11154 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11155
11156         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
11157         graphite-clast-to-gimple.o, graphite-dependences.o,
11158         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11159         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
11160         (graphite-blocking.o,
11161         graphite-clast-to-gimple.o, graphite-dependences.o,
11162         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11163         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
11164         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
11165         * cfgloop.h (struct loop): Add can_be_parallel field.
11166         * common.opt (fgraphite-identity): Moved up.
11167         (fgraphite-force-parallel): New flag.
11168         * graphite.c: Rewrite.
11169         * graphite.h: Rewrite.
11170         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
11171         after Graphite.
11172         * toplev.c (graphite_out_file): New file descriptor.
11173         (graphite_in_file): New.
11174         (process_options): flag_graphite_force_parallel cannot be used without
11175         Graphite.
11176         * tree-ssa-loop.c: Include toplev.h.
11177         (gate_graphite_transforms): Enable flag_graphite for
11178         flag_graphite_force_parallel.
11179
11180 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11181
11182         * ChangeLog.graphite: New.
11183         * graphite-blocking.c: New.
11184         * graphite-clast-to-gimple.c: New.
11185         * graphite-clast-to-gimple.h: New.
11186         * graphite-dependences.c: New.
11187         * graphite-dependences.h: New.
11188         * graphite-interchange.c: New.
11189         * graphite-poly.c: New.
11190         * graphite-poly.h: New.
11191         * graphite-ppl.c: New.
11192         * graphite-ppl.h: New.
11193         * graphite-scop-detection.c: New.
11194         * graphite-scop-detection.h: New.
11195         * graphite-sese-to-poly.c: New.
11196         * graphite-sese-to-poly.h: New.
11197         * sese.c: New.
11198         * sese.h: New.
11199
11200 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11201
11202         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
11203         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
11204
11205 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11206
11207         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
11208         (scev_is_linear_expression): Return false if the evolution is not
11209         affine multivariate.
11210
11211 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11212
11213         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
11214         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
11215
11216 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11217
11218         * tree-data-ref.c (debug_data_references): New.
11219         (debug_data_reference): New.
11220         * tree-data-ref.h (debug_data_references): Declared.
11221         (debug_data_reference): Declared.
11222
11223 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11224
11225         * tree-data-ref.c (stmt_simple_memref_p: Removed.
11226         * tree-data-ref.h (scop_p): Removed.
11227         (struct data_reference): Remove field scop.
11228         (DR_SCOP): Removed.
11229         (stmt_simple_memref_p): Removed.
11230
11231 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11232
11233         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
11234         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
11235         basic block empty.
11236
11237 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11238
11239         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
11240
11241 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11242
11243         * doc/invoke.texi (-fgraphite-identity): Documented.
11244
11245 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11246
11247         * tree-scalar-evolution.c: Fix comment.
11248         (instantiate_scev_1): Return unknow from scev instantiation if the
11249         result is not above instantiate_below.
11250
11251 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11252
11253         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
11254         static anymore.  Instantiate the symbols that may have been introduced
11255         by chrec_apply.
11256         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
11257         Declared.
11258
11259 2009-07-30  DJ Delorie  <dj@redhat.com>
11260
11261         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
11262         .vliw directive to VLIW sections.
11263
11264 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11265
11266         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
11267         New variables.
11268         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
11269         (AUTOHEADER): New variable.
11270         ($(srcdir)/cstamp-h.in): Use it.
11271
11272 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
11273             Pat Haugen  <pthaugen@us.ibm.com>
11274             Revital Eres <ERES@il.ibm.com>
11275
11276         * config/rs6000/vector.md (VEC_F): Add VSX support.
11277         (VEC_A): Ditto.
11278         (VEC_N): Ditto.
11279         (mov<mode>): Ditto.
11280         (vector_load_<mode>): Ditto.
11281         (vector_store_<mode>): Ditto.
11282         (vector GPR move split): Ditto.
11283         (vec_reload_and_plus_<mptrsize>): Ditto.
11284         (vec_reload_and_reg_<mptrsize>): Ditto.
11285         (add<mode>3): Ditto.
11286         (sub<mode>3): Ditto.
11287         (mul<mode>3): Ditto.
11288         (neg<mode>2): Ditto.
11289         (abs<mode>2): Ditto.
11290         (smin<mode>3): Ditto.
11291         (smax<mode>3): Ditto.
11292         (vector_eq<mode>): Ditto.
11293         (vector_gt<mode>): Ditto.
11294         (vector_ge<mode>): Ditto.
11295         (vector_gtu<mode>): Ditto.
11296         (vector_select_<mode>_uns): Ditto.
11297         (vector_eq_<mode>_p): Ditto.
11298         (vector_gt_<mode>_p): Ditto.
11299         (vector_ge_<mode>_p): Ditto.
11300         (vector_gtu_<mode>_p): Ditto.
11301         (cr6_test_for_zero): Ditto.
11302         (cr6_test_for_zero_reverse): Ditto.
11303         (cr6_test_for_lt): Ditto.
11304         (cr6_test_for_lt_reverse): Ditto.
11305         (xor<mode>3): Ditto.
11306         (ior<mode>3): Ditto.
11307         (and<mode>3): Ditto.
11308         (one_cmpl<mode>2): Ditto.
11309         (nor<mode>2): Ditto.
11310         (andc<mode>2): Ditto.
11311         (float<VEC_int<mode>2): Ditto.
11312         (unsigned_float<VEC_int><mode>2): Ditto.
11313         (fix_trunc<mode><VEC_int>2): Ditto.
11314         (fixuns_trunc<mode><VEC_int>2): Ditto.
11315         (vec_init<mode>):
11316         (vec_set<mode>): Ditto.
11317         (vec_extract<mode>): Ditto.
11318         (vec_interleave_highv4sf): Ditto.
11319         (vec_interleave_lowv4sf): Ditto.
11320         (vec_realign_load_<mode>): Ditto.
11321         (vec_shl_<mode>): Ditto.
11322         (vec_shr_<mode>): Ditto.
11323         (div<mode>3): New patterns for VSX.
11324         (vec_interleave_highv2df): Ditto.
11325         (vec_interleave_lowv2df): Ditto.
11326         (vec_pack_trunc_v2df): Ditto.
11327         (vec_pack_sfix_trunc_v2df): Ditto.
11328         (vec_pack_ufix_trunc_v2df): Ditto.
11329         (vec_unpacks_hi_v4sf): Ditto.
11330         (vec_unpacks_lo_v4sf): Ditto.
11331         (vec_unpacks_float_hi_v4si): Ditto.
11332         (vec_unpacks_float_lo_v4si): Ditto.
11333         (vec_unpacku_float_hi_v4si): Ditto.
11334         (vec_unpacku_float_lo_v4si): Ditto.
11335         (movmisalign<mode>): Ditto.
11336         (vector_ceil<mode>2): New patterns for vectorizing math library.
11337         (vector_floor<mode>2): Ditto.
11338         (vector_btrunc<mode>2): Ditto.
11339         (vector_copysign<mode>3): Ditto.
11340
11341         * config/rs6000/predicates.md (easy_vector_constant_msb): New
11342         predicate for setting the high bit in each word, used for copysign.
11343
11344         * config/rs6000/ppc-asm.h (f19): Whitespace.
11345         (f32-f63): Define if VSX.
11346         (v0-v31): Define if Altivec.
11347         (vs0-vs63): Define if VSX.
11348
11349         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
11350
11351         * config/rs6000/power7.md: New file, provide tuning parameters for
11352         -mcpu=power7.
11353
11354         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
11355         (rs6000_cpu_cpp_builtins): Ditto.
11356         (altivec_overloaded_builtins): Ditto.
11357         (altivec_resolve_overloaded_builtin): Ditto.
11358
11359         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
11360         debug switch to disable vectorizing simple math builtin
11361         functions.
11362
11363         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11364         Vectorize simple math builtin functions.
11365         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11366         hook to vectorize math builtins.
11367         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
11368         (rs6000_builtin_conversion): Add VSX/power7 support.
11369         (rs6000_builtin_vec_perm): Ditto.
11370         (vsplits_constant): Add support for loading up a vector constant
11371         with just the high bit set in each part.
11372         (rs6000_expand_vector_init): Add VSX/power7 support.
11373         (rs6000_expand_vector_set): Ditto.
11374         (rs6000_expand_vector_extract): Ditto.
11375         (rs6000_emit_move): Ditto.
11376         (bdesc_3arg): Ditto.
11377         (bdesc_2arg): Ditto.
11378         (bdesc_1arg): Ditto.
11379         (rs6000_expand_ternop_builtin): Ditto.
11380         (altivec_expand_builtin): Ditto.
11381         (rs6000_expand_unop_builtin): Ditto.
11382         (rs6000_init_builtins): Ditto.
11383         (altivec_init_builtins): Ditto.
11384         (builtin_function_type): Ditto.
11385         (rs6000_common_init_builtins): Ditto.
11386         (rs6000_handle_altivec_attribute); Ditto.
11387         (rs6000_mangle_type): Ditto.
11388         (rs6000_vector_mode_supported_p): Ditto.
11389         (rs6000_mode_dependent_address): Altivec addresses with AND -16
11390         are mode dependent.
11391
11392         * config/rs6000/vsx.md: New file for VSX support.
11393
11394         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
11395         identifing values with just the most significant bit set.
11396         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
11397         vectorized builtins.
11398
11399         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
11400         (UNSPEC_VRFIM): Delete.
11401         (splitter for loading up vector with most significant bit): New
11402         splitter for vectorizing copysign.
11403         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
11404         vectorizing simple math functions.
11405         (altivec_vrfip): Add support for vectorizing simple math functions.
11406         (altivec_vrfim): Ditto.
11407         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
11408
11409         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
11410         (power7.md, vsx.md): Include for power7 support.
11411         (copysigndf3): Use VSX instructions if -mvsx.
11412         (negdf2_fpr): Ditto.
11413         (absdf2_fpr): Ditto.
11414         (nabsdf2_fpr): Ditto.
11415         (adddf3_fpr): Ditto.
11416         (subdf3_fpr): Ditto.
11417         (muldf3_fpr): Ditto.
11418         (divdf3_fpr): Ditto.
11419         (fix_truncdfdi2_fpr): Ditto.
11420         (cmpdf_internal1): Ditto.
11421         (fred, fred_fpr): Convert into expander/insn to add VSX support.
11422         (btruncdf2, btruncdf2_fpr): Ditto.
11423         (ceildf2, ceildf2_fpr): Ditto.
11424         (floordf2, floordf2_fpr): Ditto.
11425         (floatdidf2, floatdidf2_fpr): Ditto.
11426         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
11427         (fmsubdf4_fpr): Ditto.
11428         (fnmadddf4_fpr_1): Ditto.
11429         (fnmadddf4_fpr_2): Ditto.
11430         (fnmsubdf4_fpr_1): Ditto.
11431         (fnmsubdf4_fpr_2): Ditto.
11432         (fixuns_truncdfdi2): Add expander for VSX support.
11433         (fix_truncdfdi2): Ditto.
11434         (fix_truncdfsi2): Ditto.
11435         (ftruncdf2): Ditto.
11436         (btruncsf2): Whitespace.
11437         (movdf_hardfloat32): Add support for VSX registers.
11438         (movdf_softfloat32): Ditto.
11439         (movdf_hardfloat64): Ditto.
11440         (movdf_hardfloat64_mfpgpr): Ditto.
11441         (movdf_softfloat64): Ditto.
11442         (movti splitters): Add check for vector registers supporting
11443         TImode in the future.
11444         (bpermd): Add power7 bpermd instruction.
11445
11446         * config/rs6000/altivec.h (vec_div): Define if VSX.
11447         (vec_mul): Ditto.
11448         (vec_msub): Ditto.
11449         (vec_nmadd): Ditto.
11450         (vec_nearbyint): Ditto.
11451         (vec_rint): Ditto.
11452         (vec_sqrt): Ditto.
11453         (all predicates): Use the generic builtin function, and not the V4SF
11454         specific function so that the predicates will work with VSX's V2DF.
11455         (vec_all_*): Ditto.
11456         (vec_any_*): Ditto.
11457
11458         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11459         Document new VSX functions and types.
11460
11461         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11462         switches.
11463
11464         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11465         "wa", and "j" constraints.  Modify "v" to talk about Altivec
11466         instead of just vector.
11467
11468 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
11469
11470         PR debug/26475
11471         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11472         location for phi arguments.
11473         (rewrite_update_phi_arguments): Find locations for reaching defs.
11474         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11475         Add location to add_phi_arg calls.
11476         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11477         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11478         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11479         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11480         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11481         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11482         * tree-phinodes.c (make_phi_node): Initialize location.
11483         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11484         (add_phi_arg): Add location parameter.
11485         (remove_phi_arg_num): Move location when moving phi argument.
11486         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11487         location.
11488         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11489         slpeel_update_phi_nodes_for_guard1,
11490         slpeel_update_phi_nodes_for_guard2,
11491         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11492         vect_loop_versioning): Set locations.
11493         * tree-parloops.c (create_phi_for_local_result,
11494         transform_to_exit_first_loop, create_parallel_loop): Add locations.
11495         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11496         * tree-vect-loop.c (get_initial_def_for_induction,
11497         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11498         locations.
11499         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
11500         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
11501         (gimple_phi_arg_set_location): New.  Set locus.
11502         (gimple_phi_arg_has_location): New.  Check for locus.
11503         (redirect_edge_var_map_location): New.  Return locus from var_map.
11504         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11505         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11506         combining PHI arguments.
11507         (cond_store_replacement): Set location.
11508         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11509         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11510         scop_add_exit_phis_edge): Add locations.
11511         * tree-cfgcleanup.c (remove_forwarder_block,
11512         remove_forwarder_block_with_phi): Add locations.
11513         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11514         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11515         locations.
11516         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11517         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11518         flush_pending_stmts): Add source location.
11519         * lambda-code.c (perfect_nestify): Maintain location stack with argument
11520         stack to preserve locations.
11521         * tree-vect-stmts.c (vectorizable_load): Add location.
11522         * tree-inline.c (copy_phis_for_bb): Copy locus.
11523         (setup_one_parameter): Add call locus to inlined parameter stmts.
11524         (initialize_inlined_parameters): Pass in call location as parameter
11525         assignment locus.
11526         (tree_function_versioning): Pass location to setup_one_parameter.
11527         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11528         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11529         copy and edge lists.
11530         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11531         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11532         locus parameter and override the stmt default if provided.
11533         (new_elim_graph, clear_elim_graph, delete_elim_graph,
11534         elim_graph_add_edge, elim_graph_remove_succ_edge,
11535         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11536         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11537         eliminate_phi):  Add locus info in elimination graph for each edge and
11538         value copy.
11539         (insert_backedge_copies): Copy locus if present.
11540         * tree-flow.h (struct _edge_var_map): Add locus field.
11541         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11542         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11543         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11544         locations.
11545         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11546
11547 2009-07-30  Martin Jambor  <mjambor@suse.cz>
11548
11549         PR tree-optimization/40570
11550         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11551         use inlining loops.
11552
11553 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
11554
11555         * ssa-loop-manip.c: Include langhooks.h.
11556         (rewrite_phi_with_iv): New.
11557         (rewrite_all_phi_nodes_with_iv): New.
11558         (canonicalize_loop_ivs): Move here from tree-parloops.c.
11559         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11560         * tree-parloops.c (loop_parallel_p): Move out all conditions
11561         except dependency check.
11562         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11563         (gen_parallel_loop): Call canonicalize_loop_ivs without
11564         reduction_list argument.
11565         (build_new_reduction): New.
11566         (gather_scalar_reductions): New.
11567         (try_get_loop_niter): New.
11568         (try_create_reduction_list): New.
11569         (parallleize_loops): Change the parallel conditions check.
11570         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11571         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11572
11573 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
11574
11575         * opt-functions.awk (opt_args): Allow argument to be enclosed in
11576         curly braces.
11577         * doc/options.texi (Option properties):  Mention new quoting syntax.
11578
11579 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11580
11581         * config/alpha/alpha.c (alpha_start_function):
11582         Handle VMS_DEBUG_MAIN_POINTER
11583         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11584         * doc/invoke.texi: Document -mdebug-main switch.
11585
11586 2009-07-29  Richard Henderson  <rth@redhat.com>
11587
11588         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11589         (cgraph_create_edge_including_clones): Likewise.
11590         * tree-inline.c (copy_bb): Operate on the correct edges
11591         when updating the callgraph.
11592
11593 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11594
11595         * config/alpha/vms-cc.c: Deleted.
11596         * config/alpha/vms-ld.c: Deleted.
11597         * config/alpha/t-vms64: Moved to config/vms
11598         * config/alpha/vms-crt0-64.c: Moved to config/vms
11599         * config/alpha/vms-crt0.c: Moved to config/vms
11600         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11601         * config/alpha/vms-psxcrt0.c: Moved to config/vms
11602         * config/alpha/xm-vms.h: Moved to config/vms
11603         * config/alpha/x-vms: Moved to config/vms
11604         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11605         config/vms/t-vms.
11606         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11607         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11608         (version): Set.
11609         * config/vms/t-vms64: Moved here from config/alpha
11610         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11611         (argc,argv,envp): Enforce 32bit malloc'ing.
11612         * config/vms/vms-psxcrt0-64.c: Likewise.
11613         * config/vms/vms-crt0.c: Moved here from config/alpha.
11614         * config/vms/vms-psxcrt0.c: Likewise.
11615         * config/vms/vms-crtl-64.h: New file.
11616         * config/vms/vms-crtl.h: New file.
11617         * config/vms/vms.opt: New file.
11618         * config/vms/xm-vms64.h: New file.
11619         * config/vms/xm-vms.h: Moved here from config/alpha.
11620         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11621         Set.
11622         * config/vms/x-vms: Moved here from config/alpha.
11623         (version, VMS_EXTRA_PARTS): Moved to t-vms.
11624         (vms-ld.o, vms-cc.o): Removed.
11625         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11626
11627 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11628
11629         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11630         correct stack (obvious VMS fix).
11631
11632 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11633
11634         * dwarf2out.c (output_file_names): Output VMS style file name, size,
11635         date, version info if VMS_DEBUGGING_INFO defined.
11636         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11637         size, date calculating code moved here.
11638
11639 2009-07-29  Paul Brook  <paul@codesourcery.com>
11640
11641         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11642         do_push/do_pop.
11643
11644 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
11645
11646         PR target/40577
11647         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11648         to DImode when generating insq_le insn.
11649
11650 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11651
11652         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11653         New macro set for VMS_DEBUGGGING_INFO.
11654         (AT_string_form): Use it.
11655
11656 2009-07-28  DJ Delorie  <dj@redhat.com>
11657
11658         * config/mep/mep.c (vtext_section): New.
11659         (vftext_section): New.
11660         (ftext_section): New.
11661         (mep_select_section): Add support for functions.
11662         (mep_unique_section): Likewise.
11663         (mep_asm_init_sections): Likewise.
11664         (mep_encode_section_info): Remove it from here.
11665
11666         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11667
11668 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
11669
11670         * tree.h (TREE_DEPRECATED): Document it is used for types too.
11671         (TYPE_VECTOR_OPAQUE): Use default_def_flag
11672
11673 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11674
11675         * dwarf2out.c (output_file_names): Test new macro
11676         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11677         (add_comp_dir_attribute): Likewise.
11678
11679 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
11680
11681         * config/i386/mingw-w64.h (LINK_SPEC): Add
11682         separating space between commands.
11683
11684 2009-07-28  Jan Hubicka  <jh@suse.cz>
11685
11686         PR tree-optimization/40759
11687         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11688         for renaming.
11689
11690 2009-07-27  DJ Delorie  <dj@redhat.com>
11691
11692         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11693         types are dword-aligned.
11694         (mep_expand_va_start): Likewise.
11695
11696 2009-07-27  Olivier Hainque  <hainque@adacore.com>
11697             Douglas B Rupp  <rupp@gnat.com>
11698
11699         * convert.c (convert_to_pointer): Don't assume the target
11700         pointer type is POINTER_SIZE long. Fetch its precision instead.
11701
11702 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
11703
11704         * system.h (fopen): Undefine if macro.
11705
11706 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
11707
11708         * dwarf2out.c (output_cfi_p): Removed.
11709         (output_cfis): New function.
11710         (output_fde): New function, split from output_call_frame_info.
11711         (output_call_frame_info): Use it.
11712         (dwarf2out_switch_text_section): Use output_cfis.
11713
11714 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11715
11716         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11717         TARGET_BI_ARCH is specified without enabling SJLJ.
11718         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11719         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11720
11721 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
11722
11723         * arm.md (negdi2): Use DImode if forcing a value into a register.
11724
11725 2009-07-26  Ira Rosen  <irar@il.ibm.com>
11726
11727         PR tree-optimization/40801
11728         * tree-vect-stmts.c (vectorizable_call): Get previous copy
11729         of vector operand from the previous copy of vector statement.
11730         Pass the correct definition type value to
11731         vect_get_vec_def_for_stmt_copy().
11732
11733 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11734
11735         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11736         const char ** conversion.
11737
11738 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11739
11740         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11741         fancy_abort() if !ENABLE_ASSERT_CHECKING.
11742         (gcc_unreachable): Invoke __builtin_unreachable() if
11743         !ENABLE_ASSERT_CHECKING.
11744
11745 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11746
11747         PR rtl-optimization/40445
11748         * emit-rtl.c (next_nonnote_insn_bb): New function.
11749         * rtl.h (next_nonnote_insn_bb): Declare new function.
11750         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11751         with no successors that is the successor of the ENTRY_BLOCK.
11752         Continue from the top after removing an empty fallthrough block.
11753         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11754         of next_nonnote_insn.
11755
11756 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11757
11758         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11759
11760 2009-07-25  Martin Jambor  <mjambor@suse.cz>
11761
11762         * c-common.c (c_common_attribute_table): New element for noclone.
11763         (handle_noclone_attribute): New function. Forward-declare.
11764         * tree-inline.c (tree_versionable_function_p): Check for noclone
11765         attribute.
11766         * doc/extend.texi (Labels as Values): Document need for noclone.
11767         (Function Attributes): Document noclone attribute.
11768
11769 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
11770
11771         PR rtl-optimization/34999
11772         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11773         and dw_fde_switched_cold_to_hot fields.
11774         (output_cfi_p): New function.
11775         (output_call_frame_info): If fde->dw_fde_switched_sections,
11776         output 2 FDEs instead of one with corrupted header.
11777         (dwarf2out_do_cfi_startproc): New function.
11778         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
11779         and fde->dw_fde_switched_cold_to_hot.
11780         (dwarf2out_switch_text_section): Compute
11781         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
11782         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11783         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11784         Otherwise, compute fde->dw_fde_switch_cfi.
11785
11786 2009-07-24  Cary Coutant  <ccoutant@google.com>
11787
11788         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11789
11790 2009-07-24  Cary Coutant  <ccoutant@google.com>
11791
11792         * cfghooks.c (split_block): Copy discriminator to new block.
11793         * tree-cfg.c (assign_discriminator): Check location of last
11794         instruction in block as well as first.
11795
11796 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
11797
11798         * config/i386/linux.c: Use fputs or putc instead of fprintf
11799         where appropriate.
11800         * config/i386/gas.h: Ditto.
11801         * config/i386/x86-64.h: Ditto.
11802         * config/i386/att.h: Ditto.
11803
11804 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11805
11806         * expmed.c (emit_store_flag): Use a recursive call to optimize the
11807         xor case.
11808
11809 2009-07-24  Martin Jambor  <mjambor@suse.cz>
11810
11811         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11812         (ipa_push_func_to_list_1): Declare.
11813         (ipa_push_func_to_list): New function.
11814
11815         * ipa-prop.c (ipa_push_func_to_list_1): New function.
11816         (ipa_init_func_list): Call ipa_push_func_to_list_1.
11817         (ipa_push_func_to_list): Removed.
11818         (ipa_pop_func_from_list): Clear node_enqueued flag.
11819
11820 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11821
11822         * config/s390/s390.c (override_options): Default
11823         max-unrolled-insns to 100 for z10 tuning.
11824
11825 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
11826
11827         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11828         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11829         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11830         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11831         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11832         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11833         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11834
11835 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11836
11837         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11838         use default set in mingw32.h header.
11839         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11840         64-bit /mingw/include path.
11841         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11842         path.
11843
11844 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
11845
11846         PR rtl-optimization/40209
11847         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11848
11849 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11850
11851         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
11852         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11853         with the rest of string where appropriate.  Use fputs or putc
11854         instead of fprintf where appropriate.
11855
11856 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11857             Pat Haugen  <pthaugen@us.ibm.com>
11858             Revital Eres <ERES@il.ibm.com>
11859
11860         * config/rs6000/vector.md: New file.  Move most of the vector
11861         expander support here from altivec.md to allow for the VSX vector
11862         unit in the future.  Add support for secondary_reload patterns.
11863         Rewrite the patterns for vector comparison, and vector comparison
11864         predicate instructions so that the RTL expresses the desired
11865         behavior, instead of using unspec.
11866
11867         * config/rs6000/constraints.md ("f" constraint): Use
11868         rs6000_constraints to hold the precalculated register class.
11869         ("d" constraint): Ditto.
11870         ("wd" constraint): New constraint for VSX.
11871         ("wf" constraint): Ditto.
11872         ("ws" constraint): Ditto.
11873         ("wa" constraint): Ditto.
11874         ("wZ" constraint): Ditto.
11875         ("j" constraint): Ditto.
11876
11877         * config/rs6000/predicates.md (vsx_register_operand): New
11878         predicate for VSX.
11879         (vfloat_operand): New predicate for vector.md.
11880         (vint_operand): Ditto.
11881         (vlogical_operand): Ditto.
11882         (easy_fp_constant): If VSX, 0.0 is an easy constant.
11883         (easy_vector_constant): Add VSX support.
11884         (altivec_indexed_or_indirect_operand): New predicate for
11885         recognizing Altivec style memory references with AND -16.
11886
11887         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11888         for vector secondary reload support.
11889         (rs6000_vector_reg_class): Delete, replacing it with
11890         rs6000_constraints.
11891         (rs6000_vsx_reg_class): Ditto.
11892         (rs6000_constraints): New array to hold the register classes of
11893         each of the register constraints that can vary at runtime.
11894         (builtin_mode_to_type): New static array for builtin function type
11895         creation.
11896         (builtin_hash_table): New static hash table for builtin function
11897         type creation.
11898         (TARGET_SECONDARY_RELOAD): Define target hook.
11899         (TARGET_IRA_COVER_CLASSES): Ditto.
11900         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11901         registers are 128 bits if VSX memory reference instructions are used.
11902         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11903         unit is being used.
11904         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11905         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11906         Print several of the scheduling related parameters.
11907         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11908         rs6000_constraints instead of rs6000_vector_reg_class.  Move
11909         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
11910         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
11911         Altivec.  Add VSX support.  Setup for secondary reload support on
11912         Altivec/VSX registers.
11913         (rs6000_override_options): Make power7 set the scheduling groups
11914         like the power5.  Add support for new debug switches to override
11915         the scheduling defaults.  Temporarily disable -mcpu=power7 from
11916         setting -mvsx.  Add support for debug switches -malways-hint,
11917         -msched-groups, and -malign-branch-targets.
11918         (rs6000_buitlin_conversion): Add support for returning unsigned
11919         vector conversion functions to fix regressions due to stricter
11920         type checking.
11921         (rs6000_builtin_mul_widen_even): Ditto.
11922         (rs6000_builtin_mul_widen_odd): Ditto.
11923         (rs6000_builtin_vec_perm): Ditto.
11924         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11925         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11926         to zero a register.
11927         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11928         generated upstream.
11929         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
11930         VSX types for bit operations.  Changes to accomidate vector.md.
11931         (bdesc_2arg): Ditto.
11932         (bdesc_1arg): Ditto.
11933         (struct builtin_description_predicates): Rewrite predicate
11934         handling so that RTL describes the operation, instead of passing
11935         the instruction to be used as a string argument.
11936         (bdesc_altivec_preds): Ditto.
11937         (altivec_expand_predicate_builtin): Ditto.
11938         (altivec_expand_builtin): Ditto.
11939         (rs6000_expand_ternop_builtin): Use a switch instead of an if
11940         statement for vsldoi support.
11941         (altivec_expand_ld_builtin): Change to use new names from vector.md.
11942         (altivec_expand_st_builtin): Ditto.
11943         (paired_expand_builtin): Whitespace changes.
11944         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
11945         builtin_mode_to_type table for secondary reload.  Call
11946         builtin_function_type to build random builtin functions.
11947         (altivec_init_builtins): Change to use builtin_function_type to
11948         create builtin function types dynamically as we need them.
11949         (builtin_hash_function): New support for hashing the tree types
11950         for builtin function as we need it, rather than trying to build
11951         all of the trees that we need.  Add initial preliminary VSX support.
11952         (builtin_function_type): Ditto.
11953         (builtin_function_eq): Ditto.
11954         (builtin_hash_struct): Ditto.
11955         (rs6000_init_builtins): Ditto.
11956         (rs6000_common_init_builtins): Ditto.
11957         (altivec_init_builtins): Ditto.
11958         (rs6000_common_init_builtins): Ditto.
11959         (enum reload_reg_type): New enum for simplifing reg classes.
11960         (rs6000_reload_register_type): Simplify register classes into GPR,
11961         Vector, and other registers.  Altivec and VSX addresses in reload.
11962         (rs6000_secondary_reload_inner): Ditto.
11963         (rs6000_ira_cover_classes): New target hook, that returns the
11964         appropriate cover classes, based on -mvsx being used or not.
11965         (rs6000_secondary_reload_class): Add VSX support.
11966         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11967         (get_vsel_insn): Ditto.
11968         (rs6000_emit_vector_compare): Rewrite vector conditional support
11969         so that where we can, we use RTL operators, instead of blindly use
11970         UNSPEC.
11971         (rs6000_emit_vector_select): Ditto.
11972         (rs6000_emit_vector_cond_expr): Ditto.
11973         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
11974         (create_TOC_reference): Add -mdebug=addr support.
11975         (emit_frame_save): VSX loads/stores need register indexed addressing.
11976
11977         * config/rs6000/rs6000.md: Include vector.md.
11978
11979         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11980
11981         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11982         support for V2DI, V2DF in logical, permute, select operations.
11983
11984         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11985         switch for vsx/power7.
11986         (-mvsx-scalar-memory): Ditto.
11987         (-mvsx-align-128): Ditto.
11988         (-mallow-movmisalign): Ditto.
11989         (-mallow-df-permute): Ditto.
11990         (-msched-groups): Ditto.
11991         (-malways-hint): Ditto.
11992         (-malign-branch-targets): Ditto.
11993
11994         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11995         hook instead.
11996         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11997         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11998         (rs6000_vector_reg_class): Delete.
11999         (rs6000_vsx_reg_class): Ditto.
12000         (enum rs6000_reg_class_enum): New enum for the constraints that
12001         vary based on target switches.
12002         (rs6000_constraints): New array to hold the register class for all
12003         of the register constraints that vary based on the switches used.
12004         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
12005         (enum rs6000_builtins): Add unsigned varients for the builtin
12006         declarations returned by target hooks for expanding multiplies,
12007         select, and permute operations.  Add VSX builtins.
12008         (enum rs6000_builtin_type_index): Add entries for VSX.
12009         (V2DI_type_node): Ditto.
12010         (V2DF_type_node): Ditto.
12011         (unsigned_V2DI_type_node): Ditto.
12012         (bool_long_type_node): Ditto.
12013         (intDI_type_internal_node): Ditto.
12014         (uintDI_type_internal_node): Ditto.
12015         (double_type_internal_node): Ditto.
12016
12017         * config/rs6000/altivec.md (whole file): Move all expanders to
12018         vector.md from altivec.md.  Rename insn matching functions to be
12019         altivec_foo.
12020         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
12021         (altivec_vcmp*): Ditto.
12022         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
12023         (VM): New iterator for moves that includes the VSX types.
12024         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
12025         (altivec_vperm_<mode>_uns): New, for unsigned types.
12026         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
12027         (altivec_eq<mode>): Ditto.
12028         (altivec_gt<mode>): Ditto.
12029         (altivec_gtu<mode>): Ditto.
12030         (altivec_eqv4sf): Ditto.
12031         (altivec_gev4sf): Ditto.
12032         (altivec_gtv4sf): Ditto.
12033         (altivec_vcmpbfp_p): Ditto.
12034
12035 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
12036
12037         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
12038         unsigned HWI.
12039
12040 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
12041
12042         PR target/40832
12043         * config/i386/i386.c (output_387_ffreep): Rewrite to use
12044         ASM_SHORT instead of .word.
12045         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
12046         instead of .word in asm template.
12047
12048 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
12049
12050         PR target/37488
12051         * ira-lives.c (bb_has_abnormal_call_pred): New function.
12052         (process_bb_node_lives): Use it.
12053
12054         * ira.c (setup_cover_and_important_classes): Don't setup
12055         ira_important_class_nums.  Add cover classes to the end of
12056         important classes.
12057         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
12058         New.
12059         (find_reg_class_closure): Use reorder_important_classes.
12060
12061         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
12062
12063         * config/i386/i386.c (i386_ira_cover_classes): New function.
12064         (TARGET_IRA_COVER_CLASSES): Redefine.
12065
12066         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
12067         importance of order of cover classes in the array.
12068
12069 2009-07-22  Diego Novillo  <dnovillo@google.com>
12070
12071         * tree-pass.h (TDF_EH): Define.
12072         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
12073         contains TDF_EH, print the EH region number holding GS.
12074         * tree-dump.c (dump_options): Add "eh".
12075         * doc/invoke.texi: Document it.
12076
12077 2009-07-22  Doug Kwan  <dougkwan@google.com>
12078
12079         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
12080
12081 2009-07-22  Michael Matz  <matz@suse.de>
12082
12083         PR tree-optimization/35229
12084         PR tree-optimization/39300
12085
12086         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
12087         (inhibit_phi_insertion): New function.
12088         (insert_into_preds_of_block): Call it for REFERENCEs.
12089         (init_pre): Initialize and finalize scalar evolutions.
12090         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
12091
12092 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
12093
12094         * config/i386/predicates.md (zero_extended_scalar_load_operand):
12095         Use CONST_VECTOR_NUNITS to determine number of elements.
12096
12097 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
12098
12099         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
12100         (U, W): Constraints are now deprecated and will be removed if we
12101         run out of letters.
12102         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
12103         the file.
12104         ("prefetch"): Add the stcmh instruction for prefetching.
12105         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
12106         changes.
12107         (s390_short_displacement): Return always true if compiling for
12108         machines not providing the long displacement facility.
12109         (s390_mem_constraint): Support the new constraint letter Z.
12110         (s390_check_qrst_address): New function.
12111
12112 2009-07-21  DJ Delorie  <dj@redhat.com>
12113
12114         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
12115         alone too.
12116
12117 2009-07-21  Jason Merrill  <jason@redhat.com>
12118
12119         * c-common.c (max_tinst_depth): Increase default to 1024.
12120
12121 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
12122
12123         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
12124         (vec_unpacku_float_lo_v4si): Ditto.
12125
12126 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
12127
12128         PR target/40811
12129         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
12130         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
12131         (builtin_description): Add __builtin_ia32_cvtudq2ps.
12132         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
12133
12134 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
12135
12136         PR tree-optimization/40813
12137         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
12138         it.
12139
12140 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
12141
12142         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
12143         with a NOP_EXPR if needed.
12144
12145 2009-07-21  Paul Brook <paul@codesourcery.com>
12146
12147         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
12148         Terminate debug dump with newline.
12149
12150 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12151
12152         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
12153         Cast "1" to unsigned HOST_WIDE_INT.
12154         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
12155         deposit length to the maximum length - lsb.  Extend length if
12156         HOST_BITS_PER_WIDE_INT is 32.
12157
12158 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
12159
12160         * cgraph.h (constant_pool_htab): New function.
12161         (constant_descriptor_tree): Move from varasm.c.
12162         * varasm.c (constant_pool_htab): New function.
12163         (constant_descriptor_tree): Move to cgraph.h.
12164
12165 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
12166
12167         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
12168
12169 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
12170
12171         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
12172         $(VARRAY_H).
12173
12174 2009-07-20  Xinliang David Li  <davidxl@google.com>
12175
12176         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
12177
12178 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12179
12180         * config/mips/mips.md (move_type): Add arith.
12181         (type): Handle arith.
12182         (zero_extendsidi2): Rename this into ...
12183         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
12184         (zero_extendsidi2): New expander.
12185         (*zero_extendsidi2_dext): New pattern.
12186
12187 2009-07-20  Nick Clifton  <nickc@redhat.com>
12188
12189         * config.gcc (mips64-*-*): Add definition of tm_defines in order
12190         to set MIPS_ABI_DEFAULT.
12191         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
12192
12193 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
12194
12195         * tree-object-size.c (addr_object_size): Handle unions with
12196         array in it as last field of structs in __bos (, 1) as __bos (, 0).
12197
12198         PR tree-optimization/40792
12199         * tree.c (build_function_type_skip_args): Remove bogus assert.
12200
12201 2009-07-20  Jan Hubicka  <jh@suse.cz>
12202             Martin Jambor  <mjambor@suse.cz>
12203
12204         * cgraph.h (combined_args_to_skip): New field.
12205         * cgraph.c (cgraph_create_virtual_clone): Properly handle
12206         combined_args_to_skip and args_to_skip.
12207         * tree-inline.c (update_clone_info): New function.
12208         (tree_function_versioning): Call update_clone_info.
12209         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
12210         functions.
12211         (cgraph_materialize_all_clones): More extensive dumping, working
12212         with combined_args_to_skip rather than args_to_skip.
12213
12214 2009-07-20  Ira Rosen  <irar@il.ibm.com>
12215
12216         * tree-vectorizer.h (vectorizable_condition): Add parameters.
12217         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
12218         (get_initial_def_for_reduction): Likewise.
12219         (vectorizable_reduction): Skip the check of first operand in case
12220         of COND_EXPR. Add check that it is outer loop vectorization if
12221         nested cycle was detected. Call vectorizable_condition() for
12222         COND_EXPR. If reduction epilogue cannot be created do not fail for
12223         nested cycles (if it is not double reduction). Assert that there
12224         is only one type in the loop in case of COND_EXPR. Call
12225         vectorizable_condition() to vectorize COND_EXPR.
12226         * tree-vect-stmts.c (vectorizable_condition): Update comment.
12227         Add parameters. Allow nested cycles if called from
12228         vectorizable_reduction(). Use reduction vector variable if provided.
12229         (vect_analyze_stmt): Call vectorizable_reduction() before
12230         vectorizable_condition().
12231         (vect_transform_stmt): Update call to vectorizable_condition().
12232
12233 2009-07-20  Christian Bruel  <christian.bruel@st.com>
12234
12235         * config/sh/sh.opt (-mfmovd): Resurrect and document.
12236         * doc/invoke.texi (-mfmovd): Likewise.
12237         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
12238
12239 2009-07-20  Jan Hubicka  <jh@suse.cz>
12240
12241         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
12242         when handling SSA name.
12243
12244 2009-07-19  Jan Hubicka  <jh@suse.cz>
12245
12246         PR tree-optimization/40676
12247         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
12248         virtual PHIs in empty BBs.
12249
12250 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12251
12252         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
12253         re-expanded the compound use gen_lowpart instead to convert to the
12254         desired mode.
12255
12256 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12257
12258         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
12259         OUTER_CONST arguments.
12260         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
12261         the new wider mode will be masked off.
12262         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
12263
12264 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12265
12266         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
12267         high-order bits are zero.
12268
12269 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12270
12271         * combine.c (simplify_shift_const_1): Split code to determine
12272         shift_mode into ...
12273         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
12274         new bits shifted in are identical to the old sign bit.
12275
12276 2009-07-18  Richard Guenther  <rguenther@suse.de>
12277
12278         PR c/40787
12279         * gimplify.c (gimplify_call_expr): Reject code using results from
12280         functions returning void.
12281
12282 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
12283
12284         * doc/md.texi: Document the new PowerPC "es" constraint.
12285         Document that "m" can include automodified addresses on this target,
12286         and explain how %U must be used.  Extend the "Q" and "Z" documentation
12287         to suggest "es" as well as "m".
12288         * config/rs6000/constraints.md (es): New memory constraint.
12289         (Q, Z): Update strings to match new documentation.
12290
12291 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
12292
12293         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
12294         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
12295         * config/rs6000/predicates.md (volatile_mem_operand): Use
12296         offsettable_nonstrict_memref_p.
12297         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
12298         (*floatunssidf2_internal): Likewise.
12299         (*fix_truncdfsi2_internal): Likewise.
12300         (*fix_trunctfsi2_internal): Likewise.
12301
12302 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
12303
12304         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
12305         atmega32u2 devices.
12306         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12307
12308 2009-07-17  Richard Guenther  <rguenther@suse.de>
12309
12310         PR c/40401
12311         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
12312         (pass_warn_unused_result): Likewise.
12313         (TODO_set_props): Remove.
12314         * omp-low.c (diagnose_omp_structured_block_errors): Change to
12315         run as a pass.
12316         (pass_diagnose_omp_blocks): Define.
12317         * c-decl.c (pop_file_scope): Do not finalize the CU here.
12318         (c_gimple_diagnostics_recursively): Remove.
12319         (finish_function): Do not call it.
12320         (c_write_global_declarations): Continue after errors.
12321         Finalize the CU here.
12322         * c-gimplify.c (c_genericize): Do not gimplify here.
12323         * c-common.c (c_warn_unused_result): Move ...
12324         * tree-cfg.c (do_warn_unused_result): ... here.
12325         (run_warn_unused_result): New function.
12326         (gate_warn_unused_result): New function.
12327         (pass_warn_unused_result): New pass.
12328         * c-common.h (c_warn_unused_result): Remove.
12329         * flags.h (flag_warn_unused_result): Declare.
12330         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
12331         * opts.c (flag_warn_unused_result): Initialize to false.
12332         * toplev.c (compile_file): Add comment.
12333         * omp-low.c (create_omp_child_function): Do not register
12334         the function with the frontend.
12335         (diagnose_omp_structured_block_errors): Prepare to be
12336         called as optimization pass.
12337         (gate_diagnose_omp_blocks): New function.
12338         (pass_diagnose_omp_blocks): New pass.
12339         * cgraph.h (cgraph_optimize): Remove.
12340         (cgraph_analyze_function): Likewise.
12341         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
12342         * cgraphunit.c (cgraph_lower_function): Lower nested functions
12343         before their parents here.
12344         (cgraph_finalize_function): Not here.
12345         (cgraph_analyze_function): Gimplify functions here.
12346         (cgraph_finalize_compilation_unit): Continue after errors.
12347         Optimize the callgraph from here.
12348         (cgraph_optimize): Make static.
12349         * langhooks.c (write_global_declarations): Finalize the CU.
12350         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
12351         (gimplify_function_tree): Assert we gimplify only once.
12352         Set PROP_gimple_any property.
12353         * tree-nested.c (gimplify_all_functions): New function.
12354         (lower_nested_functions): Gimplify all nested functions.
12355         * gimple.h (diagnose_omp_structured_block_errors): Remove.
12356         * passes.c (init_optimization_passes): Add pass_warn_unused_result
12357         and pass_diagnose_omp_blocks after gimplification.  Do not
12358         set TODO_set_props on all_lowering_passes.
12359         (execute_one_pass): Do not handle TODO_set_props.
12360         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
12361         (gimplify.o): Add tree-pass.h dependency.
12362         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
12363         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
12364         (unsave_r): Likewise.
12365         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
12366         temporary variable.
12367
12368 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
12369
12370         * doc/service.texi (Service): Restore previously removed link,
12371         which isn't broken after all.
12372
12373 2009-07-17  Richard Guenther  <rguenther@suse.de>
12374
12375         PR tree-optimization/40321
12376         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
12377         PHI nodes to the maximal set.
12378         (make_values_for_phi): Add PHI arguments to the maximal set.
12379         (execute_pre): Dump PHI_GEN and the maximal set.
12380
12381 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
12382
12383         PR c++/40780
12384         * gimplify.c (gimplify_conversion): Don't change non-conversions into
12385         VIEW_CONVERT_EXPR.
12386
12387 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12388
12389         * doc/extend.texi (Nested Functions): Replace broken link with
12390         textual reference.
12391         * doc/service.texi (Service): Remove broken link.
12392
12393 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
12394
12395         PR bootstrap/40781
12396         * builtins.c (expand_builtin_memcmp): Use loc instead of
12397         EXPR_LOCATION (exp).
12398         (expand_builtin_strncmp): Likewise.
12399
12400 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
12401             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12402
12403         PR 40435
12404         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
12405         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
12406         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
12407         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
12408         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
12409         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
12410         tree-inline.c, c-common.c, c-common.h, gimple.c,
12411         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
12412         convert.c: Add location argument to fold_{unary,binary,ternary},
12413         fold_build[123], build_call_expr, build_size_arg,
12414         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
12415         fold_build1_initializer, fold_build2_initializer,
12416         fold_build3_initializer, fold_build_call_array,
12417         fold_build_call_array_initializer, fold_single_bit_test,
12418         omit_one_operand, omit_two_operands, invert_truthvalue,
12419         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
12420         combine_comparisons, fold_builtin_*, fold_call_expr,
12421         build_range_check, maybe_fold_offset_to_address, round_up,
12422         round_down.
12423
12424 2009-07-16  Jason Merrill  <jason@redhat.com>
12425
12426         PR libstdc++/37907
12427         * c-common.c (c_common_reswords): Add __is_standard_layout
12428         and __is_trivial.
12429         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
12430         * doc/implement-cxx.texi: New.
12431         * doc/gcc.texi: Include it.
12432
12433 2009-07-16  DJ Delorie  <dj@redhat.com>
12434
12435         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12436         compares that may be indirectly affected by previous instructions.
12437
12438 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12439
12440         * builtins.c (do_mpc_arg2): New.
12441         (fold_builtin_2): Fold builtin cpow.
12442         * real.h (HAVE_mpc_pow): New.
12443
12444 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
12445
12446         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12447         comparison to skip unprofitable schedule
12448
12449 2009-07-16  Simon Baldwin  <simonb@google.com>
12450
12451         * gcc.c (option_map): New flag -no-canonical-prefixes.
12452         * (display_help): Print help text for new flag.
12453         * (process_command): Move options translation and language specifics
12454         and handle new flag early.  Use it to set a function pointer to a
12455         prefix builder.  Replace make_relative_prefix calls with calls to
12456         the function pointed to.  Ignore new flag in regular options handling.
12457         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12458
12459 2009-07-15  DJ Delorie  <dj@redhat.com>
12460
12461         * config/mep/mep.md (sibcall_internal): Change register to avoid
12462         argument registers.
12463         (sibcall_value_internal): Likewise.
12464
12465 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
12466
12467         PR rtl-optimization/40710
12468         * resource.c (mark_target_live_regs): Reset DF problem to LR.
12469
12470 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
12471
12472         * config/mips/mips.md (*extenddi_truncate<mode>,
12473         *extendsi_truncate<mode>): Change type attribute to move_type
12474         with shift_shift.  Split out code handling exts from here ...
12475         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12476         pattern.
12477         (*extendhi_truncateqi): Change type attribute to move_type with
12478         shift_shift.  Split out code handling exts from here ...
12479         (*extendhi_truncateqi_exts): ... to this new pattern.
12480
12481 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
12482
12483         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12484         instead of "and" with inverted sign bit mask value.  Use
12485         "nonimmediate_operand" for operand 1 and operand 2 predicate.
12486         Allocate registers only for operand 4 and operand 5.
12487
12488 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
12489
12490         PR middle-end/40747
12491         * fold-const.c (fold_cond_expr_with_comparison): When folding
12492         < and <= to MIN, make sure the MIN uses the same type as the
12493         comparison's operands.
12494
12495 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
12496
12497         * arm.md (ior_xor): New code iterator.
12498         (split for ior/xor with shift and zero-extend): New split pattern.
12499         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12500
12501 2009-07-15  Richard Guenther  <rguenther@suse.de>
12502
12503         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12504         offset member.
12505
12506 2009-07-15  Richard Guenther  <rguenther@suse.de>
12507
12508         PR middle-end/40753
12509         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12510
12511 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12512
12513         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12514         handle 2.6.30 kernel.
12515
12516 2009-07-15  DJ Delorie  <dj@redhat.com>
12517
12518         * config/mep/mep.md (sibcall_internal): Change register to allow
12519         for 24-bit addresses.
12520         (sibcall_value_internal): Likewise.
12521
12522 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12523
12524         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
12525         that are enabled/disabled by the flags introduced by a previous patch.
12526
12527 2009-07-14  DJ Delorie  <dj@redhat.com>
12528
12529         * config/mep/mep.md (sibcall_internal): Include non-toggling
12530         non-jmp case.
12531         (sibcall_value_internal): Likewise.
12532
12533 2009-07-14  Taras Glek  <tglek@mozilla.com>
12534             Rafael Espindola  <espindola@google.com>
12535
12536         * doc/sourcebuild.texi: Document install-plugin target.
12537         * configure.ac: Added install-plugin target to language makefiles.
12538         * configure: Regenerate.
12539         * Makefile.in (install-plugin): Install more headers,
12540         depend on lang.install-plugin.
12541
12542 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12543
12544         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12545         translation.
12546
12547 2009-07-14  DJ Delorie  <dj@redhat.com>
12548
12549         * config/mep/mep.c (mep_vliw_jmp_match): New function.
12550         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12551         * config/mep/mep.md (sibcall_internal): Change test from
12552         mep_vliw_mode_match to mep_vliw_jmp_match.
12553         (sibcall_value_internal): Likewise.
12554
12555 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
12556
12557         * config/i386/sse.md (copysign<mode>3): New expander.
12558         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12559         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12560         Use ix86_build_const_vector.
12561         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12562         IX86_BUILTIN_CPYSGNPD.
12563         (builtin_description): Add __builtin_ia32_copysignps and
12564         __builtin_ia32_copysignpd.
12565         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12566         and BUILT_IN_COPYSIGNF.
12567
12568 2009-07-13  Jason Merrill  <jason@redhat.com>
12569
12570         * builtins.c (can_trust_pointer_alignment): New fn.
12571         (get_pointer_alignment): Factor it out from here.
12572         * tree.h: Declare it.
12573
12574 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
12575
12576         * config/rs6000/predicates.md (offsettable_mem_operand): Test
12577         RTX_AUTOINC class.
12578
12579 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
12580
12581         PR debug/40705
12582         PR c++/403057
12583         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12584
12585 2009-07-14  Richard Guenther  <rguenther@suse.de>
12586             Andrey Belevantsev <abel@ispras.ru>
12587
12588         PR middle-end/40745
12589         * cfgexpand.c (partition_stack_vars): Do not bother to update
12590         alias information when not optimizing.
12591
12592 2009-07-14  Richard Guenther  <rguenther@suse.de>
12593             Andrey Belevantsev <abel@ispras.ru>
12594
12595         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12596         (pt_solution_set): Likewise.
12597         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12598         * tree-ssa-structalias.c (pt_solution_set): New function.
12599         * final.c (rest_of_clean_state): Free SSA data structures.
12600         * print-rtl.c (print_decl_name): Remove.
12601         (print_mem_expr): Implement in terms of print_generic_expr.
12602         * alias.c (ao_ref_from_mem): New function.
12603         (rtx_refs_may_alias_p): Likewise.
12604         (true_dependence): Query alias-export info.
12605         (canon_true_dependence): Likewise.
12606         (write_dependence_p): Likewise.
12607         * tree-dfa.c (get_ref_base_and_extent): For void types leave
12608         size unknown.
12609         * emit-rtl.c (component_ref_for_mem_expr): Remove.
12610         (mem_expr_equal_p): Use operand_equal_p.
12611         (set_mem_attributes_minus_bitpos): Do not use
12612         component_ref_for_mem_expr.
12613         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12614         (update_alias_info_with_stack_vars): Likewise.
12615         (partition_stack_vars): Call update_alias_info_with_stack_vars.
12616         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12617         explicitly nor clear stmt operands.
12618         Free the decl-to-pointer map.
12619         * tree-optimize.c (execute_free_datastructures): Do not free
12620         SSA data structures here.
12621         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12622         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12623         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12624         dependencies.
12625         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12626
12627 2009-07-13  DJ Delorie  <dj@redhat.com>
12628
12629         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12630         unrolling at the right iteration count.
12631
12632         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12633         calculations.
12634
12635 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12636
12637         * haifa-sched.c (rank_for_schedule): Introduced flags to
12638         enable/disable individual scheduling heuristics.
12639         * common.opt: Introduced flags to enable/disable individual
12640         heuristics in the scheduler.
12641         * doc/invoke.texi: Introduced flags to enable/disable individual
12642         heuristics in the scheduler.
12643
12644 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
12645
12646         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12647         config/i386/mingw-tls.c.
12648         * config/i386/mingw-tls.c: Removed.
12649
12650 2009-07-13  Ira Rosen  <irar@il.ibm.com>
12651
12652         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12653         checks access only relevant statements.
12654         (vectorizable_reduction): Likewise.
12655
12656 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
12657
12658         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12659         just for 32-bit case.
12660
12661 2009-07-12  Jan Hubicka  <jh@suse.cz>
12662
12663         PR tree-optimization/40585
12664         * except.c (expand_resx_expr): When there already is resume
12665         instruction, produce linked list.
12666         (build_post_landing_pads): Assert that resume is empty.
12667         (connect_post_landing_pads): Handle resume lists.
12668         (dump_eh_tree): Dump resume list.
12669
12670 2009-07-12  Ira Rosen  <irar@il.ibm.com>
12671
12672         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12673         with additional argument.
12674         * tree-vectorizer.h (enum vect_def_type): Add
12675         vect_double_reduction_def.
12676         (vect_is_simple_reduction): Add argument.
12677         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12678         indentation.
12679         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12680         vect_is_simple_reduction with additional argument.
12681         (vect_analyze_loop_operations): Handle exit phi nodes in case of
12682         double reduction.
12683         (reduction_code_for_scalar_code): Handle additional codes by
12684         returning ERROR_MARK for them. Fix comment and indentation.
12685         (vect_is_simple_reduction): Fix comment, add argument to specify
12686         double reduction. Detect double reduction.
12687         (get_initial_def_for_induction): Fix indentation.
12688         (get_initial_def_for_reduction): Fix comment and indentation.
12689         Handle double reduction. Create initial definitions that do not
12690         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12691         (vect_create_epilog_for_reduction): Fix comment, add argument to
12692         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12693         epilogue result extraction. Create double reduction phi node and
12694         replace relevant uses.
12695         (vectorizable_reduction): Call vect_is_simple_reduction with
12696         additional argument. Fix indentation. Update epilogue code treatment
12697         according to the changes in reduction_code_for_scalar_code. Check
12698         for double reduction. Call vect_create_epilog_for_reduction with
12699         additional argument.
12700         * tree-vect-stmts.c (process_use): Handle double reduction, update
12701         documentation.
12702         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12703         (vect_get_vec_def_for_operand): Likewise.
12704
12705 2009-07-12  Danny Smith  <dansmister@gmail.com>
12706
12707         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12708         dllexport if !TREE_PUBLIC.
12709         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12710
12711 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
12712
12713         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12714         (avr_extra_arch_macro) Remove declatation.
12715         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12716         (avr_extra_arch_macro) Declare as static.
12717         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12718
12719 2009-07-11  Jan Hubicka  <jh@suse.cz>
12720
12721         PR middle-end/48388
12722         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12723
12724 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
12725
12726         PR debug/40713
12727         * dwarf2out.c (dw_fde_struct): Add in_std_section and
12728         cold_in_std_section bits.
12729         (dwarf2out_begin_prologue): Initialize them.
12730         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12731         if already covered by text_section or cold_text_section range.
12732
12733         PR rtl-optimization/40667
12734         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12735         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12736         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12737         * config/i386/i386.c (ix86_minimum_alignment): New function.
12738         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12739         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12740         * emit-rtl.c (gen_reg_rtx): Likewise.
12741         * function.c (assign_parms): Likewise.  If nominal_type needs
12742         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12743         rather than passed_type's alignment.
12744
12745         PR target/40668
12746         * function.c (assign_parm_setup_stack): Adjust
12747         MEM_OFFSET (data->stack_parm) if promoted_mode is different
12748         from nominal_mode on big endian.
12749
12750 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
12751
12752         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12753
12754 2009-07-10  DJ Delorie  <dj@redhat.com>
12755
12756         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12757
12758 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
12759
12760         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12761         attribute.
12762         (thumb2_cbnz): Likewise.
12763
12764 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
12765
12766         PR target/39079
12767         * config.gcc (supported_defaults): Add synci.
12768         (with_synci): Add validation.
12769         (all_defaults): Add synci.
12770         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12771         ISA_HAS_SYNCI.
12772         (synci): Same.
12773         * config/mips/mips.opt (msynci): New option.
12774         * config/mips/mips.c (mips_override_options): Warn on use of
12775         -msynci for targets that do now support it.
12776         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12777         msynci.
12778         * gcc/doc/invoke.texi (-msynci): Document the new option.
12779         * doc/install.texi (--with-synci): Document the new option.
12780
12781 2009-07-10  Richard Guenther  <rguenther@suse.de>
12782
12783         PR tree-optimization/40496
12784         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12785         the PHI result with a compatible type.
12786
12787 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12788
12789         PR 25509
12790         PR 40614
12791         * c.opt (Wunused-result): New.
12792         * doc/invoke.texi: Document it.
12793         * c-common.c (c_warn_unused_result): Use it.
12794
12795 2009-07-09  DJ Delorie  <dj@redhat.com>
12796
12797         * targhooks.c (default_target_can_inline_p): Rename from
12798         default_target_option_can_inline_p.
12799         * targhooks.h (default_target_can_inline_p): Likewise.
12800         * target-def.h (TARGET_CAN_INLINE_P): Rename from
12801         TARGET_OPTION_CAN_INLINE_P.
12802         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12803         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12804         (mep_target_can_inline_p): Rename from
12805         mep_target_option_can_inline_p.
12806
12807         PR target/40626
12808         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12809         registers used to pass vectors.
12810
12811         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12812
12813 2009-07-09  Tom Tromey  <tromey@redhat.com>
12814
12815         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12816         * config/mmix/mmix.c: Include dwarf2.h.
12817         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12818         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12819         * config/sh/sh.c: Include dwarf2.h.
12820         * config/i386/i386.c: Include dwarf2.h.
12821         * Makefile.in (DWARF2_H): Remove 'elf'.
12822         * except.c: Include dwarf2.h.
12823         * unwind-dw2.c: Include dwarf2.h.
12824         * dwarf2out.c: Include dwarf2.h.
12825         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12826         * unwind-dw2-fde.c: Include dwarf2.h.
12827         * dwarf2asm.c: Include dwarf2.h.
12828
12829 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12830
12831         * haifa-sched.c (insn_finishes_cycle_p): New static function.
12832         (max_issue): Use it.
12833         * sched-int.h (struct sched_info: insn_finishes_block_p): New
12834         scheduler hook.
12835         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12836         (region_sched_info): Update.
12837         * sched-ebb.c (ebb_sched_info): Update.
12838         * modulo-sched.c (sms_sched_info): Update.
12839         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12840
12841 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12842
12843         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12844
12845 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
12846
12847         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12848
12849 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
12850
12851         PR middle-end/40692
12852         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12853         arg1 with arg01 if arg1 is already INTEGER_CST.
12854
12855 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12856
12857         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12858         Transform (and (truncate)) into (truncate (and)).
12859
12860 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12861
12862         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12863         creating LHS paradoxical subregs.  Fix surrounding returns to
12864         use NULL_RTX rather than 0.
12865
12866 2009-07-08  DJ Delorie  <dj@redhat.com>
12867
12868         * config/mep/mep.c (mep_option_can_inline_p): New.
12869         (TARGET_OPTION_CAN_INLINE_P): Define.
12870
12871 2009-07-08  Mark Wielaard  <mjw@redhat.com>
12872
12873         PR debug/40659
12874         * dwarf2out.c (add_data_member_location_attribute): When we have
12875         only a constant offset don't emit a new location description using
12876         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12877         dwarf_version > 2.
12878
12879 2009-07-08  Richard Henderson  <rth@redhat.com>
12880
12881         PR target/38900
12882         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12883         (enum reg_class): Add CLOBBERED_REGS.
12884         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12885         * config/i386/i386.c (ix86_conditional_register_usage): Moved
12886         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12887         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
12888         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
12889         force 64-bit sibcalls into R11.
12890         * config/i386/constraints.md (U): New constraint.
12891         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12892         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12893         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12894
12895 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
12896
12897         * basic-block.h (dump_regset, debug_regset): Remove duplicate
12898         prototypes.
12899         * c-objc-common.h (c_initialize_diagnostics): Ditto.
12900         * ebitmap.h (dump_ebitmap): Ditto.
12901         * optabs.h (optab_libfunc): Ditto.
12902         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12903         * tree-flow.h (vect_can_force_dr_alignment_p,
12904         get_vectype_for_scalar_type): Ditto.
12905         (vectorize_loops): Move prototype to ...
12906         * tree-vectorizer.h: ... here. Also, adjust comment.
12907         (vect_set_verbosity_level): Remove duplicate prototype.
12908         * tree-ssa-loop.c: Include tree-vectorizer.h.
12909         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12910
12911 2009-07-08  Nick Clifton  <nickc@redhat.com>
12912
12913         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12914         forward slash.
12915
12916 2009-07-08  DJ Delorie  <dj@redhat.com>
12917
12918         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12919         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12920         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
12921         written to.
12922         * config/mep/intrinsics.md: Regenerated.
12923         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12924         registers when asm() or calls are detected.
12925
12926 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12927
12928         PR c++/31246
12929         * gimplify.c (gimplify_expr): Propagate no_warning flag when
12930         gimplifying.
12931         * gimple (gimple_build_call_from_tree): Likewise.
12932         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12933         no_warning flag before warning.
12934
12935 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12936
12937         * tree.c (set_expr_locus): Remove.
12938         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12939         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
12940         EXPR_LOCATION.
12941         * gimplify.c (internal_get_tmp_var): Likewise.
12942         (gimplify_call_expr): Likewise.
12943         (gimplify_one_sizepos): Likewise.
12944
12945 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
12946
12947         PR debug/40666
12948         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12949         to variables for debugging purposes.
12950
12951 2009-06-23  Mark Loeser  <mark@halcy0n.com>
12952
12953         PR build/40010
12954         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12955
12956 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12957
12958         * pretty-print.c (pp_base_format): Remove %J.
12959         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12960         gcc_cxxdiag_char_table): Likewise.
12961         (init_dynamic_diag_info): Likewise.
12962
12963 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12964
12965         * pretty-print.c (pp_base_format): Remove %H.
12966         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12967         gcc_cxxdiag_char_table): Likewise.
12968         (init_dynamic_diag_info): Likewise.
12969         * config/mep/mep.c (mep_select_section): Likewise.
12970
12971 2009-07-07  Duncan Sands  <baldrick@free.fr>
12972
12973         * final.c (pass_clean_state): Give the pass a name.
12974         * passes.c (pass_rest_of_compilation): Likewise.
12975         * tree-optimize.c (pass_all_optimizations): Likewise.
12976
12977 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
12978
12979         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12980         an extra 'decl' for error_at.
12981
12982 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
12983
12984         PR middle-end/40669
12985         * tree-tailcall.c (adjust_return_value_with_ops,
12986         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12987         if it has complex or vector type.
12988
12989 2009-07-07  Olivier Hainque  <hainque@adacore.com>
12990
12991         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12992         pthread symbols.
12993
12994 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
12995
12996         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12997
12998 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12999
13000         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
13001         * c-decl.c: Likewise.
13002         * function.c: Likewise.
13003         * varasm.c: Likewise.
13004         * tree-ssa.c: Likewise.
13005         * c-common.c: Likewise.
13006         * tree-cfg.c: Likewise.
13007         * config/spu/spu.c: Likewise.
13008         * config/ia64/ia64.c: Likewise.
13009         * config/v850/v850.c: Likewise.
13010
13011 2009-07-06  DJ Delorie  <dj@redhat.com>
13012
13013         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
13014         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
13015         unspecified accesses to control registers.
13016         * config/mep/intrinsics.md: Regenerate.
13017         * config/mep/intrinsics.h: Regenerate.
13018         * config/mep/mep-intrin.h: Regenerate.
13019
13020 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13021
13022         * c-lex.c: Replace %H by an explicit location. Update all calls.
13023         * c-common.c: Likewise.
13024         * c-decl.c: Likewise.
13025         * c-typeck.c: Likewise.
13026         * fold-const.c: Likewise.
13027         * gimplify.c: Likewise.
13028         * stmt.c: Likewise.
13029         * tree-cfg.c: Likewise.
13030         * tree-ssa-loop-niter.c: Likewise.
13031         * tree-vrp.c: Likewise.
13032         * value-prof.c: Likewise.
13033
13034 2009-07-06  Diego Novillo  <dnovillo@google.com>
13035
13036         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
13037         if it has one.  Handle cases where VAR does not have an
13038         annotation or cfun is NULL.
13039
13040 2009-07-06  Diego Novillo  <dnovillo@google.com>
13041
13042         * tree.c: Include debug.h.
13043         (initialize_tree_contains_struct): New.
13044         (init_ttree): Call it.
13045         (tree_node_structure_for_code): Factor out of ...
13046         (tree_node_structure): ... here.
13047         * treestruct.def (TS_PHI_NODE): Remove.
13048         (TS_GIMPLE_STATEMENT): Remove.
13049
13050 2009-07-06  Diego Novillo  <dnovillo@google.com>
13051
13052         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
13053         (debug_tree_chain): Handle cycles.
13054
13055 2009-07-06  Nick Clifton  <nickc@redhat.com>
13056             DJ Delorie  <dj@redhat.com>
13057
13058         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13059         __FMOVD_ENABLED__ is defined.
13060         * config/sh/sh.h
13061         (TARGET_FMOVD): Provide a default definition.
13062         (MASK_FMOVD): Likewise.
13063         (TARGET_CPU_CPP_BUILTINS): Define
13064         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13065         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13066         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
13067         (split for DF load from memory into register): Also handle
13068         MEMs which consist of REG+DISP addressing.
13069         (split for DF store from register to memory): Likewise.
13070         (movsf_ie): Always use single fp_mode.
13071         * config/sh/sh.c (sh_override_options): Do not automatically
13072         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13073         that to the -mfmovd command line switch.
13074         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
13075         (fldi_ok): Always allow.
13076         * config/sh/sh.opt (mfmovd): Remove this switch.
13077         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13078
13079 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
13080             Kaz Kojima  <kkojima@gcc.gnu.org>
13081
13082         PR rtl-optimization/30807
13083         * postreload.c (reload_combine): For every new use of REG_SUM,
13084         record the use of BASE.
13085
13086 2009-07-06  Jan Hubicka  <jh@suse.cz>
13087
13088         * params.def: Revert my accidental commit at 2009-06-30.
13089
13090 2009-07-04  Ian Lance Taylor  <iant@google.com>
13091
13092         PR target/40636
13093         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
13094         EXPORTED_CONST.
13095         (mingw_format_attribute_overrides): Likewise.
13096
13097 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
13098
13099         PR debug/40596
13100         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
13101         don't check cfa.reg.  Instead of cfa.indirect use
13102         fde && fde->drap_reg != INVALID_REGNUM test.
13103
13104 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
13105
13106         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
13107
13108 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
13109
13110         PR target/40587
13111         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
13112
13113 2009-07-03  Richard Guenther  <rguenther@suse.de>
13114
13115         PR tree-optimization/40640
13116         * tree-switch-conversion.c (build_arrays): Perform arithmetic
13117         in original type.
13118
13119 2009-07-03  Jan Hubicka  <jh@suse.cz>
13120
13121         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
13122         for size, reduce amount of inlining.
13123
13124 2009-07-03  Richard Guenther  <rguenther@suse.de>
13125
13126         PR middle-end/34163
13127         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
13128         if t +- x is known to not overflow and the conversion widens the
13129         operation.
13130         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
13131
13132 2009-07-03  Jan Hubicka  <jh@suse.cz>
13133
13134         * ipa-pure-const.c (analyze): Update loop optimizer init.
13135         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
13136         try_remove_empty_loop, remove_empty_loops): Remove.
13137         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
13138         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
13139         to mark regular loops as neccesary.
13140         (degenerate_phi_p): New function.
13141         (propagate_necessity, remove_dead_phis): Use it.
13142         (forward_edge_to_pdom): Likewise.
13143         (eliminate_unnecessary_stmts): Take care to remove uses of results of
13144         virtual PHI nodes that became unreachable.
13145         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
13146         * tree-flow.h (remove_empty_loops): Remove.
13147         * passes.c (init_optimization_passes): Remove.
13148
13149 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
13150
13151         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
13152         can_create_pseudo_p.
13153         (*fix_trunc<mode>_i387_1): Ditto.
13154         (*floathi<mode>2_1): Ditto.
13155         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
13156         (*fistdi2_1): Ditto.
13157         (*fist<mode>2_1): Ditto.
13158         (frndintxf2_floor): Ditto.
13159         (*fist<mode>2_floor_1): Ditto.
13160         (frndintxf2_ceil): Ditto.
13161         (*fist<mode>2_ceil_1): Ditto.
13162         (frndintxf2_trunc): Ditto.
13163         (frndintxf2_mask_pm): Ditto.
13164         (fxam<mode>2_i387_with_temp): Ditto.
13165         * config/i386/sse.md (mulv16qi3): Ditto.
13166         (*sse2_mulv4si3): Ditto.
13167         (mulv2di3): Ditto.
13168         (sse4_2_pcmpestr): Ditto.
13169         (sse4_2_pcmpistr): Ditto.
13170
13171 2009-07-03  Jan Hubicka  <jh@suse.cz>
13172
13173         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
13174         (mark_stmt_necessary): Set it.
13175         (mark_operand_necessary): Set it.
13176         (mark_control_dependent_edges_necessary): Set it.
13177         (mark_virtual_phi_result_for_renaming): New function.
13178         (get_live_post_dom): New function.
13179         (forward_edge_to_pdom): New function.
13180         (remove_dead_stmt): Fix handling of control dependences.
13181         (tree_dce_init): Init new bitmap.
13182         (tree_dce_done): Free it.
13183
13184 2009-07-02  Richard Guenther  <rguenther@suse.de>
13185
13186         PR bootstrap/40617
13187         * tree-ssa-structalias.c (new_var_info): Initialize
13188         is_restrict_var.
13189
13190 2009-07-02  Jan Hubicka  <jh@suse.cz>
13191
13192         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
13193         local.
13194
13195 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
13196
13197         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
13198         instead of recomputing it.  Adjust calls.
13199         (emit_store_flag): Adjust recursive calls.
13200
13201 2009-07-02  Richard Guenther  <rguenther@suse.de>
13202
13203         * tree-ssa-live.c (remove_unused_locals): Do not remove
13204         heap variables.
13205         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
13206         of DECL_EXTERNAL for HEAP variables.
13207         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
13208         HEAP variables.  Do not adjust RESTRICT vars.
13209         (find_what_var_points_to): Nobody cares if something
13210         points to READONLY.
13211
13212 2009-07-02  Ben Elliston  <bje@au.ibm.com>
13213
13214         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
13215         pc_low and pc_high declarations to the top of the function.
13216
13217 2009-07-01  DJ Delorie  <dj@redhat.com>
13218
13219         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
13220         registers as fixed.
13221         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
13222         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
13223         unspecified accesses to control registers.
13224         * config/mep/intrinsics.md: Regenerate.
13225         * config/mep/intrinsics.h: Regenerate.
13226         * config/mep/mep-intrin.h: Regenerate.
13227
13228 2009-07-01  Anthony Green  <green@moxielogic.com>
13229
13230         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
13231         instruction when possible.
13232         (moxie_expand_prologue): Ditto.  Also, save an instruction and
13233         some complexity by popping off of $r12 instead of $sp.
13234         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
13235         operands.
13236
13237 2009-07-01  Richard Henderson  <rth@redhat.com>
13238
13239         PR bootstrap/40347
13240         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
13241         contained no insns, reposition note before last insn.
13242
13243 2009-07-01  Richard Henderson  <rth@redhat.com>
13244
13245         PR debug/40431
13246         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
13247         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
13248
13249 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13250
13251         PR bootstrap/40558
13252         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
13253         darwin9 for printing reg addresses with %y.
13254
13255 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
13256
13257         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
13258         truncation from operands in binary operations.
13259
13260 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
13261
13262         Revert:
13263         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
13264         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
13265         subreg of op0 to the original op0.
13266
13267         * expmed.c (store_bit_field_1): Use a temporary as the destination
13268         instead of a paradoxical subreg when we need to truncate the result.
13269
13270 2009-07-01  DJ Delorie  <dj@redhat.com>
13271
13272         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
13273         names to VLIW variants.
13274         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
13275         * config/mep/intrinsics.md: Regenerate.
13276         * config/mep/intrinsics.h: Regenerate.
13277         * config/mep/mep-intrin.h: Regenerate.
13278
13279 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
13280
13281         PR debug/40462
13282         * jump.c (returnjump_p): Revert last patch.
13283         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
13284
13285 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13286
13287         PR target/40575
13288         * pa.md (casesi32p): Use jump table label to determine the offset
13289         of the jump table.
13290         (casesi64p): Likewise.
13291
13292         * pa.c (forward_branch_p): Return bool type.  Use instruction
13293         addresses when available.  Assert that INSN has a jump label.
13294         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
13295         have a jump label.
13296
13297 2009-07-01  Richard Guenther  <rguenther@suse.de>
13298
13299         PR tree-optimization/19831
13300         * tree-ssa-dce.c (propagate_necessity): Calls to functions
13301         that only act as barriers do not make any previous stores necessary.
13302         * tree-ssa-structalias.c (handle_lhs_call): Delay making
13303         HEAP variables global, do not add a constraint from nonlocal.
13304         (find_func_aliases): Handle escapes through return statements.
13305         (compute_points_to_sets): Make escaped HEAP variables global.
13306
13307 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
13308
13309         PR bootstrap/40597
13310         * expmed.c (emit_store_flag): Perform a conversion if necessary,
13311         after reducing a DImode cstore to SImode.
13312
13313 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
13314
13315         * expr.c (expand_expr_real_1): Reinstate fallthrough to
13316         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
13317
13318 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
13319
13320         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
13321         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
13322         to 0.
13323         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
13324         and umod_optab if TARGET_BSD_DIVMOD.
13325         * config/vax/lib1funcs.asm: New file.
13326         * config/vax/t-linux: New file.
13327         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
13328
13329 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
13330
13331         PR c++/40566
13332         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
13333         to type arguments that have void type.
13334
13335         PR debug/40573
13336         * dwarf2out.c (gen_formal_parameter_die): Call
13337         equate_decl_number_to_die if node is different from origin.
13338
13339 2009-06-30  Anthony Green  <green@moxielogic.com>
13340
13341         Clean up moxie port for --enable-build-with-cxx.
13342         * config/moxie/moxie.c (moxie_function_value): First two
13343         parameters are const_tree, not tree.
13344         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
13345         (REG_CLASS_NAMES): Ditto.
13346         (REGNO_REG_CLASS): Ditto.
13347         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
13348         (moxie_function_value): Fix constyness of arguments.
13349
13350 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13351
13352         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
13353         finalize_size_functions before further processing.
13354         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
13355         (variable_size): Call self_referential_size on size expressions
13356         that contain a PLACEHOLDER_EXPR.
13357         (size_functions): New static variable.
13358         (copy_self_referential_tree_r): New static function.
13359         (self_referential_size): Likewise.
13360         (finalize_size_functions): New global function.
13361         * tree.c: Include tree-inline.h.
13362         (push_without_duplicates): New static function.
13363         (find_placeholder_in_expr): New global function.
13364         (substitute_in_expr) <tcc_declaration>: Return the replacement object
13365         on equality.
13366         <tcc_expression>: Likewise.
13367         <tcc_vl_exp>: If the replacement object is a constant, try to inline
13368         the call in the expression.
13369         * tree.h (finalize_size_functions): Declare.
13370         (find_placeholder_in_expr): Likewise.
13371         (FIND_PLACEHOLDER_IN_EXPR): New macro.
13372         (substitute_placeholder_in_expr): Update comment.
13373         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
13374         is true.
13375         (copy_tree_body_r): Likewise.
13376         (copy_tree_body): New static function.
13377         (maybe_inline_call_in_expr): New global function.
13378         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
13379         (maybe_inline_call_in_expr): Declare.
13380         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
13381         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
13382         GIMPLE_H.
13383
13384 2009-06-30  Richard Guenther  <rguenther@suse.de>
13385
13386         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
13387         continue walking.
13388         (propagate_necessity): Do not mark reaching defs of stores
13389         as necessary.
13390
13391 2009-06-30  Jan Hubicka  <jh@suse.cz>
13392
13393         * cfgloopanal.c (check_irred): Move into ...
13394         (mark_irreducible_loops): ... here; return true if ireducible
13395         loops was found.
13396         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
13397         (analyze_function): Try to prove loop finiteness.
13398         * cfgloop.h (mark_irreducible_loops): Update prototype.
13399         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
13400
13401 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
13402
13403         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
13404
13405 2009-06-30  Ira Rosen  <irar@il.ibm.com>
13406
13407         PR tree-optimization/40542
13408         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
13409         types.
13410
13411 2009-06-30  Martin Jambor  <mjambor@suse.cz>
13412
13413         PR tree-optimization/40582
13414         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
13415         than useless_type_conversion_p.
13416         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
13417         proper place.
13418
13419 2009-06-30  Martin Jambor  <mjambor@suse.cz>
13420
13421         PR middle-end/40554
13422         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
13423
13424 2009-06-30  Richard Guenther  <rguenther@suse.de>
13425
13426         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
13427         use ao_ref references.
13428         (walk_aliased_vdefs): Likewise.
13429         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
13430         * tree-ssa-dce.c (struct ref_data): Remove.
13431         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13432         (mark_aliased_reaching_defs_necessary): Adjust.
13433         (mark_all_reaching_defs_necessary_1): Likewise.
13434
13435 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
13436
13437         PR boostrap/40597
13438         * expmed.c (emit_cstore): New name of emit_store_flag_1.
13439         (emit_store_flag_1): Extract from emit_store_flag, adjust
13440         calls to (what now is) emit_cstore.
13441         (emit_store_flag): Call emit_store_flag_1 and also use it
13442         for what used to be recursive calls.
13443
13444 2009-06-30  Wei Guozhi  <carrot@google.com>
13445
13446         PR/40416
13447         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13448         if the target bb post dominates from bb.
13449         * config/i386/i386.c (memory_address_length): Check existence of base
13450         register before using it.
13451
13452 2009-06-30  Nick Clifton  <nickc@redhat.com>
13453             DJ Delorie  <dj@redhat.com>
13454
13455         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13456         __FMOVD_ENABLED__ is defined.
13457         * config/sh/sh.h
13458         (TARGET_FMOVD): Provide a default definition.
13459         (MASK_FMOVD): Likewise.
13460         (TARGET_CPU_CPP_BUILTINS): Define
13461         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13462         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13463         two fmov instructions depending upon whether TARGET_FMOVD is
13464         enabled.
13465         (split for DF load from memory into register): Also handle
13466         MEMs which consist of REG+DISP addressing.
13467         (split for DF store from register to memory): Likewise.
13468         * config/sh/sh.opt (mfmovd): Remove this switch.
13469         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13470         * config/sh/sh.c (sh_override_options): Do not automatically
13471         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13472         that to the -mfmovd command line switch.
13473
13474         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13475         the SH4 and SH4A.
13476         (fldi_ok): Always allow.
13477         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13478
13479 2009-06-29  DJ Delorie  <dj@redhat.com>
13480
13481         * doc/install.texi (mep-x-elf): Correct chip's full name.
13482
13483 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13484
13485         * doc/extend.texi: Fix typo.
13486
13487 2009-06-29  Tom Tromey  <tromey@redhat.com>
13488
13489         * dwarf2.h: Remove.
13490         * Makefile.in (DWARF2_H): New variable.
13491         (except.o): Use it.
13492         (dwarf2out.o): Likewise.
13493         (dwarf2asm.o): Likewise.
13494         * config/i386/t-i386: Use DWARF2_H.
13495         * except.c: Include elf/dwarf2.h.
13496         * unwind-dw2.c: Include elf/dwarf2.h.
13497         * dwarf2out.c: Include elf/dwarf2.h.
13498         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13499         <dtprel>: New field.
13500         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13501         (size_of_loc_descr): Likewise.
13502         (output_loc_operands_raw): Likewise.
13503         (output_loc_operands): Handle new dtprel field.
13504         (loc_checksum): Update.
13505         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13506         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13507         * unwind-dw2-fde.c: Include elf/dwarf2.h.
13508         * dwarf2asm.c: Include elf/dwarf2.h.
13509         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13510         * config/mmix/mmix.c: Include elf/dwarf2.h.
13511         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13512         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13513         * config/sh/sh.c: Include elf/dwarf2.h.
13514         * config/i386/i386.c: Include elf/dwarf2.h.
13515
13516 2009-06-29  DJ Delorie  <dj@redhat.com>
13517
13518         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13519
13520         * doc/extend.texi: Add MeP attributes and pragmas.
13521         * doc/invoke.text: Add MeP Options.
13522         * doc/contrib.texi: Add MeP contribution.
13523         * doc/md.texi: Add MeP constraints.
13524         * doc/install.texi: Add MeP target.
13525
13526 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
13527
13528         * target.h (struct gcc_target): Add frame_pointer_required field.
13529         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13530         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13531         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13532         hook.
13533         * reload1.c (update_eliminables): (Ditto.).
13534         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13535         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13536         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13537
13538         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13539
13540         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13541         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13542         (arm_frame_pointer_required): New function.
13543
13544         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13545         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13546         (avr_frame_pointer_required_p): Declare as static.
13547         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13548
13549         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13550         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13551         (bfin_frame_pointer_required): Make as static, change return type
13552         to bool.
13553         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13554
13555         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13556         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13557         (cris_frame_pointer_required): New function.
13558
13559         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13560
13561         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13562         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13563         (fr30_frame_pointer_required): New function.
13564
13565         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13566         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13567         (frv_frame_pointer_required): Make as static, change return type
13568         to bool.
13569         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13570
13571         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13572         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13573         (ix86_frame_pointer_required): Make as static, change return type to
13574         bool.
13575         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13576
13577         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13578         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13579
13580         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13581
13582         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13583
13584         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13585
13586         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13587         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13588         (mips_frame_pointer_required): Make as static.
13589         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13590
13591         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13592         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13593         (mmix_frame_pointer_required): Mew function.
13594
13595         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13596         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13597
13598         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13599
13600         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13601
13602         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13603
13604         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13605         (CAN_ELIMINATE): Redefine.
13606         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13607         (sparc_frame_pointer_required): New function.
13608         (sparc_can_eliminate): New function.
13609         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13610
13611         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13612         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13613
13614         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13615         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13616         (xtensa_frame_pointer_required): Make as static, change return type
13617         to bool.
13618         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13619         Remove.
13620
13621 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
13622
13623         * doc/plugins.texi: Document PLUGIN_START_UNIT.
13624         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13625         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13626         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13627         (register_callback): Handle PLUGIN_START_UNIT.
13628         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13629
13630 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13631
13632         * tree.c (process_call_operands): Propagate TREE_READONLY from the
13633         operands.
13634         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13635         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13636
13637 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
13638
13639         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13640         move cost.
13641
13642 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
13643
13644         * doc/extend.texi (Additional Floating Types): __float128 is also
13645         supported on i386 targets.
13646
13647 2009-06-29  Richard Guenther  <rguenther@suse.de>
13648
13649         PR middle-end/14187
13650         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13651         flag.
13652         (pt_solutions_same_restrict_base): Declare.
13653         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13654         flag.
13655         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13656         (make_constraint_from, make_copy_constraint): Move earlier.
13657         (make_constraint_from_heapvar): New function.
13658         (make_constraint_from_restrict): Likewise.
13659         (handle_lhs_call): Use it.
13660         (find_func_aliases): Use it to track conversions to restrict
13661         qualified pointers.
13662         (struct fieldoff): Add only_restrict_pointers flag.
13663         (push_fields_onto_fieldstack): Initialize it.
13664         (create_variable_info_for): Track global restrict qualified pointers.
13665         (intra_create_variable_infos): Use make_constraint_from_heapvar.
13666         Track restrict qualified pointer arguments.
13667         (set_uids_in_ptset): Use varinfo is_global_var flag.
13668         (find_what_var_points_to): Set the vars_contains_restrict flag.
13669         Always create the points-to solution for sets including restrict tags.
13670         (pt_solutions_same_restrict_base): New function.
13671         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13672         qualified pointers use pt_solutions_same_restrict_base as
13673         additional source for disambiguation.
13674
13675 2009-06-29  Richard Guenther  <rguenther@suse.de>
13676
13677         PR middle-end/38212
13678         * alias.c (find_base_decl): Remove.
13679         (get_deref_alias_set_1): Remove restrict handling.
13680         * c-common.c (c_apply_type_quals_to_decl): Do not set
13681         DECL_POINTER_ALIAS_SET.
13682         * gimplify.c (find_single_pointer_decl_1): Remove.
13683         (find_single_pointer_decl): Likewise.
13684         (internal_get_tmp_var): Remove restrict handling.
13685         (gimple_regimplify_operands): Likewise.
13686         * omp-low.c (expand_omp_atomic_pipeline): Do not set
13687         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13688         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13689         * tree.c (restrict_base_for_decl): Remove.
13690         (init_ttree): Do not allocate it.
13691         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
13692         LABEL_DECL_UID for label decls.
13693         (copy_node_stat): Do not copy restrict information.
13694         (decl_restrict_base_lookup): Remove.
13695         (decl_restrict_base_insert): Likewise.
13696         (print_restrict_base_statistics): Likewise.
13697         (dump_tree_statistics): Do not call print_restrict_base_statistics.
13698         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13699         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13700         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13701         (LABEL_DECL_UID): Adjust.
13702         (DECL_BASED_ON_RESTRICT_P): Remove.
13703         (DECL_GET_RESTRICT_BASE): Likewise.
13704         (SET_DECL_RESTRICT_BASE): Likewise.
13705         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13706
13707         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13708         instead of DECL_POINTER_ALIAS_SET.
13709         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13710         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13711         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13712
13713 2009-06-29  Richard Guenther  <rguenther@suse.de>
13714
13715         PR tree-optimization/40579
13716         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13717         the IL to simplify has constants that overflowed.
13718
13719 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
13720
13721         PR tree-optimization/40550
13722         * tree-vect-generic.c (expand_vector_operations_1): Compute in
13723         vector_compute_type only when the size of vector_compute_type is
13724         less than the size of type.
13725
13726 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
13727
13728         * fold-const.c (contains_label_1): Fix comments.
13729         (contains_label_p): Do not walk trees multiple time.
13730
13731 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13732
13733         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13734         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13735         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13736         ix86_fp_comparison_operator.
13737         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13738         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13739         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13740         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13741         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13742         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13743         (related splits): Change predicate to ix86_fp_comparison_operator.
13744         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13745         instead of ix86_fp_comparison_codes.
13746         (ix86_trivial_fp_comparison_operator,
13747         ix86_fp_comparison_operator): New.
13748         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13749         (ix86_expand_compare): Eliminate last two parameters.
13750         (ix86_fp_jump_nontrivial_p): Kill.
13751         * config/i386/i386.c (put_condition_code): Eliminate call to
13752         ix86_fp_comparison_codes and subsequent assertion.
13753         (ix86_fp_comparison_codes): Eliminate.
13754         (ix86_fp_swap_condition): New.
13755         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13756         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13757         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13758         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13759         and ix86_fp_swap_condition.
13760         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13761         Use ix86_fp_comparison_strategy.
13762         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
13763         (ix86_fp_jump_nontrivial_p): Eliminate.
13764         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
13765         call to ix86_expand_compare.
13766         (ix86_split_fp_branch, ix86_expand_setcc,
13767         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13768         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13769
13770 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13771
13772         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13773         related to jump_clobbers.
13774         * config/arm/arm.md (conds): Remove jump_clob case.
13775         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13776         splits): Change comparison_operator to arm_comparison_operator.
13777         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13778         Eliminate.
13779
13780 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13781
13782         * dojump.c (do_compare_rtx_and_jump): Try swapping the
13783         condition for floating point modes.
13784         * expmed.c (emit_store_flag_1): Move here a bigger part
13785         of emit_store_flag.
13786         (emit_store_flag): Try swapping the condition for floating point
13787         modes.
13788         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13789
13790 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13791
13792         * expr.c (expand_expr_real_1): Just use do_store_flag.
13793         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
13794         emit_store_flag_force.
13795         * expmed.c (emit_store_flag_force): Copy here trick
13796         previously in expand_expr_real_1.  Try reversing the comparison.
13797         (emit_store_flag_1): Work if target is NULL.
13798         (emit_store_flag): Work if target is NULL, using the result mode
13799         from the comparison.  Use split_comparison, restructure final part
13800         to simplify conditionals.
13801
13802 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13803
13804         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13805         * dojump.c (do_jump): Change handling of floating-point
13806         ops to use just do_compare_and_jump.
13807         (split_comparison): New.
13808         (do_compare_rtx_and_jump): Add here logic coming previously
13809         in do_jump, using split_comparison.
13810
13811 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
13812
13813         PR target/40489
13814         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13815
13816 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13817
13818         * tree-ssa-alias.c: Fix unintentional commit.
13819
13820 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13821
13822         * passes.c (execute_one_pass): Fix unintentional commit.
13823
13824 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13825
13826         * df-problems.c (df_set_seen, df_unset_seen): Delete.
13827         (df_rd_local_compute, df_md_local_compute): Inline them.
13828
13829         (df_md_scratch): New.
13830         (df_md_alloc, df_md_free): Allocate/free it.
13831         (df_md_local_compute): Only include live registers in init.
13832         (df_md_transfer_function): Prune the in-set computed by
13833         the confluence function, and the gen-set too.
13834
13835 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13836
13837         PR rtl-optimization/26854
13838         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13839         * df-problems.c (df_rd_add_problem): Fix comment.
13840         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13841         df_md_simulate_artificial_defs_at_top,
13842         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13843         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13844         df_md_transfer_function, df_md_init, df_md_confluence_0,
13845         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13846         problem_MD, df_md_add_problem): New.
13847         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13848         df_md_get_bb_info): New.
13849         (DF_LAST_PROBLEM_PLUS1): Adjust.
13850
13851         * Makefile.in (fwprop.o): Include domwalk.h.
13852         * fwprop.c: Include domwalk.h.
13853         (reg_defs, reg_defs_stack): New.
13854         (bitmap_only_bit_between): Remove.
13855         (process_defs): New.
13856         (process_uses): Use reg_defs and local_md instead of
13857         bitmap_only_bit_between and local_rd.
13858         (single_def_use_enter_block): New, from build_single_def_use_links.
13859         (single_def_use_leave_block): New.
13860         (build_single_def_use_links): Remove code moved to
13861         single_def_use_enter_block, invoke domwalk.
13862         (use_killed_between): Adjust comment.
13863
13864 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13865
13866         * bitmap.h (bitmap_ior_and_into): New.
13867         * bitmap.c (bitmap_ior_and_into): New.
13868
13869 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13870
13871         * domwalk.h (struct dom_walk_data): Remove all callbacks except
13872         before_dom_children_before_stmts and after_dom_children_after_stmts.
13873         Rename the two remaining callbacks to just before_dom_children and
13874         after_dom_children. Remove other GIMPLE statement walking bits.
13875         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13876         * graphite.c: Do not include domwalk.h.
13877         * tree-into-ssa.c (interesting_blocks): New global.
13878         (struct mark_def_sites_global_data): Remove it and names_to_rename.
13879         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13880         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13881         now that they're not domwalk callbacks.
13882         (rewrite_initialize_block): Rename to...
13883         (rewrite_enter_block): ... this, place after called functions.  Test
13884         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13885         (rewrite_finalize_block): Rename to...
13886         (rewrite_leave_block): ... this, place after called functions.
13887         (rewrite_update_init_block): Rename to...
13888         (rewrite_update_enter_block): ... this, place after called functions.
13889         Test interesting_blocks, call rewrite_update_stmt and
13890         rewrite_update_phi_arguments.
13891         (rewrite_update_fini_block): Rename to...
13892         (rewrite_leave_block): ... this, place after called functions.
13893         (rewrite_blocks): Remove last argument, simplify initialization of
13894         walk_data.
13895         (mark_def_sites_initialize_block): Rename to...
13896         (mark_def_sites_block): ... this, call mark_def_sites.
13897         (mark_def_sites_blocks): Remove argument, simplify initialization of
13898         walk_data.
13899         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13900         (update_ssa): Likewise.
13901         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13902         callback.
13903         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13904         (dom_opt_initialize_block): Rename to...
13905         (dom_opt_enter_block): ... this, place after called functions.  Walk
13906         statements here, inline propagate_to_outgoing_edges.
13907         (dom_opt_finalize_block): Rename to...
13908         (dom_opt_leave_block): ... this, place after called functions.
13909         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13910         domwalk callback.
13911         (dse_enter_block, dse_record_phi): New.
13912         (dse_record_phis): Delete.
13913         (dse_finalize_block): Rename to...
13914         (dse_leave_block): ... this.
13915         (tree_ssa_dse): Simplify initialization of walk_data.
13916         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13917         Adjust initialization of walk_data.
13918         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13919         * tree-ssa-loop-phiopt.c (get_non_trapping):
13920         Adjust initialization of walk_data.
13921         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13922         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13923         it's not a domwalk callback.
13924         (uncprop_initialize_block): Rename to...
13925         (dse_enter_block): ... this, call uncprop_into_successor_phis.
13926         (dse_finalize_block): Rename to...
13927         (dse_leave_block): ... this.
13928         (tree_ssa_uncprop): Simplify initialization of walk_data.
13929         * Makefile.in: Adjust dependencies.
13930
13931 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
13932
13933         * arm.md (casesi): Fix test for Thumb1.
13934         (thumb1_casesi_internal_pic): Likewise.
13935         (thumb1_casesi_dispatch): Likewise.
13936
13937 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
13938
13939         * config/arm/arm-cores.def: Added core cortex-m0.
13940         * config/arm/arm-tune.md: Regenerated.
13941         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13942
13943 2009-06-26  DJ Delorie  <dj@redhat.com>
13944
13945         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13946
13947         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13948         the scheduler doesn't tag jump insns.
13949
13950 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
13951
13952         * c-decl.c (merge_decls): Re-indent.
13953
13954 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
13955
13956         PR c/39902
13957         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13958         Special-case decimal float constants.
13959
13960 2009-06-26  Richard Henderson  <rth@redhat.com>
13961
13962         * function.h (struct function): Add cannot_be_copied_reason,
13963         and cannot_be_copied_set.
13964         * tree-inline.c (has_label_address_in_static_1): Rename from
13965         inline_forbidden_p_2; don't set inline_forbidden_reason here.
13966         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13967         don't set inline_forbidden_reason.
13968         (copy_forbidden): New function, split out of inline_forbidden_p.
13969         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13970         (inline_forbidden_p): Use copy_forbidden.
13971         (tree_versionable_function_p): Likewise.
13972         (inlinable_function_p): Merge into tree_inlinable_function_p.
13973         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13974         * ipa-cp.c (ipcp_versionable_function_p): New function.
13975         (ipcp_cloning_candidate_p): Use it.
13976         (ipcp_node_modifiable_p): Likewise.
13977
13978 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
13979
13980         * builtins.c (expand_builtin_alloca): Handle builtin alloca
13981         that is marked not to be inlined. Remove flag_mudflap use.
13982         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13983         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13984
13985 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
13986
13987         PR bootstrap/40338
13988         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13989         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13990
13991 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
13992
13993         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13994         shared libgcc.
13995         (__mingwthr_remove_key_dtor): Likewise.
13996
13997 2009-06-26  Richard Guenther  <rguenther@suse.de>
13998
13999         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
14000
14001 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14002
14003         PR middle-end/40525
14004         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
14005         try the non-cond_exec path also.
14006
14007 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14008
14009         PR target/40468
14010         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
14011         (output_cbranch): Use new functions.
14012         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
14013         Likewise.
14014
14015 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14016             Pat Haugen  <pthaugen@us.ibm.com>
14017             Revital Eres <ERES@il.ibm.com>
14018
14019         * config/rs6000/rs6000.c (print_operand): Correct lossage message
14020         for %c error.  Add %x support to print VSX registers as a unified
14021         register set, instead of separate float and altivec registers.
14022         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
14023         %y case, and add support for VSX pre-modify addresses.
14024         (output_toc): Add assert for CONST containing an integer constant
14025         in the PLUS case.
14026         (rs6000_adjust_cost): Add POWER7 support.
14027         (insn_must_be_first_in_group): Ditto.
14028         (insn_must_be_last_in_group): Ditto.
14029         (rs6000_emit_popcount): Ditto.
14030         (rs6000_vector_mode_supported_p): Ditto.
14031
14032         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
14033         Change some of the functions called by macros to being called
14034         through a pointer, so debug functions can be inserted if
14035         -mdebug=addr or -mdebug=cost.
14036         (rs6000_preferred_reload_class_ptr): Ditto.
14037         (rs6000_secondary_reload_class_ptr): Ditto.
14038         (rs6000_secondary_memory_needed_ptr): Ditto.
14039         (rs6000_cannot_change_mode_class_ptr): Ditto.
14040         (rs6000_secondary_reload_inner): Ditto.
14041         (rs6000_legitimize_reload_address): Ditto.
14042         (rs6000_legitimize_reload_address_ptr): Ditto.
14043         (rs6000_mode_dependent_address): Ditto.
14044         (rs6000_mode_dependent_address_ptr): Ditto.
14045
14046         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
14047         function to return true if the mode allows reg + integer
14048         addresses.
14049         (virtual_stack_registers_memory_p): New function to return true if
14050         the address refers to a virtual stack register.
14051         (rs6000_legitimate_offset_address_p): Move code to say whether a
14052         mode supports reg+int addressing to reg_offset_addressing_ok_p and
14053         call it.
14054         (rs6000_legitimate_address_p): Add checks for modes that only can
14055         do reg+reg addressing.  Start adding VSX support.
14056         (rs6000_legitimize_reload_address): Ditto.
14057         (rs6000_legitimize_address): Ditto.
14058         (rs6000_debug_legitimate_address_p): New debug functions for
14059         -mdebug=addr and -mdebug=cost.
14060         (rs6000_debug_rtx_costs): Ditto.
14061         (rs6000_debug_address_costs): Ditto.
14062         (rs6000_debug_adjust_cost): Ditto.
14063         (rs6000_debug_legitimize_address): Ditto.
14064         (rs6000_legitimize_reload_address_ptr): Point to call normal
14065         function or debug function.  Make functions called via pointer
14066         static.
14067         (rs6000_mode_dependent_address_ptr): Ditto.
14068         (rs6000_secondary_reload_class_ptr): Ditto.
14069         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
14070         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
14071         into a friendlier error.
14072         (rs6000_init_builtins): Add initial VSX support.
14073         (rs6000_adjust_cost): Fix some spacing issues.
14074
14075         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
14076         (REG_CLASS_NAMES): Ditto.
14077         (REG_CLASS_CONTENTS): Ditto.
14078         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
14079         pointer, to add -mdebug=addr support.
14080         (CANNOT_CHANGE_MODE_CLASS): Ditto.
14081         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
14082         -mdebug=addr support.
14083         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
14084         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
14085         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
14086
14087         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
14088         16-bit values.
14089         (bswapsi*): Set attribute types for load/store.  Add combiner
14090         patterns to eliminate zero extend on 64-bit.
14091         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
14092         stdbrx if the hardware supports those instructions.
14093
14094 2009-06-25  Ian Lance Taylor  <iant@google.com>
14095
14096         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
14097         (Link Options): Document -static-libstdc++.
14098
14099 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14100
14101         PR target/38731
14102         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
14103         DATA_ALIGNMENT instead.
14104
14105 2009-06-25  Richard Guenther  <rguenther@suse.de>
14106
14107         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
14108         indirect references against the callused/escaped solutions.
14109         (call_may_clobber_ref_p_1): Likewise.
14110
14111 2009-06-25  Martin Jambor  <mjambor@suse.cz>
14112
14113         PR tree-optimization/40493
14114         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
14115         (enum unscalarized_data_handling): New type.
14116         (handle_unscalarized_data_in_subtree): Return what has been done.
14117         (load_assign_lhs_subreplacements): Handle left flushes differently.
14118         (sra_modify_assign): Use unscalarized_data_handling, simplified
14119         condition determining whether to remove the statement.
14120
14121 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
14122
14123         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
14124         excerpt - @ should be doubled for texinfo.
14125
14126 2009-06-24  Ian Lance Taylor  <iant@google.com>
14127
14128         * config/arc/arc.c: Include "df.h".
14129         (arc_attribute_table): Make static.  Move higher in file.
14130         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
14131         (output_shift): Initialize n later to avoid warning.
14132         * config/arm/arm.c (arm_attribute_table): Make static.  Move
14133         higher in file.
14134         * config/avr/avr.c (avr_attribute_table): Make static.  Move
14135         higher in file.
14136         (reg_class_tab): Change array type from int to enum reg_class.
14137         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
14138         LABEL_REF.
14139         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
14140         (lshrhi3_out): Likewise.
14141         (class_likely_spilled_p): Change return type to bool.
14142         (avr_rtx_costs): Use local code variable with enum type.
14143         * config/avr/avr.md (movmemhi): Use add_reg_note.
14144         (andhi3, andsi3): Don't use AS2 with "and".
14145         (iorhi3, iorsi3): Don't use AS2 with "or".
14146         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
14147         * config/crx/crx.c: Include "df.h".
14148         (crx_attribute_table): Make static.
14149         * config/m32r/m32r.c: Include "df.h".
14150         (m32r_attribute_table): Make static.  Move higher in file.
14151         (pop): Use add_reg_note.
14152         (block_move_call): Change 0 to LCT_NORMAL in function call.
14153         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
14154         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
14155         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
14156         declare, not just when TREE_CODE is defined.
14157         * config/m68hc11/m68hc11.c: Include "expr.h".
14158         (m68hc11_attribute_table): Make static.  Move higher in file.
14159         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
14160         function call.
14161         (m68hc11_register_indirect_p): Likewise.
14162         (m68hc11_function_arg_padding): Change return type to enum
14163         direction.
14164         (emit_move_after_reload): Use add_reg_note.
14165         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
14166         (m68hc11_split_logical): Likewise.
14167         (m68hc11_rtx_costs): Add local code_and outer_code variables with
14168         enum type.
14169         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
14170         to VOIDmode in function call.
14171         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
14172         tree is defined.
14173         (m68hc11_split_logical): Update declaration.
14174         (m68hc11_function_arg_padding): Update declaration.
14175         * config/mcore/mcore.c (regno_reg_class): Change form array of int
14176         to array of enum reg_class.
14177         (mcore_attribute_table): Make static.  Move higher in file.
14178         (mcore_rtx_costs): Add cast to enum type.
14179         * config/mcore/mcore.h (regno_reg_class): Update declaration.
14180         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
14181         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
14182         in file.
14183         * config/sh/predicates.md (trapping_target_operand): Rename and to
14184         and_expr.
14185         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
14186         higher in file.
14187         * config/spu/spu.c (spu_attribute_table): Make static.  Move
14188         higher in file.
14189         * config/v850/v850.c (v850_attribute_table): Make static.  Move
14190         higher in file.
14191         (v850_rtx_costs): Use local code with enum type.
14192         (expand_epilogue): Add cast.
14193         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
14194
14195 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
14196
14197         PR target/40515
14198         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
14199         -m2a-single-only and -m2a-nofpu.
14200         * config/sh/sh.opt: Document m2a generates FPU code.
14201
14202 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
14203
14204         * defaults.h (CAN_ELIMINATE): Provide default.
14205         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
14206         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
14207         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
14208         * config/spu/spu.h (CAN_ELIMINATE): Delete.
14209         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
14210         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
14211         * config/cris/cris.h (CAN_ELIMINATE): Delete.
14212         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
14213         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
14214         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
14215
14216 2009-06-24  DJ Delorie  <dj@redhat.com>
14217
14218         * mep-ext-cop.cpu: Fix copyright notice.
14219         * mep-default: Fix copyright notice.
14220         * mep-core: Fix copyright notice.
14221         * mep: Fix copyright notice.
14222         * mep-ivc2: Fix copyright notice.
14223         * mep-c5: Fix copyright notice.
14224
14225 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
14226
14227         * doc/contrib.texi (Contributors):
14228
14229 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14230
14231         PR middle-end/40501
14232         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
14233         src and dst operands if necessary.
14234
14235 2009-06-23  DJ Delorie  <dj@redhat.com>
14236
14237         Add MeP port.
14238         * config.gcc: Add mep support.
14239         * recog.c: Resurrect validate_replace_rtx_subexp().
14240         * recog.h: Likewise.
14241         * config/mep/: Add new port:
14242         * config/mep/constraints.md: New file.
14243         * config/mep/default.h: New file.
14244         * config/mep/intrinsics.h: New file.
14245         * config/mep/intrinsics.md: New file.
14246         * config/mep/ivc2-template.h: New file.
14247         * config/mep/mep-c5.cpu: New file.
14248         * config/mep/mep-core.cpu: New file.
14249         * config/mep/mep-default.cpu: New file.
14250         * config/mep/mep-ext-cop.cpu: New file.
14251         * config/mep/mep-intrin.h: New file.
14252         * config/mep/mep-ivc2.cpu: New file.
14253         * config/mep/mep-lib1.asm: New file.
14254         * config/mep/mep-lib2.c: New file.
14255         * config/mep/mep-pragma.c: New file.
14256         * config/mep/mep-protos.h: New file.
14257         * config/mep/mep-tramp.c: New file.
14258         * config/mep/mep.c: New file.
14259         * config/mep/mep.cpu: New file.
14260         * config/mep/mep.h: New file.
14261         * config/mep/mep.md: New file.
14262         * config/mep/mep.opt: New file.
14263         * config/mep/predicates.md: New file.
14264         * config/mep/t-mep: New file.
14265
14266 2009-06-23  Ian Lance Taylor  <iant@google.com>
14267
14268         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
14269         from loose_warn into c_loose_warn and from strict_warn into
14270         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
14271         --enable-build-with-cxx.  Set and substitute
14272         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
14273         * Makefile.in (CXXFLAGS): New variable.
14274         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
14275         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
14276         the default is the same as $(STRICT_WARN).
14277         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
14278         (CXX): New variable.
14279         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
14280         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
14281         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
14282         (HOST_LIBS): New variable.
14283         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
14284         (ALL_CXXFLAGS): New variable.
14285         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
14286         * doc/install.texi (Configuration): Document
14287         --enable-build-with-cxx, --with-stage1-ldflags,
14288         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
14289         * configure: Rebuild.
14290
14291 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14292
14293         * config/arm/arm.c (arm_override_options): Fix braces and formatting
14294         from previous commit.
14295
14296 2009-06-23  Ian Lance Taylor  <iant@google.com>
14297
14298         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
14299
14300 2009-06-23  Ian Lance Taylor  <iant@google.com>
14301
14302         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
14303         with ATTRIBUTE_UNUSED.
14304
14305 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14306             Pat Haugen  <pthaugen@us.ibm.com>
14307             Revital Eres  <eres@il.ibm.com>
14308
14309         * config.in (HAVE_AS_POPCNTD): Add default definition.
14310         (HAVE_AS_LWSYNC): Ditto.
14311
14312         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
14313         release number.
14314         (gcc_cv_as_powerpc_cmpb): Ditto.
14315         (gcc_cv_as_powerpc_dfp): Ditto.
14316         (gcc_cv_as_powerpc_vsx): Ditto.
14317         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
14318         supporting the popcntd/lwsync instructions.
14319         (gcc_cv_as_powerpc_lwsync): Ditto.
14320         * configure: Regenerate.
14321
14322         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
14323         -mcpu=native and -mcpu=power7.
14324         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
14325
14326         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
14327         a variable instead of a mask to reduce the number of mask bits.
14328         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
14329         (-mbit-word): Ditto.
14330         (-mregnames): Ditto.
14331         * config/rs6000/rs6000.opt (-mupdate): Ditto.
14332         (-mfused-madd): Ditto.
14333
14334         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
14335         2.06 instructions.
14336         (-mvsx): New switch for VSX instructions.
14337         (-misel): Move from a variable to a mask to allow it to be set by
14338         -mcpu=.
14339
14340         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
14341         function declaration to an array declaration.
14342         (rs6000_hard_regno_nregs): New external array declaration.
14343
14344         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
14345         files included by rs6000.md.
14346
14347         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14348         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
14349
14350         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
14351         a target mask.
14352         (rs6000_debug_reg): New -mdebug= variables.
14353         (rs6000_debug_addr): Ditto.
14354         (rs6000_debug_cost): Ditto.
14355         (rs6000_pmode): New variable to hold Pmode.
14356         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
14357         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
14358         calculated at compiler start.
14359         (rs6000_hard_regno_nregs): Change function to an array which holds
14360         HARD_REGNO_NREGS calculated at compiler start.
14361         (rs6000_explicit_options): Delete isel field.
14362         (rs6000_vector_unit): New array to hold which vector unit
14363         supports arithmetic options for a given type.
14364         (rs6000_vector_mem): New array to hold which vector unit supports
14365         memory reference operations for a given type.
14366         (rs6000_vector_align): New array to given the alignment of each
14367         vector type.
14368         (power7_cost): New basic costs for power7.
14369         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
14370         (rs6000_hard_regno_nregs_internal): New function, moved from
14371         HARD_REGNO_NREGS, to calculate the number of registers each hard
14372         register takes for each type.
14373         (rs6000_debug_reg_print): New function for -mdebug=reg support.
14374         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
14375         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
14376         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
14377         unit information here so it is calculated once at compiler startup
14378         time.
14379         (rs6000_override_options): Make -misel a target mask.  Add more
14380         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
14381         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
14382         -mdebug=cost.
14383         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
14384         (rs6000_handle_option): Move -misel from variable to target mask.
14385         (rs6000_builtin_mask_for_load): Add VSX support.
14386         (rs6000_conditional_register_usage): Ditto.
14387         (USE_ALTIVEC_FOR_ARG_P): Ditto.
14388         (function_arg_boundary): Ditto.
14389         (rs6000_expand_builtin): Ditto.
14390         (def_builtin): Make abort message a little friendlier.
14391         (rs6000_emit_int_cmove): Add support for 64-bit isel.
14392
14393         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
14394         assembler support the popcntd instruction instead of a vsx
14395         instruction to enable power7 support.
14396         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
14397         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
14398         option to the assembler if -mcpu=native.
14399         (ASM_CPU_NATIVE_SPEC): Ditto.
14400         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
14401         ISA 2.06 features.
14402         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
14403         the lwsync instruction.
14404         (enum processor_type): Add PROCESSOR_POWER7.
14405         (rs6000_debug_reg): New -mdebug= options.
14406         (rs6000_debug_addr): Ditto.
14407         (rs6000_debug_cost): Ditto.
14408         (rs6000_isel): Delete.
14409         (enum rs6000_vector): New enum to say what vector unit we have.
14410         (VECTOR_UNIT_*): New macros to say which vector unit has
14411         arithmetic operations for a given type.
14412         (VECTOR_MEM_*): New macros to say which vector unit has memory
14413         operations for a given type.
14414         (TARGET_LDBRX): Whether the machine supports the ldbrx
14415         instruction.
14416         (TARGET_ISEL): Delete, -misel moved to be a mask.
14417         (TARGET_ISEL64): New macro for 64-bit isel support.
14418         (UNITS_PER_VSX_WORD): New macro.
14419         (POINTER_SIZE): Move to be an external variable, rather than
14420         calculating whether we are generating 32 ot 64-bit code.
14421         (Pmode): Ditto.
14422         (STACK_BOUNDARY): Add VSX support.
14423         (LOCAL_ALIGNMENT): Ditto.
14424         (SLOW_UNALIGNED_ACCESS): Ditto.
14425         (VSX_REGNO_P): New macro for VSX support.
14426         (VFLOAT_REGNO_P): Ditto.
14427         (VINT_REGNO_P): Ditto.
14428         (VLOGICAL_REGNO_P): Ditto.
14429         (VSX_VECTOR_MODE): Ditto.
14430         (VSX_SCALAR_MODE): Ditto.
14431         (VSX_MODE): Ditto.
14432         (VSX_MOVE_MODE): Ditto.
14433         (VSX_REG_CLASS_P): Ditto.
14434         (HARD_REGNO_NREGS): Instead of calling a function, use an array
14435         lookup.
14436         (UNITS_PER_SIMD_WORD): Add VSX support.
14437         (MODES_TIEABLE_P): Ditto.
14438         (STARTING_FRAME_OFFSET): Ditto.
14439         (STACK_DYNAMIC_OFFSET): Ditto.
14440         (EPILOGUE_USES): Ditto.
14441         (REGNO_REG_CLASS): Move to array lookup.
14442         (CLASS_MAX_NREGS): Ditto.
14443         (rs6000_vector_reg_class): Add declaration.
14444         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14445         overlap with the floating point and Altivec registers.
14446
14447         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14448
14449         * config/rs6000/driver-rs6000.c (asm_names): New static array to
14450         give the appropriate asm switches if -mcpu=native.
14451         (host_detect_local_cpu): Add support for "asm".
14452         (host_detect_local_cpu): Follow GNU code guidelines for name.
14453
14454         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14455         -mbit-word to a variable instead of being a target mask.
14456
14457         * config/rs6000/sync.md (lwsync): If the assembler supports it,
14458         emit the lwsync instruction instead of emitting the instruction as
14459         an integer constant.
14460
14461         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14462         fixuns_trundfsi2, move expander into rs6000.md.
14463
14464         * config/rs6000/rs6000.md (cpu): Add power7.
14465         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14466         (logical predicate patterns): Change the single instruction
14467         primitives that set CR0 to be fast_compare instead of compare.
14468         (norsi*): Ditto.
14469         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14470         (popcntddi2): Ditto.
14471         (popcount<mode>): Ditto.
14472         (floating multiply/add insns): Name the floating point
14473         multiply/add insns.
14474         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14475         (isel_unsigned_<mode>): Ditto.
14476         (fixuns_trundfsi2): Move expander here from spe.md.
14477         (smindi3): Define if we have -misel on 64-bit systems.
14478         (smaxdi3): Ditto.
14479         (umindi3): Ditto.
14480         (umaxdi3): Ditto.
14481
14482 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
14483
14484         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14485         extra_objs.
14486         * config/avr/avr.c (avr_current_device): New variable.
14487         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14488         (avr_arch, mcu_type_s): Move to avr.h.
14489         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14490         default_data_section_start fields.
14491         (avr_arch): Moved from avr.c.
14492         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14493         library_name fields.
14494         (avr_current_device, avr_mcu_types, avr_arch_types,
14495         avr_device_to_arch, avr_device_to_data_start,
14496         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14497         (EXTRA_SPEC_FUNCTIONS): Define.
14498         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14499         options mapping. Use device_to_arch and device_to_data_start insted.
14500         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14501         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14502         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14503         * config/avr/driver-avr.c: New file.
14504         * config/avr/avr-devices.c: New file.
14505
14506 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
14507
14508         * var-tracking.c (unshare_variable): Force initialized to
14509         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14510         (set_variable_part): Likewise.
14511         (struct variable_union_info): Remove pos_src field.
14512         (vui_vec, vui_allocated): New variables.
14513         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14514         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
14515         == 1 use a simpler sorting algorithm.  Compute pos field right
14516         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
14517         Avoid quadratic comparison if !flag_var_tracking_uninit.
14518         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14519         unshare_variable unconditionally.
14520         (dataflow_set_different_2): Removed.
14521         (dataflow_set_different): Don't traverse second hash table.
14522         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14523         unconditionally to var_reg_set or var_mem_set.
14524         (emit_notes_in_bb): Likewise.
14525         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14526         unshare_variable.
14527         (emit_note_insn_var_location): Don't set initialized to
14528         VAR_INIT_STATUS_INITIALIZED early.
14529         (vt_finalize): Free vui_vec if needed, clear vui_vec and
14530         vui_allocated.
14531         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14532
14533         * tree-object-size.c (addr_object_size): Instead of checking
14534         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14535         are no FIELD_DECLs following it.
14536
14537 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14538
14539         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14540         order to match bswaps with signed source operands.
14541
14542 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14543
14544         * sdbout.c (sdbout_one_type): Fix braces in switch.
14545
14546 2009-06-23  Richard Guenther  <rguenther@suse.de>
14547
14548         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14549         member.
14550         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14551         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14552         var_callused, callused_tree, var_storedanything, storedanything_tree,
14553         var_integer, integer_tree): Remove global variables.
14554         (new_var_info): Do not pass new id, append the new var to the
14555         global variable vector.
14556         (do_ds_constraint): Use is_global_var member of the variable-info.
14557         (new_scalar_tmp_constraint_exp): Adjust.
14558         (create_function_info_for): Likewise.
14559         (create_variable_info_for): Likewise.
14560         (find_what_var_points_to): Remove dead code.
14561         (init_base_vars): Simplify.
14562         (compute_points_to_sets): Adjust.
14563
14564 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14565
14566         * combine.c (try_combine): Dump information about the insns we're
14567         combining.
14568
14569 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14570
14571         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14572         check when calling force_to_mode on TRUNCATE's operand.
14573
14574 2009-06-22  Ian Lance Taylor  <iant@google.com>
14575
14576         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14577
14578 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14579
14580         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14581
14582 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14583
14584         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14585         override library linkage flags such as -static-libgcc or
14586         -shared-libgcc.
14587
14588 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14589
14590         * config/m68k/m68k-devices.def: Add line for MCF5221x.
14591
14592 2009-06-22  Ian Lance Taylor  <iant@google.com>
14593
14594         * config/linux.opt: Put mglibc ahead of muclibc.
14595
14596         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14597         for duplicate decls.
14598
14599 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14600
14601         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14602
14603 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14604
14605         PR objc/28050
14606         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14607         instead of NULL if a parser error occurs.
14608
14609 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14610
14611         * dwarf2out.c (dwarf2_debug_hooks): Initialize
14612         non-DWARF2_DEBUGGING_INFO version.
14613
14614 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
14615
14616         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14617         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14618
14619         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14620         (LIBGCC2_TF_CEXT): Define.
14621         (TF_SIZE): Define.
14622
14623 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14624
14625         PR target/40463
14626         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14627
14628 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14629
14630         * config/arm/arm.c (arm_override_options): Disable
14631         -mcaller-super-interworking and -mcallee-super-interworking.
14632         * doc/invoke.texi (ARM Options): Document this.
14633
14634 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
14635
14636         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14637         * config/arm/constraints.md (j): New constraint for movw operands.
14638         (N): Remove thumb2 meaning.
14639         * config/arm/arm.md (*arm_movw): Delete.
14640         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14641         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14642         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14643
14644 2009-06-22  Martin Jambor  <mjambor@suse.cz>
14645
14646         PR tree-optimization/40492
14647         * tree-sra.c (sra_modify_assign): Pass zero offsets to
14648         build_ref_for_offset.
14649
14650 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
14651
14652         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14653         JUMP_TABLE_DATA_P predicates where applicable.
14654         * auto-inc-dec.c: Ditto.
14655         * builtins.c: Ditto.
14656         * caller-save.c: Ditto.
14657         * calls.c: Ditto.
14658         * cfgcleanup.c: Ditto.
14659         * cfglayout.c: Ditto.
14660         * cfgrtl.c: Ditto.
14661         * combine.c: Ditto.
14662         * combine-stack-adj.c: Ditto.
14663         * cse.c: Ditto.
14664         * cselib.c: Ditto.
14665         * dbxout.c: Ditto.
14666         * df-scan.c: Ditto.
14667         * dse.c: Ditto.
14668         * dwarf2asm.c: Ditto.
14669         * dwarf2out.c: Ditto.
14670         * emit-rtl.c: Ditto.
14671         * except.c: Ditto.
14672         * explow.c: Ditto.
14673         * expmed.c: Ditto.
14674         * expr.c: Ditto.
14675         * final.c: Ditto.
14676         * function.c: Ditto.
14677         * fwprop.c: Ditto.
14678         * gcse.c: Ditto.
14679         * genpreds.c: Ditto.
14680         * genrecog.c: Ditto.
14681         * ifcvt.c: Ditto.
14682         * ira-costs.c: Ditto.
14683         * ira-lives.c: Ditto.
14684         * jump.c: Ditto.
14685         * loop-iv.c: Ditto.
14686         * lower-subreg.c: Ditto.
14687         * modulo-sched.c: Ditto.
14688         * optabs.c: Ditto.
14689         * postreload.c: Ditto.
14690         * print-rtl.c: Ditto.
14691         * recog.c: Ditto.
14692         * reginfo.c: Ditto.
14693         * regmove.c: Ditto.
14694         * reload1.c: Ditto.
14695         * reload.c: Ditto.
14696         * reorg.c: Ditto.
14697         * rtlanal.c: Ditto.
14698         * rtl.c: Ditto.
14699         * sched-vis.c: Ditto.
14700         * sdbout.c: Ditto.
14701         * sel-sched-ir.c: Ditto.
14702         * simplify-rtx.c: Ditto.
14703         * targhooks.c: Ditto.
14704         * var-tracking.c: Ditto.
14705         * vmsdbgout.c: Ditto.
14706
14707 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14708
14709         * Makefile.in (install-plugin): Always use DESTDIR.
14710
14711 2009-06-22  Olivier Hainque  <hainque@adacore.com>
14712
14713         * config/pa/pa.c (output_call): Don't optimize post call jumps
14714         into return address adjustments if the call may throw.
14715
14716 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
14717
14718         * arm.c (thumb1_output_casesi): New function.
14719         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14720         optimizing for size or PIC.
14721         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14722         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14723         (casesi): Handle Thumb-1 when optimizing for size or PIC.
14724         (thumb1_casesi_internal_pic): New expand rule.
14725         (thumb1_casesi_dispatch): New pattern.
14726         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14727         thumb-1 mode.
14728         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14729         in the text seciton when PIC or optimizing for size.
14730         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14731         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14732         preservation properties of code.
14733         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14734         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14735         (__gnu_thumb1_case_si): New function.
14736         * t-arm (LIB1ASMSRC): Define here.
14737         (LIB1ASMFUNCS): Add some common functions.
14738         * t-arm-elf (LIB1ASMSRC): Delete.
14739         (LIB1ASMFUNCS): Append to existing set.
14740         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14741         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14742         * t-symbian (LIB1ASMFUNCS): Likewise.
14743         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14744         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14745
14746 2009-06-21  Richard Guenther  <rguenther@suse.de>
14747
14748         PR tree-optimization/38729
14749         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14750         to loops with a single exit if -fno-expensive-optimizations.
14751
14752 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
14753
14754         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14755         (dataflow_set): Change vars type from htab_t to shared_hash.
14756         (shared_hash_pool, empty_shared_hash): New variables.
14757         (vars_clear): Removed.
14758         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14759         shared_hash_find_slot_unshare, shared_hash_find_slot,
14760         shared_hash_find_slot_noinsert, shared_hash_find): New
14761         static inlines.
14762         (shared_hash_unshare, shared_hash_destroy): New functions.
14763         (unshare_variable): Unshare set->vars if shared, use
14764         shared_hash_htab.
14765         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14766         (get_init_value, find_src_set_src, dump_dataflow_set,
14767         clobber_variable_part, emit_notes_for_differences): Use
14768         shared_hash_htab.
14769         (dataflow_set_init): Remove second argument, set vars to
14770         empty_shared_hash instead of creating a new htab.
14771         (dataflow_set_clear): Call shared_hash_destroy and set vars
14772         to empty_shared_hash instead of calling vars_clear.
14773         (dataflow_set_copy): Don't call vars_copy, instead just share
14774         the src htab with dst.
14775         (variable_union): Use shared_hash_*, use initially NO_INSERT
14776         lookup if set->vars is shared.  Don't keep slot cleared before
14777         calling unshare_variable.  Unshare set->vars if needed.
14778         Even ->refcount == 1 vars must be unshared if set->vars is shared
14779         and var needs to be modified.
14780         (variable_canonicalize): New function.
14781         (dataflow_set_union): If dst->vars is empty, just share src->vars
14782         with dst->vars and traverse with variable_canonicalize to canonicalize
14783         and unshare what is needed.
14784         (dataflow_set_different): If old_set and new_set use the same shared
14785         htab, they aren't different.  If number of htab elements is different,
14786         htabs are different.  Use shared_hash_*.
14787         (dataflow_set_destroy): Call shared_hash_destroy instead of
14788         htab_delete.
14789         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14790         second argument to dataflow_set_init.
14791         (vt_initialize): Likewise.  Initialize shared_hash_pool and
14792         empty_shared_hash, move bb in/out initialization afterwards.
14793         Use variable_htab_free instead of NULL as changed_variables del hook.
14794         (variable_was_changed): Change type of second argument to pointer to
14795         dataflow_set.  When inserting var into changed_variables, bump
14796         refcount.  Unshare set->vars if set is shared htab and slot needs to
14797         be cleared.
14798         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14799         lookup if set->vars is shared.  Unshare set->vars if needed.
14800         Even ->refcount == 1 vars must be unshared if set->vars is shared
14801         and var needs to be modified.  Adjust variable_was_changed caller.
14802         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
14803         vars must be unshared if set->vars is shared and var needs to be
14804         modified.  Adjust variable_was_changed caller.
14805         (emit_note_insn_var_location): Don't pool_free var.
14806         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14807         instead of 1.
14808         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14809         free_alloc_pool on shared_hash_pool.
14810
14811 2009-06-20  Anthony Green  <green@moxielogic.com>
14812
14813         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14814         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14815
14816 2009-06-20  Richard Guenther  <rguenther@suse.de>
14817
14818         * tree-ssa-structalias.c (find_func_aliases): For memset use
14819         a constraint from NULL if we memset to zero.
14820         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14821         we explicitly handle that do not read from memory.
14822         (call_may_clobber_ref_p_1): Properly handle builtins that may
14823         set errno.
14824
14825 2009-06-20  Richard Guenther  <rguenther@suse.de>
14826
14827         PR tree-optimization/40495
14828         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14829         (new_scalar_tmp_constraint_exp): New function.
14830         (process_constraint): Do not create temporary decls.
14831         (process_all_all_constraints): Likewise.
14832         (handle_const_call): Likewise.
14833         (create_function_info_for): Do not set decl.
14834
14835 2009-06-19  Ian Lance Taylor  <iant@google.com>
14836
14837         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14838         (rs6000_attribute_table): Make static; move before use.
14839
14840 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
14841
14842         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14843         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14844         Propagate the TREE_READONLY flag without overwriting it.
14845         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14846         Propagate the TREE_READONLY flag onto the result.
14847         (process_call_operands): Move around.  Use correct constant value.
14848
14849 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14850
14851         PR target/40482
14852         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14853         * config/arm/arm.md: Likewise.
14854
14855 2009-06-19  Ian Lance Taylor  <iant@google.com>
14856
14857         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14858         to GIMPLE_ERROR_MARK.
14859
14860         * c-typeck.c (build_conditional_expr): Add op1_original_type and
14861         op2_original_type parameters.  Warn about using different enum types.
14862         * c-parser.c (c_parser_conditional_expression): Pass original
14863         types to build_conditional_expr.
14864         * c-tree.h (build_conditional_expr): Update declaration.
14865
14866 2009-06-19  Ian Lance Taylor  <iant@google.com>
14867
14868         * config/i386/i386.c (ix86_function_specific_save): Test that
14869         fields match values, rather than testing the values are in a
14870         certain range.
14871
14872 2009-06-19  Richard Guenther  <rguenther@suse.de>
14873
14874         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14875         ADDR_EXPR pointers.
14876         (ptr_derefs_may_alias_p): Likewise.
14877         (ptr_deref_may_alias_ref_p_1): New function.
14878         (ptr_deref_may_alias_ref_p): Likewise.
14879         (ref_maybe_used_by_call_p_1): Handle builtins that are not
14880         covered by looking at the ESCAPED solution.
14881         (call_may_clobber_ref_p_1): Likewise.
14882         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14883         Handle NULL_TREE offset.  Do not produce redundant constraints.
14884         (process_all_all_constraints): New helper function.
14885         (do_structure_copy): Use it.
14886         (handle_lhs_call): Likewise.
14887         (find_func_aliases): Handle some builtins with pointer arguments
14888         and/or return values explicitly.
14889
14890 2009-06-19  Ian Lance Taylor  <iant@google.com>
14891
14892         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14893
14894 2009-06-19  Ian Lance Taylor  <iant@google.com>
14895
14896         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14897
14898 2009-06-19  Ian Lance Taylor  <iant@google.com>
14899
14900         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14901         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14902         version.
14903
14904         * c-decl.c (finish_decl): If -Wc++-compat, warn about
14905         uninitialized const.
14906
14907 2009-06-19  Ian Lance Taylor  <iant@google.com>
14908
14909         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
14910         all uses.
14911
14912         * c-decl.c (in_struct, struct_types): Remove.
14913         (struct c_binding): Add in_struct field.
14914         (c_binding_ptr): Define type, along with VEC.
14915         (struct c_struct_parse_info): Define.
14916         (struct_parse_info): New static variable.
14917         (bind): Initialize in_struct field.
14918         (start_struct): Remove enclosing_in_struct and
14919         enclosing_struct_types parameters.  Add
14920         enclosing_struct_parse_info parameter.  Change all callers.  Set
14921         struct_parse_info rather than in_struct and struct_types.
14922         (grokfield): If -Wc++-compat and there is a symbol binding for the
14923         field name, set the in_struct flag and push it on the
14924         struct_parse_info->fields vector.
14925         (warn_cxx_compat_finish_struct): New static function.
14926         (finish_struct): Remove enclosing_in_struct and
14927         enclosing_struct_types parameters.  Add
14928         enclosing_struct_parse_info parameter.  Change all callers.  Don't
14929         set C_TYPE_DEFINED_IN_STRUCT here.  Call
14930         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
14931         parameter.  Only push on struct_types if warn_cxx_compat.
14932         (finish_enum): Only push on struct_types if warn_cxx_compat.
14933         (declspecs_add_type): Add loc parameter.  Change all callers.
14934         Change all error calls to error_at.  Pass loc, not input_location,
14935         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
14936         defined in a struct.  If -Wc++-compat and parsing a struct, record
14937         that a typedef name was used.
14938         * c-parser.c (c_parser_declspecs): Get location to pass to
14939         declspecs_add_type.
14940         (c_parser_struct_or_union_specifier): Update calls to start_struct
14941         and finish_struct.
14942         * c-tree.h (struct c_struct_parse_info): Declare.
14943         (finish_struct, start_struct): Update declarations.
14944         (declspecs_add_type): Update declaration.
14945
14946 2009-06-19  Ian Lance Taylor  <iant@google.com>
14947
14948         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14949         variable with an anonymous type.
14950
14951 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14952
14953         * see.c: Remove for real.
14954
14955 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14956
14957         * optabs.h (enum optab_index): Add new OTI_significand.
14958         (significand_optab): Define corresponding macro.
14959         * optabs.c (init_optabs): Initialize significand_optab.
14960         * genopinit.c (optabs): Implement significand_optab using
14961         significand?f2 patterns.
14962         * builtins.c (expand_builtin_mathfn): Handle
14963         BUILT_IN_SIGNIFICAND{,F,L}.
14964         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14965         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14966
14967         * config/i386/i386.md (significandxf2, significand<mode>2): New
14968         expanders to implement significandf, significand and significandl
14969         built-ins as inline x87 intrinsics.
14970
14971 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
14972
14973         * config/avr/avr.c (avr_override_options): Remove setting value of
14974         PARAM_INLINE_CALL_COST.
14975
14976 2009-06-18  Richard Henderson  <rth@redhat.com>
14977
14978         PR 40488
14979         * tree-pass.h (TDF_ASMNAME): New.
14980         * tree-dump.c (dump_options): Add asmname.
14981         * doc/invoke.texi: Document it.
14982
14983         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14984         (dump_decl_name): ...here.
14985         (dump_function_name): New flags arg; mind TDF_ASMNAME.
14986         (dump_generic_node): Update dump_function_name calls.
14987         (print_call_name): New flags arg; update all dump calls.
14988         * diagnostic.h (print_call_name): Update.
14989         * gimple-pretty-print.c (dump_gimple_call): Update.
14990
14991 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14992
14993         PR target/40470
14994         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14995
14996 2009-06-18  Diego Novillo  <dnovillo@google.com>
14997
14998         * doc/plugins.texi: Document plugin_is_GPL_compatible.
14999         * plugin.c (str_license): Declare.
15000         (try_init_one_plugin): Assert that the symbol
15001         'plugin_is_GPL_compatible' exists.
15002
15003 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
15004
15005         * see.c: Remove.
15006         * Makefile.in (OBJS-common): Remove see.o.
15007         (see.o): Remove.
15008         * common.opt (fsee): Mark as preserved for backward compatibility.
15009         * opts.c (common_handle_option): Add OPT_fsee to the backward
15010         compatibility section.
15011         * passes.c (init_optimization_passes, pass_see): Remove pass.
15012         * timevar.def (TV_SEE): Remove.
15013         * tree-pass.h (pass_see): Remove declaration.
15014         * doc/invoke.texi (-fsee): Remove documentation.
15015
15016 2009-06-18  Martin Jambor  <mjambor@suse.cz>
15017
15018         * tree-sra.c: Include statistics.h
15019         (sra_stats): New variable.
15020         (sra_initialize): Clear sra_stats.
15021         (create_access_replacement): Increment sra_stats.replacements.
15022         (get_access_replacement): Do not return twice.
15023         (analyze_all_variable_accesses): Increment statistics counter by the
15024         number of scalarized aggregates.
15025         (generate_subtree_copies): Increment sra_stats.subtree_copies.
15026         (sra_modify_expr): Increment sra_stats.exprs.
15027         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
15028         (sra_modify_assign): Increment sra_stats.exprs,
15029         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
15030         (perform_intra_sra): Update statistics counters.
15031         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
15032
15033 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
15034
15035         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
15036         (arm_scalar_mode_supported_p): New function.
15037
15038 2009-06-18  Paul Brook  <paul@codesourcery.com>
15039             Sandra Loosemore  <sandra@codesourcery.com>
15040
15041         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
15042         (__extendhfsf2, __truncsfhf2): Define.
15043         * config/arm/fp16.c: New file.
15044         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
15045         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
15046
15047 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
15048
15049         * doc/extend.texi (Half-Precision): New section.
15050         * doc/invoke.texi (Option Summary): List -mfp16-format.
15051         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
15052         * config/arm/arm.opt (mfp16-format=): New.
15053         * config/arm/arm.c: Include intl.h.
15054         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
15055         (TARGET_INVALID_RETURN_TYPE): Redefine.
15056         (TARGET_PROMOTED_TYPE): Redefine.
15057         (TARGET_CONVERT_TO_TYPE): Redefine.
15058         (arm_fp16_format): Define.
15059         (all_fpus): Add entry for neon-fp16.
15060         (fp_model_for_fpu): Likewise.
15061         (struct fp16_format): Declare.
15062         (all_fp16_formats): Define.
15063         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
15064         functions.
15065         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
15066         and no ldrh.
15067         (arm_legitimate_index_p): Treat HFmode like HImode.
15068         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
15069         (coproc_secondary_reload_class): Special-case HFmode.
15070         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
15071         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
15072         (arm_init_fp16_builtins): New.
15073         (arm_init_builtins): Call it.
15074         (arm_invalid_parameter_type): New.
15075         (arm_invalid_return_type): New.
15076         (arm_promoted_type): New.
15077         (arm_convert_to_type).
15078         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
15079         format.
15080         (arm_emit_fp16_const): New function.
15081         (arm_mangle_type): Mangle __fp16 as "Dh".
15082         * config/arm/arm.h (TARGET_VFPD32): Make it know about
15083         FPUTYPE_NEON_FP16.
15084         (TARGET_NEON_FP16): New.
15085         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
15086         (enum fputype): Add FPUTYPE_NEON_FP16.
15087         (enum arm_fp16_format_type): Declare.
15088         (arm_fp16_format): Declare.
15089         (LARGEST_EXPONENT_IS_NORMAL): Define.
15090         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
15091         * config/arm/arm-modes.def (HFmode): Define.
15092         * config/arm/vfp.md (*movhf_vfp): New.
15093         (extendhfsf2): New.
15094         (truncsfhf2): New.
15095         * config/arm/arm.md (fpu): Add neon_fp16.
15096         (floatsihf2, floatdihf2): New.
15097         (fix_trunchfsi2, fix_trunchfdi2): New.
15098         (truncdfhf2): New.
15099         (extendhfdf2): New.
15100         (movhf): New.
15101         (*arm32_movhf): New.
15102         (*thumb1_movhf): New.
15103         (consttable_2): Add check for HFmode constants.
15104         (consttable_4): Handle HFmode constants.
15105
15106 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
15107
15108         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
15109
15110 2009-06-17  Olivier Hainque  <hainque@adacore.com>
15111
15112         * collect2.c (main): Use CONST_CAST2 to perform char ** to
15113         const char ** conversion in AIX specific section.
15114
15115 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
15116
15117         * config/i386/i386.c (ix86_special_builtin_type): Remove
15118         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
15119         (bdesc_special_args): Updated.
15120         (ix86_init_mmx_sse_builtins): Likewise.
15121         (ix86_expand_special_args_builtin): Likewise.
15122
15123 2009-06-17  Richard Henderson  <rth@redhat.com>
15124
15125         * tree-pretty-print.c (maybe_dump_asm_name): New.
15126         (dump_decl_name): Use it.
15127         (PRINT_FUNCTION_NAME): Merge into...
15128         (dump_function_name): ... here.  Use maybe_dump_asm_name.
15129
15130 2009-06-17  Cary Coutant  <ccoutant@google.com>
15131
15132         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
15133         Change caller.
15134         * debug.c (struct gcc_debug_hooks): Change placeholder for
15135         source_line hook.
15136         (debug_nothing_int_charstar_int): Replaced by...
15137         (debug_nothing_int_charstar_int_bool): ...this.
15138         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
15139         source_line prototype.
15140         (debug_nothing_int_charstar_int): Replaced by...
15141         (debug_nothing_int_charstar_int_bool): ...this.
15142         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
15143         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
15144         Output is_stmt operand when necessary.
15145         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
15146         (notice_source_line): Add is_stmt parameter.
15147         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
15148         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
15149         Change callers.
15150         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
15151         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
15152
15153 2009-06-17  Ian Lance Taylor  <iant@google.com>
15154
15155         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
15156         Change all uses.
15157         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
15158         call uses.
15159
15160 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
15161
15162         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
15163         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
15164         tree_strip_sign_nop_conversions and
15165         tree_ssa_strip_useless_type_conversions rather than stripping
15166         the operations here.
15167         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
15168         Declare them.
15169         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
15170         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
15171         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
15172         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
15173         functions.
15174
15175 2009-06-17  Michael Eager  <eager@eagercon.com>
15176
15177         * config/rs6000/constraints.md (register_constraint "d"): New.
15178         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
15179         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15180         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
15181         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
15182         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15183         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
15184         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
15185         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
15186         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
15187         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
15188         __fctiwz): Same.
15189         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
15190         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
15191         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
15192         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
15193         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
15194         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
15195         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
15196         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
15197         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
15198         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
15199         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
15200         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
15201         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
15202         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
15203
15204 2009-06-16  Ian Lance Taylor  <iant@google.com>
15205
15206         * profile.c (total_num_never_executed): Don't define.
15207         (compute_branch_probabilities): Don't count or print
15208         num_never_executed.
15209         (init_branch_prob): Don't set total_num_never_executed.
15210         (end_branch_prob): Don't print total_num_never_executed.
15211
15212 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
15213
15214         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
15215
15216 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
15217
15218         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
15219         (nabstd2_fpr): Same.
15220
15221 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
15222
15223         * expr.c (expand_assignment): Change complex type check.
15224
15225 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
15226
15227         * doc/plugins.texi (Building GCC plugins): Added new section.
15228
15229 2009-06-17  Ian Lance Taylor  <iant@google.com>
15230
15231         * c-pch.c (get_ident): Don't set size of templ array.
15232         (pch_init): Don't set size of partial_pch array.
15233
15234         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
15235         string constant to intialize an array whose size is the length of
15236         the string.
15237
15238 2009-06-17  Richard Guenther  <rguenther@suse.de>
15239
15240         PR tree-optimization/40389
15241         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
15242         to addressable types.
15243         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
15244
15245 2009-06-17  Richard Guenther  <rguenther@suse.de>
15246
15247         PR middle-end/40460
15248         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
15249         if there is no evolution of left in the loop bail out.
15250         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
15251         chrec_fold_multiply.
15252
15253 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
15254             Janis Johnson  <janis187@us.ibm.com>
15255
15256         PR target/39254
15257         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
15258         for the symbol ref of a constant that is the source of a move
15259         - nor for any other not-obvious-label-ref constants.
15260
15261 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
15262
15263         * plugin.c (position_pass): Skip newly inserted pass during list
15264         traversal to avoid repeated insertion.
15265
15266 2009-06-16  Ian Lance Taylor  <iant@google.com>
15267
15268         * vec.h (VEC_stack_alloc): Define different version if
15269         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
15270         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
15271         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
15272         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15273
15274 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
15275
15276         * config.gcc (extra_headers): Add ia32intrin.h for x86.
15277
15278         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
15279         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
15280         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
15281         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
15282         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
15283         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15284         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15285         (bdesc_special_args): Add __builtin_ia32_rdtsc and
15286         __builtin_ia32_rdtscp.
15287         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
15288         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
15289         and __builtin_ia32_rorhi.
15290         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
15291         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15292         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15293         (ix86_expand_args_builtin): Likewise.
15294         (ix86_expand_special_args_builtin): Likewise.
15295
15296         * config/i386/i386.md (UNSPECV_RDTSCP): New.
15297         (UNSPECV_RDTSC): Likewise.
15298         (UNSPECV_RDPMC): Likewise.
15299         (*bsr): Renamed to ...
15300         (bsr): This
15301         (*bsr_rex64): Renamed to ...
15302         (bsr_rex64): This.
15303         (rdpmc): New.
15304         (*rdpmc): Likewise.
15305         (*rdpmc_rex64): Likewise.
15306         (rdtsc): Likewise.
15307         (*rdtsc): Likewise.
15308         (*rdtsc_rex64): Likewise.
15309         (rdtscp): Likewise.
15310         (*rdtscp): Likewise.
15311         (*rdtscp_rex64): Likewise.
15312
15313         * config/i386/ia32intrin.h: New.
15314
15315         * config/i386/x86intrin.h: Include <ia32intrin.h>.
15316
15317 2009-06-16  Ian Lance Taylor  <iant@google.com>
15318
15319         * ira-build.c (copy_info_to_removed_store_destinations):
15320         Initialize parent_a.
15321
15322 2009-06-16  Ian Lance Taylor  <iant@google.com>
15323
15324         * c-decl.c (grokdeclarator): Change size_varies to bool.
15325
15326 2009-06-16  Ian Lance Taylor  <iant@google.com>
15327
15328         * sel-sched.c: Make forward declarations of move_op_hooks and
15329         fur_hooks explicitly extern.
15330
15331 2009-06-16  Ian Lance Taylor  <iant@google.com>
15332
15333         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
15334         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
15335
15336 2009-06-16  Ian Lance Taylor  <iant@google.com>
15337
15338         * resource.c (mark_referenced_resources): Change
15339         include_delayed_effects parameter to bool.  Change all callers.
15340         (mark_end_of_function_resources): Likewise.
15341         * reorg.c (insn_references_resource_p): Likewise.
15342         (insn_sets_resource_p): Likewise.
15343         * resource.h (mark_referenced_resources): Update declaration.
15344         (mark_end_of_function_resources): Update declaration.
15345
15346 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
15347
15348         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
15349
15350 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
15351
15352         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
15353         GCC can bootstrap on AIX with GNU Binutils 2.20.
15354
15355 2009-06-16  Ian Lance Taylor  <iant@google.com>
15356
15357         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
15358
15359 2009-06-16  Ian Lance Taylor  <iant@google.com>
15360
15361         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
15362         inline, not extern inline.
15363         (exact_log2): Likewise.
15364         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
15365         test CLZ_HWI.
15366         (exact_log2): Likewise, but don't test CTZ_HWI.
15367
15368 2009-06-16  Ian Lance Taylor  <iant@google.com>
15369
15370         * bitmap.c (bitmap_clear): Don't declare as inline.
15371         * gimple.c (gimplify_assign): Likewise.
15372         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15373         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
15374         (sched_scan_info): Remove duplicate definition.
15375
15376 2009-06-16  Ian Lance Taylor  <iant@google.com>
15377
15378         * c-common.c (skip_evaluation): Don't define.
15379         (c_inhibit_evaluation_warnings): Define global variable.
15380         (overflow_warning): Check c_inhibit_evaluation_warnings rather
15381         than skip_evaluation.
15382         (convert_and_check, warn_for_div_by_zero): Likewise.
15383         * c-common.h (skip_evaluation): Don't declare.
15384         (c_inhibit_evaluation_warnings): Declare.
15385         * c-parser.c (c_parser_typeof_specifier): Set
15386         c_inhibit_evaluation_warnings rather than skip_evaluation.
15387         (c_parser_conditional_expression): Likewise.
15388         (c_parser_binary_expression): Likewise.
15389         (c_parser_sizeof_expression): Likewise.
15390         (c_parser_alignof_expression): Likewise.
15391         * c-typeck.c (build_indirect_ref): Check
15392         c_inhibit_evaluation_warnings rather than skip_evaluation.
15393         (build_conditional_expr, build_binary_op): Likewise.
15394
15395 2009-06-16  Richard Guenther  <rguenther@suse.de>
15396
15397         * tree-ssa-alias.c (is_escape_site): Remove.
15398         * tree-ssa-alias.h (enum escape_type): Remove.
15399         (is_escape_site): Likewise.
15400         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
15401         via casts and asms without deferring to is_escape_site.
15402
15403 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
15404
15405         PR middle-end/40446
15406         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
15407         use gen_lowpart if op0 has complex mode.
15408
15409 2009-06-16  Richard Guenther  <rguenther@suse.de>
15410
15411         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
15412         variables add them to ESCAPED.
15413         (find_func_aliases): Do not make all indirectly stored values escaped.
15414
15415 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
15416
15417         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
15418         make_decl_one_only.
15419
15420 2009-06-16  Martin Jambor  <mjambor@suse.cz>
15421
15422         PR tree-optimization/40432
15423         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
15424         check whether we need to force gimple register operand.
15425
15426 2009-06-16  Martin Jambor  <mjambor@suse.cz>
15427
15428         PR tree-optimization/40413
15429         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
15430         build_ref_for_offset.
15431         (propagate_subacesses_accross_link): Fix a typo in a comment.
15432
15433 2009-06-16  Ira Rosen  <irar@il.ibm.com>
15434
15435         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15436         with additional parameter.
15437         * tree-vectorizer.h (enum vect_def_type): Add new value
15438         vect_nested_cycle.
15439         (enum vect_relevant): Add comments.
15440         (vect_is_simple_reduction): Add new argument.
15441         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15442         Detect nested cycles.
15443         (vect_is_simple_reduction): Update documentation, add an argument to
15444         distinguish inner-loop reduction from nested cycle, detect nested
15445         cycles, fix printings and indentation, don't swap operands in case
15446         of nested cycle.
15447         (get_initial_def_for_reduction): Handle subtraction.
15448         (vect_create_epilog_for_reduction): Add new argument to specify
15449         reduction variable.
15450         (vect_finalize_reduction): Handle subtraction, fix comments.
15451         (vectorizable_reduction): Handle nested cycles. In case of nested
15452         cycle keep track of the reduction variable position. Call
15453         vect_is_simple_reduction with additional parameter. Use original
15454         statement code in reduction epilogue for nested cycle. Call
15455         vect_create_epilog_for_reduction with additional parameter.
15456         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15457         inner-loop vectorization.
15458         (vect_recog_widen_sum_pattern): Likewise.
15459         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15460         and reductions.
15461         (vect_mark_stmts_to_be_vectorized): Likewise.
15462         (vect_get_vec_def_for_operand): Handle nested cycles.
15463
15464 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15465
15466         * doc/invoke.texi (Debugging Options): Fix option index entries
15467         for -fdump-statistics, -frandom-seed add entries for
15468         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15469         (FRV Options): Fix entries for -mTLS, -mtls.
15470         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15471         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15472         (M68hc1x Options): Fix @itemx for -mnominmax.
15473         (MCore Options): Fix entry for -mno-lsim.
15474         (MMIX Options): Fix entry for -mabi=mmixware.
15475         (PDP-11 Options): Fix entry for -mbcopy-builtin.
15476
15477 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
15478
15479         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15480         Mention the plugin mode of gengtype.
15481         * doc/gty.texi (Source Files Containing Type Information): Likewise.
15482         * gengtype.c: Updated copyright.
15483         (plugin_files, nb_plugin_files) Added new static variables.
15484         (measure_input_list) Care about plugin_files.
15485         (write_rtx_next): Added early return in plugin mode.
15486         (create_file): Updated copyright year in generated file. Added
15487         asserts.
15488         (oprintf): Added early return if NULL outf.
15489         (get_output_file_with_visibility): Care of plugin_files.
15490         (get_output_file_name): May return null.
15491         (write_local): Added early return.
15492         (put_mangled_filename): Ditto.
15493         (finish_root_table): Added check for base_files.
15494         (write_roots): Care about null when plugins.
15495         (main): Added plugin mode.
15496
15497 2009-06-15  Ian Lance Taylor  <iant@google.com>
15498
15499         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15500         * gcov.c (read_count_file): Add braces around variables declared
15501         before label.
15502
15503         * c.opt (Wjump-misses-init): New warning.
15504         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15505         -Wall and -Wc++-compat if not already set.
15506         (c_common_post_options): Clear warn_jump_misses_init if it was not
15507         set.
15508         * c-decl.c (struct c_binding): Change type field to a union with
15509         new label field.  Make it the first field in the struct.  Update
15510         references to type to use u.type instead.
15511         (struct c_spot_bindings): Define.
15512         (struct c_goto_bindings): Define.
15513         (c_goto_bindings_p): Define, along with VECs.
15514         (struct c_label_vars): Define.
15515         (struct c_scope): Add has_label_bindings field.
15516         (bind_label, set_spot_bindings): New static functions.
15517         (decl_jump_unsafe, update_spot_bindings): New static functions.
15518         (update_label_decls): New static function.
15519         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
15520         Update binding u.label field to shadowed field.
15521         (c_binding_start_stmt_expr): New function.
15522         (c_binding_end_stmt_expr): New function.
15523         (pushdecl): Don't call c_begin_vm_scope.
15524         (make_label): Add defining and p_label_vars parameters.  Change
15525         all callers.
15526         (lookup_label): Correct test for whether a label has not yet been
15527         defined.  Call bind_label rather than bind.
15528         (warn_about_goto): New static function.
15529         (lookup_label_for_goto): New function.
15530         (declare_label): Call bind_label rather than bind.
15531         (check_earlier_gotos): New static function.
15532         (define_label): Don't give errors about jumping into statement
15533         expressions or scopes of variably modified types.  Call
15534         set_spot_bindings and check_earlier_gotos.  Call bind_label
15535         instead of bind.  Don't set label_context_stack_se or
15536         label_context_stack_vm.
15537         (c_get_switch_bindings): New function.
15538         (c_release_switch_bindings): New function.
15539         (c_check_switch_jump_warnings): New function.
15540         (start_function): Don't set label_context_stack_se or
15541         label_context_stack_vm.
15542         (finish_function): Likewise.
15543         * c-typeck.c (label_context_stack_se): Don't define.
15544         (label_context_stack_vm): Don't define.
15545         (c_finish_goto_label): Call lookup_label_for_goto rather than
15546         lookup_label.  Don't give errors about jumping into a statement
15547         expression or the scope of a variably modified type.  Don't set
15548         label_context_stack_se or label_context_stack_vm.
15549         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15550         fields.  Add bindings field.
15551         (c_start_case): Don't set deleted fields.  Set bindings field.
15552         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
15553         or blocked_vm.  Call c_check_switch_jump_warnings.
15554         (c_finish_case): Don't test blocked_stmt_expr field.  Call
15555         c_release_switch_bindings.
15556         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15557         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15558         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
15559         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15560         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15561         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
15562         (c_begin_vm_scope, c_end_vm_scope): Don't define.
15563         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15564         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15565         (C_DECL_UNJUMPABLE_VM): Don't define.
15566         (C_DECL_UNDEFINABLE_VM): Don't define.
15567         (struct c_label_list): Don't define.
15568         (struct c_label_context_se): Don't define.
15569         (struct c_label_context_vm): Don't define.
15570         (struct c_spot_bindings): Declare.
15571         (c_bindings_start_stmt_expr): Declare.
15572         (c_bindings_end_stmt_expr): Declare.
15573         (lookup_label_for_goto): Declare.
15574         (c_get_switch_bindings, c_release_switch_bindings): Declare.
15575         (c_check_switch_jump_warnings): Declare.
15576         (label_context_stack_se, label_context_stack_vm): Don't declare.
15577         (c_finish_goto_label): Update declaration.
15578         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15579         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15580         (Warning Options): Document -Wjump-misses-init.
15581
15582 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
15583
15584         * tree-object-size.c (addr_object_size): Fix a pasto in the last
15585         change.
15586
15587 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15588
15589         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15590
15591 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15592
15593         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15594
15595 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15596
15597         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15598
15599 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15600
15601         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15602         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15603         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15604         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15605         * dwarf2asm.c (dw2_force_const_mem): Update call to
15606         make_decl_one_only.
15607         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15608         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15609         * langhooks.c (lhd_comdat_group): Remove.
15610         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15611         * tree.h (DECL_COMDAT_GROUP): New.
15612         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15613         (tree_decl_with_vis): Add comdat_group. Remove one_only.
15614         (make_decl_one_only): Change signature.
15615         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15616         make_decl_one_only.
15617         (make_decl_one_only): Change signature.
15618         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15619
15620 2009-06-15  Richard Guenther  <rguenther@suse.de>
15621
15622         PR middle-end/40439
15623         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15624
15625 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15626
15627         * tree-ssa-math-opts.c: Remove extra divide.
15628
15629 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15630
15631         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15632
15633 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15634
15635         * passes.c: Add bswap pass.
15636         * tree-pass.h: Add pass_optimize_bswap declaration.
15637         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15638         Include rtl.h, expr.h and optabs.h for optab_handler check.
15639         (struct symbolic_number, pass_optimize_bswap): New definition.
15640         (do_shift_rotate, verify_symbolic_number_p): New functions.
15641         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15642         (gate_optimize_bswap): New function.
15643         * tree.c (widest_int_cst_value): New function.
15644         * tree.h (widest_int_cst_value): Prototype added.
15645
15646 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
15647
15648         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15649         REG_EQUAL/REG_EQUIV notes.
15650
15651 2009-06-14  Richard Guenther  <rguenther@suse.de>
15652
15653         PR middle-end/40389
15654         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15655         has its address taken if NRV was applied and it is addressable.
15656         * tree-ssa-structalias.c (get_constraint_for_address_of): New
15657         function split out from ...
15658         (get_constraint_for_1): ... here.
15659         (handle_rhs_call): Use it to mark the return slot escaped if
15660         it is addressable and NRV was applied.
15661
15662 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15663
15664         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15665         Change first argument type to location_t.
15666         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15667         Do not set input_location.
15668         Use loc instead of input_location throughout.
15669
15670 2009-06-13  Richard Guenther  <rguenther@suse.de>
15671
15672         PR tree-optimization/40421
15673         * tree-predcom.c (should_unroll_loop_p): Remove.
15674         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15675
15676 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15677
15678         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15679         Add location argument.
15680
15681 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15682
15683         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15684         build_decl.
15685         * config/s390/s390.c (s390_build_builtin_va_list): Same.
15686         (s390_gimplify_va_arg): Pass location to create_artificial_label.
15687         * config/spu/spu-protos.h: Add location to
15688         spu_resolve_overloaded_builtin.
15689         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15690         spu_build_builtin_va_list.
15691         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15692         argument.  Pass location to build_function_call_vec.
15693         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15694         build_decl.
15695         (emit_fpu_switch): Same.
15696         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15697         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15698         to build_decl and create_artificial_label.
15699         (xtensa_gimplify_va_arg_expr): Same.
15700         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15701         (xstormy16_gimplify_va_arg_expr): Same.
15702         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15703         * config/arm/arm.c (arm_build_builtin_va_list): Same.
15704         * config/mips/mips.c (mips_build_builtin_va_list): Same.
15705         (mips16_build_function_stub): Same.
15706         (mips16_build_call_stub): Same.
15707
15708 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
15709
15710         PR target/40327
15711         * arm/constraints.md (Pa, Pb): New constraints.
15712         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
15713         split pattern to deal with them.
15714
15715 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
15716
15717         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15718         fix index entry for -Xpreprocessor.
15719
15720 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15721
15722         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15723         Add location argument to build_decl call.
15724         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15725         (rs6000_init_builtins): Same.
15726         (spe_init_builtins): Same.
15727         (rs6000_gimplify_va_arg): Add location argument to
15728         create_artificial_label call.
15729
15730 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
15731
15732         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15733         * combine-stack-adj.c (pass_stack_adjustments): Use it.
15734         * Makefile.in: Fix GGC dependency for gcse.o.
15735
15736 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15737
15738         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15739         * gimple-pretty-print.c (dump_gimple_stmt): Same.
15740         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15741         created.
15742         * c-parser.c (c_parser_binary_expression): Use current column while
15743         building binary operations.
15744         * common.opt (fshow-column): Enable by default.
15745         * tree-vrp.c (check_array_ref): Use warning_at.
15746         (check_array_bounds): Use location from call back if expr has no
15747         location.
15748         * tree.h: Add location argument to maybe_fold_*.
15749         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15750         (maybe_fold_offset_to_array_ref): Add location argument and use it.
15751         (maybe_fold_offset_to_component_ref): Same.
15752         (maybe_fold_offset_to_reference): Same.
15753         (maybe_fold_offset_to_address): Same.
15754         (maybe_fold_stmt_indirect): Same.
15755         (maybe_fold_stmt_addition): Same.
15756         (fold_stmt_r): Pass location to maybe_fold_*.
15757         (fold_gimple_assign): Same.
15758         * c-tree.h: Add location argument to finish_decl,
15759         default_function_array_conversion, store_init_value.
15760         * c-decl.c (define_label): Use error_at.
15761         (c_make_fname_decl): Pass location to finish_decl.
15762         (finish_decl): New location argument.
15763         (build_compound_literal): Pass location to store_init_value.
15764         (grokdeclarator): Pass location to finish_decl.
15765         (grokfield): Same.
15766         * c-typeck.c (array_to_pointer_conversion): New location argument.
15767         (function_to_pointer_conversion): Same.
15768         (default_function_array_conversion): Same.
15769         (parser_build_unary_op): Pass location to overflow_warning.
15770         (parser_build_binary_op): Same.  Use warning_at.
15771         (build_unary_op): Pass location to array_to_pointer_conversion.
15772         (build_c_cast): Pass location to digest_init.
15773         (build_modify_expr): New location argument.
15774         (convert_for_assignment): Same.
15775         (store_init_value): Same.
15776         (digest_init): Same.
15777         (output_init_element): Pass location to digest_init and
15778         array_to_pointer_conversion.
15779         (c_finish_return): Pass location to convert_for_assignment.
15780         * gimplify.c (gimplify_conversion): Pass location to
15781         maybe_fold_offset_to_address.
15782         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15783         to maybe_fold_stmt_addition.
15784         * c-omp.c (c_finish_omp_atomic): Pass new location to
15785         build_modify_expr.
15786         (c_finish_omp_for): Same.
15787         * c-common.c (overflow_warning): New argument.
15788         * c-common.h: New argument to build_modify_expr, overflow_warning.
15789         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15790         finish_decl.
15791         (c_parser_initializer): Pass location to
15792         default_function_array_conversion.
15793         (c_parser_initelt): Same.
15794         (c_parser_initval): Same.
15795         (c_parser_asm_operands): Same.
15796         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
15797         (c_parser_conditional_expression): Same.
15798         (c_parser_binary_expression): Add location info to stack.  Use it.
15799         (c_parser_unary_expression): Pass location to
15800         default_function_array_conversion, parser_build_unary_op,
15801         build_indirect_ref, c_parser_postfix_expression_after_primary.
15802         (c_parser_postfix_expression_after_primary): New location argument.
15803         Use it.
15804         (c_parser_expression_conv): Pass location to
15805         default_function_array_conversion.
15806         (c_parser_expr_list): Same.
15807         (c_parser_omp_atomic): Same.
15808         (c_parser_omp_for_loop): Same.
15809         * c-tree.h (struct c_declarator): Add comment to id_loc.
15810         (build_array_declarator): New argument.
15811         * c-decl.c (build_array_declarator): Add location argument.
15812         (grokdeclarator): Set id_loc for cdk_array.
15813         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15814         build_array_declarator.
15815         * tree.c (build_omp_clause): Add location argument.
15816         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15817         (OMP_CLAUSE_LOCATION): New macro.
15818         (struct tree_omp_clause): Add location field.
15819         (build_omp_clause): Add argument.
15820         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15821         build_omp_clause.
15822         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15823         (cp_parser_omp_clause_collapse): Same.
15824         (cp_parser_omp_clause_default): Same.
15825         (cp_parser_omp_clause_if): Same.
15826         (cp_parser_omp_clause_nowait): Same.
15827         (cp_parser_omp_clause_num_threads): Same.
15828         (cp_parser_omp_clause_ordered): Same.
15829         (cp_parser_omp_clause_schedule): Same.
15830         (cp_parser_omp_clause_untied): Same.
15831         (cp_parser_omp_for_loop): Same.
15832         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15833         * c-tree.h (c_start_case): Add location argument.
15834         (c_process_expr_stmt): Same.
15835         (c_finish_goto_*): Same.
15836         * tree-parloops.c (initialize_reductions): Pass location to
15837         build_omp_clause.
15838         (create_parallel_loop): Same.
15839         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15840         (gfc_trans_omp_reduction_list): Same.
15841         (gfc_trans_omp_clauses): Same.
15842         (gfc_trans_omp_do): Same.
15843         * c-typeck.c (c_finish_goto_label): Same.
15844         (c_finish_goto_ptr): New location argument.
15845         (c_start_case): Same.
15846         (emit_side_effect_warnings): Same.
15847         (c_process_expr_stmt): Same.
15848         (c_finish_stmt_expr): Same.
15849         (c_finish_omp_clauses): Use error_at instead of error.
15850         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15851         build_omp_clause.
15852         * c-omp.c (c_split_parallel_clauses): New location argument.
15853         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15854         to build_omp_clause.
15855         (convert_local_reference_stmt): Same.
15856         (convert_gimple_call): Same.
15857         * c-common.h (c_split_parallel_clauses): New argument.
15858         * c-parser.c (c_parser_statement_after_labels): Pass location to
15859         c_finish_goto_label.
15860         (c_parser_switch_statement): Pass location to c_start_case.
15861         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15862         and c_process_expr_stmt.
15863         (c_parser_omp_variable_list): Add location argument.
15864         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15865         (c_parser_omp_clause_default): Same.
15866         (c_parser_omp_clause_if): Same.
15867         (c_parser_omp_clause_num_threads): Same.
15868         (-c_parser_omp_clause_ordered): Same.
15869         (c_parser_omp_clause_reduction): Pass location to
15870         c_parser_omp_variable_list.
15871         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15872         (c_parser_omp_clause_untied): Same.
15873         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15874         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15875
15876         * c-tree.h (check_for_loop_decls, undeclared_variable,
15877         build_component_ref, build_array_ref, build_external_ref,
15878         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15879         build_conditional_expr, build_compound_expr, c_cast_expr,
15880         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15881         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15882         argument.
15883         * c-semantics.c (build_stmt): Same.
15884         (build_case_label): Same.
15885         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15886         (undeclared_variable): New argument.
15887         (make_label): Same.
15888         (lookup_label): Pass location on down.
15889         (define_label): Same.
15890         (finish_decl): Same.
15891         (build_compound_literal): Same.
15892         (finish_struct): Same.
15893         (finish_function): Do not set location here.
15894         (check_for_loop_decls): New argument.
15895         * tree.c (save_expr): Set location.
15896         (build_empty_stmt): New argument.
15897         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15898         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15899         * builtins.c (gimplify_va_arg_expr): Use locations.
15900         (expand_builtin_sync_operation): Same.
15901         * c-typeck.c (build_component_ref): New argument.
15902         (build_array_ref): Same.
15903         (build_external_ref): Same.
15904         (c_expr_sizeof_expr): Same.
15905         (c_expr_sizeof_type): Same.
15906         (parser_build_unary_op): Same.
15907         (build_conditional_expr): Same.
15908         (build_compound_expr): Pass location on down.
15909         (build_compound_expr): New argument.
15910         (build_c_cast): Same.
15911         (c_cast_expr): Same.
15912         (build_asm_expr): Same.
15913         (c_finish_return): Same.
15914         (c_process_expr_stmt): Pass location on down.
15915         (c_finish_stmt_expr): New argument.
15916         (push_clenaup): Same.
15917         (c_finish_omp_parallel): Same.
15918         (c_finish_omp_task): Same.
15919         * gimplify.c (gimplify_call_expr): Pass location on down.
15920         * c-omp.c (c_finish_omp_master): New argument.
15921         (c_finish_omp_critical): Same.
15922         (c_finish_omp_ordered): Same.
15923         (c_finish_omp_barrier): Same.
15924         (-c_finish_omp_taskwait): Same.
15925         (c_finish_omp_atomic): Same.
15926         (c_finish_omp_flush): Same.
15927         * tree-inline.c (copy_tree_body_r): Pass location on down.
15928         (inline_forbidden_p): Remove use of input_location.
15929         * c-gimplify.c (c_build_bind_expr): New argument.
15930         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15931         (c_sizeof_or_alignof_type): New argument.
15932         (c_alignof_expr): Same.
15933         (build_va_arg): Same.
15934         (c_add_case_label): Same.
15935         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15936         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15937         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15938         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15939         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15940         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15941         New argument.
15942         * stub-objc.c (objc_build_selector_expr): Same.
15943         (objc_build_throw_stmt): Same.
15944         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15945         (c_parser_initelt): Same.
15946         (c_parser_compound_statement): Same.
15947         (c_parser_compound_statement_nostart): Same.
15948         (c_parser_label): Same.
15949         (c_parser_statement_after_labels): Same.
15950         (c_parser_if_body): Same.
15951         (c_parser_else_body): Same.
15952         (c_parser_if_statement): Same.
15953         (c_parser_switch_statement): Same.
15954         (c_parser_while_statement): Same.
15955         (c_parser_do_statement): Same.
15956         (c_parser_for_statement): Same.
15957         (c_parser_asm_statement): Same.
15958         (c_parser_conditional_expression): Same.
15959         (c_parser_binary_expression): Same.
15960         (c_parser_cast_expression): Same.
15961         (c_parser_unary_expression): Same.
15962         (c_parser_sizeof_expression): Same.
15963         (c_parser_alignof_expression): Same.
15964         (c_parser_postfix_expression): Same.
15965         (c_parser_expression): Same.
15966         (c_parser_objc_receiver): Same.
15967         (c_parser_omp_variable_list): Same.
15968         (c_parser_omp_structured_block): Same.
15969         (c_parser_omp_atomic): New argument.
15970         (c_parser_omp_barrier): Same.
15971         (c_parser_omp_critical): Same.
15972         (c_parser_omp_flush): Pass location on down.
15973         (c_parser_omp_for_loop): New argument.
15974         (c_parser_omp_for): Same.
15975         (c_parser_omp_master): Same.
15976         (c_parser_omp_ordered): Same.
15977         (c_parser_omp_sections_scope): Same.
15978         (c_parser_omp_sections): Same.
15979         (c_parser_omp_parallel): Same.
15980         (c_parser_omp_single): Same.
15981         (c_parser_omp_task): Same.
15982         (c_parser_omp_taskwait): Pass location on down.
15983         (c_parser_omp_construct): Same.
15984         (c_parser_omp_threadprivate): Same.
15985         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15986         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15987         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15988         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15989         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15990         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15991         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15992         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15993         config/i386/i386.c, stmt.c:
15994         Add location argument to the following function definitions and/or
15995         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15996         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15997         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15998         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15999         do_case, c_finish_bc_stmt, build_compound_literal,
16000         build_function_call.
16001         * c-decl.c (build_compound_literal): Add location argument.
16002         Make all diagnostic calls use location.
16003         (start_struct): Same.
16004         (finish_struct): Same.
16005         (start_enum): Same.
16006         (build_enumerator): Same.
16007         (start_function): Same.
16008         (grokdeclarator): Make all diagnostic calls use location.
16009         (store_parm_decls_oldstyle): Same.
16010         * c-typeck.c (build_function_call): Add location argument.
16011         Make all diagnostic calls use location.
16012         (do_case): Same.
16013         (c_finish_bc_stmt): Same.
16014         * tree-nested.c (get_trampoline_type): Add argument.
16015         Pass location to build_decl.
16016         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
16017         * rtl.h (RTL_LOCATION): New.
16018         * c-common.c (c_add_case_label): Add location argument.
16019         Make all diagnostic calls use location.
16020         * c-common.h: Add location argument to make_fname_decl, do_case,
16021         c_add_case_label, build_function_call, resolve_overloaded_builtin.
16022         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
16023         Set it appropriately for every case.  Pass enum_loc to start_enum
16024         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
16025         parser_xref_tag.
16026         (c_parser_struct_or_union_specifier): Save location.  Use it for
16027         start_struct, finish_struct, and parser_xref_tag.
16028
16029 2009-06-12  Ian Lance Taylor  <iant@google.com>
16030
16031         * fold-const.c (fold_unary): Rename local variable and to and_expr.
16032
16033         * c-opts.c (c_common_handle_option): For -Wc++-compat set
16034         cpp_opts->warn_cxx_operator_names.
16035
16036 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16037
16038         PR tree-opt/38865
16039         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
16040         is returns NULL and OP is a VCE, look through the VCE.
16041
16042 2009-06-12  Ian Lance Taylor  <iant@google.com>
16043
16044         PR bootstrap/40430
16045         * collect2.c (main): Use CONST_CAST2 in code inside #if
16046         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
16047
16048 2009-06-12  Joey Ye  <joey.ye@intel.com>
16049
16050         PR middle-end/39146
16051         * cfgexpand.c (get_decl_align_unit): Update
16052         max_used_stack_slot_alignment with align instead of
16053         stack_alignment_needed.
16054
16055         * function.c (assign_stack_local_1): Update
16056         max_used_stack_slot_alignment with alignment_in_bits instead
16057         of stack_alignment_needed.
16058         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
16059         here.
16060
16061 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
16062
16063         * dwarf2out.c (last_var_location_insn): New variable.
16064         (dwarf2out_end_epilogue): Clear last_var_location_insn.
16065         (dwarf2out_var_location): Don't record anything after last real
16066         insn.  Only change labels if there were any real instructions
16067         in between last note and this one, or if changed sections.
16068
16069 2009-06-11  Richard Henderson  <rth@redhat.com>
16070
16071         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
16072         note when storing the frame pointer in a register.
16073         (FRP): Don't redefine to nothing for epilogue.
16074         (alpha_expand_epilogue): Mark register and sp restores.
16075         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
16076
16077         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
16078         when gen_lowpart is needed.
16079
16080 2009-06-11  Richard Henderson  <rth@redhat.com>
16081
16082         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
16083
16084         * dwarf2out.c (need_data_align_sf_opcode): New.
16085         (div_data_align): Move earlier.
16086         (def_cfa_1, reg_save): Use it.
16087
16088 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
16089
16090         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
16091         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
16092         (ix86_handle_option): Handle OPT_mcrc32.
16093         (ix86_target_string): Add -mcrc32.
16094         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
16095
16096         * config/i386/i386.h (TARGET_CRC32): New.
16097
16098         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
16099         (sse4_2_crc32di): Likewise.
16100
16101         * config/i386/i386.opt (mcrc32): New.
16102
16103         * doc/invoke.texi: Document -mcrc32.
16104
16105 2009-06-11  Richard Henderson  <rth@redhat.com>
16106
16107         * common.opt (gdwarf-): Accept a version number.
16108         * doc/invoke.texi (gdwarf-): Update docs.
16109         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
16110         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
16111         version level, and record it.
16112
16113         * dwarf2.h (DW_CIE_VERSION): Remove.
16114         * dwarf2out.c (DWARF_VERSION): Remove.
16115         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
16116         (output_call_frame_info): Use CIE version 3 for dwarf3,
16117         or if the return register column is out of range for version 1.
16118         (dwarf_stack_op_name): Add all dwarf3 values.
16119         (DEBUG_PUBTYPES_SECTION): New.
16120         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
16121         encoding change for dwarf3.
16122         (output_die) [dw_val_class_die_ref]: Likewise.
16123         (output_compilation_unit_header): Emit correct version for dwarf3.
16124         (output_line_info): Likewise.
16125         (output_pubnames): Update for DWARF_VERSION removal.
16126         (output_aranges): Likewise.
16127         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
16128         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
16129         (dwarf2out_finish): Likewise.
16130
16131 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
16132
16133         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
16134         in r148403.
16135
16136 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
16137
16138         PR c/39252
16139         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
16140         * builtins.c (expand_builtin_unreachable): New function.
16141         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
16142         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
16143         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
16144         successors.
16145         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
16146         searching for missing barriers.
16147
16148 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16149
16150         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
16151         when -fprofile-generate* was passed.
16152         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
16153
16154 2009-06-11  Anthony Green  <green@moxielogic.com>
16155
16156         * config/moxie/moxie.md: Define length attribute for all instructions.
16157         (rCC): Define.
16158         (*b<cond:code>): Support limited branch ranges for new PC-relative
16159         branch instructions.
16160         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
16161
16162 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
16163
16164         * config/i386/i386.c (min_insn_size): Use get_attr_length
16165         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
16166         For __asm return 0.
16167
16168         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
16169         instead of emit_insn_before.
16170
16171 2009-06-10  Ian Lance Taylor  <iant@google.com>
16172
16173         PR bootstrap/40408
16174         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
16175         GIMPLE_SWITCH.
16176
16177 2009-06-10  Revital Eres  <eres@il.ibm.com>
16178
16179         * passes.c (init_optimization_passes): Reschedule
16180         predictive-commoning pass before complete unroll pass.
16181
16182 2009-06-10  Martin Jambor  <mjambor@suse.cz>
16183
16184         * cgraph.c (cgraph_node_can_be_local_p): New function.
16185         (cgraph_make_node_local): New function.
16186         * cgraph.h (cgraph_node_can_be_local_p): Declare.
16187         (cgraph_make_node_local): Declare.
16188
16189 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
16190
16191         * tree.h (tree_base): Add packed_flag and user_align fields.
16192         Decrease size of spare field.
16193         (TYPE_USER_ALIGN): Use user_align from tree_base.
16194         (DECL_USER_ALIGN): Likewise.
16195         (TYPE_PACKED): Use packed_flag from tree_base.
16196         (DECL_PACKED): Likewise.
16197         (tree_type): Delete packed_flag and user_align fields.  Widen
16198         precision field.  Widen mode field and shuffle fields to align
16199         mode on an 8-bit boundary.
16200         (tree_decl_common): Delete decl_flag_1 and user_align fields.
16201         Renumber decl_flag_* fields.  Fix comments.  Widen
16202         decl_common_unused field.
16203         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
16204         (DECL_EXTERNAL): Likewise.
16205         (DECL_BIT_FIELD): Likewise.
16206         (DECL_NONADDRESSABLE_P): Likewise.
16207         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
16208         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
16209
16210 2009-06-10  Ian Lance Taylor  <iant@google.com>
16211
16212         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
16213         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
16214         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
16215         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
16216         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
16217         DEF_VEC_ALLOC_FUNC_P.
16218         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
16219         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
16220         DEF_VEC_ALLOC_FUNC_O.
16221         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
16222         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
16223         DEF_VEC_ALLOC_FUNC_I.
16224         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
16225         (vec_stack_p_reserve_exact_1): Declare.
16226         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
16227         (vec_stack_free): Declare.
16228         (VEC_stack_alloc): Define.
16229         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
16230         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
16231         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
16232         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
16233         for void_p.
16234         (stack_vecs): New static variable.
16235         (vec_stack_p_reserve_exact_1): New function.
16236         (vec_stack_o_reserve_1): New static function.
16237         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
16238         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
16239         (vec_stack_free): New function.
16240         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
16241         (VEC_df_ref_stack_alloc): Define.
16242         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
16243         DEF_VEC_ALLOC_P_STACK.
16244         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
16245         (struct df_collection_rec): Change _vec fields to VEC.  Remove
16246         _use fields.
16247         (df_free_collection_rec): Adjust for new fields.
16248         (df_insn_rescan): Use new df_collection_rec fields.
16249         (df_notes_rescan, df_canonize_collection_rec): Likewise.
16250         (df_ref_create_structure, df_ref_record): Likewise.
16251         (df_get_conditional_uses, df_get_call_refs): Likewise.
16252         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
16253         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
16254         (df_record_exit_block_uses, df_bb_verify): Likewise.
16255         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
16256         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
16257         Remove count parameter.  Change return type to void.  Change all
16258         callers.
16259         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
16260         Remove count parameter.  Change return type to void.  Change all
16261         callers.
16262         (df_install_refs): Change old_vec parameter to VEC.  Remove count
16263         parameter.  Change all callers.
16264         (df_install_mws): Change old_vec parameter to VEC.  Remove count
16265         parameter.  Change all callers.
16266         (df_refs_verify): Change new_rec parameter to VEC.  Change call
16267         callers.
16268         (df_mws_verify): Likewise.
16269
16270 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
16271
16272         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
16273
16274 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
16275
16276         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
16277
16278 2009-06-10  Anthony Green  <green@moxielogic.com>
16279
16280         * config/moxie/crti.asm: New file.
16281         * config/moxie/crtn.asm: New file.
16282         * config/moxie/moxie.c: New file.
16283         * config/moxie/moxie.h: New file.
16284         * config/moxie/sfp-machine.h: New file.
16285         * config/moxie/moxie-protos.h: New file.
16286         * config/moxie/t-moxie: Created.
16287         * config/moxie/t-moxie-softfp: Created.
16288         * config/moxie/moxie.md: Created.
16289         * config/moxie/constraints.md: Created.
16290         * config.gcc: Add moxie support.
16291         * doc/md.texi (Machine Constraints): Add moxie constraints.
16292         * doc/contrib.texi (Contributors): Mention moxie port.
16293         * doc/install.texi (Specific): Mention the moxie port.
16294
16295 2009-06-09  Ian Lance Taylor  <iant@google.com>
16296
16297         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
16298         compiling with C++.
16299         * optabs.c (optab_table): Only use designated initializers if
16300         HAVE_DESIGNATED_INITIALIZERS is defined.
16301         (convert_optab_table): Likewise.
16302         (init_optabs): Always call init_insn_codes if
16303         HAVE_DESIGNATED_INITIALIZERS is not defined.
16304
16305 2009-06-09  Ian Lance Taylor  <iant@google.com>
16306
16307         * targhooks.c (default_builtin_vectorized_function): Change fn
16308         parameter to unsigned int.
16309         (default_builtin_vectorized_conversion): Change code parameter to
16310         unsigned int.
16311         (default_builtin_reciprocal): Change fn parameter to unsigned int.
16312         * targhooks.h: Update declarations.
16313         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
16314         parameter to unsigned int.
16315
16316         * c-typeck.c (comptypes_check_enum_int): New static function.
16317         (comptypes_internal): Add enum_and_int_p parameter.  Change all
16318         callers.
16319         (comp_target_types): Add location parameter.  Change all callers.
16320         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
16321         Change all callers.
16322         (function_types_compatible_p, type_lists_compatible_p): Likewise.
16323         (build_conditional_expr): Add colon_loc parameter.  Change all
16324         callers.
16325         (convert_for_assignment): Add location parameter.  Change all callers.
16326         * c-parser.c (c_parser_conditional_expression): Pass location of
16327         colon to build_conditional_expr.
16328         * c-tree.h (build_conditional_expr): Update declaration.
16329
16330 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16331
16332         * graphite.c: Revert previous patch.
16333
16334 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16335
16336         PR bootstrap/40103
16337         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
16338
16339 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16340
16341         * tree-ssa-loop-prefetch.c
16342         (loop_prefetch_arrays): Fixed a portability problem in printf format
16343         string.
16344
16345 2009-06-09  Martin Jambor  <mjambor@suse.cz>
16346
16347         PR tree-optimization/40351
16348         * tree-sra.c (propagate_subacesses_accross_link): Check that a
16349         refrence to a potential artifical subaccess can be constructed.
16350
16351 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16352
16353         * config/sh/sh-protos.h (sh_optimization_options): Declare.
16354         (sh_override_options): Likewise.
16355         * config/sh/sh.c: Include params.h.
16356         (sh_optimization_options): New.
16357         (sh_override_options): Likewise.
16358         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
16359         (OVERRIDE_OPTIONS): Use sh_override_options.
16360
16361 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
16362
16363         * dwarf2out.c (emit_cfa_remember): New variable.
16364         (add_fde_cfi): If emit_cfa_remember, recurse to add
16365         DW_CFA_remember_state first.
16366         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
16367         instead just set emit_cfa_remember.
16368
16369 2009-06-08  Jan Hubicka  <jh@suse.cz>
16370
16371         PR debug/40126
16372         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
16373
16374 2009-06-08  Jan Hubicka  <jh@suse.cz>
16375
16376         PR middle-end/39834
16377         * cgraphunit.c (save_inline_function_body): Do not copy transform
16378         hooks for saved inline bodies.
16379         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
16380         for given function.
16381
16382 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
16383
16384         * jump.c (returnjump_p): Handle delayed branches.  Add missing
16385         function comment.
16386
16387 2009-06-08  Jan Hubicka  <jh@suse.cz>
16388
16389         PR middle-end/40102
16390         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
16391         original node might've been modified.
16392         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
16393
16394 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
16395
16396         * tree-object-size.c (addr_object_size): Add OSI argument.
16397         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
16398         (compute_builtin_object_size, expr_object_size): Adjust callers.
16399         (plus_stmt_object_size): Call addr_object_size instead of
16400         compute_builtin_object_size.
16401
16402 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16403             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16404
16405         * tree-ssa-loop-prefetch.c
16406         (gather_memory_references): Introduced a counter for the number of
16407         memory references.
16408         (anything_to_prefetch_p): Introduced a counter for the number of
16409         prefetches.
16410         (is_loop_prefetching_profitable): New function with a cost model
16411         for prefetching.
16412         (loop_prefetch_arrays): Use the new cost model to determine if
16413         prefetching is profitable.
16414         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
16415         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16416         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
16417         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16418         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
16419         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16420
16421 2009-06-08  Michael Matz  <matz@suse.de>
16422
16423         PR debug/40012
16424         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
16425         partitions use the same.
16426         (expand_one_var): Deal with DECL_RTL sometimes begin set also
16427         for basevars of SSA_NAMEs.
16428         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
16429         to not expand them twice.
16430         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16431         multiple places.
16432
16433 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
16434
16435         * common.opt (fcompare-debug=, fcompare-debug-second): New.
16436         (fdump-final-insns=, gtoggle): New.
16437         * doc/invoke.texi: Document them.
16438         * final.c (rest_of_clean_state): Dump final insn stream.
16439         * gcc.c (invoke_as): Hook in -fcompare-debug.
16440         (static_spec_functions): Add compare-debug-dump-opt,
16441         compare-debug-self-opt and compare-debug-auxbase-opt.
16442         (compare_debug, compare_debug_second, compare_debug_opt): New.
16443         (switches_debug_check, n_switches_debug_check): New.
16444         (debug_auxbase_opt, debug_check_temp_file): New.
16445         (process_command): Handle -fno-compare-debug, -fcompare-debug and
16446         -fcompare-debug=*.
16447         (do_self_spec): Handle arguments after switches.
16448         (do_spec_1): Add .gk extension to temp file basenames for compare.
16449         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16450         (cc1_options): Use it instead of normal auxbase computation for
16451         the second compare-debug compilation.
16452         (compare_files): New.
16453         (main): Set up and implement compare debug mode.
16454         (compare_debug_dump_opt_spec_function): New.
16455         (compare_debug_self_opt_spec_function): New.
16456         (compare_debug_auxbase_opt_spec_function): New.
16457         * toplev.c (process_options): Handle flag_gtoggle,
16458         flag_dump_final_insns.
16459         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16460         during -fcompare-debug-second compilation.
16461
16462 2009-06-07  Ian Lance Taylor  <iant@google.com>
16463
16464         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16465         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16466
16467         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16468         with no default node.  Change warning with %H to warning_at.
16469         Don't clear warn_switch around case checking.
16470         * doc/invoke.texi (Warning Options): Clarify distinction between
16471         -Wswitch and -Wswitch-enum.
16472
16473 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16474
16475         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16476
16477 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16478
16479         * gbl-ctors.h: Add header guard.
16480
16481 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16482
16483         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16484         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16485         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16486         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16487         prototypes for removed functions.
16488         (expressions_equal_p): Move to ...
16489         * tree-ssa-sccvn.h: ... here and ...
16490         * matrix-reorg.c: ... adjust includes.
16491
16492 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16493
16494         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16495
16496 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16497
16498         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16499         (finish_function): Remove erroneous whitespace.
16500
16501 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16502
16503         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16504         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16505
16506 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16507
16508         * errors.c (internal_error): Commentary typo fix.
16509         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16510         * tree-ssa-pre.c: Ditto.
16511
16512 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16513
16514         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16515         them is supposed to hold actual statements.
16516
16517 2009-06-06  Ian Lance Taylor  <iant@google.com>
16518
16519         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16520         empty statements can now have attributes.
16521
16522 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
16523
16524         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16525         * config/mips/mips.md: Ditto.
16526
16527 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16528
16529         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16530         _RELOCATABLE.
16531         (__eabi_uconvert): Likewise.
16532
16533 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16534
16535         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16536         CFI_* definitions with IN_GCC.
16537
16538 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
16539
16540         * xcoffout.h (xcoffout_source_line): Update prototype.
16541
16542 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16543
16544         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16545         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16546
16547 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16548
16549         PR middle-end/40340
16550         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16551         inlined_function_outer_scope_p blocks for artificial inlines
16552         even at -g0/-g1.
16553         * tree.c (tree_nonartificial_location): Rewrite using
16554         block_nonartificial_location.
16555
16556 2009-06-05  Revital Eres  <eres@il.ibm.com>
16557             Leehod Baruch  <leehod@il.ibm.com>
16558
16559         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16560         (expand_expr_real_1): Remove comment.
16561         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16562         Vectorize misaligned access when the target supports it.
16563         (vect_supportable_dr_alignment): Check for unaligned access support.
16564         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16565         and remove asset.
16566
16567 2009-06-05  Julian Brown  <julian@codesourcery.com>
16568
16569         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16570         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16571
16572 2009-06-05  Richard Guenther  <rguenther@suse.de>
16573
16574         PR bootstrap/40350
16575         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16576         as possibly unused.
16577
16578 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16579
16580         * config/s390/s390.c (global_not_special_regno_p): New static inline.
16581         (save_gprs): Don't tell unwinder when a global register is saved.
16582         (s390_emit_epilogue): Emit needed epilogue unwind info.
16583
16584 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16585
16586         * dwarf2out.c (deferred_asm_name): New.
16587         (add_name_and_src_coords_attributes): Defer creation of
16588         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16589         computed yet.
16590         (move_linkage_attr): New.
16591         (dwarf2out_finish): Revisit deferrals and emit attributes at the
16592         right place.
16593
16594 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16595
16596         * tree-nested.c (finalize_nesting_tree_1): Declare the
16597         frame_decl in the binding tree.
16598
16599 2009-06-04  Cary Coutant  <ccoutant@google.com>
16600
16601         * basic-block.h (struct basic_block_def): Add discriminator field.
16602         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
16603         callers.
16604         * debug.c (do_nothing_debug_hooks): Add additional entry.
16605         (debug_nothing_int_charstar_int): New function.
16606         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16607         (debug_nothing_int_charstar_int): New declaration.
16608         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
16609         discriminator value in .loc directive.
16610         * final.c (last_discriminator): New variable.
16611         (discriminator): New variable.
16612         (final_start_function): Initialize above variables, pass current
16613         discriminator to debug hook.
16614         (notice_source_line): Check for discriminator change.
16615         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16616         * sdbout.c (sdbout_source_line): New parameter.
16617         * tree-cfg.c (struct locus_discrim_map): New structure type.
16618         (discriminator_per_locus): New hash table.
16619         (build_gimple_cfg): Allocate and free discriminator hash table.
16620         (make_edges): Call assign_discriminator.
16621         (locus_map_hash): New function.
16622         (locus_map_eq): New function.
16623         (next_discriminator_for_locus): New function.
16624         (same_line_p): New function.
16625         (assign_discriminator): New function.
16626         (make_cond_expr_edges): Call assign_discriminator.
16627         (make_gimple_switch_edges): Likewise.
16628         (first_non_label_stmt): New function.
16629         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
16630         all callers.
16631         * xcoffout.c (xcoffout_source_line): Add new parameter.
16632
16633         * configure.ac (gcc_cv_as_discriminator): New configury check for
16634         gas support for discriminator.
16635         * configure: Regenerate.
16636         * config.in: Regenerate.
16637
16638 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16639
16640         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16641         val after checking for integers.
16642
16643 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
16644
16645         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16646         X64_REGPARM_MAX.
16647         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16648         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16649         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16650         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16651         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
16652         X64_SSE_REGPARM_MAX.
16653         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16654         X64_SSE_REGPARM_MAX.
16655
16656 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16657
16658         * gcc.c (report_times_to_file): New.
16659         (execute): Implement it.
16660         (process_command): Support -time=.
16661         * doc/invoke.texi: Document it.
16662
16663 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16664
16665         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16666         that have value exprs.
16667
16668 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16669
16670         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16671         declarations for constants until...
16672         (dw2_output_indirect_constant_1): ... this point.
16673
16674 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
16675
16676         PR target/10242
16677         * arm.md (arm_addsi3): Don't try to split an add with an
16678         eliminable register until after reload has completed.
16679
16680 2009-06-03  Ian Lance Taylor  <iant@google.com>
16681
16682         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16683         * genattrtab.c (write_length_unit_log): Likewise.
16684         * genchecksum.c (dosum): Likewise.
16685         * gengtype.c (write_rtx_next): Likewise.
16686         (finish_root_table, write_roots): Likewise.
16687         * gimple.c (gimple_ops_offset_): Likewise.
16688         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16689         * config/arc/arc.c (arc_attribute_table): Likewise.
16690         * config/arm/arm.c (arm_attribute_table): Likewise.
16691         * config/avr/avr.c (avr_attribute_table): Likewise.
16692         * config/crx/crx.c (crx_attribute_table): Likewise.
16693         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16694         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16695         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16696         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16697         * config/sh/sh.c (sh_attribute_table): Likewise.
16698         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16699         * config/spu/spu.c (spu_attribute_table): Likewise.
16700         * config/v850/v850.c (v850_attribute_table): Likewise.
16701
16702         * config/alpha/alpha.c (vms_attribute_table): Make static.
16703         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16704         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16705         * config/mips/mips.c (mips_attribute_table): Likewise.
16706
16707         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16708         $(SYSTEM_H).
16709         (cc1-checksum.o): Likewise.
16710
16711 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
16712
16713         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16714
16715 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
16716
16717         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16718         insn if it is changing sp.  Use gen_add3_insn instead of
16719         conditionally gen_addsi3 and gen_adddi3.
16720         (offset_below_red_zone_p): New static inline function.
16721         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16722         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16723         * config/rs6000/ppc-asm.h: Include auto-host.h.
16724         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16725         CFI_RESTORE): Define.
16726         * config/rs6000/crtresxgpr.asm: Add unwind info.
16727         * config/rs6000/crtresxfpr.asm: Likewise.
16728         * config/rs6000/crtresgpr.asm: Likewise.
16729         * config/rs6000/crtresfpr.asm: Likewise.
16730         * config/rs6000/crtsavgpr.asm: Likewise.
16731         * config/rs6000/crtsavfpr.asm: Likewise.
16732
16733         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16734         argument of DWARF2_FRAME_REG_OUT macros.
16735
16736 2009-06-03  Julian Brown  <julian@codesourcery.com>
16737
16738         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16739         words or less (including TImode) in core registers.
16740
16741 2009-06-03  Richard Guenther  <rguenther@suse.de>
16742
16743         PR middle-end/40328
16744         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16745
16746 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
16747
16748         * statistics.c (statistics_counter_event): Do not record event
16749         in pass dump if its number == -1.
16750         (curr_statistics_hash): Add assert that we never get passes
16751         with static number == -1.
16752
16753 2009-06-03  Richard Guenther  <rguenther@suse.de>
16754             Andrey Belevantsev  <abel@ispras.ru>
16755
16756         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16757         non-BLKmode arrays addressable.
16758
16759 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
16760
16761         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16762         * config/m68k/m68k.h: ... here.
16763
16764 2009-06-03  Martin Jambor  <mjambor@suse.cz>
16765
16766         PR tree-optimization/40323
16767         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16768         assignment.
16769
16770 2009-06-03  Richard Guenther  <rguenther@suse.de>
16771
16772         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16773         consistently.
16774
16775 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
16776
16777         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16778         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16779         JUMP_TABLE_DATA_P where applicable.
16780         * config/sh/sh.c: Ditto.
16781         * config/sh/sh.h: Ditto.
16782         * config/sh/sh.md: Ditto.
16783         * config/sh/symbian.c: Ditto.
16784
16785 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
16786
16787         * config/i386/driver-i386.c (describe_cache): Optimize
16788         concatenation of strings.  Use snprintf instead of sprintf.
16789         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
16790         target when not compiling with GCC.
16791
16792 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16793
16794         * config/sh/sh.c: Revert last change.
16795         (sh_expand_epilogue): Emit a blockage insn before the frame
16796         pointer adjustment unconditionally.
16797
16798 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16799
16800         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16801         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16802         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16803         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16804         to COLLECT_GCC_OPTIONS.
16805
16806 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16807
16808         * collect2.c (target_system_root): New variable.
16809         (main): Handle --sysroot=.
16810         (ignore_library): Strip the sysroot from the library path.
16811
16812 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16813
16814         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16815         (collect2.o): Depend on collect2-aix.h.
16816         (collect2-aix.o): New rule.
16817         * collect2-aix.h: New file.
16818         * collect2-aix.c: Likewise.
16819         * collect2.c: Include collect2-aix.h.  Don't undefine
16820         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16821         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16822         Use TARGET_AIX_VERSION instead of _AIX51.
16823         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16824         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16825         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16826         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16827         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16828
16829 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16830
16831         * collect2.c (ignore_library): Avoid premature post-increment
16832         and null deference.
16833
16834 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16835
16836         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16837         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16838         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16839         CROSS_DIRECTORY_STRUCTURE too.
16840         (LINK_LIBG_SPEC): Likewise.
16841         (LIB_SPEC): Add %R to sysroot paths.
16842         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16843         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16844         * config/rs6000/aix51.h: As for aix43.h.
16845         * config/rs6000/aix52.h: Likewise.
16846         * config/rs6000/aix53.h: Likewise.
16847         * config/rs6000/aix61.h: Likewise.
16848         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16849         to the beginning of sysroot paths.
16850
16851 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16852
16853         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16854         INSN_LISTs that are out of the REG_NOTE range.
16855
16856 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16857
16858         * loop-unroll.c (struct iv_to_split): Add pointer to next.
16859         (struct var_to_expand): Likewise.
16860         (struct opt_info): Add head and tail for linked lists of the above.
16861         (analyze_insn_to_expand_var): Initialize next.
16862         (analyze_iv_to_split_insn): Likewise.
16863         (analyze_insns_in_loop): Create linked lists.
16864         (allocate_basic_variable): Simplify for use without hash table.
16865         (insert_var_expansion_initialization): Likewise, make it type-safer.
16866         (combine_var_copies_in_loop_exit): Likewise.
16867         (apply_opt_in_copies): Walk lists rather than hash tables.
16868         (release_var_copies): Simplified and inlined by hand into...
16869         (free_opt_info): ... this function.
16870
16871 2009-06-02  Richard Guenther  <rguenther@suse.de>
16872
16873         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16874         for field decls.
16875
16876 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16877
16878         * cfgexpand.c (gimple_expand_cfg): Discard the source location
16879         only for builtins that are not overridden.
16880
16881 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16882
16883         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16884         label string.
16885
16886 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16887
16888         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16889
16890 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16891
16892         * combine.c (move_deaths): Compare LUIDs within the same BB only.
16893
16894 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16895
16896         * common.opt (fdump-unnumbered-links): New.
16897         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16898         * print-rtl.c (flag_dump_unnumbered_links): New.
16899         (print_rtx): Test it.
16900
16901 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
16902
16903         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16904         push/pop multiple to 8-byte alignment.
16905
16906 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
16907
16908         * config/i386/i386.c (queued_cfa_restores): New static variable.
16909         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16910         functions.
16911         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16912         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16913         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16914         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16915         note unconditionally.
16916         (ix86_emit_restore_regs_using_mov): Likewise.
16917         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16918         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16919         it through to ix86_emit_restore_reg_using_pop.
16920         (ix86_emit_leave): Add RED_OFFSET argument.  Call
16921         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
16922         instead of adding REG_CFA_OFFSET note unconditionally.
16923         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16924         the above functions.  Call ix86_add_queued_cfa_restore_notes when
16925         needed.
16926
16927         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16928         force output of the label even for dwarf2out_do_cfi_asm.
16929         (add_fde_cfi): If -g2 and above and cfi might change CFA,
16930         force creation of CFI label and chain DW_CFA_set_loc jumping to it
16931         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
16932         caller.
16933         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16934         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16935         dwarf2out_cfi_label callers.
16936         * tree.h (dwarf2out_cfi_label): Adjust prototype.
16937         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16938         Adjust dwarf2out_cfi_label callers.
16939         * config/vax/vax.c (vax_output_function_prologue): Likewise.
16940
16941         * config/i386/i386.h (struct machine_cfa_state,
16942         struct machine_function): Guard with ifndef USED_FOR_TARGET
16943         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16944
16945         PR other/40024
16946         * emutls.c (__emutls_get_address): Change arr->size to mean number
16947         of allocated arr->data entries instead of # of slots + 1.
16948
16949         PR middle-end/40316
16950         * recog.c (peep2_reinit_state): New function.
16951         (peephole2_init_state): Use it at the end of a basic block and also
16952         when seeing a RTX_FRAME_RELATED_P insn.
16953
16954 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
16955
16956         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16957         fixuns_truncrfdi2): New.
16958         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16959         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16960         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16961         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16962         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16963         *recip_approx): Remove.
16964         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16965         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16966         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16967         move to div.md.
16968         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16969         setf_exp_rf): New.
16970
16971 2009-06-01  Ian Lance Taylor  <iant@google.com>
16972
16973         * attribs.c (register_attribute): Use CONST_CAST.
16974         * collect2.c (main): Use CONST_CAST2.
16975         (scan_prog_file): Likewise.
16976         * gcc.c (process_command, main): Likewise.
16977         * toplev.c (toplev_main): Likewise.
16978
16979         * c-typeck.c (handle_warn_cast_qual): New static function,
16980         partially broken out of build_c_cast.
16981         (build_c_cast): Call handle_warn_cast_qual.
16982         * doc/invoke.texi (Warning Options): Document new effect of
16983         -Wcast-qual.
16984
16985 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
16986
16987         * diagnostic.c (diagnostic_build_prefix): Always print columns.
16988         (diagnostic_report_current_module): Print columns.
16989         * common.opt (flag_show_column): Enable by default.
16990
16991 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
16992
16993         * alias.c (find_base_term): Check for NULL term before returning.
16994
16995 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16996
16997         Revert due to PR40320:
16998         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16999         * calls.c (emit_library_call_value_1): Don't force_operand for move
17000         and push insns.
17001
17002 2009-06-01  Olivier Hainque  <hainque@adacore.com>
17003             Eric Botcazou  <ebotcazou@adacore.com>
17004
17005         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
17006         to be processed as a bitfield for constructor output purposes.
17007         * output.h (initializer_constant_valid_for_bitfield_p): Declare
17008         new function.
17009         * varasm.c (oc_local_state): New type, output_constructor
17010         local state to support communication with helpers.
17011         (oc_outer_state): New type, output_constructor outer state of
17012         relevance in recursive calls.
17013         (output_constructor_array_range): New output_constructor helper,
17014         extracted code for an array range element.
17015         (output_constructor_regular_field): New output_constructor helper,
17016         extracted code for an element that is not a bitfield.
17017         (output_constructor_bitfield): New output_constructor helper,
17018         extracted code for a bitfield element.  Accept an OUTER state
17019         argument for recursive processing.  Recurse on record or array
17020         CONSTRUCTOR values, possibly past noop conversions.
17021         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
17022         VALUE is a valid constant-valued expression for use in a static
17023         bit-field initializer.
17024         (output_constructor): Rework to use helpers.  Accept and honor an
17025         OUTER state argument for recursive calls.  Return total size.  Be
17026         prepared for nested constructors initializing bitfields.
17027         (output_constant): Feed OUTER in calls to output_constructor.
17028
17029 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17030
17031         * calls.c (emit_library_call_value_1): Don't force_operand for move
17032         and push insns.
17033
17034 2009-06-01  Nick Clifton  <nickc@redhat.com>
17035
17036         * doc/invoke.texi (IA-64 Options): Fix typo.
17037
17038 2009-06-01  Ira Rosen  <irar@il.ibm.com>
17039
17040         PR tree-optimization/39129
17041         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
17042         printed message.
17043         (vect_do_peeling_for_loop_bound): Use
17044         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17045         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17046         (vect_loop_versioning): Likewise.
17047         (vect_create_cond_for_alias_checks): Fix indentation.
17048         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
17049         macros.
17050         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
17051         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
17052         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
17053         "control flow in loop".
17054         (vect_estimate_min_profitable_iters): Use
17055         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17056         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17057         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17058         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
17059         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
17060         statement belongs to a group of strided accesses with the exact code
17061         check.
17062         (vectorizable_load): Likewise.
17063         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
17064         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17065
17066 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
17067
17068         * config/freebsd-stdint.h: New file.
17069         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
17070         Add freebsd-stdint.h to tm_file.
17071
17072 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
17073
17074         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
17075         (thumb2_extendhidi2): Likewise.
17076
17077 2009-05-31  Ian Lance Taylor  <iant@google.com>
17078
17079         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
17080
17081 2009-05-31  Ian Lance Taylor  <iant@google.com>
17082
17083         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
17084         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
17085         (ipa-reference.o): Depend upon gt-ipa-reference.h.
17086
17087 2009-05-31  Jason Merrill  <jason@redhat.com>
17088
17089         * tree-pretty-print.c (print_call_name): Take the callee, not the
17090         call itself.  Make non-static.  Use dump_function_name for functions.
17091         (dump_generic_node): Adjust.
17092         * diagnostic.h: Declare print_call_name.
17093         * gimple-pretty-print.c (dump_gimple_call): Use it.
17094
17095 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17096
17097         * config/sh/sh.md (ashldi3_std): New define_expand.
17098         (ashldi3): Use it.
17099
17100 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17101
17102         PR target/40313
17103         * config/sh/sh.c: Include debug.h.
17104         (sh_expand_epilogue): Emit a blockage insn before the frame
17105         pointer adjustment also when dwarf2out_do_frame returns true.
17106
17107 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
17108
17109         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
17110         (thumb2_extendqidi2): New pattern.
17111
17112 2009-05-31  Ira Rosen  <irar@il.ibm.com>
17113
17114         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
17115         mark phis for renaming.
17116         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
17117         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
17118         Call mark_sym_for_renaming.
17119         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
17120         * tree-vect-loop.c (vect_transform_loop): Remove
17121         vect_memsyms_to_rename initialization and a call to
17122         mark_set_for_renaming.
17123
17124 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
17125
17126         PR middle-end/40304
17127         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
17128         frame related even if !set_cfa && style < 0.
17129
17130 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
17131
17132         * config/i386/mingw-tls.c: New file.
17133         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
17134         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
17135         defining _WIN32 but not __CYGWIN__.
17136
17137 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17138
17139         * configure.ac: Add MPC support.
17140
17141         * config.in, configure: Regenerate.
17142
17143 2009-05-29  Richard Henderson  <rth@redhat.com>
17144
17145         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
17146         NOTE_INSN_BASIC_BLOCK.
17147         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
17148         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
17149         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
17150         to be deleted.
17151         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
17152         add in_use field.
17153         (add_cfi): Disable check redefining cfa away from drap.
17154         (lookup_cfa_1): Add remember argument; handle remember/restore.
17155         (lookup_cfa): Pass remember argument.
17156         (cfa_remember): New.
17157         (compute_barrier_args_size_1): Remove sibcall check.
17158         (dwarf2out_frame_debug_def_cfa): New.
17159         (dwarf2out_frame_debug_adjust_cfa): New.
17160         (dwarf2out_frame_debug_cfa_offset): New.
17161         (dwarf2out_frame_debug_cfa_register): New.
17162         (dwarf2out_frame_debug_cfa_restore): New.
17163         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
17164         (dwarf2out_begin_epilogue): New.
17165         (dwarf2out_frame_debug_restore_state): New.
17166         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
17167         DW_CFA_restore_state.
17168         (output_cfi_directive): Likewise.
17169         (convert_cfa_to_fb_loc_list): Likewise.
17170         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
17171         * dwarf2out.h: Update.
17172         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
17173         (copy_insn_1): Early out for null.
17174         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
17175         and dwarf2out_frame_debug_restore_state.
17176         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
17177         (prologue_insn_hash, epilogue_insn_hash): New.
17178         (free_after_compilation): Adjust freeing accordingly.
17179         (record_insns): Create hash table if needed; push insns into
17180         hash instead of array.
17181         (maybe_copy_epilogue_insn): New.
17182         (contains): Search hash table instead of array.
17183         (sibcall_epilogue_contains): Remove.
17184         (thread_prologue_and_epilogue_insns): Split eh_return insns
17185         and mark them as epilogues.
17186         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
17187         scanning in terms of basic blocks.
17188         * insn-notes.def (CFA_RESTORE_STATE): New.
17189         * jump.c (returnjump_p_1): Accept EH_RETURN.
17190         (eh_returnjump_p_1, eh_returnjump_p): New.
17191         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
17192         CFA_REGISTER, CFA_RESTORE): New.
17193         * rtl.def (EH_RETURN): New.
17194         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
17195
17196         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
17197         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
17198
17199         * config/i386/i386.c (gen_push): Update cfa state.
17200         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
17201         add a CFA_ADJUST_CFA note.
17202         (ix86_dwarf_handle_frame_unspec): Remove.
17203         (ix86_expand_prologue): Update cfa state.
17204         (ix86_emit_restore_reg_using_pop): New.
17205         (ix86_emit_restore_regs_using_pop): New.
17206         (ix86_emit_leave): New.
17207         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
17208         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
17209         * config/i386/i386.h (struct machine_cfa_state): New.
17210         (ix86_cfa_state): New.
17211         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
17212         (eh_return_internal): Merge from eh_return_<mode>,
17213         use eh_return rtx, split w/ epilogue.
17214
17215 2009-05-29  Ian Lance Taylor  <iant@google.com>
17216
17217         * builtins.c (validate_gimple_arglist): Don't use va_arg with
17218         enum type.
17219         * calls.c (emit_library_call_value_1): Likewise.
17220
17221         * c-typeck.c (c_build_va_arg): New function.
17222         * c-tree.h (c_build_va_arg): Declare.
17223         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
17224         instead of build_va_arg.
17225
17226 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
17227
17228         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
17229         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
17230         (ptr_difference_cost): Use affine combinations to compute it.
17231         (difference_cost): Likewise.
17232         (get_computation_cost_at): Compute more accurate cost for addresses
17233         if the ratio is a multiplier allowed in addresses.
17234         For non-addresses, consider that an additional offset or symbol is
17235         added only once.
17236
17237 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17238
17239         * config/i386/i386.c (ix86_decompose_address): Avoid useless
17240         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
17241
17242         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
17243         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
17244         (prefix_rex): For UNIT_MMX don't imply the prefix by default
17245         if MODE_DI.
17246         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
17247         to 1 for TYPE_SSE{IADD1,CVT1}.
17248         (prefix_vex_imm8): Removed.
17249         (length_vex): Only pass 1 as second argument to
17250         ix86_attr_length_vex_default if prefix_extra is 0.
17251         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
17252         (length): For prefix vex computation use length_immediate
17253         attribute instead of prefix_vex_imm8.
17254         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
17255         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
17256         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
17257         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
17258         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
17259         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
17260         a space in between the operands.
17261         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
17262         if one operand is 0xff and the other one si, di, bp or sp.
17263         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
17264         other one si, di, bp or sp.
17265         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
17266         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
17267         type and mode attributes.
17268         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
17269         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
17270         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
17271         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
17272         prefix_data16 attribute iff MODE_DF.
17273         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
17274         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
17275         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
17276         constm128_operand in length_immediate computation.
17277         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
17278         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
17279         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
17280         length_immediate attribute to 1.
17281         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
17282         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
17283         for certain alternatives.
17284         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
17285         prefix_data16 attribute if MODE_V1DF.
17286         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
17287         length_immediate to 1.
17288         (set_got_rex64, set_rip_rex64): Remove length attribute, set
17289         length_address to 4, set mode attribute to MODE_DI.
17290         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
17291         (fxam<mode>2_i387): Set length attribute to 4.
17292         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
17293         *prefetch_3dnow_rex): Override length_address attribute.
17294         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
17295         attributes.
17296         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
17297         (constm128_operand): Removed.
17298         * config/i386/i386.c (memory_address_length): For
17299         disp && !index && !base in 64-bit mode account for SIB byte if
17300         print_operand_address can't optimize disp32 into disp32(%rip)
17301         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
17302         for fs: or gs: segment.
17303         (ix86_attr_length_immediate_default): When checking if shortform
17304         is possible, truncate immediate to the length of the non-shortened
17305         immediate.
17306         (ix86_attr_length_address_default): Ignore MEM_P operands
17307         with X constraint.
17308         (ix86_attr_length_vex_default): Only check for DImode on
17309         GENERAL_REG_P operands.
17310         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
17311         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
17312         (sse_cvttps2pi): Clear prefix_rep attribute.
17313         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
17314         attribute.
17315         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
17316         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
17317         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
17318         iff operand 2 is const_int_operand.
17319         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
17320         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
17321         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
17322         instead of vex.
17323         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
17324         prefix_data16.
17325         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
17326         prefix_data16 attribute for movlpd and movhpd instructions.
17327         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
17328         length_immediate for shufpd instruction.
17329         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
17330         (avx_cmpp<avxmodesuffixf2c><mode>3,
17331         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
17332         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
17333         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
17334         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
17335         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
17336         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
17337         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
17338         prefix_data16 attribute for the first alternative to 1.
17339         (*avx_loadlps): Override length_immediate for the first alternative.
17340         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
17341         attributes for second alternative.
17342         (*vec_concatv2sf_sse4_1): Override length_immediate and
17343         prefix_data16 attributes for second alternative.
17344         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
17345         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
17346         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
17347         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
17348         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
17349         prefix_data16 and length_immediate to 1.
17350         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
17351         to 1.
17352         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
17353         prefix_extra attribute for variants that don't have 0f prefix alone.
17354         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
17355         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
17356         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
17357         *sse4_1_pextrd): Set length_immediate to 1.
17358         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
17359         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
17360         to 1.
17361         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
17362         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
17363         length_immediate to 1 for second alternative.
17364         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
17365         prefix_extra and length_immediate attributes for the first
17366         alternative.
17367         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
17368         first alternative.
17369         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
17370         to 1 for the first and third alternative.
17371         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
17372         alternative.
17373         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
17374         attribute.
17375         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
17376         attribute to 0.
17377         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
17378         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
17379         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
17380         *avx_psign<mode>3): Set prefix_extra attribute to 1.
17381         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
17382         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
17383         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
17384         ssse3_psign<mode>3): Override prefix_rex attribute.
17385         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
17386         (ssse3_palignrti): Override length_immediate to 1.
17387         (ssse3_palignrdi): Override length_immediate to 1, override
17388         prefix_rex attribute.
17389         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
17390         (sse4a_extrqi): Override length_immediate to 2.
17391         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
17392         (sse4a_insertq): Override prefix_data16 to 0.
17393         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
17394         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
17395         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
17396         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
17397         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
17398         and length_immediate to 1.
17399         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
17400         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
17401         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
17402         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
17403         and length_immediate to 1.
17404         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
17405         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
17406         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
17407         avx_ptest256): Override prefix_extra to 1.
17408         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
17409         Override prefix_data16 and length_immediate to 1.
17410         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
17411         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
17412         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
17413         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
17414         prefix_data16 to 0 and prefix_extra to 2.
17415         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
17416         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
17417         attribute.
17418         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
17419         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
17420         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
17421         and prefix_extra to 2.
17422         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
17423         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
17424         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
17425         avx_vpermilvar<mode>3,
17426         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
17427         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
17428         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
17429         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
17430         Override prefix_extra to 1.
17431         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17432         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17433         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17434         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17435         prefix_extra and length_immediate to 1.
17436         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17437         modrm to 0.
17438         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17439         to 1 for the first alternative.
17440         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17441         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17442         cases.
17443         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17444         *movv2sf_internal_avx, *movv2sf_internal): Override
17445         prefix_rep attribute for certain alternatives.
17446         (*mov<mode>_internal): Override prefix_rep or prefix_data16
17447         attributes for certain alternatives.
17448         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17449         attributes for certain alternatives.
17450         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17451         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17452         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17453         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17454         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17455         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17456         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17457         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17458         length_immediate to 1 if operand 2 is const_int_operand.
17459         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17460         *vec_extractv2si_1): Set length_immediate attribute to 1.
17461         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17462         using old 3DNOW insn rather than SSE/3DNOW_A.
17463         (mmx_emms, mmx_femms): Clear modrm attribute.
17464
17465 2009-05-29  Martin Jambor  <mjambor@suse.cz>
17466
17467         * tree-sra.c:  New implementation of SRA.
17468
17469         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17470         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17471         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17472         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17473         (SRA_MAX_STRUCTURE_COUNT): Removed.
17474         (SRA_FIELD_STRUCTURE_RATIO): Removed.
17475         * doc/invoke.texi (sra-max-structure-size): Removed.
17476         (sra-field-structure-ratio): Removed.
17477
17478 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17479
17480         PR middle-end/40291
17481         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17482         before expansion.
17483
17484 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
17485
17486         PR rtl-optimization/40101
17487         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17488         seqno.  Adjust comment.
17489         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17490         inserting bookkeeping before a jump, the jump is not scheduled.
17491         When no positive seqno found, provide a value.  Add comment.
17492
17493 2009-05-29  Richard Guenther  <rguenther@suse.de>
17494
17495         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17496         short-cutting on the first component.
17497
17498 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17499
17500         PR middle-end/39958
17501         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17502         for trees other than decls/types.
17503
17504 2009-05-29  Richard Guenther  <rguenther@suse.de>
17505
17506         * tree-ssa-operands.c (get_expr_operands): Do not handle
17507         INDIRECT_REFs in the handled-component case.  Remove
17508         unused get_ref_base_and_extent case.
17509         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17510         tree_low_cst and host_integerp where possible.
17511         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17512         codes for equivalence.
17513         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17514
17515 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
17516
17517         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17518         to tmake_file for i[34567]86-*-cygwin*.
17519
17520 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17521
17522         PR target/40017
17523         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17524         (altivec_categorize_keyword, init_vector_keywords,
17525         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17526         similar to bool.
17527
17528 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
17529
17530         * tree.c (handle_dll_attribute): Check if node is
17531         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17532
17533 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
17534
17535         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17536         component.
17537         (thumb2_zero_extendqidi2): Likewise.
17538
17539 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17540
17541         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17542         instead of gen_movrt.
17543         * config/sh/sh.md (movrt): Remove.
17544
17545 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
17546
17547         * doc/invoke.texi (IA-64 Options):
17548         Add -msdata, -mfused-madd, -mno-inline-float-divide,
17549         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17550         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17551         -msched-prefer-non-control-spec-insns,
17552         -msched-stop-bits-after-every-cycle,
17553         -msched-count-spec-in-critical-path,
17554         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17555         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17556         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17557         and -msched-spec-verbose.
17558
17559 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
17560
17561         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17562         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17563         error if used.
17564         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17565
17566 2009-05-28  Richard Guenther  <rguenther@suse.de>
17567
17568         * tree-ssa-alias.c (ao_ref_init): New function.
17569         (ao_ref_base): Likewise.
17570         (ao_ref_base_alias_set): Likewise.
17571         (ao_ref_alias_set): Likewise.
17572         (refs_may_alias_p_1): Change signature.
17573         (refs_may_alias_p): Adjust.
17574         (refs_anti_dependent_p): Likewise.
17575         (refs_output_dependent_p): Likewise.
17576         (call_may_clobber_ref_p_1): Change signature.
17577         (call_may_clobber_ref_p): Adjust.
17578         (stmt_may_clobber_ref_p_1): New function split out from ...
17579         (stmt_may_clobber_ref_p): ... here.
17580         (maybe_skip_until): Adjust signature.
17581         (get_continuation_for_phi): Likewise.
17582         (walk_non_aliased_vuses): Likewise.
17583         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17584         (ao_ref_init): Declare.
17585         (ao_ref_base): Likewise.
17586         (ao_ref_alias_set): Likewise.
17587         (stmt_may_clobber_ref_p_1): Likewise.
17588         (walk_non_aliased_vuses): Adjust.
17589         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17590         (get_ref_from_reference_ops): remove.
17591         (vn_reference_lookup_2): Adjust signature.
17592         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
17593         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17594         (vn_reference_lookup): Adjust.
17595         (vn_reference_insert): Likewise.
17596         (vn_reference_insert_pieces): Adjust signature.
17597         (visit_reference_op_call): Adjust.
17598         * tree-ssa-pre.c (get_expr_type): Simplify.
17599         (phi_translate_1): Adjust.
17600         (compute_avail): Likewise.
17601         (translate_vuse_through_block): Do not re-build trees.
17602         (value_dies_in_block_x): Likewise.
17603         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17604         fields.
17605         (vn_reference_lookup_pieces): Adjust declaration.
17606         (vn_reference_insert_pieces): Likewise.
17607
17608 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
17609
17610         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17611         with checking disabled.
17612
17613 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
17614
17615         PR target/37216
17616
17617         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
17618         macro definition for support of three-operand format aligned
17619         .comm directive in assembler on cygwin/pe/mingw target OS.
17620         * configure:  Regenerate.
17621         * config.h:  Regenerate.
17622
17623         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
17624         aligned form of .comm directive if -mpe-aligned-commons is in effect.
17625         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
17626
17627         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
17628         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
17629
17630 2009-05-28  Ira Rosen  <irar@il.ibm.com>
17631
17632         PR tree-optimization/40254
17633         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17634         in analysis of basic blocks.
17635
17636 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
17637
17638         PR middle-end/33699
17639         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
17640         * target-def.h (TARGET_CONST_ANCHOR): New macro.
17641         (TARGET_INITIALIZER): Use it.
17642         * cse.c (CHEAPER): Move it up to the other macros.
17643         (insert): Rename this ...
17644         (insert_with_costs): ... to this.  Add cost parameters.  Update
17645         function comment.
17646         (insert): New function.  Call insert_with_costs.
17647         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17648         find_reg_offset_for_const, try_const_anchors): New functions.
17649         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
17650         when using a const-anchor.  Call insert_const_anchors.
17651         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17652         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17653
17654 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17655
17656         * tree-inline.c (remap_decls): Enable nonlocalized variables
17657         when not optimizing.
17658
17659 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17660
17661         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17662         Simplify other tests involving optimize.
17663
17664 2009-05-27  Tom Tromey  <tromey@redhat.com>
17665
17666         * unwind-dw2.c (_Unwind_DebugHook): New function.
17667         (uw_install_context): Call _Unwind_DebugHook.
17668
17669 2009-05-27  Tom Tromey  <tromey@redhat.com>
17670
17671         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17672
17673 2009-05-27  Ian Lance Taylor  <iant@google.com>
17674
17675         * Makefile.in (LINKER, LINKER_FLAGS): Define.
17676         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17677         (ALL_LINKERFLAGS): Define.
17678         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17679         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17680         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17681         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17682         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17683         $(LINKER_FOR_BUILD).
17684         (build/gcov-iov$(build_exeext)): Likewise.
17685
17686 2009-05-27  Julian Brown  <julian@codesourcery.com>
17687
17688         * gcse.c (target.h): Include.
17689         (can_assign_to_reg_without_clobbers_p): Check that the target allows
17690         copy of argument to a pseudo register.
17691
17692 2009-05-27  Diego Novillo  <dnovillo@google.com>
17693
17694         * tree-ssa-live.c (dump_scope_block): Document arguments.
17695         (dump_scope_blocks): Document.
17696         (debug_scope_blocks): New.
17697         * tree-flow.h (debug_scope_blocks): Declare.
17698
17699 2009-05-21  Denis Chertykov  <denisc@overta.ru>
17700
17701         * doc/contrib.texi (Contributors): Add myself to the list.
17702
17703 2009-05-27  Olivier Hainque  <hainque@adacore.com>
17704
17705         * expr.c (target_align): New function.  Alignment the TARGET of an
17706         assignment may be assume to have.
17707         (highest_pow2_factor_for_target): Use it instead of relying on
17708         immediate tree attributes of TARGET, not necessarily honored when
17709         intermediate bitfields are involved.
17710
17711 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17712
17713         PR target/40266
17714         * config/i386/driver-i386.c (host_detect_local_cpu): Support
17715         AVX, SSE4, AES, PCLMUL and POPCNT.
17716
17717 2009-05-27  Diego Novillo  <dnovillo@google.com>
17718
17719         * tree-pretty-print.c (dump_location): New.
17720         (dump_generic_node): Call it.
17721         Factor code to handle BLOCK nodes ...
17722         (dump_block_node): ... here.
17723
17724 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
17725
17726         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17727         with it.
17728         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17729         included.
17730         * gcc-plugin.h: Include config.h and system.h.
17731         (IN_GCC): Define if not defined.
17732
17733 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
17734
17735         PR middle-end/40249
17736         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17737         with -fno-inline.
17738
17739 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
17740
17741         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17742         applicable.
17743         * config/m32r/m32r.h: Ditto.
17744         * config/m32r/m32r.md: Ditto.
17745         * config/m32r/predicates.md: Ditto.
17746
17747 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
17748
17749         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17750
17751 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
17752
17753         * doc/plugins.texi
17754         (Loading plugins): typo.
17755         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17756         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17757         (Interacting with the GCC Garbage Collector): Added new section.
17758         (Giving information about a plugin): Added new section for
17759         PLUGIN_INFO.
17760         * ggc.h (ggc_register_root_tab): Added declaration.
17761         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17762         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17763         (register_callback): Improved comment in declaration.
17764         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17765         (extra_root_vec) Added static variable for dynamic roots registration.
17766         (ggc_register_root_tab) Added new routine.
17767         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17768         PLUGIN_GGC_MARKING event.
17769         * ggc-zone.c: Include plugin.h.
17770         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17771         * ggc-page.c: Include plugin.h.
17772         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17773         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17774         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17775         (register_callback): check lack of callbacks for
17776         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17777         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17778         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17779         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17780         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17781         dependency on plugin.h.
17782         (plugin.o): Added dependency on ggc.h...
17783
17784 2009-05-26  Richard Guenther  <rguenther@suse.de>
17785
17786         PR middle-end/40248
17787         Revert
17788         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17789         with mismatched comparison modes.
17790
17791         * expr.c (expand_expr_real_1): Expand the operand of a
17792         VIEW_CONVERT_EXPR in its natural mode.
17793
17794 2009-05-26  Ian Lance Taylor  <iant@google.com>
17795
17796         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17797         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17798         (ALL_COMPILERFLAGS): Define.
17799         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17800         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17801         (collect2$(exeext), collect2.o): Likewise.
17802         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17803         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17804         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17805         (libbackend.o, intl.o, cppdefault.o): Likewise.
17806         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17807         (build/%.o): Use $(COMPILER_FOR_BUILD).
17808         (build/gen%$(build_exeext)): Likewise.
17809         (build/gcov-iov$(build_exeext)): LIkewise.
17810         * config/t-darwin (darwin.o): Use $(COMPILER).
17811         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17812         * config/t-sol2 (sol2-c.o): Likewise.
17813         (sol2.o): Likewise.
17814         * config/t-vxworks (vxworks.o): Likewise.
17815         * config/x-darwin (host-darwin.o): Likewise.
17816         * config/x-hpux (host-hpux.o): Likewise.
17817         * config/x-linux (host-linux.o): Likewise.
17818         * config/x-solaris (host-solaris.o): Likewise.
17819         * config/alpha/x-alpha (driver-alpha.o): Likewise.
17820         * config/arm/t-arm (arm-c.o): Likewise.
17821         * config/arm/t-pe (pe.o): Likewise.
17822         * config/arm/t-wince-pe (pe.o): Likewise.
17823         * config/i386/t-cygming (winnt.o): Likewise.
17824         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17825         * config/i386/t-cygwin (cygwin1.o): Likewise.
17826         (cygwin2.o): Likewise.
17827         * config/i386/t-i386 (i386-c.o): Likewise.
17828         * config/i386/t-interix (winnt.o): Likewise.
17829         * config/i386/t-netware (netware.o): Likewise.
17830         * config/i386/t-nwld (nwld.o): Likewise.
17831         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17832         * config/i386/x-i386 (driver-i386.o): Likewise.
17833         * config/i386/x-cygwin (host-cygwin.o): Likewise.
17834         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17835         * config/ia64/t-ia64 (ia64-c.o): Likewise.
17836         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17837         * config/mips/x-native (driver-native.o): Likewise.
17838         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17839         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17840         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17841         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17842         * config/score/t-score-elf (score7.o): Likewise.
17843         (score3.o): Likewise.
17844         * config/sh/t-sh (sh-c.o): Likewise.
17845         * config/sh/t-symbian (sh-c.o): Likewise.
17846         (symbian.o): Likewise.
17847         * config/spu/t-spu-elf (spu-c.o): Likewise.
17848         * config/v850/t-v850 (v850-c.o): Likewise.
17849         * config/v850/t-v850e (v850-c.o): Likewise.
17850
17851 2009-05-26  Richard Guenther  <rguenther@suse.de>
17852
17853         PR tree-optimization/40122
17854         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17855         VECTOR_CSTs if possible.
17856         (fold_gimple_assign): Likewise.
17857
17858 2009-05-26  Richard Guenther  <rguenther@suse.de>
17859
17860         PR middle-end/40252
17861         * fold-const.c (fold_binary): Use the correct types for building
17862         rotates.
17863
17864 2009-05-26  Richard Guenther  <rguenther@suse.de>
17865
17866         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17867         redundant calls to merge_alias_info.
17868         (bump_vector_ptr): Likewise.
17869         * tree-ssa-copy.c (merge_alias_info): Remove.
17870         (replace_exp_1): Remove call to merge_alias_info.
17871         (propagate_tree_value): Likewise.
17872         (fini_copy_prop): Propagate points-to info.
17873         * tree-flow.h (merge_alias_info): Remove.
17874
17875 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17876
17877         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17878
17879 2009-05-25  Jan Hubicka  <jh@suse.cz>
17880
17881         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17882         * cgraph.h (struct inline_summary): New filed self_wize,
17883         size_inlining_benefit, self_time and time_inlining_benefit.
17884         (struct cgraph_global_info): Replace insns by time ans size fields.
17885         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17886         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17887         (ipcp_update_callgraph): Do not touch function bodies.
17888         * ipa-inline.c: Include except.h
17889         (MAX_TIME): New constant.
17890         (overall_insns): Remove.
17891         (leaf_node_p): New.
17892         (overall_size, max_benefit): New static variables.
17893         (cgraph_estimate_time_after_inlining): New function.
17894         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17895         (cgraph_clone_inlined_nodes): Update size.
17896         (cgraph_mark_inline_edge): Update size.
17897         (cgraph_estimate_growth): Use size info.
17898         (cgraph_check_inline_limits): Check size.
17899         (cgraph_default_inline_p): Likewise.
17900         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17901         (cgraph_decide_recursive_inlining): Check size.
17902         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17903         and times.
17904         (cgraph_decide_inlining): Likewise.
17905         (cgraph_decide_inlining_incrementally): Likewise; honor
17906         PARAM_EARLY_INLINING_INSNS.
17907         (likely_eliminated_by_inlining_p): New predicate.
17908         (estimate_function_body_sizes): New function.
17909         (compute_inline_parameters): Use it.
17910         * except.c (must_not_throw_labels): New function.
17911         * except.h (must_not_throw_labels): Declare.
17912         * tree-inline.c (init_inline_once): Kill inlining_weigths
17913         * tree-ssa-structalias.c: Avoid uninitialized warning.
17914         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17915         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17916         (PARAM_INLINE_CALL_COST): Remove.
17917         (PARAM_EARLY_INLINING_INSNS): New.
17918
17919 2009-05-25  Richard Guenther  <rguenther@suse.de>
17920
17921         PR tree-optimization/36327
17922         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17923         callback for reference translation or lookup at the point of may-defs.
17924         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17925         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17926         for union COMPONENT_REFs.
17927         (vn_reference_lookup_3): New callback.  Lookup from memset
17928         and CONSTRUCTOR assignment, translate through struct copies.
17929         (vn_reference_lookup_pieces): Make sure to not free the
17930         passed operands array.  Adjust walk_non_aliased_vuses call.
17931         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17932         make sure we do not leak memory.
17933
17934 2009-05-25  Richard Guenther  <rguenther@suse.de>
17935
17936         * tree-ssa-alias.h (dump_points_to_solution): Declare.
17937         * tree-inline.c (expand_call_inline): Reset the escaped and
17938         callused solutions.
17939         * tree-ssa-structalias.c (pass_build_ealias): New.
17940         * tree-pass.h (pass_build_ealias): Declare.
17941         * passes.c (init_optimization_passes): Add PTA during
17942         early optimizations.
17943         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17944         and CALLUSED solutions.
17945         (dump_points_to_solution): New function, split out from ...
17946         (dump_points_to_info_for): ... here.
17947         * tree-parloops.c (parallelize_loops): Reset the escaped and
17948         callused solutions.
17949
17950 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17951
17952         PR bootstrap/40027
17953         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17954         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17955
17956 2009-05-25  Ira Rosen  <irar@il.ibm.com>
17957
17958         PR tree-optimization/40238
17959         * tree-vect-stmts.c (vect_init_vector): Insert initialization
17960         statements after basic block's labels.
17961         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
17962         to free the allocated memory.
17963
17964 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17965
17966         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17967         return address with a USE.
17968
17969 2009-05-24  Richard Guenther  <rguenther@suse.de>
17970
17971         PR middle-end/40233
17972         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17973         array type from the main variant of the inner type.
17974
17975 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17976
17977         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17978         definition to bool (from int) to un-break build.
17979         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17980
17981 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
17982
17983         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17984         discard_stmt_changes): Delete.
17985         * tree-ssa-operands.c (scb_stack): Delete.
17986         (init_ssa_operands): Do not initialize it.
17987         (fini_ssa_operands): Do not free it.
17988         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17989
17990         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
17991         update_stmt, remove the others.  Fix comments.
17992         * tree-dfa.c (optimize_stack_restore): Likewise.
17993         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17994         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17995         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17996         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17997         Likewise.
17998         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17999         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
18000         (dom_opt_finalize_block): Likewise, adjusting access to
18001         stmts_to_rescan.
18002         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
18003         (stmts_to_rescan): Change item type to gimple.
18004         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
18005
18006 2009-05-24  Ira Rosen  <irar@il.ibm.com>
18007
18008         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
18009         * tree-pass.h (pass_slp_vectorize): New pass.
18010         * params.h (SLP_MAX_INSNS_IN_BB): Define.
18011         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
18012         * tree-vectorizer.c (timevar.h): Include.
18013         (user_vect_verbosity_level): Declare.
18014         (vect_location): Fix comment.
18015         (vect_set_verbosity_level): Update user_vect_verbosity_level
18016         instead of vect_verbosity_level.
18017         (vect_set_dump_settings): Add an argument. Ignore user defined
18018         verbosity if dump flags require higher level of verbosity. Print to
18019         stderr only for loop vectorization.
18020         (vectorize_loops): Update call to vect_set_dump_settings.
18021         (execute_vect_slp): New function.
18022         (gate_vect_slp): Likewise.
18023         (struct gimple_opt_pass pass_slp_vectorize): New.
18024         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
18025         access its members.
18026         (vec_info_for_bb): New function.
18027         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
18028         (VECTORIZATION_ENABLED): New macro.
18029         (SLP_ENABLED, SLP_DISABLED): Likewise.
18030         (vect_is_simple_use): Add bb_vec_info argument.
18031         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
18032         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
18033         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
18034         vect_schedule_slp, vect_analyze_slp): Likewise.
18035         (vect_analyze_stmt): Add slp_tree argument.
18036         (find_bb_location): Declare.
18037         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
18038         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
18039         (vect_analyze_loop_operations, vect_analyze_loop,
18040         get_initial_def_for_induction, vect_create_epilog_for_reduction,
18041         vect_finalize_reduction, vectorizable_reduction,
18042         vectorizable_live_operation, vect_transform_loop): Likewise.
18043         * tree-data-ref.c (dr_analyze_innermost): Update comment,
18044         skip evolution analysis if analyzing a basic block.
18045         (dr_analyze_indices): Likewise.
18046         (initialize_data_dependence_relation): Skip the test whether the
18047         object is invariant for basic blocks.
18048         (compute_all_dependences): Skip dependence analysis for data
18049         references in basic blocks.
18050         (find_data_references_in_stmt): Don't fail in case of invariant
18051         access in basic block.
18052         (find_data_references_in_bb): New function.
18053         (find_data_references_in_loop): Move code to
18054         find_data_references_in_bb and add a call to it.
18055         (compute_data_dependences_for_bb): New function.
18056         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
18057         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
18058         that STEP is 0.
18059         (vect_analyze_data_ref_dependence): Check for interleaving in case of
18060         unknown dependence in basic block and fail in case of dependence in
18061         basic block.
18062         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
18063         dependence instances from either loop or basic block vectorization
18064         info.
18065         (vect_compute_data_ref_alignment): Check if it is loop vectorization
18066         before calling nested_in_vect_loop_p.
18067         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
18068         dependence instances from either loop or basic block vectorization
18069         info.
18070         (vect_verify_datarefs_alignment): Likewise.
18071         (vect_enhance_data_refs_alignment): Adjust function calls.
18072         (vect_analyze_data_refs_alignment): Likewise.
18073         (vect_analyze_group_access): Fix printing. Skip different checks if
18074         DR_STEP is 0. Keep strided stores either in loop or basic block
18075         vectorization data structure. Fix indentation.
18076         (vect_analyze_data_ref_access): Fix comments, allow zero step in
18077         basic blocks.
18078         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
18079         dependence instances from either loop or basic block vectorization
18080         info.
18081         (vect_analyze_data_refs): Update comment. Call
18082         compute_data_dependences_for_bb to analyze basic blocks.
18083         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
18084         case of loop vectorization. In case of basic block vectorization use
18085         data-ref itself as a base.
18086         (vect_create_data_ref_ptr): In case of basic block vectorization:
18087         don't advance the pointer, add new statements before the current
18088         statement.  Adjust function calls.
18089         (vect_supportable_dr_alignment): Support only aligned accesses in
18090         basic block vectorization.
18091         * common.opt (ftree-slp-vectorize): New flag.
18092         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
18093         (vect_pattern_recog_1): Likewise.
18094         * tree-vect-stmts.c (process_use): Likewise.
18095         (vect_init_vector): Add new statements in the beginning of the basic
18096         block in case of basic block SLP.
18097         (vect_get_vec_def_for_operand): Adjust function calls.
18098         (vect_finish_stmt_generation): Likewise.
18099         (vectorizable_call): Add assert that it is loop vectorization, adjust
18100         function calls.
18101         (vectorizable_conversion, vectorizable_assignment): Likewise.
18102         (vectorizable_operation): In case of basic block SLP, take
18103         vectorization factor from statement's type and skip the relevance
18104         check. Adjust function calls.
18105         (vectorizable_type_demotion): Add assert that it is loop
18106         vectorization, adjust function calls.
18107         (vectorizable_type_promotion): Likewise.
18108         (vectorizable_store): Check for outer loop only in case of loop
18109         vectorization. Adjust function calls. For basic blocks, skip the
18110         relevance check and don't advance pointers.
18111         (vectorizable_load): Likewise.
18112         (vectorizable_condition): Add assert that it is loop vectorization,
18113         adjust function calls.
18114         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
18115         that it is not reduction, get vector type, call only supported
18116         functions, skip loop specific parts.
18117         (vect_transform_stmt): Check for outer loop only in case of loop
18118         vectorization.
18119         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
18120         (vect_is_simple_use): Fix comment, add new argument, fix conditions
18121         for external definition.
18122         * passes.c (pass_slp_vectorize): New pass.
18123         * tree-vect-slp.c (find_bb_location): New function.
18124         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
18125         check for patterns only in loops.
18126         (vect_build_slp_tree): Add argument, adjust function calls, fail in
18127         case of multiple types in basic block SLP.
18128         (vect_mark_slp_stmts_relevant): New function.
18129         (vect_supported_load_permutation_p): Fix comment.
18130         (vect_analyze_slp_instance): Add argument. In case of basic block
18131         SLP, take vectorization factor from statement's type, check that
18132         unrolling factor is 1. Adjust function call. Save SLP instance in
18133         either loop or basic block vectorization structure. Return FALSE,
18134         if SLP failed.
18135         (vect_analyze_slp): Add argument. Get strided stores groups from
18136         either loop or basic block vectorization structure. Return FALSE
18137         if basic block SLP failed.
18138         (new_bb_vec_info): New function.
18139         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
18140         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
18141         (vect_schedule_slp): Add argument. Get SLP instances from either
18142         loop or basic block vectorization structure. Set vectorization factor
18143         to be 1 for basic block SLP.
18144         (vect_slp_transform_bb): New function.
18145         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
18146
18147 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
18148
18149         * final.c (shorten_branches): Do not align labels for jump tables.
18150         (final_scan_insn): Use JUMP_TABLE_DATA_P.
18151
18152 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18153
18154         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
18155         Remove outdated reference to flow.c and fix nits.
18156         * doc/gccint.texi: Tweak RTL description.
18157         * doc/rtl.texi: Likewise.
18158
18159 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
18160
18161         * config/avr/avr.c: Change my email address.
18162         * config/avr/avr.h: Likewise.
18163         * config/avr/avr.md: Likewise.
18164         * config/avr/avr-protos.h: Likewise.
18165         * config/avr/libgcc.S: Likewise.
18166
18167 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
18168
18169         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
18170         (spu_split_load, spu_split_store): Change return type to int.
18171         (spu_split_convert): Declare.
18172         * config/spu/predicates.md (spu_mem_operand): Remove.
18173         (spu_mov_operand): Update.
18174         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
18175         * config/spu/spu.c (regno_aligned_for_load): Remove.
18176         (reg_aligned_for_addr, spu_expand_load): Define.
18177         (spu_expand_extv): Reimplement and handle MEM.
18178         (spu_expand_insv): Handle MEM.
18179         (spu_sched_reorder): Handle insn's with length 0.
18180         (spu_legitimate_address_p): Reimplement.
18181         (store_with_one_insn_p): Return TRUE for any mode with size
18182         larger than 16 bytes.
18183         (address_needs_split): Define.
18184         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
18185         operands.
18186         (spu_convert_move): Define.
18187         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
18188         (spu_split_store): Change all MEM's to TImode.
18189         (spu_init_expanders): Preallocate registers that correspond to
18190         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
18191         mark_reg_pointer.
18192         (spu_split_convert): Define.
18193         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
18194         (_move<mode>, _movdi, _movti): Update predicate and condition.
18195         (load, store): Change to define_split.
18196         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
18197         extend<mode>ti2.
18198         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
18199         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
18200         define_insn_and_split of lshr<mode>3.
18201         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
18202         (<v>ashr<mode>3_imm): Define.
18203         (extv, extzv, insv): Allow MEM operands.
18204         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
18205         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
18206         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
18207         (_spu_convert2): Change to define_insn_and_split and remove the
18208         corresponding define_peephole2.
18209         (stack_protect_set, stack_protect_test, stack_protect_test_si):
18210         Change predicates to memory_operand.
18211
18212 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
18213
18214         * config/arm/thumb2.md: Add 16-bit multiply instructions.
18215
18216 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18217
18218         PR tree-optimization/40219
18219         * tree.c (iterative_hash_expr): Make sure the builtin function is
18220         a normal builtin function and not a front end or back end builtin
18221         before indexing into the built_in_decls array.
18222
18223 2009-05-22  Richard Guenther  <rguenther@suse.de>
18224
18225         PR middle-end/38964
18226         * alias.c (write_dependence_p): Do not use TBAA for answering
18227         anti-dependence or output-dependence.
18228         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
18229         (emit_pointer_definition): Remove.
18230         (emit_alias_warning): Likewise.
18231         (find_what_var_points_to): Remove TBAA pruning code.
18232         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
18233         violations.
18234         (compute_points_to_sets): Remove code computing the set of
18235         dereferenced pointers.
18236         * tree-data-ref.c (dr_may_alias_p): Properly use the split
18237         oracle for querying anti and output dependencies.
18238         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
18239         if TBAA may be applied.
18240         (refs_anti_dependent_p): New function.
18241         (refs_output_dependent_p): Likewise.
18242         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
18243         (refs_output_dependent_p): Likewise.
18244         * doc/tree-ssa.texi (Memory model): New section.
18245         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18246         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18247         * cfgexpand.c (expand_gimple_basic_block): Do not handle
18248         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
18249         * expr.c (expand_expr_real_1): Likewise.
18250         * gimple-low.c (lower_stmt): Likewise.
18251         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
18252         (dump_gimple_cdt): Remove.
18253         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18254         (gimple_size): Likewise.
18255         (walk_gimple_op): Likewise.
18256         (is_gimple_stmt): Likewise.
18257         (walk_stmt_load_store_addr_ops): Likewise.
18258         (gimple_build_cdt): Remove.
18259         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18260         * gimple.h (gimple_cdt_new_type): Remove.
18261         (gimple_cdt_new_type_ptr): Likewise.
18262         (gimple_cdt_set_new_type): Likewise.
18263         (gimple_cdt_location): Likewise.
18264         (gimple_cdt_location_ptr): Likewise.
18265         (gimple_cdt_set_location): Likewise.
18266         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18267         * tree-cfg.c (remove_useless_stmts_1): Do not handle
18268         GIMPLE_CHANGE_DYNAMIC_TYPE.
18269         (verify_types_in_gimple_stmt): Likewise.
18270         * tree-inline.c (estimate_num_insns): Likewise.
18271         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
18272         (copy_decl_to_var): Likewise.
18273         (copy_result_decl_to_var): Likewise.
18274         * tree-pretty-print.c (dump_generic_node): Do not handle
18275         CHANGE_DYNAMIC_TYPE_EXPR.
18276         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18277         * tree-ssa-operands.c (get_expr_operands): Likewise.
18278         * tree-ssa-structalias.c (struct variable_info): Remove
18279         no_tbaa_pruning member.
18280         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
18281         (unify_nodes): Do not copy it.
18282         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18283         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
18284         (set_uids_in_ptset): Do not check it.
18285         (find_what_var_points_to): Likewise.
18286         (compute_tbaa_pruning): Remove.
18287         (compute_points_to_sets): Do not call it.
18288         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18289         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18290         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
18291         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
18292         (DECL_NO_TBAA_P): Likewise.
18293         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
18294         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
18295         (expand_omp_atomic_pipeline): Do not set it.
18296         * print-tree.c (print_node): Do not dump it.
18297         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18298         redundant check.
18299
18300 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
18301
18302         PR target/39856
18303         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
18304         for clobber.
18305
18306 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
18307
18308         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
18309         non-external.
18310
18311 2009-05-22  Ben Elliston  <bje@au.ibm.com>
18312
18313         * Makefile.in (bversion.h, s-bversion): New targets.
18314         (TOPLEV_H): Add bversion.h.
18315         * toplev.h: Include "bversion.h".
18316         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
18317         the __format__ attribute only if compiling with the same version
18318         of GCC as the sources (the "build version").
18319
18320 2009-05-22  Ben Elliston  <bje@au.ibm.com>
18321
18322         * c-format.c (handle_format_attribute): Fix comment typo.
18323
18324 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
18325
18326         PR target/37846
18327         * config/ia64/ia64.opt (mfused-madd): New.
18328         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
18329         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
18330         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
18331         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
18332         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
18333         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
18334         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
18335         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
18336         instruction if !TARGET_FUSED_MADD.
18337         (fpma, fpms): Remove colon from name.
18338
18339 2009-05-22  Richard Guenther  <rguenther@suse.de>
18340
18341         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
18342         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
18343         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18344         TARGET_MEM_REF.
18345         (create_expression_by_pieces): Only convert if necessary.
18346         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
18347         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
18348
18349 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
18350
18351         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
18352         regular pattern from a template and rename it ...
18353         (*extzv_truncsi_exts): ... to this.
18354
18355 2009-05-21  Richard Guenther  <rguenther@suse.de>
18356
18357         * cgraph.h (struct cgraph_node): Remove inline_decl member.
18358         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
18359         (cgraph_default_inline_p): Likewise.
18360         (cgraph_decide_inlining_incrementally): Likewise.
18361
18362 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18363             Uros Bizjak  <ubizjak@gmail.com>
18364
18365         * config/i386/cpuid.h (bit_MOVBE): New.
18366
18367         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
18368
18369         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
18370         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
18371         (ix86_handle_option): Handle OPT_mmovbe.
18372         (ix86_target_string): Add -mmovbe.
18373         (pta_flags): Add PTA_MOVBE.
18374         (processor_alias_table): Add PTA_MOVBE to "atom".
18375         (override_options): Handle PTA_MOVBE.
18376
18377         * config/i386/i386.h (TARGET_MOVBE): New.
18378
18379         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
18380         (*bswapsi_movbe): New.
18381         (*bswapdi_movbe): Likewise.
18382         (bswapdi2): Renamed to ...
18383         (*bswapdi_1): This.
18384         (bswapdi2): New expander.
18385
18386         * config/i386/i386.opt (mmovbe): New.
18387
18388         * doc/invoke.texi: Document -mmovbe.
18389
18390 2009-05-21  Taras Glek  <tglek@mozilla.com>
18391
18392         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
18393         * gcc-plugin.h (plugin_init): Updated signature.
18394         * gcc-plugin.h (plugin_name_args): Moved to this header.
18395         * doc/plugins.texi (plugin_init): Updated documention to reflect
18396         API change.
18397         * doc/plugins.texi (plugin_name_args): Added to documention.
18398
18399 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
18400
18401         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
18402         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
18403
18404 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
18405
18406         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
18407         JUMP_TABLE_DATA_P predicates where applicable.
18408         * config/i386/predicates.md: Ditto.
18409         * config/i386/sse.md: Ditto.
18410
18411 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
18412
18413         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
18414         operand2 -128 override length_immediate attribute to 1.
18415         * config/i386/predicates.md (constm128_operand): New predicate.
18416
18417         * config/i386/i386.c (memory_address_length): Handle %r12
18418         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
18419         also check REGNO.
18420         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
18421         mode look through optional ZERO_EXTEND and SUBREG.
18422         * config/i386/i386.md (R12_REG): New define_constant.
18423         (prefix_data16): For sse unit set also for MODE_TI insns.
18424         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
18425         insns set if operand 1 is ext_QIreg_operand.
18426         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
18427         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
18428         immediate.
18429         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
18430         mode from MODE_DI to MODE_SI.
18431         (movdi_1_rex64): Override modrm and length_immediate attributes
18432         only for movabs (TYPE_IMOV, alternative 2).
18433         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18434         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18435         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18436         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18437         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18438         prefix_rex attribute if DImode.
18439         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18440         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18441         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18442         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18443         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18444         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18445         Likewise.  For TYPE_IMOV clear length_immediate attribute.
18446         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18447         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18448         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18449         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18450         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18451         or one operand TYPE_ISHIFT.
18452         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18453         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18454         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18455         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18456         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18457         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18458         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18459         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18460         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18461         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18462         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18463         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18464         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18465         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18466         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18467         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18468         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18469         set mode attribute, don't override length attribute.
18470         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18471         to 1.
18472         (return_internal_long): Set length attribute to 2 instead of 1.
18473         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18474         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18475         prefix_rex attribute.
18476         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18477         New predicates.
18478         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18479
18480 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18481
18482         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18483
18484 2009-05-20  Ian Lance Taylor  <iant@google.com>
18485
18486         * tree.c (build_tree_list_vec_stat): New function.
18487         (ctor_to_vec): New function.
18488         (build_nt_call_vec): New function.
18489         (build_call_array): Change args to be a const pointer.
18490         (build_call_vec): New function.
18491         * tree.h (build_nt_call_vec): Declare.
18492         (build_tree_list_vec_stat): Declare.
18493         (build_tree_list_vec): Define.
18494         (build_call_array): Update declaration.
18495         (build_call_vec): Declare.
18496         (ctor_to_vec): Declare.
18497         * c-common.c (tree_vector_cache): New static variable.
18498         (make_tree_vector): New function.
18499         (release_tree_vector): New function.
18500         (make_tree_vector_single): New function.
18501         (make_tree_vector_copy): New function.
18502         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18503         (make_tree_vector_single, make_tree_vector_copy): Declare.
18504         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18505         (c_parser_expr_list): Don't manage cache here, instead call
18506         make_tree_vector.
18507         (c_parser_release_expr_list): Remove static function.
18508         (c_parser_vec_to_tree_list): Remove static function.
18509         (c_parser_attributes): Call build_tree_list_vec instead of
18510         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
18511         c_parser_release_expr_list.
18512         (c_parser_postfix_expression_after_primary): Likewise.
18513         (c_parser_objc_keywordexpr): Likewise.
18514
18515 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
18516
18517         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18518         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18519         TARGET_CONVERT_TO_TYPE.
18520         * hooks.c (hook_tree_const_tree_null): Define.
18521         * hooks.h (hook_tree_const_tree_null): Declare.
18522         * target.h (struct gcc_target):  Add invalid_parameter_type,
18523         invalid_return_type, promoted_type, and convert_to_type fields.
18524         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18525         (TARGET_INVALID_RETURN_TYPE): Define.
18526         (TARGET_PROMOTED_TYPE): Define.
18527         (TARGET_CONVERT_TO_TYPE): Define.
18528         (TARGET_INITIALIZER): Update for new fields.
18529         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18530         (grokparms): Check targetm.invalid_parameter_type.
18531         * c-typeck.c (default_conversion): Check targetm.promoted_type.
18532         * c-convert.c (convert): Check targetm.convert_to_type.
18533
18534 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
18535
18536         * config/mips/mips.md (*extenddi_truncate<mode>,
18537         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
18538         defintions.
18539         (*extendhi_truncateqi): New define_insn_and_sptit.
18540
18541 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18542
18543         PR middle-end/40204
18544         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18545         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18546
18547 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
18548
18549         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18550         the operand of VIEW_CONVERT_EXPR.
18551
18552 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
18553
18554         * config/i386/driver-i386.c (host_detect_local_cpu): Check
18555         extended family and model for Intel processors.  Support Intel Atom.
18556
18557 2009-05-20  Olivier Hainque  <hainque@adacore.com>
18558
18559         * gstab.h (stab_code_type): Define, to be used instead of the
18560         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
18561         notice.
18562         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18563         occurrences by stab_code_type.
18564         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18565
18566 2009-05-20  Martin Jambor  <mjambor@suse.cz>
18567
18568         * tree-flow.h (insert_edge_copies_seq): Undeclare.
18569         (sra_insert_before): Likewise.
18570         (sra_insert_after): Likewise.
18571         (sra_init_cache): Likewise.
18572         (sra_type_can_be_decomposed_p): Likewise.
18573         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18574         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18575         (sra_insert_before): Likewise.
18576         (sra_insert_after): Likewise.
18577         (sra_init_cache): Likewise.
18578         (insert_edge_copies_seq): Made static and moved upwards.
18579
18580         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18581         case.
18582
18583         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18584
18585         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18586         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18587         simple copies.
18588
18589 2009-05-20  Richard Guenther  <rguenther@suse.de>
18590
18591         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18592         with mismatched comparison modes.
18593
18594 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18595
18596         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18597         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18598         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18599         with shifts for Thumb2.
18600         (orsi_notsi): New for orn.
18601         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18602         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18603         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18604         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18605         Don't invert remainder for IOR.
18606
18607 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
18608
18609         PR tree-optimization/40087
18610         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18611         number_of_iterations_ne): Rename never_infinite argument.
18612         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18613         number_of_iterations_le): Handle pointer-type ivs when
18614         exit_must_be_taken is false.
18615         (number_of_iterations_cond):  Do not always assume that
18616         exit_must_be_taken if the control variable is a pointer.
18617
18618 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18619
18620         * c-typeck.c (build_binary_op): Allow % on integal vectors.
18621         * doc/extend.texi (Vector Extension): Document that % is allowed too.
18622
18623 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18624
18625         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18626         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18627
18628 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18629
18630         PR c/40172
18631         * c.opt (Wlogical-op): Disabled by default.
18632         * c-opt (c_common_post_options): Do not enable Wlogical-op with
18633         Wextra.
18634         * doc/invoke.texi (Wlogical-op): Likewise.
18635
18636 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18637
18638         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18639         into CASE_CONVERT.
18640         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18641         Propagate the type of the first operand.
18642         <ASSERT_EXPR>: Simplify.
18643         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18644         Rewrite using the RHS code as discriminant.
18645         <NOP_EXPR>: Turn into CASE_CONVERT.
18646         <PLUS_EXPR>: Propagate the type of the first operand.
18647
18648 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
18649
18650         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18651         (ia64_dconst_0_375): New.
18652         * config/ia64/ia64.c (ia64_override_options): Remove
18653         -minline-sqrt-min-latency warning.
18654         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18655         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18656         * config/ia64/ia64.md (*sqrt_approx): Remove.
18657         (sqrtsf2): Remove #if 0.
18658         (sqrtsf2_internal_thr): Rewrite and move to div.md.
18659         (sqrtdf): Remove assert.
18660         (sqrtdf2_internal_thr): Rewrite and move to div.md.
18661         (sqrtxf2): Remove #if 0.
18662         (sqrtxf2_internal_thr): Rewrite and move to div.md.
18663         * div.md (sqrt_approx_rf): New.
18664         (sqrtsf2_internal_thr): New implementation.
18665         (sqrtsf2_internal_lat): New.
18666         (sqrtdf2_internal_thr: New implementation.
18667         (sqrtxf2_internal): New implementation.
18668
18669 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18670             Hans-Peter Nilsson  <hp@axis.com>
18671
18672         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18673         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18674         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18675         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18676         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18677         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18678         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18679         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18680         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18681         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18682         * c-common.c: ...from here.
18683
18684 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18685
18686         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18687
18688 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18689
18690         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18691
18692 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18693
18694         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18695         assignments with memcpy calls.
18696         (add_fdes): Likewise.
18697         (binary_search_unencoded_fdes): Likewise.
18698         (linear_search_fdes): Eliminate type puns.
18699
18700 2009-05-19  Richard Guenther  <rguenther@suse.de>
18701
18702         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18703         not falsely claim to have propagated into all uses.
18704
18705 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18706
18707         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18708         version to v3.0.
18709
18710 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18711
18712         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18713         * config/sh/sh.c (sh_legitimate_address_p): Make static.
18714         (TARGET_LEGITIMATE_ADDRESS_P): New.
18715         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18716         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18717
18718 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
18719
18720         PR debug/40109
18721         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18722         child of the containing namespace's DIE.
18723
18724 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
18725
18726         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18727         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
18728         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18729         extend patterns.
18730
18731 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18732
18733         PR target/39942
18734         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18735         gen_align with gen_pad.
18736         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18737         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18738
18739         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18740         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18741
18742         * config/i386/i386.md (align): Renamed to ...
18743         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18744         ASM_OUTPUT_MAX_SKIP_PAD.
18745
18746 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
18747
18748         * config.gcc: Fix variable syntax.
18749
18750         PR target/39531
18751         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18752         before calling exact_log2.
18753         (output_iorsi3): Likewise.
18754         (output_xorsi3): Likewise.
18755
18756 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18757
18758         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18759         for the none zero constant operand except for EQ and NE
18760         comprisons even when the first operand is R0.
18761
18762 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
18763
18764         * config/s390/2064.md: Remove trailing whitespaces.
18765         * config/s390/2084.md: Likewise.
18766         * config/s390/constraints.md: Likewise.
18767         * config/s390/fixdfdi.h: Likewise.
18768         * config/s390/libgcc-glibc.ver: Likewise.
18769         * config/s390/s390-modes.def: Likewise.
18770         * config/s390/s390-protos.h: Likewise.
18771         * config/s390/s390.c: Likewise.
18772         * config/s390/s390.h: Likewise.
18773         * config/s390/s390.md: Likewise.
18774         * config/s390/tpf-unwind.h: Likewise.
18775
18776 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18777
18778         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18779
18780 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18781
18782         M68K TLS support.
18783         * configure.ac (m68k-*-*): Check if binutils support TLS.
18784         * configure: Regenerate.
18785         * config/m68k/predicates.md (symbolic_operand): Extend comment.
18786         * config/m68k/constraints.md (Cu): New constraint.
18787         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18788         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18789         (movsi): Handle TLS symbols.
18790         (addsi3_5200): Handle XTLS symbols, indent.
18791         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18792         (m68k_tls_reference_p): Declare.
18793         (m68k_legitimize_address): Declare.
18794         (m68k_unwrap_symbol): Declare.
18795         * config/m68k/m68k.opt (mxtls): New option.
18796         * config/m68k/m68k.c (ggc.h): Include.
18797         (m68k_output_dwarf_dtprel): Implement hook.
18798         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18799         (m68k_expand_prologue): Load GOT pointer when function needs it.
18800         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18801         (m68k_legitimate_constant_address_p): Same.
18802         (m68k_decompose_address): Handle TLS references.
18803         (m68k_get_gp): New static function.
18804         (enum m68k_reloc): New contants.
18805         (TLS_RELOC_P): New macro.
18806         (m68k_wrap_symbol): New static function.
18807         (m68k_unwrap_symbol): New function.
18808         (m68k_final_prescan_insn_1): New static function.
18809         (m68k_final_prescan_insn): New function.
18810         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18811         functions.
18812         (legitimize_pic_address): Handle TLS references..
18813         (m68k_tls_get_addr, m68k_get_tls_get_addr)
18814         (m68k_libcall_value_in_a0_p)
18815         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18816         (m68k_call_m68k_read_tp): Helper variables and functions for ...
18817         (m68k_legitimize_tls_address): Handle TLS references.
18818         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18819         New functions.
18820         (m68k_legitimize_address): Handle TLS symbols.
18821         (m68k_get_reloc_decoration): New static function.
18822         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18823         UNSPEC_RELOC32.
18824         (m68k_output_dwarf_dtprel): Implement hook.
18825         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18826         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18827         m68k_call_* routines.
18828         (sched_attr_op_type): Handle TLS symbols.
18829         (gt-m68k.h): Include.
18830         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18831         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18832
18833 2009-05-18  Martin Jambor  <mjambor@suse.cz>
18834
18835         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18836         (visit_store_addr_for_mod_analysis): New function.
18837         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18838         (determine_cst_member_ptr): Use gimple_assign_single_p.
18839         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18840         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18841         operands.  Don't check number of operands of a NOP_EXPR.
18842
18843 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
18844
18845         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18846
18847 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18848
18849         PR c/40172
18850         * c-common.c (warn_logical_operator): Don't warn if one of
18851         expression isn't always true or false.
18852
18853 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
18854
18855         * config/i386/biarch32.h: New file.
18856         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18857
18858 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
18859
18860         * config/mips/mips.md (*zero_extend<mode>_trunchi,
18861         *zero_extend<mode>_truncqi): Merge these into ...
18862         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18863         Name the pattern following this as *zero_extendhi_truncqi.
18864
18865 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
18866
18867         PR middle-end/39301
18868         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18869         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18870         (output_info): Make field HOST_WIDEST_INT.
18871         (print_statistics): Use HOST_WIDEST_INT_PRINT.
18872         (dump_bitmat_statistics): Same.
18873
18874 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18875
18876         * config.gcc (use_gcc_stdint):  Set to wrap.
18877         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18878         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18879         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18880         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18881         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18882         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18883         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18884         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18885
18886 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
18887
18888         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18889         tune_64.
18890         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18891         Move definitions earlier.
18892         (OPT_ARCH64, OPT_ARCH32): Define.
18893         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18894         and tune_64.
18895
18896 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18897
18898         PR target/40153
18899         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18900         implies.
18901
18902 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18903
18904         * arm.md (movdi2): Copy non-reg values to DImode registers.
18905
18906 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
18907
18908         PR target/39942
18909         * final.c (label_to_max_skip): New function.
18910         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18911         CODE_LABEL_NUMBER <= max_labelno.
18912         * output.h (label_to_max_skip): New prototype.
18913         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18914         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
18915         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
18916         Handle CODE_LABELs with >= 16 byte alignment or with
18917         max_skip == (1 << align) - 1.
18918         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18919         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18920
18921         PR target/39942
18922         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18923         .p2align 3 if MAX_SKIP is smaller than 7.
18924         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18925
18926 2009-05-15  Ian Lance Taylor  <iant@google.com>
18927
18928         * alias.c (struct alias_set_entry_d): Rename from struct
18929         alias_set_entry.  Change all uses.
18930         * except.c (struct call_site_record_d): Rename from struct
18931         call_site_record.  Change all uses.
18932         * except.h (struct eh_region_d): Rename from struct eh_region.
18933         Change all uses.
18934         * gcse.c (struct hash_table_d): Rename from struct hash_table.
18935         Change all uses.
18936         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18937         ivtype_map_elt.  Change all uses.
18938         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18939         Change all uses.
18940         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
18941         * graphite.h (struct name_tree_d): Rename from struct name_tree.
18942         Change all uses.
18943         (struct sese_d): Rename from struct sese.  Change all uses.
18944         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
18945         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
18946         * optabs.h (struct optab_d): Rename from struct optab.  Change all
18947         uses.
18948         (struct convert_optab_d): Rename from struct convert_optab.
18949         Change all uses.
18950         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18951         ipa_opt_pass.  Change all uses.
18952         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
18953         all uses.
18954
18955         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18956         defined as a typedef.
18957         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18958         defined as a tag.
18959
18960 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18961
18962         PR 16302
18963         * fold-const.c (make_range,build_range_check,merge_ranges): Move
18964         declaration to...
18965         (merge_ranges): Returns bool.
18966         * tree.h (make_range): .. to here.
18967         (build_range_check): Likewise.
18968         (merge_ranges): Likewise. Renamed from merge_ranges.
18969         * c-typeck.c (parser_build_binary_op): Update calls to
18970         warn_logical_operator.
18971         * c-common.c (warn_logical_operator): Add new warning.
18972         * c-common.h (warn_logical_operator): Update declaration.
18973
18974 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18975
18976         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
18977
18978 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18979
18980         * doc/install.texi: Document MPC requirements, flags etc.
18981
18982         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18983         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18984         Evaluate constant arguments.
18985         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18986         (fold_builtin_1): Likewise, also evaluate constant arguments.
18987         Remove superfluous break.
18988         (do_mpc_ckconv): New.
18989         * real.h: Include mpc.h.
18990         * toplev.c (print_version): Output MPC version info if available.
18991
18992 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18993
18994         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
18995
18996 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18997
18998         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18999         only once.
19000
19001 2009-05-15  Jan Hubicka  <jh@suse.cz>
19002
19003         * doc/invoke.texi (max-early-inliner-iterations): New flag.
19004         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
19005         (try_inline): Fix return value.
19006         (cgraph_decide_inlining_incrementally): Honor new value.
19007         (cgraph_early_inlining): Handle indirect inlining.
19008         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
19009
19010 2009-05-15  Jan Hubicka  <jh@suse.cz>
19011
19012         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
19013         * cgraphunit.c (cgraph_finalize_function): Set it.
19014         (cgraph_expand_function): Use it.
19015
19016 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19017
19018         * real.c (encode_ieee_half): Define.
19019         (decode_ieee_half): Define.
19020         (ieee_half_format): Define.
19021         (arm_half_format): Define.
19022         * real.h (ieee_half_format): Declare.
19023         (arm_half_format): Declare.
19024
19025 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19026
19027         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
19028         swapped, and reversed optabs exist before trying to use them.
19029
19030 2009-05-15  Paul Brook  <paul@codesourcery.com>
19031             Sandra Loosemore  <sandra@codesourcery.com>
19032
19033         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
19034         loads.  Allow PRE_DEC.
19035         (output_move_neon): Handle PRE_DEC.
19036         (arm_print_operand): Add 'A' for neon structure loads.
19037         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
19038         * config/arm/neon.md (neon_mov): Update comment.
19039         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
19040         calls.
19041         (Um): New constraint.
19042
19043 2009-05-15  Jan Hubicka  <jh@suse.cz>
19044
19045         Revert the following patch until testsuite fallout is fixed:
19046         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19047         * cgraph.h (struct inline_summary): New filed self_wize,
19048         size_inlining_benefit, self_time and time_inlining_benefit.
19049         (struct cgraph_global_info): Replace insns by time ans size fields.
19050         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19051         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19052         (ipcp_update_callgraph): Do not touch function bodies.
19053         * ipa-inline.c: Include except.h
19054         (MAX_TIME): New constant.
19055         (overall_insns): Remove
19056         (overall_size, max_benefit): New static variables.
19057         (cgraph_estimate_time_after_inlining): New function.
19058         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19059         (cgraph_clone_inlined_nodes): Update size.
19060         (cgraph_mark_inline_edge): Update size.
19061         (cgraph_estimate_growth): Use size info.
19062         (cgraph_check_inline_limits): Check size.
19063         (cgraph_default_inline_p): Likewise.
19064         (cgraph_edge_badness): Compute badness based on benefit and size cost.
19065         (cgraph_decide_recursive_inlining): Check size.
19066         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19067         and times.
19068         (cgraph_decide_inlining): Likewise.
19069         (cgraph_decide_inlining_incrementally): Likewise; honor
19070         PARAM_EARLY_INLINING_INSNS.
19071         (likely_eliminated_by_inlining_p): New predicate.
19072         (estimate_function_body_sizes): New function.
19073         (compute_inline_parameters): Use it.
19074         * except.c (must_not_throw_labels): New function.
19075         * except.h (must_not_throw_labels): Declare.
19076         * tree-inline.c (init_inline_once): Kill inlining_weigths
19077         * tree-ssa-structalias.c: Avoid uninitialized warning.
19078         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19079         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19080         (PARAM_INLINE_CALL_COST): Remove.
19081         (PARAM_EARLY_INLINING_INSNS): New.
19082
19083 2009-05-15  Richard Guenther  <rguenther@suse.de>
19084
19085         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
19086         not TODO_update_ssa.
19087
19088 2009-05-15  Richard Guenther  <rguenther@suse.de>
19089
19090         PR tree-optimization/39999
19091         * gimple.h (gimple_expr_type): Use the expression type looking
19092         through useless conversions.
19093         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
19094         (vn_nary_op_insert_stmt): Likewise.
19095         (simplify_binary_expression): Likewise.
19096
19097 2009-05-15  Richard Guenther  <rguenther@suse.de>
19098
19099         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19100         New options, enabled by default.
19101         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19102         Document.
19103         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
19104         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
19105         * tree-ssa-structalias.c (gate_tree_pta): New function.
19106         (pass_build_alias): Use it.
19107
19108 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
19109
19110         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
19111         recurse on an invariant address if a conversion from a pointer
19112         type to a wider integer type is involved.
19113
19114 2009-05-15  Jan Hubicka  <jh@suse.cz>
19115
19116         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19117         * cgraph.h (struct inline_summary): New filed self_wize,
19118         size_inlining_benefit, self_time and time_inlining_benefit.
19119         (struct cgraph_global_info): Replace insns by time ans size fields.
19120         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19121         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19122         (ipcp_update_callgraph): Do not touch function bodies.
19123         * ipa-inline.c: Include except.h
19124         (MAX_TIME): New constant.
19125         (overall_insns): Remove
19126         (overall_size, max_benefit): New static variables.
19127         (cgraph_estimate_time_after_inlining): New function.
19128         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19129         (cgraph_clone_inlined_nodes): Update size.
19130         (cgraph_mark_inline_edge): Update size.
19131         (cgraph_estimate_growth): Use size info.
19132         (cgraph_check_inline_limits): Check size.
19133         (cgraph_default_inline_p): Likewise.
19134         (cgraph_edge_badness): Compute badness based on benefit and size cost.
19135         (cgraph_decide_recursive_inlining): Check size.
19136         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19137         and times.
19138         (cgraph_decide_inlining): Likewise.
19139         (cgraph_decide_inlining_incrementally): Likewise; honor
19140         PARAM_EARLY_INLINING_INSNS.
19141         (likely_eliminated_by_inlining_p): New predicate.
19142         (estimate_function_body_sizes): New function.
19143         (compute_inline_parameters): Use it.
19144         * except.c (must_not_throw_labels): New function.
19145         * except.h (must_not_throw_labels): Declare.
19146         * tree-inline.c (init_inline_once): Kill inlining_weigths
19147         * tree-ssa-structalias.c: Avoid uninitialized warning.
19148         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19149         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19150         (PARAM_INLINE_CALL_COST): Remove.
19151         (PARAM_EARLY_INLINING_INSNS): New.
19152         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
19153         (inline-call-cost): Remove.
19154         (early-inlining-insns): New.
19155
19156 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19157
19158         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
19159         for bounds.
19160         (print_int_cst_bounds_in_octal_p): Likewise.
19161         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
19162         with subtypes.
19163         * dwarf2out.c (base_type_die): Likewise.
19164         (is_subrange_type): Delete.
19165         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
19166         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
19167         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
19168         if the destination type is boolean.
19169         (build_range_check): Do not special-case subtypes.
19170         (fold_sign_changed_comparison): Likewise.
19171         (fold_unary): Likewise.
19172         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
19173         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
19174         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
19175         * tree.c (subrange_type_for_debug_p): New predicate based on the
19176         former is_subrange_type.
19177         * tree.h (subrange_type_for_debug_p): Declare.
19178         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
19179         (convert_affine_scev): Remove call to above function.
19180         (chrec_convert_aggressive): Likewise.
19181         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
19182         false for conversions involving subtypes.
19183         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
19184         (vrp_val_min): Likewise.
19185         (needs_overflow_infinity): Likewise.
19186         (extract_range_from_unary_expr): Likewise.
19187
19188 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
19189
19190         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
19191         * config/frv/frv.c: Likewise.
19192         * config/s390/s390.c: Likewise.
19193         * config/sparc/sparc.h: Likewise.
19194         * config/i386/i386.h: Likewise.
19195         * config/i386/i386.c: Likewise.
19196         * config/crx/crx.c: Likewise.
19197         * config/m68hc11/m68hc11.h: Likewise.
19198         * config/iq2000/iq2000.c: Likewise.
19199         * config/mn10300/mn10300.h: Likewise.
19200         * config/mn10300/mn10300.c: Likewise.
19201         * config/m68k/m68k.c: Likewise.
19202         * config/rs6000/rs6000.c: Likewise.
19203         * config/rs6000/xcoff.h: Likewise.
19204         * config/rs6000/linux64.h: Likewise.
19205         * config/rs6000/sysv4.h: Likewise.
19206         * config/score/score3.c: Likewise.
19207         * config/score/score7.c: Likewise.
19208         * config/score/score.c: Likewise.
19209         * config/arm/arm.md: Likewise.
19210         * config/mips/mips.c: Likewise.
19211         * config/mips/mips.md: Likewise.
19212         * config/bfin/bfin.h: Likewise.
19213         * config/pa/pa.c: Likewise.
19214         * config/pa/constraints.md: Likewise.
19215
19216         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
19217         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
19218         * config/pdp11/pdp11.h: Use memory_address_p instead.
19219
19220 2009-05-14  Ian Lance Taylor  <iant@google.com>
19221
19222         * passes.c (finish_optimization_passes): Change i to int.
19223         * plugin.c (plugins_active_p): Change event to int.
19224         (dump_active_plugins): Likewise.
19225         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
19226         Add cast.
19227         * tree.c (tree_range_check_failed): Change c to unsigned int.
19228         (omp_clause_range_check_failed): Likewise.
19229         (build_common_builtin_nodes): Change mode to int.  Add cast.
19230         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
19231         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
19232
19233         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
19234         ++ or -- with a variable of enum type.
19235
19236 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19237
19238         PR driver/40144
19239         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
19240
19241 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19242
19243         * store-motion.c: Do not include params.h
19244         * Makefile.in: Fix dependencies for various files.
19245
19246 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19247
19248         * auto-inc-dec.c: Fix pass description, remove apparent
19249         accidental duplication.
19250
19251 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19252
19253         PR middle-end/40147
19254         * ipa-utils.h (memory_identifier_string): Moved to ...
19255         * tree.h (memory_identifier_string): Here.  Add GTY(()).
19256
19257 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19258
19259         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
19260         in the former documentation of...
19261         (GO_IF_LEGITIMATE_ADDRESS): ... this.
19262         * ira-conflicts.c (get_dup_num): Use address_operand.
19263         * targhooks.c (default_legitimate_address_p): New.
19264         * targhooks.h (default_legitimate_address_p): New.
19265         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
19266         Call hook.
19267         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
19268         * target.h (struct target): Add legitimate_address_p.
19269         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
19270         (TARGET_INITIALIZER): Include it.
19271
19272         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19273         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
19274         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
19275         (TARGET_LEGITIMATE_ADDRESS_P): New.
19276
19277         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19278         (REG_OK_STRICT_P): Delete.
19279         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
19280         (frv_legitimate_address_p_1): ... this.
19281         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
19282         (frv_legitimate_address_p_1): ... the renamed old
19283         frv_legitimate_address_p.
19284         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
19285         (TARGET_LEGITIMATE_ADDRESS_P): New.
19286
19287         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19288         * config/s390/s390-protos.h (legitimate_address_p): Remove.
19289         * config/s390/s390.c (legitimate_address_p): Rename to...
19290         (s390_legitimate_address_p): ... this, make static.
19291         (legitimize_address): Adjust call.
19292         (TARGET_LEGITIMATE_ADDRESS_P): New.
19293         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
19294
19295         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19296         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
19297         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
19298         (TARGET_LEGITIMATE_ADDRESS_P): New.
19299
19300         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19301         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
19302         * config/spu/spu.c (spu_legitimate_address): Rename to...
19303         (spu_legitimate_address_p): ... this, make static.
19304         (TARGET_LEGITIMATE_ADDRESS_P): New.
19305
19306         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19307         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
19308         * config/sparc/sparc.c (legitimate_address_p): Rename to...
19309         (sparc_legitimate_address_p): ... this, make static and return bool.
19310         (legitimize_address): Adjust call.
19311         (TARGET_LEGITIMATE_ADDRESS_P): New.
19312
19313         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19314         * config/i386/i386-protos.h (legitimate_address_p): Remove.
19315         * config/i386/i386.c (legitimate_address_p): Rename to...
19316         (ix86_legitimate_address_p): ... this, make static.
19317         (constant_address_p): Move after it, adjust call.
19318         (TARGET_LEGITIMATE_ADDRESS_P): New.
19319
19320         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19321         * config/avr/avr-protos.h (legitimate_address_p): Remove.
19322         * config/avr/avr.c (legitimate_address_p): Rename to...
19323         (avr_legitimate_address_p): ... this, make static.
19324         (legitimize_address): Adjust call.
19325         (TARGET_LEGITIMATE_ADDRESS_P): New.
19326
19327         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19328         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
19329         * config/crx/crx.c (crx_legitimate_address_p): Make static.
19330         (TARGET_LEGITIMATE_ADDRESS_P): New.
19331
19332         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19333         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
19334         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
19335         (TARGET_LEGITIMATE_ADDRESS_P): New.
19336
19337         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19338         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
19339         Remove.
19340         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19341         Make static.
19342         (TARGET_LEGITIMATE_ADDRESS_P): New.
19343
19344         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19345         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
19346         Remove.
19347         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
19348         Rename to...
19349         (m68hc11_legitimate_address_p): ... this, make static.
19350         (go_if_legitimate_address_internal): Rename to...
19351         (m68hc11_legitimate_address_p_1): ... this.
19352         (legitimize_address): Adjust call.
19353         (TARGET_LEGITIMATE_ADDRESS_P): New.
19354
19355         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19356         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
19357         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
19358         (TARGET_LEGITIMATE_ADDRESS_P): New.
19359
19360         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19361         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
19362         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
19363         (mn10300_legitimate_address_p): ... this, make static.
19364         (TARGET_LEGITIMATE_ADDRESS_P): New.
19365
19366         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19367         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
19368         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
19369         (TARGET_LEGITIMATE_ADDRESS_P): New.
19370
19371         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19372         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
19373         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
19374         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19375         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
19376         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
19377         (rs6000_legitimate_address_p): ... this, make static.
19378         (TARGET_LEGITIMATE_ADDRESS_P): New.
19379         (REG_MODE_OK_FOR_BASE_P): Delete.
19380         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
19381
19382         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19383         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
19384         Delete.
19385         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
19386         static, adjust types.
19387         (TARGET_LEGITIMATE_ADDRESS_P): New.
19388
19389         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19390         * config/score/score.c (score_address_p): Rename to...
19391         (score_legitimate_address_p): ... this.
19392         (TARGET_LEGITIMATE_ADDRESS_P): New.
19393         * config/score/score3.c (score3_address_p): Rename to...
19394         (score3_legitimate_address_p): ... this.
19395         * config/score/score7.c (score7_address_p): Rename to...
19396         (score7_legitimate_address_p): ... this.
19397
19398         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
19399         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
19400         GO_IF_LEGITIMATE_ADDRESS): Delete.
19401         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
19402         thumb2_legitimate_address_p): Delete.
19403         (arm_legitimate_address_p): Rename to...
19404         (arm_legitimate_address_outer_p): ... this.
19405         * config/arm/constraints.md ("Uq"): Adjust call.
19406         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
19407         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
19408         to...
19409         (arm_legitimate_address_outer_p): ... this.
19410         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
19411         static.
19412         (TARGET_LEGITIMATE_ADDRESS_P): New.
19413
19414         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19415         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
19416         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
19417         (TARGET_LEGITIMATE_ADDRESS_P): New.
19418
19419         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19420         * config/vax/vax-protos.h (legitimate_address_p): Remove.
19421         * config/vax/vax.c (legitimate_address_p): Rename to...
19422         (vax_legitimate_address_p): ... this, make static.
19423         (TARGET_LEGITIMATE_ADDRESS_P): New.
19424
19425         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19426         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
19427         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
19428         (TARGET_LEGITIMATE_ADDRESS_P): New.
19429
19430         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19431         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19432         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19433         (mmix_legitimate_address_p): ... this, make static.
19434         (TARGET_LEGITIMATE_ADDRESS_P): New.
19435
19436         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19437         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19438         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19439         (TARGET_LEGITIMATE_ADDRESS_P): New.
19440
19441 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19442
19443         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19444         of MODE_COMPLEX_INT.
19445
19446 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19447
19448         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19449         LCT_NORMAL in function call.
19450         * mips-tdump.c (print_file_desc): Add cast to enum type.
19451         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19452         (mark_stabs): Add casts to enum types.
19453         (parse_stabs_common): Add casts to enum types.
19454
19455 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19456
19457         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19458         Check for invalid values of LETTER.
19459
19460 2009-05-13  Taras Glek  <tglek@mozilla.com>
19461
19462         * attribs.c (register_attribute): moved out attribute registration
19463         into register_attribute.
19464         * doc/plugins.texi: Documented register_attribute and
19465         PLUGIN_ATTRIBUTES.
19466         * gcc-plugin.h: Added forward decl for register_attribute.
19467         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19468         * plugin.c (register_callback, invoke_plugin_callbacks): Added
19469         PLUGIN_ATTRIBUTES boilerplate.
19470
19471 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
19472
19473         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
19474         values even in sentinel and empty entries.
19475         (ms_printf_flag_specs):  Likewise.
19476         (ms_scanf_flag_specs):  Likewise.
19477         (ms_strftime_flag_specs):  Likewise.
19478         (ms_print_char_table):  Likewise.
19479         (ms_scan_char_table):  Likewise.
19480         (ms_time_char_table):  Likewise.
19481
19482 2009-05-13  Doug Kwan  <dougkwan@google.com>
19483
19484         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19485
19486 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19487
19488         * config/mips/mips.md (store): Add attributes for QI and HI.
19489         Update comment.
19490         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19491         (truncdi<mode>2): ... this new pattern.
19492
19493 2009-05-13  Brad Hards  <bradh@kde.org>
19494
19495         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19496
19497 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
19498             Ben Elliston <bje@au.ibm.com>
19499
19500         PR middle-end/40035
19501         * dse.c (check_mem_read_rtx): Guard against width == -1.
19502
19503 2009-05-13  Michael Matz  <matz@suse.de>
19504
19505         PR middle-end/39976
19506         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19507         (trivially_conflicts_p): New function.
19508         (insert_backedge_copies): Use it.
19509
19510 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
19511
19512         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19513         (handle_stdc_pragma): Use new enum constant names.
19514         (handle_pragma_float_const_decimal64): Ditto.
19515
19516 2009-05-13  Ian Lance Taylor  <iant@google.com>
19517
19518         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19519         tree.def.
19520
19521 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
19522
19523         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19524         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19525         multilibs.
19526         * config/m68k/m68k.h (FL_UCLINUX): Define.
19527
19528 2009-05-13  Jan Hubicka  <jh@suse.cz>
19529
19530         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19531
19532 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19533
19534         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19535         unless -fschedule-insns is specified.
19536
19537 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19538
19539         PR target/39561
19540         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19541         TARGET_EXPAND_CBRANCHDI4.
19542         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19543         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19544         (cmpeqdi): Fix comment.
19545
19546 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19547
19548         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19549         (sh_legitimate_address_p): Likewise.
19550         * config/sh/sh.c (sh_legitimate_index_p): New.
19551         (sh_legitimate_address_p): Likewise.
19552         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19553         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19554         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19555         (MAYBE_BASE_REGISTER_RTX_P): New macro.
19556         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19557         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19558         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19559         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19560         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19561
19562 2009-05-12  Jan Hubicka  <jh@suse.cz>
19563
19564         * tree-inline.c (estimate_operator_cost): Add operands;
19565         when division happens by constant, it is cheap.
19566         (estimate_num_insns): Loads and stores are not having cost of 0;
19567         EH magic stuff is cheap; when computing runtime cost of switch,
19568         use log2 base of amount of its cases; builtin_expect has cost of 0;
19569         compute cost for moving return value of call.
19570         (init_inline_once): Initialize time_based flags.
19571         * tree-inline.h (eni_weights_d): Add time_based flag.
19572
19573 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19574
19575         * df-core.c: Update head documentation.
19576
19577 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19578
19579         PR bootstrap/40118
19580         * rs6000.c (rs6000_generate_compare): Use op1b instead of
19581         shadowing exisiting variable op1.
19582
19583 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
19584
19585         PR target/37179
19586         * config/i386/driver-i386.c (processor_signatures): New enum.
19587         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19588         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19589         processor signature to detect geode processor.
19590
19591 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19592
19593         Revert:
19594
19595         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19596
19597         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19598         causes spurious differences between trunk and cond-optab branch.
19599
19600 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19601
19602         * dojump.c (compare_from_rtx): Delete.
19603         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
19604         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
19605         if the comparison does not satisfy the predicate; test predicates for
19606         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
19607         further if one existing pattern fails.
19608         * expr.h (compare_from_rtx): Delete.
19609         (prepare_operand): Declare it.
19610         * optabs.c: Change "lib call" to "libcall" throughout.
19611         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19612         HAVE_conditional_trap, emit_cmp_insn): Delete.
19613         (can_compare_p): Delete cmp_optab case.
19614         (prepare_float_lib_cmp): Return an rtx and a machine mode.
19615         Accept other parameters by value.
19616         (prepare_operand): Make non-static.
19617         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
19618         other parameters by value.  Try to widen operands here based on
19619         an optab_methods argument and looking at cbranch_optab.
19620         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19621         loop.  Use cbranch_optab directly.
19622         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
19623         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19624         assertion.
19625         (emit_conditional_move, emit_conditional_add): Inline what's needed
19626         of compare_from_rtx, using new prepare_cmp_insn for the rest.
19627         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19628         with COMPARE.  Move cmov_optab and cstore_optab above
19629         with cbranch_optab, move cmp_optab down with ucmp_optab,
19630         remove tst_otpab.  Do not initialize trap_rtx.
19631         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
19632         for trap code.  Do not check HAVE_conditional_trap.  Use
19633         prepare_cmp_insn.  Accept no predicate for operand 3.
19634         * optabs.h (OTI_cmp): Mark as used only for libcalls.
19635         (OTI_ctrap, ctrap_optab): New.
19636         (tst_optab): Delete.
19637         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19638         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19639         with lookup of ctrap_optab.
19640         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19641         Delete.
19642         (ctrap_optab): New.
19643
19644         * combine.c (combine_simplify_rtx, simplify_set): Do not
19645         special case comparing against zero for cc0 machines.
19646         * simplify-rtx.c (simplify_binary_operation_1): Never remove
19647         COMPARE on cc0 machines.
19648         (simplify_relational_operation): Return a new expression when
19649         a COMPARE could be removed.
19650         * final.c (final_scan_insn): Compare cc_status values
19651         against LHS of a (compare FOO (const_int 0)) cc0 source.
19652         Also check if cc_status.value is the full compare.
19653
19654         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19655         (cstoreMM4): Document.
19656         (conditional_trap): Document ctrapMM4 instead.
19657         (sync_compare_and_swapMM): Refer to cbranchcc4.
19658         (Dependent Patterns): Eliminate obsolete information referring to
19659         the old jump optimization phase.
19660         (Canonicalization): Include cbranchcc4 case, omit canonicalization
19661         of compares with 0 on cc0 machines.
19662         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19663         avoiding references to cc0.  Remove text about storing operands
19664         in cmpMM.
19665         * doc/tm.texi (Condition Codes): Include blurb on different
19666         condition code representations, separate into subsections for
19667         CC0, MODE_CC and conditional execution.
19668
19669         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19670         alpha_emit_setcc): Accept operands and a machine mode.
19671         * config/alpha/alpha.c (alpha_emit_conditional_branch):
19672         Get code/op0/op1 from operands, use machine mode argument
19673         instead of alpha_compare.fp_p.  Emit the branch here.
19674         (alpha_emit_setcc): Likewise, and return boolean.
19675         (alpha_emit_conditional_move): Likewise.  Assert that
19676         cmp_op_mode == cmp_mode, and simplify accordingly.
19677         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19678         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19679         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19680         Delete.
19681         (stack probe test): Use cbranchdi4.
19682         * config/alpha/predicates.md (alpha_cbranch_operator): New.
19683
19684         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19685         * config/arc/arc.h (movsicc, movsfcc): Use it.
19686         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19687         (cbranchsi4, cstoresi4): New.
19688         (cmpsi, bCC and sCC expanders): Remove.
19689
19690         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19691         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19692         * config/arm/predicates.md (arm_comparison_operator): Only include
19693         floating-point operators if there is a hardware floating-point unit.
19694         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19695         deferring to cbranch_cc and cstore_cc respectively.
19696         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19697         cbranch_cc, cstore_cc): New.
19698         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19699         arm_compare_op1.
19700         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19701
19702         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19703         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19704         as an argument.
19705         (adjust_insn_length): Adjust calls.
19706         (avr_reorg): Handle (compare (foo) (const_int 0)).
19707         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19708         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19709         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19710         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19711         (bCC): Remove.
19712         (cbranchqi4, cbranchhi4, cbranchsi4): New.
19713         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19714
19715         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19716         (cbranchsi4, cstorebi4, cstoresi4): New.
19717         (movbisi): This insn is duplicate, split it to zero_extend.
19718         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19719         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
19720         (bfin_optimize_loop): Use cbranch expander.
19721         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19722         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19723         (bfin_bimode_comparison_operator): ... this.
19724         (bfin_direct_comparison_operator): New.
19725
19726         * config/cris/cris.c (cris_normal_notice_update_cc): Look
19727         inside (compare FOO (const_int 0)).
19728         (cris_rtx_costs): Handle ZERO_EXTRACT.
19729         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19730         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19731         (*tstdi_v32): Delete.
19732         (*cmpdi_non_v32): Add M alternative for operand 1.
19733         (cmpsi, cmp<mode>): Make private.
19734         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19735         with COMPARE.
19736         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19737
19738         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19739         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19740         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19741         (cc_reg_operand): New.
19742         (any_cond): Delete.
19743         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19744         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19745         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19746         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19747         crx_expand_scond): Delete.
19748
19749         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19750         (cbranchsi4): New.
19751         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19752         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19753
19754         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19755         cstoresi4, cstoresf4, cstoredf4): New.
19756         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19757         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19758         Receive the entire operands array.
19759         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19760         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19761         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19762         Get test/op0/op1 from the operands array.
19763         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19764
19765         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19766         (h8300_expand_store): New.
19767         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19768         (const_int 0)).
19769         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
19770         (h8300_expand_store): New.
19771         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19772         or do not try to produce (set (cc0) REG).
19773         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
19774         change a compare into a move to a scratch register.  Disable some
19775         peepholes when comparing with zero.
19776         (tstsi, tsthi, tstsi, cmpqi): Make private.
19777         (cmphi): Delete.
19778         (bCC, sCC): Delete.
19779         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19780         cstoresi4): New.
19781
19782         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19783         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19784         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19785         (ix86_emit_i387_log1p): Use cbranchxf2.
19786         (ix86_expand_setcc): Return void.
19787         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19788         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19789         cmp<MODEF>, cmpcc): Remove.
19790         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19791         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19792         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19793         (sCC and bCC expanders): Remove.
19794         (stack_protect_test): Use cbranchcc4.
19795
19796         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19797         Delete.
19798         (ia64_expand_compare): Accept three rtx by reference and return void.
19799         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19800         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
19801         from *expr.  Update *expr with the BImode comparison to do.
19802         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19803         cmptf, bCC, sCC, conditional_trap): Delete.
19804         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19805         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19806         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19807         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19808         * config/ia64/predicates.md (ia64_cbranch_operator): New.
19809
19810         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19811         type of last argument.
19812         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19813         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19814         use machine mode argument instead of branch_type.  Remove dead
19815         code for floating-point comparisons.
19816         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19817         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19818         Remove.
19819         (cbranchsi4, cstoresi4): New.
19820         * config/iq2000/predicates.md (reg_or_const_operand): New.
19821
19822         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19823         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19824         (b<code>_op): Rewrite to...
19825         (bcc_op): ... this, using match_operator.
19826         (s<code>_op): Rewrite to...
19827         (scc_op): ... this, using match_operator.
19828         (s<code>_24_op): Rewrite to...
19829         (scc_op_24): ... this, using match_operator.
19830         (s<code>_<mode>): Rewrite to...
19831         (cstore<mode>4): ... this, using match_operator.
19832         (s<code>_<mode>_24): Rewrite to...
19833         (cstore<mode>4_24): ... this, using match_operator.
19834         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19835         m32c_unpend_compare, m32c_expand_scc): Delete.
19836         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19837         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19838         (m32c_expand_movcc): Change NE to EQ if necessary.
19839         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19840
19841         * config/m32r/m32r-protos.h (gen_cond_store): New.
19842         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19843         (gen_cond_store): New, from sCC patterns.
19844         (m32r_expand_block_move): Use cbranchsi4.
19845         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19846         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19847         (cbranchsi4, cstoresi4): New.
19848
19849         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19850         Delete.
19851         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19852         (m68hc11_notice_update_cc): Look into a compare with 0.
19853         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19854         Delete.
19855         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19856         cmphi, cmpqi, bCC): Delete.
19857         (cbranchsi4, cbranchhi4, cbranchqi4): New.
19858         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19859         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19860         sets with COMPARE.
19861
19862         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19863         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19864         * config/m68k/constraints.md (H): New.
19865         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19866         the define_insn below.
19867         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19868         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19869         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19870         patterns): Wrap RHS with COMPARE.
19871         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19872         (*cmpdi_internal): Name this pattern.
19873         (cmpdi): Change to define_insn.
19874         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19875         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19876         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19877         predicate.
19878         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19879         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19880         (conditional_trap): Change to...
19881         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19882         (*conditional_trap): Use the ordered_comparison_operator and
19883         const1_operand predicates.
19884         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19885         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19886         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19887         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19888
19889         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19890         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19891         (mcore_gen_compare): New.
19892         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19893         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19894         (mcore_gen_compare): ... this.
19895         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19896         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19897         (stack probe pattern): Use cbranchsi4.
19898
19899         * config/mips/predicates.md (mips_cstore_operator): New.
19900         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19901         * config/mips/mips.md (any_cond): Delete.
19902         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
19903         always succeed.
19904         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19905         fixuns_truncsfdi2): Use cbranch patterns.
19906         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19907         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19908         Adjust call to mips_expand_conditional_branch.
19909         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19910         cstore<GPR:mode>4.
19911         * config/mips/mips-protos.h (mips_expand_conditional_branch,
19912         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19913         * config/mips/mips.c (cmp_operands): Delete.
19914         (mips_emit_compare): Get comparison operands from *op0/*op1.
19915         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
19916         that it succeeds.  Use op0/op1 instead of cmp_operands.
19917         (mips_expand_conditional_branch, mips_expand_conditional_move,
19918         mips_expand_conditional_trap): Likewise.
19919         (mips_block_move_loop): Use cbranch patterns.
19920         * config/mips/mips.h (cmp_operands): Delete.
19921
19922         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19923         (mmix_gen_compare_reg): Just return a register in the right CC mode.
19924         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19925         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19926         (*cmpcc_folded): Rename to...
19927         (*cmpdi_folded): this.
19928         (*cmpcc): Rename to...
19929         (*cmps): ... this.
19930         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19931         (bCC): Remove.
19932         (cbranchdi4): New.
19933         (cbranchdf4): New.  Handle invalid comparisons here.
19934         * config/mmix/predicates.md (float_comparison_operator): New.
19935
19936         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19937         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19938         * config/mn10300/mn10300.md (tst): Delete.
19939         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19940         Name these patterns and wrap RHS in a compare.
19941         (*cmpsi): Make this pattern private.  Include tst.
19942         (*cmpsf): Make this pattern private.
19943         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19944         (compare with zero peepholes): Likewise.
19945         (bCC): Remove.
19946         (cbranchsi4, cbranchsf4): New.
19947         (casesi): Use cbranchsi4.
19948
19949         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19950         hppa_branch_type): Delete.
19951         (return_addr_rtx): Use cbranchsi4.
19952         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
19953         Emit CCFPmode comparison here.
19954         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19955         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19956         hppa_branch_type): Delete.
19957         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19958         (movsicc, movdicc): Remove references to hppa_compare_op0,
19959         hppa_compare_op1 and compare_from_rtx.
19960         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19961         (casesi): Use cbranchsi4.
19962
19963         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19964         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19965         * config/pdp11/pdp11.md (register_or_const0_operand): New.
19966         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
19967         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19968         (bCC): Delete.
19969         (cbranchdf4, cbranchhi4, cbranchqi4): New.
19970         (*branch, *branch_inverted): New.
19971
19972         * config/picochip/picochip.md (cbranchhi4): Use
19973         ordered_comparison_operator.
19974         (cmphi, bCC): Remove.
19975
19976         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19977         (trap_comparison_operator): Delete.
19978         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19979         rs6000_emit_cbranch): Accept mode and operands.
19980         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
19981         rs6000_compare_fp_p): Delete.
19982         (rs6000_generate_compare): Accept mode and comparison.  Extract code
19983         and op0/op1 from there.  Replace references to rs6000_compare_op0
19984         and rs6000_compare_op1.
19985         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19986         extract result from passed operands.
19987         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19988         extract loc from passed operands.
19989         (rs6000_emit_cmove): Likewise.
19990         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19991         rs6000_compare_fp_p): Delete.
19992         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19993         (cbranch<GPR>4, cbranch<FP>4): New.
19994         (cstore<mode>4): New.  Consolidate here all choices about when to use
19995         portable or specialized sCC sequences.
19996         (stack_protect_test): Use cbranchsi4.
19997         (conditional_trap): Replace with ctrap<GPR>4.
19998         (conditional trap insn): Replace trap_comparison_operator with
19999         ordered_comparison_operator.
20000
20001         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
20002         (s390_emit_prologue): Use ctrap.
20003         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
20004         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
20005         New predicates replacing...
20006         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
20007         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
20008         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
20009         (add<mode>cc): Do not use s390_compare_op0/op1.
20010         (s<code>): Change to...
20011         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
20012         (seq): Change to...
20013         (cstorecc4): ... this.  Handle EQ or NE equally.
20014         (*sne): Un-privatize for use in cstorecc4.
20015         (b<code>): Change to...
20016         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
20017         (conditional_trap): Replace with...
20018         (ctrap<GPR>4, ctrap<FP>4): ... these.
20019         (stack_protect): Use cbranchcc4.
20020
20021         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
20022         * config/score/score-protos.h (score_gen_cmp): Delete.
20023         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
20024         (score_block_move-loop): Use cbranchsi4.
20025         * config/score/score.md (cbranchsi4): New.
20026         (cmpsi, bCC): Delete.
20027         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
20028         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20029         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
20030         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20031         * config/score/score3.h (score3_gen_cmp): Delete.
20032         * config/score/score7.h (score7_gen_cmp): Delete.
20033
20034         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
20035         (sh_emit_scc_to_t): ... this.  Return void.
20036         (from_compare): Rename to...
20037         (sh_emit_compare_and_branch): ... this.
20038         (sh_emit_compare_and_set): New.
20039         (sh_expand_t_scc): Accept operands.
20040         * config/sh/predicates.md (sh_float_comparison_operator): New.
20041         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
20042         (prepare_scc_operands): Rename to...
20043         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
20044         arguments.
20045         (sh_emit_cheap_store_flag): New.
20046         (sh_emit_set_t_insn): New.
20047         (from_compare): Rename to...
20048         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
20049         handling of TARGET_SH2E floating point to avoid recursive call.
20050         Generate branch here.
20051         (sh_emit_compare_and_set): New.
20052         (sh_expand_t_scc): Get op0/op1 from arguments.
20053         (sh_emit_cheap_store_flag): New.
20054         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
20055         cases.
20056         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
20057         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
20058         (movsicc, movdicc): Do nothing when it recreated operands from
20059         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
20060         prepare_scc_operands (now sh_emit_scc_to_t).
20061         (udivdi3): Use cstoresi4.
20062         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
20063         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
20064         (cbranchint4_media, cbranchfp4_media): New.
20065         (casesi): Use cbranchdi4.
20066         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
20067         Delete.
20068         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
20069         (movnegt): Remove second operand.
20070         (cbranchsf4, cbranchdf4): New.
20071         (stack_protect): Use cbranchdi4/cbranchsi4.
20072
20073         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
20074         (gen_compare_reg): Accept comparison, extract part of it to...
20075         (gen_compare_reg_1): ... this.
20076         (gen_compare_operator): Delete.
20077         (gen_v9_scc): Accept separate destination, comparison code and arms.
20078         Do not use sparc_compare_op0/sparc_compare_op1.
20079         (emit_scc_insn, emit_conditional_branch_insn): New.
20080         (emit_v9_brxx): Make static.  Remove useless assertion.
20081         (sparc_emit_float_lib_cmp): Return RTL instead of calling
20082         emit_cmp_insn.
20083         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
20084         * config/sparc/sparc-protos.h (gen_compare_reg,
20085         sparc_emit_float_lib_cmp): Adjust prototype.
20086         (emit_scc_insn, emit_conditional_branch_insn): New.
20087         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
20088         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
20089         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
20090         iterators to the top.
20091         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
20092         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
20093         snedi_special_trunc): Delete.
20094         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
20095         and snedi_special_trunc.
20096         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
20097         cbranchdi4, cbranch<F:mode>4): New.
20098         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
20099         here.  Use gen_compare_reg instead of gen_compare_operator.
20100         (conditional_trap): Replace with...
20101         (ctrapsi4, ctrapdi4): ... this.
20102         (stack_protect_test): Use cbranchcc4.
20103
20104         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
20105         argument to rtx.
20106         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
20107         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
20108         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
20109         from operands[0] or operands[3] depending on is_set.
20110         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
20111         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
20112         cmpdf, bCC), sCC: Remove.
20113         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
20114         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
20115         cstoredf4): New.
20116         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
20117         spu_emit_branch_or_set.
20118
20119         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
20120         Add two arguments.
20121         * config/stormy16/stormy16.h (xstormy16_compare_op0,
20122         xstormy16_compare_op1): Delete.
20123         * config/stormy16/stormy16.c (xstormy16_compare_op0,
20124         xstormy16_compare_op1): Delete.
20125         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
20126         Adjust calls.
20127         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
20128         (cmphi, cmpsi, bCC): Remove.
20129
20130         * config/v850/v850.md (tstsi, cmpsi): Fold into...
20131         (*cmpsi): ... this one.
20132         (cbranchsi4, cstoresi4): New.
20133         (bCC expanders): Delete.
20134         (sCC insns): Fold into...
20135         (*setcc): ... this one.
20136         (casesi): Do not use gen_cmpsi and gen_bgtu.
20137         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
20138         (movsicc): Simplify.
20139         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
20140
20141         * config/vax/vax-protos.h (cond_name): New.
20142         (vax_output_conditional_branch): Remove.
20143         * config/vax/vax.c (cond_name): New.
20144         (vax_output_conditional_branch): Remove.
20145         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
20146         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
20147         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
20148         (bit<VAXint>): Wrap source with (compare).
20149         (b<code> and following unnamed pattern): Rename to *branch and
20150         *branch_reversed.  Change macroization to match_operator.
20151         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
20152
20153         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
20154         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
20155         Change last argument to machine_mode.
20156         (xtensa_expand_scc): Add machine_mode argument.
20157         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
20158         (gen_conditional_move, xtensa_expand_conditional_branch,
20159         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
20160         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
20161         Adjust operand numbers.
20162         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
20163         Delete.
20164         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
20165         (cmpsi, cmpsf, b<code>, s<code>): Delete.
20166         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
20167
20168 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
20169
20170         * optabs.c (prepare_cmp_insn): Temporarily disable test that
20171         causes spurious differences between trunk and cond-optab branch.
20172
20173 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
20174
20175         PR target/37137
20176         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
20177
20178 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
20179
20180         * tree.c (iterative_hash_pointer): Delete.
20181         (iterative_hash_expr): Short-circuit handling of NULL pointer.
20182         Hash UIDs and versions of SSA names.  Don't special-case built-in
20183         function declarations.
20184
20185 2009-05-11  Ian Lance Taylor  <iant@google.com>
20186
20187         PR bootstrap/40103
20188         * graphite.c: Force -Wc++-compat to only be a warning before
20189         #including "cloog/cloog.h".
20190
20191 2009-05-11  Martin Jambor  <mjambor@suse.cz>
20192
20193         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
20194
20195 2009-05-11  Jan Hubicka  <jh@suse.cz>
20196
20197         * tree-ssa-loop-ivcanon.c: Include target.h
20198         (struct loop_size): new structure.
20199         (constant_after_peeling): New predicate.
20200         (tree_estimate_loop_size): New function.
20201         (estimated_unrolled_size): Rewrite for new estimates.
20202         (try_unroll_loop_completely): Use new estimates.
20203         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
20204
20205 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20206
20207         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
20208         libcpp interface change.
20209         (spu_macro_to_expand): Likewise.
20210
20211 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
20212
20213         PR tree-optimization/40026
20214         * gimplify.c (gimplify_init_constructor): Change initial conditional
20215         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
20216         optimize_compound_literals_in_ctor.
20217
20218 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
20219
20220         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
20221         New devices.
20222         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
20223
20224 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20225
20226         * tree-vect-data-refs.c (vect_analyze_group_access): Use
20227         HOST_WIDE_INT for gap.
20228
20229 2009-05-11  Ira Rosen  <irar@il.ibm.com>
20230
20231         PR tree-optimization/40074
20232         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
20233         account in group size and step comparison.
20234
20235 2009-05-11  Richard Guenther  <rguenther@suse.de>
20236
20237         * passes.c (init_optimization_passes): Strip now incorrect comment.
20238         (execute_function_todo): Do not set PROP_alias.
20239         * tree-pass.h (PROP_alias): Remove.
20240         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
20241         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
20242         * tree-nrv.c (pass_return_slot): Likewise.
20243         * tree-object-size.c (pass_object_sizes): Likewise.
20244         * tree-ssa-dom.c (pass_dominator): Likewise.
20245         (pass_phi_only_cprop): Likewise.
20246         * tree-ssa-dse.c (pass_dse): Likewise.
20247         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20248         (pass_cselim): Likewise.
20249         * tree-ssa-pre.c (pass_pre): Likewise.
20250         (pass_fre): Likewise.
20251         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20252         * tree-ssa-sink.c (pass_sink_code): Likewise.
20253         * tree-stdarg.c (pass_stdarg): Likewise.
20254         * tree-tailcall.c (pass_tail_calls): Likewise.
20255         * tree-vrp.c (pass_vrp): Likewise.
20256
20257 2009-05-10  Ian Lance Taylor  <iant@google.com>
20258
20259         * basic-block.h (enum profile_status): Break out of struct
20260         control_flow_graph.
20261         * cgraph.h (struct inline_summary): Break out of struct
20262         cgraph_local_info.
20263         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
20264         of struct cgraph_order_sort.
20265         * combine.c (enum undo_kind): New enum, broken out of struct undo.
20266         * cse.c (struct branch_path): Break out of struct
20267         cse_basic_block_data.
20268         * except.h (enum eh_region_type): Break out of struct eh_region.
20269         * gcc.c (enum add_del): Break out of struct modify_target.
20270         * genrecog.c (enum decision_type): Break out of struct decision_test.
20271         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
20272         ggc_pch_data.
20273         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
20274         * regmove.c (enum match_use): New enum, broken out of struct match.
20275         * sched-int.h (enum post_call_group): New enum, broken out of
20276         struct deps.
20277         (struct deps_reg): Break out of struct deps.
20278         * target.h (struct asm_int_op): Break out of struct gcc_target.
20279         * tree-eh.c (struct goto_queue_node): Break out of struct
20280         leh_tf_state.
20281         * tree-inline.h (enum copy_body_cge_which): Break out of
20282         copy_body_data.
20283         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
20284
20285         * c-decl.c (in_struct, struct_types): New static variables.
20286         (pushtag): Add loc parameter.  Change all callers.
20287         (lookup_tag): Add ploc parameter.  Change all callers.
20288         (check_compound_literal_type): New function.
20289         (parser_xref_tag): Add loc parameter.  Change all callers.  If
20290         -Wc++-compat, warn about struct/union/enum types defined within a
20291         struct or union.
20292         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
20293         and loc parameters.  Change all callers.  Change error calls to
20294         error_at, using loc.  For a redefinition, if the location of the
20295         original definition is known, report it.  Set in_struct and
20296         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
20297         (finish_struct): Add new parameters enclosing_in_struct and
20298         enclosing_struct_types.  Change all callers.  Set
20299         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
20300         in the struct.  If in a struct, add this struct to struct_types.
20301         (start_enum): Add loc parameter.  Change all callers.  Use
20302         error_at for errors, using loc.  For a redefinition, if the
20303         location of the original definition is known, report it.  If in a
20304         struct, add this enum type to struct_types.  If -Wc++-compat warn
20305         if in sizeof, typeof, or alignof.
20306         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
20307         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
20308         (c_parser_enum_specifier): Get enum location for start_enum.
20309         (c_parser_struct_or_union_specifier): Get struct location for
20310         start_struct.  Save in_struct and struct_types status between
20311         start_struct and finish_struct.
20312         (c_parser_cast_expression): Get location of cast.
20313         (c_parser_alignof_expression): Get location of type.
20314         (c_parser_postfix_expression): Likewise.
20315         (c_parser_postfix_expression_after_paren_type): Add type_loc
20316         parameter.  Change all callers.  Call check_compound_literal_type.
20317         Use type_loc for error about variable size type.
20318         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
20319         of an enum constant from an enum type defined in a struct or union.
20320         (c_cast_expr): Add loc parameter.  Change all callers.  If
20321         -Wc++-compat, warn about defining a type in a cast.
20322         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
20323         (start_enum, start_struct, finish_struct): Update declarations.
20324         (parser_xref_tag, c_cast_expr): Update declarations.
20325         (check_compound_literal_type): Declare.
20326
20327 2009-05-11  Ben Elliston  <bje@au.ibm.com>
20328
20329         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
20330         for recent libcpp interface change.
20331         (rs6000_macro_to_expand): Likewise.
20332
20333 2009-05-10  Michael Matz  <matz@suse.de>
20334
20335         PR target/40031
20336         * config/arm/arm.c (require_pic_register): Emit on entry edge,
20337         not at entry of function.
20338
20339 2009-05-10  Richard Guenther  <rguenther@suse.de>
20340
20341         PR tree-optimization/40081
20342         Revert
20343         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20344         using the main variant of the element type.  Do not fiddle with
20345         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20346
20347         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
20348         structs with volatile fields.
20349
20350 2009-05-10  Jan Hubicka  <jh@suse.cz>
20351
20352         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
20353         (estimate_move_cost): Assert that it does not get called for
20354         VOID_TYPE_P.
20355         (estimate_num_insns): Skip VOID types in argument handling.
20356         (optimize_inline_calls): Delete unreachable blocks and verify that
20357         callgraph is valid.
20358
20359 2009-05-10  Jan Hubicka  <jh@suse.cz>
20360
20361         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
20362         * cgraph.c (cgraph_mark_address_taken_node): New function.
20363         (dump_cgraph_node): Dump new flag.
20364         * cgraph.h (struct cgraph_node): Add address_taken.
20365         (cgraph_mark_address_taken_node): New function.
20366         * ipa.c (cgraph_postorder): Prioritize functions with address taken
20367         since new direct calls can be born.
20368
20369 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20370
20371         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
20372         tok->val.node.node.
20373
20374 2009-05-10  Jan Hubicka  <jh@suse.cz>
20375
20376         PR middle-end/40084
20377         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
20378         argument; rewrite.
20379         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
20380         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
20381         * tree-inline.c (copy_bb): Set frequency correctly.
20382         (fold_marked_statements): Update call to
20383         cgraph_update_edges_for_call_stmt.
20384
20385 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20386
20387         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
20388         identifiers in diagnostics.
20389         * config/arm/arm.c (arm_handle_fndecl_attribute,
20390         arm_handle_isr_attribute): Likewise.
20391         * config/avr/avr.c (avr_handle_progmem_attribute,
20392         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
20393         * config/bfin/bfin.c (handle_int_attribute,
20394         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
20395         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
20396         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
20397         Likewise.
20398         * config/darwin.c (darwin_handle_kext_attribute,
20399         darwin_handle_weak_import_attribute): Likewise.
20400         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
20401         h8300_handle_eightbit_data_attribute,
20402         h8300_handle_tiny_data_attribute): Likewise.
20403         * config/i386/i386.c (ix86_handle_cconv_attribute,
20404         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
20405         * config/i386/winnt.c (ix86_handle_shared_attribute,
20406         ix86_handle_selectany_attribute): Likewise.
20407         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
20408         * config/m32c/m32c.c (function_vector_handler): Likewise.
20409         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
20410         m68hc11_handle_fntype_attribute): Likewise.
20411         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
20412         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
20413         * config/mips/mips.c (mips_insert_attributes,
20414         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
20415         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
20416         rs6000_handle_struct_attribute): Likewise.
20417         * config/sh/sh.c (sh_insert_attributes,
20418         sh_handle_resbank_handler_attribute,
20419         sh_handle_interrupt_handler_attribute,
20420         sh2a_handle_function_vector_handler_attribute,
20421         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
20422         Likewise.
20423         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
20424         * config/spu/spu.c (spu_handle_fndecl_attribute,
20425         spu_handle_vector_attribute): Likewise.
20426         * config/stormy16/stormy16.c
20427         (xstormy16_handle_interrupt_attribute): Likewise.
20428         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
20429         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
20430
20431 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20432
20433         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20434         (pp_translate_identifiers): New.
20435         (pp_identifier): Only conditionally translate identifier to locale
20436         character set.
20437         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20438         (pp_base_tree_identifier): Only conditionally translate identifier
20439         to locale character set.
20440         * c-pretty-print.c (M_): Define.
20441         (pp_c_type_specifier, pp_c_primary_expression): Mark English
20442         fragments for conditional translation with M_.
20443         * tree-pretty-print.c (maybe_init_pretty_print): Disable
20444         identifier translation.
20445
20446 2009-05-10  Richard Guenther  <rguenther@suse.de>
20447
20448         PR tree-optimization/40081
20449         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20450         using the main variant of the element type.  Do not fiddle with
20451         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20452
20453 2009-05-09  Jan Hubicka  <jh@suse.cz>
20454
20455         PR middle-end/40080
20456         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20457         indirect calls; verify cgraph afterwards.
20458
20459 2009-05-09  Jan Hubicka  <jh@suse.cz>
20460
20461         PR bootstrap/40082
20462         * ipa.c (update_inlined_to_pointer): New function.
20463         (cgraph_remove_unreachable_nodes): Use it.
20464
20465 2009-05-09  Jan Hubicka  <jh@suse.cz>
20466
20467         * tree-eh.c (struct leh_state): Remove prev_try.
20468         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20469         not track prev_try.
20470         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20471         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20472         remove_eh_handler_and_replace, foreach_reachable_handler,
20473         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20474         * except.h (struct eh_region): Remove eh_region_u_cleanup.
20475         (gen_eh_region_cleanup): Update prototype.
20476
20477 2009-05-09  Jan Hubicka  <jh@suse.cz>
20478
20479         PR middle-end/40043
20480         * except.c (copy_eh_region): Always set prev_try.
20481         (redirect_eh_edge_to_label): Find outer try.
20482         (foreach_reachable_handler): When looking for prev try
20483         handle case where previous try is not going to be taken.
20484
20485 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
20486
20487         PR tree-optimization/40049
20488         * tree-vect-stmts.c (vectorizable_operation): If the machine has
20489         only vector/vector shifts, convert the type of the constant to the
20490         appropriate type to avoid building incorrect trees, which
20491         eventually have problems with garbage collection.
20492
20493 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20494
20495         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20496         -1 for complex floating-point types if honoring signed zeros.
20497
20498 2009-05-08  Jan Hubicka  <jh@suse.cz>
20499
20500         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20501         argument; handle correctly when profile is absent.
20502         (build_cgraph_edges): Update.
20503         (rebuild_cgraph_edges): Update.
20504         * cgraph.c: Do not include varray.h.
20505         (cgraph_set_call_stmt_including_clones): New function.
20506         (cgraph_create_edge_including_clones): Likewise
20507         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20508         (cgraph_update_edges_for_call_stmt): Handle clones.
20509         (cgraph_remove_node): Handle clone tree.
20510         (cgraph_remove_node_and_inline_clones): New function.
20511         (dump_cgraph_node): Dump clone tree.
20512         (cgraph_clone_node): Handle clone tree.
20513         (clone_function_name): Bring here from tree-inline.c.
20514         (cgraph_create_virtual_clone): New function.
20515         * cgraph.h (ipa_replace_map): Move here from ipa.h.
20516         (cgraph_clone_info): New function.
20517         (strut cgraph_node): Add clone_info and new clone tree pointers.
20518         (cgraph_remove_node_and_inline_clones,
20519         cgraph_set_call_stmt_including_clones,
20520         cgraph_create_edge_including_clones,
20521         cgraph_create_virtual_clone): Declare.
20522         (cgraph_function_versioning): Use VEC argument.
20523         (compute_call_stmt_bb_frequency): Update prototype.
20524         (cgraph_materialize_all_clones): New function.
20525         * ipa-cp.c (ipcp_update_cloned_node): Remove.
20526         (ipcp_create_replace_map): Update to VECtors.
20527         (ipcp_update_callgraph): Use virtual clones.
20528         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20529         (ipcp_update_profiling): Do not update local profiling.
20530         (ipcp_insert_stage): Use VECtors and virtual clones.
20531         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20532         (clone_of_p): New function.
20533         (cgraph_preserve_function_body_p): Use clone tree.
20534         (cgraph_optimize): Materialize clones.
20535         (cgraph_function_versioning): Update for VECtors.
20536         (save_inline_function_body): Use clone tree.
20537         (cgraph_materialize_clone): New function.
20538         (cgraph_materialize_all_clones): Likewise.
20539         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20540         * ipa.c: Include gimple.h.
20541         (cgraph_remove_unreachable_nodes): Use clone tree.
20542         * ipa-prop.c (ipa_note_param_call): Update call to
20543         compute_call_stmt_bb_frequencycall.
20544         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20545         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20546         (copy_bb): Handle updating of clone tree; add new edge when new call
20547         appears.
20548         (expand_call_inline): Be strict about every call having edge.
20549         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20550         (delete_unreachable_blocks_update_callgraph): New function.
20551         (tree_function_versioning): Use VECtors; always remove unreachable
20552         blocks and fold conditionals.
20553         * tree-inline.h: Do not include varray.h.
20554         (tree_function_versioning): Remove.
20555         * Makefile.in (GTFILES): Remove tree-inline.c
20556         * passes.c (do_per_function): Do only functions having body.
20557         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20558         tree.
20559
20560 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20561             Andrew Morrow  <acm@google.com>
20562
20563         PR c/36892
20564         * c-common.c (c_common_attribute_table): Permit deprecated
20565         attribute to take an optional argument.
20566         (handle_deprecated_attribute): If the optional argument to
20567         __attribute__((deprecated)) is not a string ignore the attribute
20568         and emit a warning.
20569
20570         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20571         * c-typeck.c (build_component_ref): Likewise.
20572         (build_external_ref): Likewise.
20573
20574         * toplev.c (warn_deprecated_use): Add an attribute argument.
20575         Emit the message associated with __attribute__((deprecated)).
20576
20577         * toplev.h (warn_deprecated_use): Updated.
20578
20579         * doc/extend.texi: Document new optional parameter to
20580         __attribute__((deprecated))
20581
20582 2009-05-08  Michael Eager <eager@eagercon.com>
20583
20584         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20585         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20586
20587 2009-05-08  Richard Guenther  <rguenther@suse.de>
20588
20589         PR tree-optimization/40062
20590         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20591         Avoid exponential behavior.
20592
20593 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20594
20595         PR rtl-optimization/33928
20596         PR 26854
20597         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20598         process_uses, build_single_def_use_links): New.
20599         (update_df): Update use_def_ref.
20600         (forward_propagate_into): Use get_def_for_use instead of use-def
20601         chains.
20602         (fwprop_init): Call build_single_def_use_links and let it initialize
20603         dataflow.
20604         (fwprop_done): Free use_def_ref.
20605         (fwprop_addr): Eliminate duplicate call to df_set_flags.
20606         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20607         df_rd_simulate_one_insn): New.
20608         (df_rd_bb_local_compute_process_def): Update head comment.
20609         (df_chain_create_bb): Use the new RD simulation functions.
20610         * df.h (df_rd_simulate_artificial_defs_at_top,
20611         df_rd_simulate_one_insn): New.
20612         * opts.c (decode_options): Enable fwprop at -O1.
20613         * doc/invoke.texi (-fforward-propagate): Document this.
20614
20615 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20616
20617         PR c/24581
20618         * c-typeck.c (build_binary_op): Handle arithmetic between one real
20619         and one complex operand specially.
20620         * tree-complex.c (some_nonzerop): Do not identify a real value as
20621         zero if flag_signed_zeros.
20622
20623 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20624
20625         PR rtl-optimization/33928
20626         * loop-invariant.c (record_use): Fix && vs. || mishap.
20627
20628 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20629
20630         PR rtl-optimization/33928
20631         * loop-invariant.c (struct use): Add addr_use_p.
20632         (struct def): Add n_addr_uses.
20633         (struct invariant): Add cheap_address.
20634         (create_new_invariant): Set cheap_address.
20635         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
20636         (record_uses): Pass df_ref to record_use.
20637         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20638         used only as such.
20639
20640 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20641
20642         * config/sh/sh.c: Do not include c-pragma.h.
20643
20644 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20645
20646         * config/spu/spu.c: Remove include of c-common.h.
20647
20648 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
20649
20650         PR c/39037
20651         * c-common.h (mark_valid_location_for_stdc_pragma,
20652         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20653         clear_float_const_decimal64, float_const_decimal64_p): New.
20654         * c.opt (Wunsuffixed-float-constants): New.
20655         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20656         unsuffixed float constant, handle new warning.
20657         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20658         * c-decl.c (c_scope): New flag float_const_decimal64.
20659         (set_float_const_decimal64, clear_float_const_decimal64,
20660         float_const_decimal64_p): New.
20661         (push_scope): Set new flag.
20662         * c-parser.c (c_parser_translation_unit): Mark when it's valid
20663         to use STDC pragmas.
20664         (c_parser_external_declaration): Ditto.
20665         (c_parser_compound_statement_nostart): Ditto.
20666         * c-pragma.c (valid_location_for_stdc_pragma,
20667         mark_valid_location_for_stdc_pragma,
20668         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20669         handle_pragma_float_const_decimal64): New.
20670         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20671         * cp/semantics.c (valid_location_for_stdc_pragma_p,
20672         set_float_const_decimal64, clear_float_const_decimal64,
20673         float_const_decimal64_p): New dummy functions.
20674         * doc/extend.texi (Decimal Float): Remove statement that the
20675         pragma, and suffix for double constants, are not supported.
20676         * doc/invoke.texi (Warning Options): List new option.
20677         (-Wunsuffixed-float-constants): New.
20678
20679 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
20680
20681         * config/i386/i386.c: Do not include c-common.h.
20682
20683 2009-05-07  Mark Heffernan  <meheff@google.com>
20684
20685         * doc/invoke.texi (Debugging Options): Document change of debugging
20686         dump location.
20687         * opts.c (decode_options): Make dump_base_name relative to
20688         aux_base_name directory.
20689
20690 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20691
20692         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20693         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20694
20695 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
20696
20697         * Makefile.in (install-plugin): Simplify a bit.
20698
20699 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
20700
20701         * Makefile.in (OBJS-common): Add regcprop.o.
20702         (regcprop.o): New.
20703         * timevar.def (TV_CPROP_REGISTERS): New.
20704         * regrename.c (regrename_optimize): Return 0.
20705         (rest_of_handle_regrename): Delete.
20706         (pass_rename_registers): Point to regrename_optimize.
20707         (struct value_data_entry, struct value_data,
20708         kill_value_one_regno, kill_value_regno, kill_value,
20709         set_value_regno, init_value_data, kill_clobbered_value,
20710         kill_set_value, kill_autoinc_value, copy_value,
20711         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20712         replace_oldest_value_reg, replace_oldest_value_addr,
20713         replace_oldest_value_mem, copyprop_hardreg_forward_1,
20714         debug_value_data, validate_value_data): Move...
20715         * regcprop.c: ... here.
20716         (rest_of_handle_cprop): Delete.
20717         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20718
20719 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
20720
20721         PR middle-end/40057
20722         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20723         GEN_INT for 1 << bitnum.
20724         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20725         build_int_cst_type.
20726
20727 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
20728
20729         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20730         Remove wrong description of "nand" operation.
20731
20732 2009-05-06  Richard Guenther  <rguenther@suse.de>
20733             Adam Nemet  <anemet@caviumnetworks.com>
20734
20735         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20736         comment.  Add that if LHS is not a gimple register, then RHS1 has
20737         to be a single object (GIMPLE_SINGLE_RHS).
20738
20739 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
20740
20741         * expr.c (get_def_for_expr): Move it up in the file.
20742         (store_field): When expanding a bit-field store, look at the
20743         defining gimple stmt for the masking conversion.
20744
20745 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
20746
20747         PR middle-end/39986
20748         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20749         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20750         32-bit memcpy into long.
20751
20752 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
20753
20754         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20755         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20756         new_reg_loc_descr.
20757         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20758         instead of appending DW_OP_deref*.
20759
20760 2009-05-06  Michael Matz  <matz@suse.de>
20761
20762         PR middle-end/40021
20763         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20764         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20765
20766 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
20767
20768         * Makefile.in (install-plugin): Fix srcdir handling.
20769
20770 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
20771
20772         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20773         when processing for not_regs_needed bitmap.
20774         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20775         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
20776         handling it for rhs.
20777
20778 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20779
20780         * config/i386/i386.md (unnamed inc/dec peephole): Use
20781         optimize_insn_for_size_p instead of optimize_size.
20782         * config/i386/predicates.md (incdec_operand): Likewise.
20783         (aligned_operand): Likewise.
20784         * config/i386/sse.md (divv8sf3): Likewise.
20785         (sqrtv8sf2): Likewise.
20786
20787 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20788
20789         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20790
20791         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20792
20793 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20794
20795         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20796         ssemodesuffixf2c with avxmodesuffixf2c.
20797
20798 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
20799
20800         PR c/40032
20801         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20802
20803 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
20804
20805         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20806         (struct tree_base): Adjust spacing for 8 bit boundaries.
20807         (struct tree_decl_common): Add decl_by_reference_flag bit.
20808         (DECL_BY_REFERENCE): Adjust.
20809         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20810         print DECL_BY_REFERENCE bit.
20811         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20812         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20813         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20814         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
20815         unconditionally.
20816
20817         PR middle-end/39666
20818         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20819         range of the type, but default label is missing, add it with one
20820         of the existing labels instead of adding a new label for it.
20821
20822 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
20823
20824         * dwarf.h: Remove.
20825
20826 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
20827
20828         * Makefile.in (enable_plugin, plugin_includedir): New.
20829         (install): Depend on install-plugin.
20830         (PLUGIN_HEADERS): New.
20831         (install-plugin): New.
20832         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20833
20834 2009-05-05  Richard Guenther  <rguenther@suse.de>
20835
20836         PR tree-optimization/40022
20837         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20838         the only vuse.
20839         (phivn_valid_p): Fix tuplification error, simplify.
20840         (phiprop_insert_phi): Add dumps.
20841         (propagate_with_phi): Simplify.
20842
20843 2009-05-05  Richard Guenther  <rguenther@suse.de>
20844
20845         PR middle-end/40023
20846         * builtins.c (gimplify_va_arg_expr): Properly build the address.
20847
20848 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
20849
20850         * tree.h (strip_float_extensions): Remove duplicate declaration.
20851         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20852         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20853         block_ultimate_origin): Rearrange the declarations line to match the
20854         comment that indicates the .c file which the functions are defined.
20855         (dwarf2out_*, set_decl_rtl): Add comment.
20856         (get_base_address): Adjust comment.
20857         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20858         declarations line and add comment.
20859         (is_builtin_name): Add blank after function name, for clarity.
20860
20861 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20862
20863         * attribs.c (decl_attributes): Use %qE for identifiers in
20864         diagnostics.
20865         * cgraphunit.c (verify_cgraph_node): Translate function names to
20866         locale character set in diagnostics.
20867         * coverage.c (get_coverage_counts): Use %qE for identifiers in
20868         diagnostics.
20869         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20870         Document that functions are named in UTF-8.
20871         * expr.c (expand_expr_real_1): Translate function names to locale
20872         character set in diagnostics.
20873         * gimplify.c (omp_notice_variable, omp_is_private,
20874         gimplify_scan_omp_clauses): Use %qE for identifiers in
20875         diagnostics.
20876         * langhooks.c (lhd_print_error_function): Translate function names
20877         to locale character set.
20878         * langhooks.h (decl_printable_name): Document that return value is
20879         in internal character set.
20880         * stmt.c: Include pretty-print.h
20881         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20882         diagnostics.
20883         (resolve_operand_name_1): Translate named operand name to locale
20884         character set.
20885         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20886         diagnostics.
20887         * toplev.c (announce_function): Translate function names to locale
20888         character set.
20889         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20890         (default_tree_printer): Use pp_identifier or translate identifiers
20891         to locale character set.  Mark "<anonymous>" for translation.
20892         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20893         for identifiers in diagnostics.
20894         * tree.c (handle_dll_attribute): Use %qE for identifiers in
20895         diagnostics.
20896         * varasm.c (output_constructor): Use %qE for identifiers in
20897         diagnostics.
20898
20899 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
20900
20901         * configure.ac: use ` ` instead of $()
20902         * configure: Regenerate.
20903
20904 2009-05-05  Ben Elliston  <bje@au.ibm.com>
20905
20906         * config/pa/linux-atomic.c: Eliminate conditional include of
20907         errno.h on non-LP64 systems to simplify build requirements.
20908
20909 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20910
20911         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20912         diagnostics.
20913         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20914         and pass value to identifier_to_locale.
20915         (warn_variable_length_array): Make name a tree.
20916         (grokdeclarator): Separate diagnostic texts for named and unnamed
20917         declarators.  Use %qE for named declarators.
20918         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20919         diagnostics.
20920         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20921         identifiers in diagnostics.
20922         * c-typeck.c (push_member_name, start_init): Pass identifiers to
20923         identifier_to_locale.  Mark "anonymous" strings for translation.
20924
20925 2009-05-04  Michael Eager <eager@eagercon.com>
20926
20927         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20928         address for DImode/DFmode only if double-precision FP regs.
20929
20930 2009-05-04  Michael Eager <eager@eagercon.com>
20931
20932         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20933         TARGET_SINGLE_FLOAT check.
20934
20935 2009-05-04  Michael Eager <eager@eagercon.com>
20936
20937         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20938
20939 2009-05-04  Michael Eager <eager@eagercon.com>
20940
20941         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
20942         * config/rs6000/t-xilinx: New
20943
20944 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
20945
20946         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
20947         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20948         * gcc/explow.c (memory_address): Use target hook.
20949         * gcc/targhooks.c (default_legitimize_address): New.
20950         * gcc/targhooks.h (default_legitimize_address): New.
20951         * gcc/target.h (legitimize_address): New.
20952         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20953         (TARGET_INITIALIZER): Include it.
20954         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20955
20956         * config/bfin/bfin-protos.h (legitimize_address): Remove.
20957         * config/bfin/bfin.c (legitimize_address): Remove.
20958         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
20959         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20960         Remove.
20961         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20962         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20963
20964         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20965         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20966         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20967         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20968         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20969         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20970         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20971         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20972         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20973         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20974         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20975         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20976         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20977         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20978         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20979         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20980         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20981         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20982         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20983         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20984         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20985         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20986         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20987
20988         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20989         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20990         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20991         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20992         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20993         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20994         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20995         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20996         (thumb_legitimize_address): Delete.
20997         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20998         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20999         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
21000         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
21001         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
21002         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
21003         Delete.
21004         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
21005         Delete.
21006
21007         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
21008         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
21009         * config/m32r/m32r.c (m32r_legitimize_address): New.
21010         * config/m68k/m68k.c (m68k_legitimize_address): New.
21011         * config/score/score.c (score_legitimize_address): Standardize.
21012         * config/score/score3.c (score3_legitimize_address): Standardize.
21013         * config/score/score3.h (score3_legitimize_address): Adjust.
21014         * config/score/score7.c (score7_legitimize_address): Standardize.
21015         * config/score/score7.h (score7_legitimize_address): Adjust.
21016         * config/sh/sh.c (sh_legitimize_address): New.
21017         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
21018
21019         * gcc/config/s390/s390.c (legitimize_address): Rename to...
21020         (s390_legitimize_address): ... this.
21021         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
21022         (sparc_legitimize_address): ... this.
21023         * gcc/config/i386/i386.c (legitimize_address): Rename to...
21024         (ix86_legitimize_address): ... this.
21025         * gcc/config/avr/avr.c (legitimize_address): Rename to...
21026         (avr_legitimize_address): ... this.
21027         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
21028         (mn10300_legitimize_address): ... this.
21029         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
21030         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
21031         (alpha_expand_mov): Adjust call.
21032
21033         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
21034         * config/spu/spu.c (spu_legitimize_address): Likewise.
21035         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
21036         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
21037
21038 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21039
21040         * intl.c (locale_encoding, locale_utf8): New.
21041         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
21042         * intl.h (locale_encoding, locale_utf8): Declare.
21043         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
21044         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
21045         New.
21046         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
21047         argument.
21048         (pp_tree_identifier): Define to call pp_base_tree_identifier.
21049         (pp_base_tree_identifier): Declare as function.
21050         (identifier_to_locale): Declare.
21051         * Makefile.in (pretty-print.o): Update dependencies.
21052         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
21053
21054 2009-05-04  Richard Guenther  <rguenther@suse.de>
21055
21056         PR middle-end/40015
21057         * builtins.c (fold_builtin_memory_op): Do not decay to element
21058         type if the size matches the whole array.
21059
21060 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
21061
21062         * expmed.c (synth_mult): When trying out a shift, pass the result
21063         of a signed shift.
21064
21065 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
21066
21067         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
21068         (shiftsub1_cost): New.
21069         (init_expmed): Compute shiftsub1_cost.
21070         (synth_mult): Optimize multiplications by constants of the form
21071         -(2^^m-1) for some constant positive integer m.
21072
21073 2009-05-03  Richard Guenther  <rguenther@suse.de>
21074
21075         PR c/39983
21076         * c-typeck.c (array_to_pointer_conversion): Do not built
21077         ADDR_EXPRs of arrays of pointer-to-element type.
21078         * c-gimplify.c (c_gimplify_expr): Revert change fixing
21079         up wrong ADDR_EXPRs after-the-fact.
21080         * c-common.c (strict_aliasing_warning): Strip pointer
21081         conversions for obtaining the original type.
21082         * builtins.c (fold_builtin_memset): Handle array types.
21083         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
21084         and array types
21085
21086 2009-05-03  Richard Guenther  <rguenther@suse.de>
21087
21088         PR middle-end/23329
21089         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
21090         Do not lose casts from array types with unknown extent to array
21091         types with known extent.
21092         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
21093         alias set compatibility.
21094
21095 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21096
21097         * flags.h (extra_warnings): Delete.
21098         * toplev.c (process_options): Handle Wuninitialized here.
21099         * opts.c (extra_warnings): Delete.
21100         (set_Wextra): Delete.
21101         (common_handle_option): -Wextra can be handled automatically.
21102         * c-opts.c (c_common_handle_option): Delete obsolete code.
21103         (c_common_post_options): Simplify comment.
21104         * common.opt (W): Add Var.
21105         (Wextra): Add Var.
21106         (Wuninitialized): Initialize to -1.
21107
21108 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
21109             Richard Guenther  <rguenther@suse.de>
21110
21111         * expr.c (get_def_for_expr): New function.
21112         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
21113         SSA rather than trees.
21114         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
21115         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
21116
21117 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
21118
21119         * c-common.c (reswords): Add _Imaginary.
21120         * c-common.c (enum rid): Add RID_IMAGINARY.
21121
21122 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
21123
21124         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
21125         Patch by Richard Guenther.
21126
21127 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
21128
21129         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
21130         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
21131         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
21132         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
21133         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
21134         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
21135         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
21136         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
21137         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
21138         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
21139         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
21140         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
21141         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
21142         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
21143         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
21144         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
21145         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
21146         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
21147
21148 2009-05-02  Richard Guenther  <rguenther@suse.de>
21149
21150         PR tree-optimization/39940
21151         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
21152         doing so.
21153
21154 2009-05-02  Richard Guenther  <rguenther@suse.de>
21155
21156         PR middle-end/40001
21157         * tree-ssa.c (execute_update_addresses_taken): Properly check
21158         if we can mark a variable DECL_GIMPLE_REG_P.
21159         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
21160         back to the end of the function.
21161         (is_gimple_reg_type): Remove complex type special casing.
21162         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
21163         if not optimizing.
21164
21165 2009-05-02  Ben Elliston  <bje@au.ibm.com>
21166
21167         * doc/collect2.texi (Collect2): Document search path behaviour
21168         when configured with --with-ld.
21169
21170 2009-05-02  Jan Hubicka  <jh@suse.cz>
21171
21172         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
21173         parameter; update callers.
21174         (coalesce_cost_edge): EH edges are costier because they needs
21175         splitting even if not critical and even more costier when there are
21176         multiple EH predecestors.
21177
21178 2009-05-02  Jan Hubicka  <jh@suse.cz>
21179
21180         * except.c (remove_eh_handler_and_replace): Handle updating after
21181         removing TRY blocks.
21182
21183 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
21184
21185         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
21186
21187 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
21188
21189         * varasm.c: Do not include c-pragma.h.
21190         * attribs.c: Do not incude c-common.h.
21191
21192 2009-05-01  Michael Matz  <matz@suse.de>
21193
21194         * calls.c (initialize_argument_information): Handle SSA names like
21195         decls with a non MEM_P DECL_RTL.
21196
21197 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
21198
21199         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
21200         * ipa-utils.c: Likewise.
21201         * ipa-type-escape.c: Likewise.
21202         * cgraphunit.c Do not include c-common.h.
21203         * ipa-pure-const.c: Likewise.
21204         * tree-if-conv.c: Likewise.
21205         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
21206         * ipa-struct-reorg.c: Likewise.
21207         * tree-nomudflap.c: Likewise.
21208         * tree-ssa-structalias.c: Likewise.
21209
21210 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
21211
21212         * store-motion.c: Many cleanups to make this pass a first-class
21213         citizen instead of an appendix to gcse load motion.  Add TODO list
21214         to make this pass faster/cleaner/better.
21215
21216         (struct ls_expr): Post gcse.c-split cleanups.
21217         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
21218         "stores" field to "avail_stores".
21219         (pre_ldst_mems): Rename to store_motion_mems.
21220         (pre_ldst_table): Rename to store_motion_mems_table.
21221         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
21222         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
21223         (ldst_entry): Rename to st_expr_entry, update users.
21224         (free_ldst_entry): Rename to free_st_expr_entry, update users.
21225         (free_ldst_mems): Rename to free_store_motion_mems, update users.
21226         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
21227         update caller.
21228         (first_ls_expr): Rename to first_st_expr, update users.
21229         (next_ls_expr): Rename to next_st_expr, update users.
21230         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
21231         fields properly for store motion instead of names inherited from load
21232         motion in gcse.c.
21233         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
21234         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
21235         are done with it.
21236
21237         (ae_kill): Rename to st_kill, update users.
21238         (ae_gen): Rename to st_avloc, update users.
21239         (transp): Rename to st_transp, update users.
21240         (pre_insert_map): Rename to st_insert_map, update users.
21241         (pre_delete_map): Rename to st_delete_map, update users.
21242         (insert_store, build_store_vectors, free_store_memory,
21243         one_store_motion_pass): Update for abovementioned changes.
21244
21245         (gcse_subst_count, gcse_create_count): Remove.
21246         (one_store_motion_pass): New statistics counters "n_stores_deleted"
21247         and "n_stores_created", local variables.
21248
21249         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
21250         use for_each_rtx.
21251
21252         (regvec, compute_store_table_current_insn): Remove.
21253         (reg_set_info, reg_clear_last_set): Remove.
21254         (compute_store_table): Use DF caches instead of local dataflow
21255         solvers.
21256
21257 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
21258
21259         * c-objc-common.c (c_tree_printer): Print identifiers with
21260         pp_identifier, not pp_string.  Mark "({anonymous})" for
21261         translation.
21262         * c-pretty-print.c (pp_c_ws_string): New.
21263         (pp_c_cv_qualifier, pp_c_type_specifier,
21264         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
21265         pp_c_storage_class_specifier, pp_c_function_specifier,
21266         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
21267         pp_c_primary_expression, pp_c_postfix_expression,
21268         pp_c_unary_expression, pp_c_shift_expression,
21269         pp_c_relational_expression, pp_c_equality_expression,
21270         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
21271         use pp_string and pp_c_ws_string in place of pp_identifier and
21272         pp_c_identifier for non-identifiers.  Mark English strings for
21273         translation.
21274         * c-pretty-print.h (pp_c_ws_string): Declare.
21275
21276 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
21277             Roland McGrath <roland@redhat.com>
21278
21279         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
21280         (ENABLE_LD_BUILDID): New configuration option.
21281         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
21282         (LINK_BUILDID_SPEC): New macro.
21283         (init_spec): If defined, prepend it between LINK_EH_SPEC and
21284         link_spec.
21285         * doc/install.texi: Document --enable-linker-build-id option.
21286         * configure: Rebuild.
21287         * config.in: Rebuild.
21288
21289 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
21290
21291         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
21292         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
21293         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
21294         MIPS_GP_SAVE_AREA_SIZE.
21295         * config/mips/mips.c (struct mips_frame_info): Update comment
21296         before arg_pointer_offset and hard_frame_pointer_offset.
21297         (mips_compute_frame_info): Update diagram before function: to
21298         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
21299         indicate the position of frame_pointer_rtx with -fstack-protector and
21300         to show args_size.  Don't allocate cprestore area for leaf functions
21301         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
21302         cprestore_size.
21303         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
21304
21305 2009-04-30  Michael Matz  <matz@suse.de>
21306
21307         PR tree-optimization/39955
21308         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
21309
21310 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
21311
21312         * ira.c (setup_cover_and_important_classes):  Use safe macro
21313         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
21314         directly.
21315         * genpreds.c (write_tm_preds_h):  Output suitable definition of
21316         REG_CLASS_FOR_CONSTRAINT.
21317
21318 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
21319
21320         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
21321         instead of an int.
21322         * bitmap.c (bitmap_descriptor): Likewise.
21323         * ggc-common.c (loc_descriptor): Likewise.
21324         * varray.c (varray_descriptor): Likewise.
21325         * vec.c (vec_descriptor): Likewise.
21326
21327 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21328
21329         * Makefile.in (dce.o): Add $(EXCEPT_H).
21330         * dce.c: Include except.h and delete redundant vector definitions.
21331         (deletable_insn_p): Return false for non-call insns that can throw
21332         if DF is running.
21333
21334 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21335
21336         * gcse.c (ae_gen): Remove.
21337         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
21338         and make non-static function to make it available in store-motion.c.
21339         Update call sites with search-and-replace.
21340         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
21341         extract_mentioned_regs, extract_mentioned_regs_helper,
21342         find_moveable_store, compute_store_table, load_kills_store, find_loads,
21343         store_killed_in_insn, store_killed_after, store_killed_before,
21344         build_store_vectors, insert_insn_start_basic_block, insert-store,
21345         remove_reachable_equiv_notes, replace_store_insn, delete_store,
21346         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
21347         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
21348         * store-motion.c: ...new file.  Also copy data structures from gcse.c
21349         and clean up to remove parts not used by store motion.
21350         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
21351         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
21352
21353 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21354
21355         PR target/38571
21356         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
21357         when optimizing for size.
21358
21359 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
21360
21361         * gcse.c (gcse_constant_p): Fix typo in last change.
21362
21363 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
21364
21365         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
21366
21367 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21368
21369         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
21370
21371 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
21372
21373         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
21374         CONST_HIGH_PART result.
21375
21376 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
21377
21378         * config/avr/avr.c (initial_elimination_offset): Rename to
21379         avr_initial_elimination_offset.
21380         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
21381         change return type to bool.
21382         (avr_can_eliminate): New function.
21383         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
21384         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
21385         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
21386         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
21387         avr_initial_elimination_offset.
21388         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
21389         (avr_initial_elimination_offset): Define.
21390
21391 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
21392             Steven Bosscher  <steven@gcc.gnu.org>
21393
21394         PR rtl-optimization/39938
21395         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
21396         * cfgrtl.c: Include insn-attr.h.
21397         (rest_of_pass_free_cfg): New function.
21398         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
21399         * resource.c (init_resource_info): Remove call to df_analyze.
21400
21401 2009-04-29  Richard Guenther  <rguenther@suse.de>
21402
21403         PR target/39943
21404         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
21405         allow conversion to signed integers.
21406
21407 2009-04-29  Richard Guenther  <rguenther@suse.de>
21408
21409         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
21410         shifts of floating point vectors if the shift amount is
21411         a constant multiple of the element size.
21412
21413 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
21414             Michael Matz  <matz@suse.de>
21415
21416         PR middle-end/39927
21417         PR bootstrap/39929
21418         * tree-outof-ssa.c (emit_partition_copy): New function.
21419         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21420         insert_part_to_rtx_on_edge): Perform the partition base var
21421         copy using emit_partition_copy.
21422         (insert_value_copy_on_edge): Convert constants to the right mode.
21423         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
21424         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
21425
21426 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21427
21428         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
21429         scan backwards to try to find a constant to initialize it.
21430
21431         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21432         insn before the loop_end instruction, don't look past labels.
21433
21434 2009-04-29  Richard Guenther  <rguenther@suse.de>
21435
21436         PR middle-end/39937
21437         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21438         loose type conversions.
21439         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
21440         stmts only if there are no uses of its definition.
21441
21442 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21443
21444         * config/bfin/bfin.h (splitting_loops): Declare.
21445         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21446         Reorder bit definitions to be ascending.
21447         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21448         * config/bfin/bfin.c (splitting_loops): New variable.
21449         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21450         (struct loop_info): Remove members INIT and LOOP_INIT.
21451         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
21452         the LSETUP sequence.  Allow LC to be loaded from any register, but
21453         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21454         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21455         set to 1.
21456         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21457         of reload_completed.
21458
21459         From Jie Zhang:
21460         * config/bfin/bfin.md (movsi_insn): Refine constraints.
21461
21462 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
21463
21464         * Makefile.in (PLUGIN_VERSION_H): New.
21465         (OBJS-common): Remove plugin-version.o.
21466         (plugin.o): Depend on (PLUGIN_VERSION_H).
21467         (plugin-version.o): Remove.
21468         * configure: Regenerate
21469         * configure.ac: Create plugin-version.h.
21470         * gcc-plugin.h (plugin_gcc_version): Remove.
21471         (plugin_default_version_check): Change signature.
21472         * plugin-version.c: Remove.
21473         * plugin.c: Include plugin-version.h.
21474         (str_plugin_gcc_version_name): Remove.
21475         (try_init_one_plugin): Pass gcc version to plugin_init.
21476         (plugin_default_version_check): Both gcc and plugin versions are now
21477         arguments.
21478
21479 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21480
21481         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21482         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
21483         Remove special case testing for last insn of inner loops. Don't fail
21484         if the loop ends with a jump, emit an extra nop instead.
21485
21486         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21487         DREGS rather than comparing directly.  Remove code that tries to
21488         account for latencies.
21489
21490 2009-04-29  Richard Guenther  <rguenther@suse.de>
21491
21492         PR tree-optimization/39941
21493         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21494         eliminating an indirect call.
21495
21496 2009-04-29  Richard Guenther  <rguenther@suse.de>
21497
21498         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21499         parameter.  Allow invariants as base if !require_lvalue.
21500         (verify_gimple_assign_single): Adjust.
21501
21502 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21503
21504         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21505         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21506         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21507         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21508         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21509         a VEC_SELECT.
21510         * config/bfin/bfin.c (bfin_expand_builtin,
21511         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21512
21513 2009-04-28  Richard Guenther  <rguenther@suse.de>
21514
21515         * tree-vect-loop.c (get_initial_def_for_induction): Use
21516         correct types for pointer increment.
21517
21518 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21519
21520         * toplev.c (print_version): Update GMP version string calculation.
21521
21522 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21523
21524         PR rtl-optimization/39938
21525         * resource.c (init_resource_info): Add call to df_analyze.
21526
21527 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21528
21529         * config/alpha/alpha.md (usegp): Cast the result of
21530         alpha_find_lo_sum_using_gp to enum attr_usegp.
21531         * config/alpha/alpha.c (override_options): Remove end-of-structure
21532         marker element from cpu_table.  Use array size of cpu_table to handle
21533         -mcpu and -mtune options.
21534         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21535
21536 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
21537
21538         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21539         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
21540         tune_32 and tune_64.
21541         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21542         support on PowerPC.
21543         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21544         * config/rs6000/option-defaults.h: ... here.  New file.
21545         (OPT_64, OPT_32): Define.
21546         (MASK_64BIT): Define to 0 if not already defined.
21547         (OPT_ARCH64, OPT_ARCH32): Define.
21548         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21549         and tune_64.
21550
21551 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21552
21553         * config/arm/arm.c (arm_override_options): Emit error on using
21554         fpa with AAPCS.
21555
21556 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21557
21558         PR rtl-optimization/39914
21559         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21560         registers for allocnos created from user-defined variables only
21561         when not optimizing.
21562
21563 2009-04-28  Richard Guenther  <rguenther@suse.de>
21564
21565         PR middle-end/39937
21566         * fold-const.c (fold_binary): Use distribute_real_division only
21567         on float types.
21568
21569 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
21570
21571         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21572         add hpux-stdint.h to tm_file.
21573         (hppa[12]*-*-hpux11*): Ditto.
21574         (ia64*-*-hpux*): Ditto.
21575         * config/hpux-stdint.h: New.
21576         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21577         __STDC_EXT__ for all compiles.
21578         * config/pa/pa-hpux.h: Ditto.
21579         * config/pa/pa-hpux10.h: Ditto.
21580         * config/pa/pa-hpux11.h: Ditto.
21581
21582 2009-04-28  Catherine Moore  <clm@codesourcery.com>
21583
21584         * debug.h (set_name): Add comment.
21585
21586 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
21587
21588         PR target/39929
21589         * config/darwin.c (machopic_gen_offset): Check
21590         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21591         * config/arm/arm.c (require_pic_register): Likewise.
21592
21593 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
21594
21595         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21596         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21597         m32c_promote_prototypes): Delete.
21598
21599 2009-04-28  Michael Matz  <matz@suse.de>
21600
21601         PR middle-end/39922
21602         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21603         constants.
21604
21605 2009-04-28  Richard Guenther  <rguenther@suse.de>
21606
21607         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21608
21609 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21610
21611         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21612         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21613         * config/arm/arm-tune.md: Regenerate.
21614
21615 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
21616
21617         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21618         block if there are complex incoming edges.
21619         (sel_merge_blocks): Remove useless assert.
21620         (sel_redirect_edge_and_branch): Check that edge was redirected.
21621         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21622         (sel_find_rgns): Delete declaration.
21623         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21624         the region when it is not a preheader.
21625
21626 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21627
21628         PR c/39323
21629         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21630
21631 2009-04-28  Richard Guenther  <rguenther@suse.de>
21632
21633         * tree.h (SSA_NAME_VALUE): Remove.
21634         (struct tree_ssa_name): Remove value_handle member.
21635         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21636         array for jump threading.
21637         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21638         SSA_NAME_VALUEs.
21639         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21640         * tree-flow.h (threadedge_initialize_values): Declare.
21641         (threadedge_finalize_values): Likewise.
21642         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21643         (SSA_NAME_VALUE): Define.
21644         (threadedge_initialize_values): New function.
21645         (threadedge_finalize_values): Likewise.
21646         * tree-ssa-dom.c (ssa_name_values): New global variable.
21647         (SSA_NAME_VALUE): Define.
21648         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21649
21650 2009-04-28  Ira Rosen  <irar@il.ibm.com>
21651
21652         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21653         Use REPORT_VECTORIZED_LOCATIONS instead
21654         REPORT_VECTORIZED_LOOPS.
21655         * tree-vectorizer.c (vect_verbosity_level): Make static.
21656         (vect_loop_location): Rename to vect_location.
21657         (vect_set_verbosity_level): Update comment.
21658         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21659         and vect_location.
21660         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21661         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21662         instead REPORT_UNVECTORIZED_LOOPS.
21663         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21664         and vect_loop_def to vect_external_def and vect_internal_def.
21665         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21666         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21667         REPORT_UNVECTORIZED_LOCATIONS.
21668         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21669         and vect_used_in_loop and to vect_unused_in_scope and
21670         vect_used_in_scope.
21671         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21672         (vect_verbosity_level): Remove declaration.
21673         (vect_analyze_operations): Likewise.
21674         (vect_analyze_stmt): Declare.
21675         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21676         REPORT_UNVECTORIZED_LOCATIONS.
21677         (vect_get_loop_niters): Fix indentation.
21678         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21679         (vect_analyze_loop_operations): New function.
21680         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21681         vect_analyze_operations.
21682         (vect_is_simple_reduction): Use new names.
21683         (vectorizable_live_operation, vect_transform_loop): Likewise.
21684         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21685         to specify whether the data references can be a part of interleaving
21686         chain.
21687         (vect_analyze_data_ref_dependence): Use new names.
21688         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21689         (vect_create_addr_base_for_vector_ref): Remove redundant code.
21690         * tree-vect-patterns.c (widened_name_p): Use new names.
21691         (vect_recog_dot_prod_pattern): Likewise.
21692         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21693         (process_use, vect_mark_stmts_to_be_vectorized,
21694         vect_model_simple_cost, vect_model_store_cost,
21695         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21696         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21697         vectorizable_operation, vectorizable_type_demotion,
21698         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21699         vectorizable_condition): Likewise.
21700         (vect_analyze_operations): Split into vect_analyze_loop_operations
21701         and ...
21702         (vect_analyze_stmt): ... new function.
21703         (new_stmt_vec_info): Use new names.
21704         (vect_is_simple_use): Use new names and fix comment.
21705         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21706         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21707
21708 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21709
21710         PR target/39911
21711         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21712         and integer modes for x87 operands.  Do not ICE for unsupported size,
21713         generate error instead.  Generate error for unsupported operand types.
21714         ['z']: Do not handle HImode memory operands specially.  Warning
21715         for floating-point operands.  Fallthru to 'Z' for unsupported operand
21716         types.  Do not ICE for unsupported size, generate error instead.
21717         (output_387_binary_op): Use %Z to output operands.
21718         (output_fp_compare): Ditto.
21719         (output_387_reg_move): Ditto.
21720
21721 2009-04-28  Ben Elliston  <bje@au.ibm.com>
21722
21723         PR c++/35652
21724         Revert:
21725
21726         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21727
21728         * builtins.c (c_strlen): Do not warn here.
21729         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21730         * c-common.c (pointer_int_sum): Take an explicit location.
21731         Warn about offsets out of bounds.
21732         * c-common.h (pointer_int_sum): Adjust declaration.
21733
21734 2009-04-27  Ian Lance Taylor  <iant@google.com>
21735
21736         * collect2.c (is_ctor_dtor): Change type of ret field in struct
21737         names to symkind.
21738         * dce.c (run_fast_df_dce): Change type of old_flags to int.
21739         * df-core.c (df_set_flags): Change return type to int.  Change
21740         type of old_flags to int.
21741         (df_clear_flags): Likewise.
21742         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21743         (df_get_conditional_uses): Likewise.
21744         * df.h (df_set_flags, df_clear_flags): Update declarations.
21745         * dwarf2out.c (struct indirect_string_node): Change type of form
21746         field to enum dwarf_form.
21747         (AT_string_form): Change return type to enum dwarf_form.
21748         * fixed-value.c (fixed_compare): Add cast to enum type.
21749         * fwprop.c (update_df): Change 0 to VOIDmode.
21750         * gensupport.c: Change 0 to UNKNOWN.
21751         * gimple.h (gimple_cond_code): Add cast to enum type.
21752         * haifa-sched.c (reemit_notes): Add cast to enum type.
21753         * hooks.c (hook_int_void_no_regs): Remove function.
21754         * hooks.h (hook_int_void_no_regs): Remove declaration.
21755         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21756         * predict.c (combine_predictions_for_insn): Add casts to enum type.
21757         * real.c (real_arithmetic): Add cast to enum type.
21758         (real_compare): Likewise.
21759         * target.h (struct gcc_target): Change return type of
21760         branch_target_register_class to enum reg_class.
21761         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21762         default_branch_target_register_class.
21763         * targhooks.c (default_branch_target_register_class): New function.
21764         * targhooks.h (default_branch_target_register_class): Declare.
21765         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21766         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21767         cast to int.
21768         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21769         ERROR_MARK.
21770         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21771         vect_uninitialized_def.  Change 0 to ERROR_MARK.
21772         * tree-vect-stmts.c (supportable_widening_operation): Don't
21773         initialize icode1 and icode2.
21774         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21775         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21776         and to STD_C89.
21777         (cmn_err_flag_specs): Change 0 to STD_C89.
21778         (cmn_err_char_table): Likewise.
21779         * config/arm/arm.c (get_arm_condition_code): Change type of code
21780         to enum arm_cond_code.
21781         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21782         (IWMMXT_BUILTIN2): Likewise.
21783         (neon_builtin_type_bits): Don't define typedef.
21784         (neon_builtin_datum): Change type of bits field to int.
21785         (arm_expand_neon_args): Add cast to enum type.
21786         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21787         TLS_MODEL_NONE.
21788         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
21789         casts to enum type.
21790         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21791         MIPS_FP_COND_f.
21792         * config/mips/mips.md (jal_macro): Return enum constant.
21793         (single_insn): Likewise.
21794         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21795         CODE_FOR_nothing.
21796         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21797         casts to enum type.
21798         * config/s390/s390.c (s390_tune_flags): Change type to int.
21799         (s390_arch_flags): Likewise.
21800         (s390_handle_arch_option): Change flags field of struct pta to int.
21801         * config/s390/s390.h (s390_tune_flags): Update declaration.
21802         (s390_arch_flags): Likewise.
21803         * config/sh/sh.c (prepare_move_operands): Compare
21804         tls_symbolic_operand result with enum constant.
21805         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21806         (sh_expand_prologue): Add cast to enum type.
21807         (sh_expand_epilogue): Likewise.
21808         (tls_symbolic_operand): Change return type to enum tls_model.
21809         (fpscr_set_from_mem): Add cast to enum type.
21810         (legitimize_pic_address): Compare tls_symbolic_operand result with
21811         enum constant.
21812         (sh_target_reg_class): Change return type to enum reg_class.
21813         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21814         PROCESSOR_xxx.
21815         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21816         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21817         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21818         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21819         (delayed_branch, tls_call_delay): Likewise.
21820         (eligible_for_sibcall_delay): Likewise.
21821         (eligible_for_return_delay): Likewise.
21822         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21823         (spu_expand_builtin_1): Likewise.
21824
21825         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21826         for all types of conversions.
21827         (output_init_element): Issue -Wc++-compat warning if needed when
21828         initializing a bitfield with enum type.
21829         * c-parser.c (c_parser_expression): Set original_type to
21830         original_type of right hand operand of comma operator.
21831
21832 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21833
21834         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21835         grammar nits.
21836         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21837         * doc/cpp.texi (Standard Predefined Macros)
21838         (Implementation-defined behavior): Likewise.
21839         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21840         * doc/gimple.texi (GIMPLE Exception Handling)
21841         (@code{GIMPLE_ASSIGN}): Likewise.
21842         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21843         * doc/invoke.texi (Warning Options, Optimize Options)
21844         (AVR Options, Darwin Options): Likewise.
21845         (Optimize Options): Reformulate -fwhole-program description.
21846         * doc/loop.texi (Lambda): Likewise.
21847         * doc/md.texi (Output Template, Define Constraints)
21848         (Standard Names, Insn Splitting): Likewise.
21849         * doc/options.texi (Option properties): Likewise.
21850         * doc/passes.texi (Tree-SSA passes): Likewise.
21851         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21852         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21853         (File Names and DBX): Likewise.
21854         * doc/trouble.texi (Incompatibilities): Likewise.
21855
21856 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21857
21858         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21859         instruction is correct.
21860
21861 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21862
21863         Allow non-constant arguments to conversion intrinsics.
21864         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21865         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21866         * spu.c (print_operand): Handle 'v' and 'w'.
21867         (exp2_immediate_p, spu_gen_exp2): Define.
21868         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21869         spu_convtf_1): Update parameter descriptions.
21870         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21871         * constraints.md ('v', 'w'): New.
21872         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21873         Remove.
21874         (i2f, I2F): New define_mode_attr.
21875         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21876         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21877         fixuns_truncv4sfv4si2):  Update to use mode attribute.
21878         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21879         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21880         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21881         patterns for combine.
21882
21883 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
21884
21885         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21886         (cprop, hoist, pre, store_motion): New debug counters.
21887         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21888         is not an RTL pass anymore.
21889         (pass_profiling): Remove extern decl for pass removed in 2005.
21890         (pass_gcse, pass_jump_bypass): Remove.
21891         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21892         to 0 for clean state.
21893         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21894         * cse.c (gate_handle_cse_after_global_opts,
21895         rest_of_handle_cse_after_global_opts): New functions.
21896         (pass_cse_after_global_opts): New pass, does local CSE.
21897         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21898         (TV_CPROP): New timevar.
21899         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21900         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21901         (gcse_main, recompute_all_luids): Remove.
21902         (compute_hash_table_work): Call max_reg_num instead of reading
21903         max_gcse_regno.
21904         (cprop_jump): Don't set run_jump_opt_after_gcse.
21905         (constprop_register): Always allow to alter jumps.
21906         (cprop_insn): Likewise.
21907         (do_local_cprop): Likewise.
21908         (local_cprop_pass): Likewise.  Return non-zero if something changed.
21909         (cprop): Remove function, fold interesting bits into one_cprop_pass.
21910         (find_implicit_sets): Add note about missed optimization opportunity.
21911         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21912         pass_rtl_cprop execute function.
21913         Don't bother tracking the pass number, each pass gets its own dumpfile
21914         now anyway.
21915         Always allow to alter jumpsand bypass jumps.
21916         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21917         will just find no suitable set.
21918         (pre_edge_insert): Fix dumping, this function is for PRE only.
21919         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21920         pass_rtl_pre execute function.
21921         (hoist_code): Return non-zero if something changed.  Keep track of
21922         substitutions and insertions for statistics gathering similar to PRE.
21923         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21924         called from the pass_rtl_hoist execute function.  Show pass statistics.
21925         (compute_store_table): Use max_reg_num directly instead of using the
21926         formerly global max_gcse_regno.
21927         (build_store_vectors): Likewise.
21928         (replace_store_insn): Fix dumping.
21929         (store_motion): Rename to ...
21930         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
21931         pass, called from the pass_rtl_store_motion execute function.  Keep
21932         track of substitutions and insertions for statistics gathering similar
21933         to PRE.
21934         (bypass_jumps): Remove, fold interesting bits into ...
21935         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
21936         from the pass_rtl_cprop execute function.
21937         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21938         pass_jump_bypass): Remove.
21939         (gate_handle_gcse, rest_of_handle_gcse): Remove.
21940         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21941         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21942         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21943         (gate_rtl_store_motion, execute_rtl_store_motion,
21944         pass_rtl_store_motion): New.
21945         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21946         make it clear that -fcse-skip-blocks is a no-op for backward compat.
21947         * passes.c (init_optimization_passes): Remove pass_gcse and
21948         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
21949         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
21950         instead of pass_jump_bypass.
21951
21952 2009-04-27  Richard Guenther  <rguenther@suse.de>
21953
21954         PR middle-end/39928
21955         * gimplify.c (gimplify_expr): If we are required to create
21956         a temporary make sure it ends up as register.
21957
21958 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
21959
21960         PR target/39903
21961         * config/i386/i386.c (construct_container): Don't call
21962         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21963         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21964
21965 2009-04-27  Michael Matz  <matz@suse.de>
21966
21967         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21968         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
21969         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
21970         (dump_replaceable_exprs): Take a bitmap.
21971         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21972         array.
21973         (expand_gimple_basic_block): Likewise.
21974         * tree-ssa-ter.c (struct temp_expr_table_d): Make
21975         replaceable_expressions member a bitmap.
21976         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21977         (mark_replaceable): Likewise.
21978         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21979         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21980
21981 2009-04-27  Richard Guenther  <rguenther@suse.de>
21982
21983         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21984         (verify_stmts): Dispatch to gimple/type verification code.
21985         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21986         issue with call argument types.
21987
21988 2009-04-27  Michael Matz  <matz@suse.de>
21989
21990         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21991         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21992         to above.
21993
21994 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
21995             Eric Botcazou  <ebotcazou@adacore.com>
21996
21997         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21998         a label's basic block.
21999         (mark_target_live_regs): Tidy and rework obsolete comments.
22000         Change back DF problem to LIVE.  If a label starts a basic block,
22001         assume that all registers that used to be live then still are.
22002         (init_resource_info): If a label starts a basic block, set its
22003         BLOCK_FOR_INSN accordingly.
22004         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
22005
22006 2009-04-27  Richard Guenther  <rguenther@suse.de>
22007
22008         * tree-flow-inline.h (function_ann): Remove.
22009         (get_function_ann): Likewise.
22010         * tree-dfa.c (create_function_ann): Remove.
22011         * tree-flow.h (struct static_var_ann_d): Remove.
22012         (struct function_ann_d): Likewise.
22013         (union tree_ann_d): Remove fdecl member.
22014         (function_ann_t): Remove.
22015         (function_ann, get_function_ann, create_function_ann): Remove
22016         declarations.
22017
22018 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
22019
22020         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
22021
22022 2009-04-27  Jan Hubicka  <jh@suse.cz>
22023
22024         * ipa-pure-const.c (struct funct_state_d): New fields
22025         state_previously_known, looping_previously_known; remove
22026         state_set_in_source.
22027         (analyze_function): Use new fields.
22028         (propagate): Avoid assumption that state_set_in_source imply
22029         nonlooping.
22030
22031         * tree-ssa-loop-niter.c (finite_loop_p): New function.
22032         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
22033         * cfgloop.h (finite_loop_p): Declare.
22034
22035 2009-04-26  Michael Matz  <matz@suse.de>
22036
22037         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
22038
22039 2009-04-26  Michael Matz  <matz@suse.de>
22040
22041         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
22042         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
22043         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
22044         pass_mark_used_blocks): Remove.
22045         * tree-optimize.c (pass_free_datastructures,
22046         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
22047         * passes.c (init_optimization_passes): Don't call
22048         pass_mark_used_blocks, remove dead code.
22049
22050 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
22051
22052         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
22053         * tree-ssa-live.h (register_ssa_partition): Likewise.
22054
22055 2009-04-26  Michael Matz  <matz@suse.de>
22056
22057         Expand from SSA.
22058         * builtins.c (fold_builtin_next_arg): Handle SSA names.
22059         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
22060         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
22061         SSA names.
22062         (compare_pairs): Swap cost comparison.
22063         (coalesce_ssa_name): Don't use change_partition_var.
22064         * tree-nrv.c (struct nrv_data): Add modified member.
22065         (finalize_nrv_r): Set it.
22066         (tree_nrv): Use it to update statements.
22067         (pass_nrv): Require PROP_ssa.
22068         * tree-mudflap.c (mf_decl_cache_locals,
22069         mf_build_check_statement_for): Use make_rename_temp.
22070         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
22071         * alias.c (find_base_decl): Handle SSA names.
22072         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
22073         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
22074         * rtl.h (set_reg_attrs_for_parm): Declare.
22075         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
22076         to "optimized", remove unused locals at finish.
22077         (execute_free_datastructures): Make global, call
22078         delete_tree_cfg_annotations.
22079         (execute_free_cfg_annotations): Don't call
22080         delete_tree_cfg_annotations.
22081
22082         * ssaexpand.h: New file.
22083         * expr.c (toplevel): Include ssaexpand.h.
22084         (expand_assignment): Handle SSA names the same as register variables.
22085         (expand_expr_real_1): Expand SSA names.
22086         * cfgexpand.c (toplevel): Include ssaexpand.h.
22087         (SA): New global variable.
22088         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
22089         (SSAVAR): New macro.
22090         (set_rtl): New helper function.
22091         (add_stack_var): Deal with SSA names, use set_rtl.
22092         (expand_one_stack_var_at): Likewise.
22093         (expand_one_stack_var): Deal with SSA names.
22094         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
22095         before unique numbers.
22096         (expand_stack_vars): Use set_rtl.
22097         (expand_one_var): Accept SSA names, add asserts for them, feed them
22098         to above subroutines.
22099         (expand_used_vars): Expand all partitions (without default defs),
22100         then only the local decls (ignoring those expanded already).
22101         (expand_gimple_cond): Remove edges when jumpif() expands an
22102         unconditional jump.
22103         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
22104         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
22105         SSA name.
22106         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
22107         members of SA; deal with PARM_DECL partitions here; expand
22108         all PHI nodes, free tree datastructures and SA.  Commit instructions
22109         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
22110         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
22111         info and statements at start, collect garbage at finish.
22112         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
22113         (VAR_ANN_PARTITION) Remove.
22114         (change_partition_var): Don't declare.
22115         (partition_to_var): Always return SSA names.
22116         (var_to_partition): Only accept SSA names.
22117         (register_ssa_partition): Only check argument.
22118         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
22119         member.
22120         (delete_var_map): Don't free it.
22121         (var_union): Only accept SSA names, simplify.
22122         (partition_view_init): Mark only useful SSA names as used.
22123         (partition_view_fini): Only deal with SSA names.
22124         (change_partition_var): Remove.
22125         (dump_var_map): Use ssa_name instead of partition_to_var member.
22126         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
22127         basic blocks.
22128         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
22129         (struct _elim_graph): New member const_dests; nodes member vector of
22130         ints.
22131         (set_location_for_edge): New static helper.
22132         (create_temp): Remove.
22133         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
22134         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
22135         (new_elim_graph): Allocate const_dests member.
22136         (clean_elim_graph): Truncate const_dests member.
22137         (delete_elim_graph): Free const_dests member.
22138         (elim_graph_size): Adapt to new type of nodes member.
22139         (elim_graph_add_node): Likewise.
22140         (eliminate_name): Likewise.
22141         (eliminate_build): Don't take basic block argument, deal only with
22142         partition numbers, not variables.
22143         (get_temp_reg): New static helper.
22144         (elim_create): Use it, deal with RTL temporaries instead of trees.
22145         (eliminate_phi): Adjust all calls to new signature.
22146         (assign_vars, replace_use_variable, replace_def_variable): Remove.
22147         (rewrite_trees): Only do checking.
22148         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
22149         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
22150         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
22151         contains_tree_r, MAX_STMTS_IN_LATCH,
22152         process_single_block_loop_latch, analyze_edges_for_bb,
22153         perform_edge_inserts): Remove.
22154         (expand_phi_nodes): New global function.
22155         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
22156         functions, initialize new parameter, remember partitions having a
22157         default def.
22158         (finish_out_of_ssa): New global function.
22159         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
22160         don't reset in_ssa_p here, don't disable TER when mudflap.
22161         (pass_del_ssa): Remove.
22162         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
22163         partition members.
22164         (execute_free_datastructures): Declare.
22165         * Makefile.in (SSAEXPAND_H): New variable.
22166         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
22167         * basic-block.h (commit_one_edge_insertion): Declare.
22168         * passes.c (init_optimization_passes): Move pass_nrv and
22169         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
22170         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
22171         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
22172         (redirect_branch_edge): Deal with super block when expanding, split
22173         out jump patching itself into ...
22174         (patch_jump_insn): ... here, new static helper.
22175
22176 2009-04-26  Michael Matz  <matz@suse.de>
22177
22178         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
22179         beyond num_ssa_names.
22180         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
22181         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
22182
22183 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
22184
22185         PR inline-asm/39543
22186         * fwprop.c (forward_propagate_asm): New function.
22187         (forward_propagate_and_simplify): Propagate also into __asm, if it
22188         doesn't increase the number of referenced registers.
22189
22190         PR c/39889
22191         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
22192
22193 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
22194
22195         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
22196         note_nonlocal_vla_type for nonlocal VLAs.
22197         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
22198         contains_remapped_vars, remap_vla_decls): New functions.
22199         (convert_nonlocal_reference_stmt): If not optimizing, call
22200         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
22201         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
22202         if it wasn't found in var_map.
22203         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
22204         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
22205         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
22206         declare_vars.
22207         * gimplify.c (nonlocal_vlas): New variable.
22208         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
22209         referenced VLAs.
22210         (gimplify_body): Create and destroy nonlocal_vlas.
22211
22212         * dwarf2out.c (loc_descr_plus_const): New function.
22213         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
22214         mem_loc_descriptor, loc_descriptor_from_tree_1,
22215         descr_info_loc, gen_variable_die): Use it.
22216
22217         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
22218         !TREE_STATIC VAR_DECLs.
22219         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
22220         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
22221         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
22222         DECL_BY_REFERENCE is valid.
22223         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
22224         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
22225         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
22226         Copy DECL_BY_REFERENCE.
22227         (struct nesting_copy_body_data): New type.
22228         (nesting_copy_decl): New function.
22229         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
22230         if they have variable length.
22231
22232 2009-04-26  Michael Matz  <matz@suse.de>
22233
22234         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
22235         mark new temporaries for renaming.
22236
22237 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
22238
22239         PR c/39581
22240         * c-decl.c (global_bindings_p): Return negative value.
22241         (c_variable_size): New.  Based on variable_size from
22242         stor-layout.c.
22243         (grokdeclarator): Call c_variable_size not variable_size.
22244
22245 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
22246
22247         * config/i386/i386.c (print_operand) ['z']: Fix typo.
22248
22249 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
22250
22251         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
22252         Redefine it to just use mingw/include.
22253         (ASM_SPEC): Rules for -m32 and -m64.
22254         (LINK_SPEC): Use Likewise.
22255         (SPEC_32): New define.
22256         (SPEC_64): Likewise.
22257         (SUB_LINK_SPEC): Likewise.
22258         (MULTILIB_DEFAULTS): New define.
22259         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
22260         Add multilib options.
22261         (MULTILIB_DIRNAMES): Likewise.
22262         (MULTILIB_OSDIRNAMES): Likewise.
22263         (LIBGCC): Likewise.
22264         (INSTALL_LIBGCC): Likewise.
22265
22266 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
22267
22268         PR c/39556
22269         * c-tree.h (enum c_inline_static_type): New.
22270         (record_inline_static): Declare.
22271         * c-decl.c (struct c_inline_static, c_inline_statics,
22272         record_inline_static, check_inline_statics): New.
22273         (pop_file_scope): Call check_inline_statics.
22274         (start_decl): Call record_inline_static instead of pedwarning
22275         directly for static in inline function.
22276         * c-typeck.c (build_external_ref): Call record_inline_static
22277         instead of pedwarning directly for static referenced in inline
22278         function.
22279
22280 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
22281
22282         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
22283         not new but only being rescanned.
22284         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
22285         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
22286         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
22287         record_set_info, compute_set, grealloc): Remove.
22288         (recompute_all_luids): New function.
22289         (gcse_main): Don't compute sets, and don't do related memory
22290         allocations/free-ing.  If something changed before the end of the
22291         pass, update LUIDs using recompute_all_luids.
22292         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
22293         (free_gcse_mem): Don't free it either.
22294         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
22295         Use the df insn LUIDs.
22296         (load_killed_in_block): Likewise.
22297         (compute_hash_table_work): Don't compute reg_set_in_block.
22298         (compute_transp): Use DF_REG_DEF_CHAINs.
22299         (local_cprop_pass): Don't use compute_sets and related functions.
22300         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
22301         Use get_max_uid() instead of max_cuid.
22302         (insert_insn_end_basic_block, pre_insert_copy_insn,
22303         update_ld_motion_stores): Don't try to
22304         keep reg_set tables up to date.
22305         (pre_insert_copies): Use df insn LUIDs.
22306         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
22307         (reg_set_info): Don't use extra bitmap argument.
22308         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
22309         information to compute regs_set_in_block.
22310         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
22311         (bypass_jumps): Don't use compute_sets and friends.
22312
22313 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22314
22315         PR testsuite/39710
22316         * opts.c (undocumented_msg): Do not leave blank even with
22317         ENABLE_CHECKING.
22318
22319 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22320
22321         * c-decl.c (build_enumerator): Allow values folding to integer
22322         constants but not integer constant expressions with a pedwarn if
22323         pedantic.
22324
22325 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22326
22327         PR c/39582
22328         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
22329         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
22330         type is an integer constant.
22331
22332 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22333
22334         PR target/39897
22335         * config/i386/i386.c (print_operand) ['z']: Revert handling of
22336         HImode operands.
22337
22338 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22339
22340         PR c/39564
22341         * c-decl.c (grokdeclarator): Diagnose declarations of functions
22342         with variably modified return type and no storage class
22343         specifiers, except for the case of nested functions.  Distinguish
22344         extern declarations of functions with variably modified return
22345         types from those of objects with variably modified types.
22346
22347 2009-04-25  Jan Hubicka  <jh@suse.cz>
22348
22349         * tree.c (list_equal_p): New function.
22350         * tree.h (list_equal_p): Declare.
22351         * coretypes.h (edge_def, edge, const_edge, basic_block_def
22352         basic_block_def, basic_block, const_basic_block): New.
22353         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
22354         (redirect_eh_edge): New function.
22355         (make_eh_edge_update_phi): EH edges are not abnormal.
22356         * except.c: Include tree-flow.h.
22357         (list_match): New function.
22358         (eh_region_replaceable_by_p): New function.
22359         (replace_region): New function.
22360         (hash_type_list): New function.
22361         (hash_eh_region): New function.
22362         (eh_regions_equal_p): New function.
22363         (merge_peers): New function.
22364         (remove_unreachable_regions): Verify EH tree when checking;
22365         merge peers.
22366         (copy_eh_region_1): New function.
22367         (copy_eh_region): New function.
22368         (push_reachable_handler): New function.
22369         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
22370         regions without label but with live RESX.
22371         * except.h (redirect_eh_edge_to_label): New.
22372         * tree-flow.h (redirect_eh_edge): New.
22373         * coretypes.h (edge_def, edge, const_edge, basic_block_def
22374         basic_block_def, basic_block, const_basic_block): Remove.
22375         * Makefile.in (except.o): Add dependency on tree-flow.h
22376         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
22377         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
22378         Remove.
22379
22380 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
22381
22382         PR bootstrap/39645
22383         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
22384         on the destination of memcpy.
22385
22386 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
22387
22388         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
22389         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
22390         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
22391
22392 2009-04-25  Jan Hubicka  <jh@suse.cz>
22393
22394         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
22395         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
22396         to be reached by different label than left.
22397         (update_eh_edges): Update comment; remove edge_to_remove if possible
22398         and return true if suceeded.
22399         (cleanup_empty_eh): Accept sharing map; handle shared regions.
22400         (cleanup_eh): Compute sharing map.
22401         * except.c (remove_eh_handler_and_replace): Add argument if we should
22402         update regions.
22403         (remove_unreachable_regions): Update for label sharing.
22404         (label_to_region_map): Likewise.
22405         (get_next_region_sharing_label): New function.
22406         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
22407         prev_try pointers.
22408         (remove_eh_handler): Update.
22409         (remove_eh_region_and_replace_by_outer_of): New function.
22410         * except.h (struct eh_region): Add next_region_sharing_label.
22411         (remove_eh_region_and_replace_by_outer_of,
22412         get_next_region_sharing_label): Declare.
22413         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
22414
22415 2009-04-25  Jan Hubicka  <jh@suse.cz>
22416
22417         * tree-cfg.c (split_critical_edges): Split also edges where we can't
22418         insert code even if they are not critical.
22419
22420 2009-04-25  Jan Hubicka  <jh@suse.cz>
22421
22422         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22423         (gimple_can_remove_branch_p): EH edges won't remove branch by
22424         redirection.
22425         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
22426         updating of non-abnormal EH edges.
22427         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22428         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
22429         (split_critical_edges): Split also edges where emitting code on them
22430         will lead to splitting later.
22431
22432 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22433             H.J. Lu  <hongjiu.lu@intel.com>
22434
22435         PR target/39590
22436         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22437         the configured assembler supports fildq and fistpq mnemonics.
22438         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22439         * configure: Regenerated.
22440         * config.in: Ditto.
22441
22442         * config/i386/i386.c (print_operand): Handle 'Z'.
22443         ['z']: Remove handling of special fild/fist suffixes.
22444         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22445         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22446         suffix of fild insn.
22447         (*floatsi<mode>2_vector_mixed): Ditto.
22448         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22449         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22450         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22451         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22452         * config/i386/gas.h (GAS_MNEMONICS): Remove.
22453
22454 2009-04-25  Ben Elliston  <bje@au.ibm.com>
22455
22456         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22457         the source of a set operation.
22458
22459 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
22460
22461         * target.h (struct gcc_target): Add case_values_threshold field.
22462         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22463         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22464         * targhooks.c (default_case_values_threshold): New function.
22465         * targhooks.h (default_case_values_threshold): Declare function.
22466         * stmt.c (expand_case): Use case_values_threshold target hook.
22467         * expr.h (case_values_threshold): Remove declartation.
22468         * expr.c (case_values_threshold): Remove function.
22469         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22470
22471         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22472         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22473         (avr_case_values_threshold): Declare as static.
22474         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22475
22476         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22477         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22478         (mn10300_case_values_threshold): New function.
22479
22480 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22481
22482         * ira.c (setup_cover_and_important_classes): Add enum cast.
22483
22484 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22485
22486         * genpreds.c (write_enum_constraint_num): Output definition of
22487         CONSTRAINT_NUM_DEFINED_P macro.
22488         * ira.c (setup_cover_and_important_classes): Use
22489         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22490
22491 2009-04-24  DJ Delorie  <dj@redhat.com>
22492
22493         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22494         __SH2A_SINGLE_ONLY__ also.
22495
22496 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
22497
22498         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22499         (movdf_internal): Ditto.
22500         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22501         SFmode and DFmode constants.
22502         (ia64_print_operand): Add 'G' format for printing
22503         floating point constants.
22504
22505 2009-04-24  Richard Guenther  <rguenther@suse.de>
22506
22507         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22508         from unsigned additions.
22509
22510 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
22511
22512         * c-typeck.c (set_init_index): Allow array designators that are
22513         not integer constant expressions with a pedwarn if pedantic.
22514
22515 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22516
22517         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22518         zero if no overlap in nonzero bits between the operands.
22519
22520 2009-04-24  Ian Lance Taylor  <iant@google.com>
22521
22522         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22523         (record_dead_and_set_regs): Likewise.
22524         * df.h (struct df_mw_hardreg): Change flags field to int.
22525         (struct df_base_ref): Likewise.
22526         (struct df): Change changeable_flags field to int.
22527         * df-scan.c (df_defs_record): Change clobber_flags to int.
22528         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22529         constants rather than #define macros.
22530         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22531         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22532         (enum dwarf_calling_convention): Likewise.
22533         (enum dwarf_line_number_x_ops): Likewise.
22534         (enum dwarf_call_frame_info): Likewise.
22535         (enum dwarf_source_language): Likewise.
22536         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22537         (add_calling_convention_attribute): Likewise.
22538         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22539         (combine_comparisons): Change compcode to int.  Add cast to enum type.
22540         * genrecog.c (maybe_both_true_2): Change c to int.
22541         (write_switch): Likewise.  Add cast to enum type.
22542         * gimplify.c (gimplify_omp_for): Handle return values from
22543         gimplify_expr using MIN rather than bitwise or.
22544         (gimplify_expr): Add cast to enum type.
22545         * ipa-prop.c (update_jump_functions_after_inlining): Change
22546         IPA_BOTTOM to IPA_JF_UNKNOWN.
22547         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22548         Add casts to enum type.
22549         (setup_cover_and_important_classes): Change cl to int.  Add casts
22550         to enum type.
22551         (setup_class_translate): Change cl and mode to int.
22552         (ira_init_once): Change mode to int.
22553         (free_register_move_costs): Likewise.
22554         (setup_prohibited_mode_move_regs): Add casts to enum type.
22555         * langhooks.c (add_builtin_function_common): Rework assertion that
22556         value fits bitfield.
22557         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22558         * omega.c (omega_do_elimination): Avoid math on enum types.
22559         * optabs.c (expand_vec_shift_expr): Remove casts to int.
22560         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
22561         int local to handle integral_argment value.
22562         * regmove.c (try_auto_increment): Change PUT_MODE to
22563         PUT_REG_NOTE_KIND.
22564         * reload.c (push_secondary_reload): Add casts to enum type.
22565         (secondary_reload_class, find_valid_class): Likewise.
22566         * reload1.c (emit_input_reload_insns): Likewise.
22567         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22568         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22569         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22570         constant.
22571         * tree.c (build_common_builtin_nodes): Add casts to enum type.
22572         * tree-complex.c (complex_lattice_t): Typedef to int rather than
22573         enum type.
22574         (expand_complex_libcall): Add casts to enum type.
22575         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22576         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22577         with ERROR_MARK, not NUM_TREE_CODES.
22578         (vect_create_epilog_for_reduction): Likewise.
22579         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22580         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22581         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22582         enum machine_mode.
22583         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22584         vect_unused_in_loop.  Change 0 to loop_vect.
22585         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22586         * var-tracking.c (get_init_value): Change return type to enum
22587         var_init_status.
22588         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22589         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22590         arm_fp_model.
22591         (arm_override_options): Add casts to enum type.
22592         (arm_emit_tls_decoration): Likewise.
22593         * config/i386/i386.c (ix86_function_specific_restore): Add casts
22594         to enum type.
22595         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22596         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22597         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22598         enum type.
22599         * config/s390/s390.c (code_for_builtin_64): Change to array of
22600         enum insn_code.
22601         (code_for_builtin_31): Likewise.
22602         (s390_expand_builtin): Change code_for_builtin to enum insn_code
22603         const *.
22604         * config/sparc/sparc.c (sparc_override_options): Change value
22605         field in struct code_model to enum cmodel.  In initializer change
22606         0 to NULL and add cast to enum type.
22607
22608         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22609         Change all callers.  Issue a -Wc++-compat warning using
22610         lhs_origtype if necessary.
22611         (convert_for_assignment): Issue -Wc++-compat warnings about
22612         invalid conversions to enum type on assignment.
22613         * c-common.h (build_modify_expr): Update declaration.
22614
22615 2009-04-24  Nick Clifton  <nickc@redhat.com>
22616
22617         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22618         (function_arg_advance): Likewise.
22619         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22620         5th alternative.
22621
22622 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22623
22624         * config/s390/constraints.md ('I', 'J'): Fix condition.
22625
22626 2009-04-24  Diego Novillo  <dnovillo@google.com>
22627
22628         * gengtype-parse.c (parse_error): Add newline after message.
22629
22630 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22631
22632         * config/i386/sse.md (avxmodesuffixs): Removed.
22633         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22634         (*avx_pinsr<ssevecsize>): This.
22635
22636 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22637
22638         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22639         follow chains of regs with a single definition, and allow expressions
22640         that are function_invariant_p.
22641         (simple_rhs_p): Allow expressions that are function_invariant_p.
22642
22643 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
22644
22645         PR middle-end/39867
22646         * fold-const.c (fold_cond_expr_with_comparison): When folding
22647         > and >= to MAX, make sure the MAX uses the same type as the
22648         comparison's operands.
22649
22650 2009-04-24  Nick Clifton  <nickc@redhat.com>
22651
22652         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22653         addressing for DImode accesses.
22654         (frv_print_operand_address): Handle PLUS case.
22655         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22656
22657 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
22658
22659         PR rtl-optimization/39794
22660         * alias.c (canon_true_dependence): Add x_addr argument.
22661         * rtl.h (canon_true_dependence): Adjust prototype.
22662         * cse.c (check_dependence): Adjust canon_true_dependence callers.
22663         * cselib.c (cselib_invalidate_mem): Likewise.
22664         * gcse.c (compute_transp): Likewise.
22665         * dse.c (scan_reads_nospill): Likewise.
22666         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
22667         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22668         canon_base_addr of the group, plus optional offset.
22669         (struct group_info): Rename canon_base_mem to
22670         canon_base_addr.
22671         (get_group_info): Set canon_base_addr to canon_rtx of base, not
22672         canon_rtx of base_mem.
22673
22674 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
22675
22676         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22677         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22678
22679 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22680
22681         * config/spu/spu-builtins.h: Delete file.
22682
22683         * config/spu/spu.h (enum spu_builtin_type): Move here from
22684         spu-builtins.h.
22685         (struct spu_builtin_description): Likewise.  Add GTY marker.
22686         Do not use enum spu_function_code or enum insn_code.
22687         (spu_builtins): Add extern declaration.
22688
22689         * config/spu/spu.c: Do not include "spu-builtins.h".
22690         (enum spu_function_code, enum spu_builtin_type_index,
22691         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22692         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22693         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22694         unsigned_V2DI_type_node): Move here from spu-builtins.h.
22695         (spu_builtin_types): Make static.  Add GTY marker.
22696         (spu_builtins): Add extern declaration with GTY marker.
22697         Include "gt-spu.h".
22698
22699         * config/spu/spu-c.c: Do not include "spu-builtins.h".
22700         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22701         Check programmatically whether all parameters are scalar.
22702
22703         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22704
22705 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22706
22707         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22708         assignment from the constructor either if the target is volatile.
22709
22710 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
22711
22712         * config/arm/arm.md (insv): Do not share operands[0].
22713
22714 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22715
22716         * config/vxlib-tls.c (active_tls_threads): Delete.
22717         (delete_hook_installed): New.
22718         (tls_delete_hook): Don't delete the delete hook.
22719         (tls_destructor): Delete it here.
22720         (__gthread_set_specific): Adjust installing the delete hook.
22721         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22722         __gthread_leave_tsd_dtor_context.
22723
22724 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
22725
22726         * c-format.c (gcc_tdiag_char_table): Add support for %E.
22727
22728 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
22729
22730         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22731         enum type.
22732         (alpha_rtx_costs): Ditto.
22733         (emit_unlikely_jump): Use add_reg_note.
22734         (emit_frame_store_1): Ditto.
22735         (alpha_expand_prologue): Ditto.
22736         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22737         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22738
22739 2009-04-23  Nick Clifton  <nickc@redhat.com>
22740
22741         * config/v850/v850.md (epilogue): Remove suppressed code.
22742         (return): Rename to return_simple and remove test of frame size.
22743         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22744         to gen_return_simple.
22745
22746 2009-04-22  Jing Yu  <jingyu@google.com>
22747
22748         PR testsuite/39781
22749         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22750
22751 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22752
22753         PR C/31499
22754         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22755         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
22756         value is a VECTOR_CST, the element type is the element type of the
22757         vector.
22758
22759 2009-04-22  DJ Delorie  <dj@redhat.com>
22760
22761         * config/m32c/m32c.h: Update GTY annotations to new syntax.
22762
22763 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
22764
22765         * alias.c (find_base_term): Move around LO_SUM case, so that
22766         CONST falls through into PLUS/MINUS handling.
22767
22768         PR c/39855
22769         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22770         into 0, use omit_one_operand.
22771
22772 2009-04-23  Ben Elliston  <bje@au.ibm.com>
22773
22774         * config/rs6000/linux-unwind.h (get_regs): Remove type
22775         puns. Change the type of `pc' to an array of unsigned ints and
22776         update all users.  Constify frame24.
22777
22778 2009-04-22  DJ Delorie  <dj@redhat.com>
22779
22780         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22781         declarations before code.
22782         (current_function_special_page_vector): Likewise.
22783         (m32c_expand_insv): Silence a warning.
22784
22785 2009-04-21  Taras Glek  <tglek@mozilla.com>
22786
22787         * alias.c: Update GTY annotations to new syntax.
22788         * basic-block.h: Likewise.
22789         * bitmap.h: Likewise.
22790         * c-common.h: Likewise.
22791         * c-decl.c: Likewise.
22792         * c-parser.c: Likewise.
22793         * c-pragma.c: Likewise.
22794         * c-tree.h: Likewise.
22795         * cfgloop.h: Likewise.
22796         * cgraph.h: Likewise.
22797         * config/alpha/alpha.c: Likewise.
22798         * config/arm/arm.h: Likewise.
22799         * config/avr/avr.h: Likewise.
22800         * config/bfin/bfin.c: Likewise.
22801         * config/cris/cris.c: Likewise.
22802         * config/darwin.c: Likewise.
22803         * config/frv/frv.c: Likewise.
22804         * config/i386/i386.c: Likewise.
22805         * config/i386/i386.h: Likewise.
22806         * config/i386/winnt.c: Likewise.
22807         * config/ia64/ia64.h: Likewise.
22808         * config/iq2000/iq2000.c: Likewise.
22809         * config/mips/mips.c: Likewise.
22810         * config/mmix/mmix.h: Likewise.
22811         * config/pa/pa.c: Likewise.
22812         * config/pa/pa.h: Likewise.
22813         * config/rs6000/rs6000.c: Likewise.
22814         * config/s390/s390.c: Likewise.
22815         * config/sparc/sparc.c: Likewise.
22816         * config/xtensa/xtensa.c: Likewise.
22817         * cselib.h: Likewise.
22818         * dbxout.c: Likewise.
22819         * dwarf2out.c: Likewise.
22820         * except.c: Likewise.
22821         * except.h: Likewise.
22822         * fixed-value.h: Likewise.
22823         * function.c: Likewise.
22824         * function.h: Likewise.
22825         * gimple.h: Likewise.
22826         * integrate.c: Likewise.
22827         * optabs.c: Likewise.
22828         * output.h: Likewise.
22829         * real.h: Likewise.
22830         * rtl.h: Likewise.
22831         * stringpool.c: Likewise.
22832         * tree-data-ref.c: Likewise.
22833         * tree-flow.h: Likewise.
22834         * tree-scalar-evolution.c: Likewise.
22835         * tree-ssa-address.c: Likewise.
22836         * tree-ssa-alias.h: Likewise.
22837         * tree-ssa-operands.h: Likewise.
22838         * tree.c: Likewise.
22839         * tree.h: Likewise.
22840         * varasm.c: Likewise.
22841         * varray.h: Likewise.
22842         * vec.h: Likewise.
22843         * coretypes.h: Do not define GTY macro if it is already defined.
22844         * doc/gty.texi: Update GTY documentation to new syntax.
22845         * gengtype-lex.l: Enforce attribute-like syntax for GTY
22846         annotations on structs.
22847         * gengtype-parse.c: Likewise.
22848
22849 2009-04-22  Mark Heffernan  <meheff@google.com>
22850
22851         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22852
22853 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22854
22855         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22856         where appropriate.
22857
22858 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22859
22860         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22861         the same as a PLUS without a shift.  Increase the cost of a
22862         CONST_INT in MULT.
22863
22864 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22865
22866         * Makefile.in: Update dependencies.
22867         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22868         * errors.h: Remove bogus comment about compatibility.
22869         (warning): Update declaration.
22870         * genautomata.c: Update all calls to warning.
22871         * gimple.c: Do not include errors.h. Include toplev.h.
22872         * tree-ssa-structalias.c: Do not include errors.h.
22873         * omega.c: Likewise.
22874         * tree-ssa-reassoc.c: Likewise.
22875         * config/spu/spu-c.c: Likewise.
22876         * config/spu/t-spu-elf: Update dependencies.
22877
22878 2009-04-22  Richard Guenther  <rguenther@suse.de>
22879
22880         PR tree-optimization/39824
22881         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22882         make sure the types are compatible.
22883
22884 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22885
22886         PR c++/14875
22887         * c-common.c (c_parse_error): Take a token_flags parameter.
22888         Use token_type for the token type instead.
22889         Pass token_flags to cpp_type2name.
22890         * c-common.h (c_parse_error): Update declaration.
22891         * c-parser.c (c_parser_error): Pass 0 as token flags.
22892
22893 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
22894
22895         PR rtl-optimization/39580
22896         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22897
22898 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22899
22900         * function.c (expand_function_end): Do not emit a jump to the "naked"
22901         return label for fall-through returns.
22902         * except.c (sjlj_emit_function_exit): Always place the call to the
22903         unregister function at the location installed by expand_function_end.
22904
22905 2009-04-22  Richard Guenther  <rguenther@suse.de>
22906
22907         PR tree-optimization/39845
22908         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22909         (gen_inbound_check): Likewise.
22910
22911 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22912
22913         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22914         padding for PPC.
22915         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22916         * config/vxlib.c (__gthread_once): Add race guard for PPC.
22917
22918 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22919
22920         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22921         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22922         shift counts to avoid out-of-bounds array accesses.
22923
22924 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22925
22926         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22927         (Pmode): Move above.
22928
22929 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
22930
22931         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22932         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22933         GET_CODE macro.  Use IN_RANGE macro where appropriate.
22934         * config/alpha/alpha.h: Ditto.
22935         * config/alpha/alpha.md: Ditto.
22936         * config/alpha/constraints.md: Ditto.
22937         * config/alpha/predicates.md: Ditto.
22938
22939 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22940
22941         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22942         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22943         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22944         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22945         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22946         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22947         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22948         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22949         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22950         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22951         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22952         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22953         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22954         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22955         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22956         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22957         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22958         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22959         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22960         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22961         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22962         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22963         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22964         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22965         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22966         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22967         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22968
22969 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22970
22971         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22972         references from comments.
22973         * cfgbuild.c (count_basic_blocks): Delete.
22974         (find_basic_blocks_1): Delete.
22975         (find_basic_blocks): Delete.
22976         * except.c (finish_eh_generation): Make static.  Move comment from
22977         except.h here.  Remove find_basic_blocks references from comments.
22978         * except.h (finish_eh_generation): Delete.
22979         * basic-block.h (find_basic_blocks): Delete.
22980         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22981
22982 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
22983
22984         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
22985         (sdbout_parms):  Likewise.
22986
22987 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
22988
22989         * config/sh/sh.c (prepare_cbranch_operands): Use
22990         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22991         (expand_cbranchdi4): Likewise.
22992         (from_compare): Add cast to enum type.
22993         (expand_cbranchsi4): Use add_reg_note.
22994         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22995         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22996         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22997         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22998         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22999         instead of CODE_FOR_nothing.
23000         (cbranchdi4): Likewise.  Fix the order of arguments for
23001         gen_rtx_fmt_ee.
23002         (push_fpscr): Use add_reg_note.
23003         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
23004         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
23005
23006 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
23007
23008         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
23009         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23010         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23011         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
23012         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
23013         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
23014         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
23015         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
23016         config/alpha/x-vms, config/arc/t-arc,
23017         config/arm/README-interworking, config/arm/arm-c.c,
23018         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
23019         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
23020         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
23021         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
23022         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
23023         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
23024         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
23025         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
23026         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
23027         config/cris/t-elfmulti, config/crx/t-crx,
23028         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
23029         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
23030         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
23031         config/h8300/t-h8300, config/i386/athlon.md,
23032         config/i386/darwin-libgcc.10.4.ver,
23033         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
23034         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
23035         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
23036         config/i386/t-linux64, config/i386/t-nwld,
23037         config/i386/t-rtems-i386, config/i386/t-sol2-10,
23038         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
23039         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
23040         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
23041         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
23042         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
23043         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
23044         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
23045         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
23046         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
23047         config/m68k/t-uclinux, config/mcore/t-mcore,
23048         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
23049         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
23050         config/mips/crtn.asm, config/mips/irix-crti.asm,
23051         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
23052         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
23053         config/mips/mips-fixed.md, config/mips/sb1.md,
23054         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
23055         config/mips/t-iris6, config/mips/t-isa3264,
23056         config/mips/t-libgcc-mips16, config/mips/t-linux64,
23057         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
23058         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
23059         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
23060         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
23061         config/mn10300/t-linux, config/mn10300/t-mn10300,
23062         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
23063         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
23064         config/picochip/libgccExtras/clzsi2.asm,
23065         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
23066         config/rs6000/darwin-libgcc.10.4.ver,
23067         config/rs6000/darwin-libgcc.10.5.ver,
23068         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
23069         config/rs6000/t-aix43, config/rs6000/t-aix52,
23070         config/rs6000/t-darwin, config/rs6000/t-fprules,
23071         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
23072         config/rs6000/t-lynx, config/rs6000/t-netbsd,
23073         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
23074         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
23075         config/rs6000/t-rtems, config/rs6000/t-spe,
23076         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
23077         config/score/t-score-elf, config/sh/divcost-analysis,
23078         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
23079         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
23080         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
23081         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
23082         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
23083         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
23084         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
23085         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
23086         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
23087         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
23088         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
23089         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
23090         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
23091         limitx.h, version.c, xcoff.h: Add copyright and license notices.
23092         * config/h8300/genmova.sh: Include copyright and license notices
23093         in generated output.
23094         * config/h8300/mova.md: Regenerate.
23095         * doc/install.texi2html: Include word "Copyright" in copyright
23096         notice and use name "Free Software Foundation, Inc.".
23097         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23098         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23099         ChangeLog-2007, ChangeLog-2008: Correct dates.
23100
23101 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
23102
23103         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
23104         NE_EXPR operations as well.
23105         * c-parser.c (c_parser_condition): Do not set location information on
23106         the condition.
23107         (c_parser_conditional_expression): Likewise.
23108         (c_parser_binary_expression): Set location information on operators.
23109         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
23110         TRUTH_NOT_EXPR has been folded.
23111         * fold-const.c (fold_truth_not_expr): Copy location information from
23112         the incoming expression to the outgoing one.
23113         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
23114         recursive calls on the LHS of the operator but pass that of the
23115         operator to recursive calls on the RHS of the operator.  Set it
23116         on the COND_EXPR.
23117         (shortcut_cond_expr): Set the locus of the operator on the second
23118         COND_EXPR and that of the expression on the first in degenerate cases.
23119         Pass the locus of the expression to calls to shortcut_cond_r.
23120         Set the locus of the 'then' block on the associated jump, if any.
23121         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
23122         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
23123         expression to call to gimplify_boolean_expr.
23124
23125 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
23126
23127         * config.gcc: Add additional configuration for
23128         i686-w64-mingw* and x86_64-w64-mingw* triplet.
23129         * config/i386/mingw-w64.h: New mingw-w64 specific header.
23130         (CPP_SPEC): Redefine for allowing -municode option.
23131         (STARTFILE_SPEC): Likewise.
23132         * config/i386/t-mingw-w64: New.
23133         * config/i386/mingw-w64.opt: New.
23134         (municode): Add new target option.
23135         * doc/invoke.texi (municode): Add documentation for new option.
23136
23137 2009-04-21  Ian Lance Taylor  <iant@google.com>
23138
23139         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23140         Correct test for number of arguments.
23141         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23142
23143 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
23144
23145         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
23146         argument of emit_library_call.
23147
23148 2009-04-21  Richard Guenther  <rguenther@suse.de>
23149
23150         PR middle-end/39829
23151         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
23152         inside VIEW_CONVERT_EXPRs.
23153
23154 2009-04-21  Martin Jambor  <mjambor@suse.cz>
23155
23156         * tree-switch-conversion.c (build_constructors): Split a long line.
23157         (constructor_contains_same_values_p): New function.
23158         (build_one_array): Create assigns of constants if possible, do not
23159         call mark_sym_for_renaming, call update_stmt.
23160         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
23161         make_rename_temp.  Do not call mark_symbols_for_renaming, call
23162         update_stmt.
23163         (gen_def_assigns): Do not call mark_symbols_for_renaming or
23164         find_new_referenced_vars, call update_stmt.
23165         (gen_inbound_check): Use create_tmp_var and create ssa names manually
23166         instead of calling make_rename_temp.  Do not call
23167         find_new_referenced_vars or mark_symbols_for_renaming, call
23168         update_stmt.
23169
23170 2009-04-21  Richard Guenther  <rguenther@suse.de>
23171
23172         PR tree-optimization/39827
23173         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
23174         (tree_ssa_phiprop): Pass the correct array size.
23175
23176 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
23177
23178         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
23179
23180 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23181
23182         PR 16202
23183         * c-typeck.c (lvalue_p): Move declaration ...
23184         * c-common.h (lvalue_p): ... to here.
23185         * c-common.c (candidate_equal_p): New.
23186         (add_tlist): Use it.
23187         (merge_tlist): Use it.
23188         (warn_for_collisions_1): Likewise.
23189         (warning_candidate_p): Accept more candidates.
23190         (verify_tree): A warning candidate can be an expression. Use
23191         candidate_equal_p.
23192
23193 2009-04-21  Ben Elliston  <bje@au.ibm.com>
23194
23195         PR target/5267
23196         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23197         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
23198         options.  Remove -mcall-solaris documentation.
23199
23200 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23201
23202         PR c++/13358
23203         * doc/invoke.texi (-Wlong-long): Update description.
23204         * c-lex (interpret_integer): Only warn if there was no previous
23205         overflow and -Wlong-long is enabled.
23206         * c-decl.c (declspecs_add_type): Drop redundant flags.
23207         * c.opt (Wlong-long): Init to -1.
23208         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
23209         and front-end warn_long_long. Wlong-long only depends on other
23210         flags if it is uninitialized.
23211         * c-parser.c (disable_extension_diagnostics): warn_long_long is
23212         the same for CPP and FE.
23213         (restore_extension_diagnostics): Likewise.
23214
23215 2009-04-20  Ian Lance Taylor  <iant@google.com>
23216
23217         Fix enum conversions which are invalid in C++:
23218         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
23219         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
23220         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
23221         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
23222         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
23223         (dbxout_parms): Likewise.
23224         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
23225         (df_clear_flags): Likewise.
23226         * df-problems.c (df_rd_bb_local_compute_process_def): Change
23227         top_flag parameter to int.
23228         (df_chain_create_bb_process_use): Likewise.
23229         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
23230         Remove cast.
23231         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
23232         (df_ref_create_structure, df_def_record_1): Likewise.
23233         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
23234         (df_notes_rescan): Change 0 to VOIDmode in function call.
23235         (df_get_call_refs, df_insn_refs_collect): Likewise.
23236         (df_bb_regs_collect): Likewise.
23237         (df_entry_block_defs_collect): Likewise.
23238         (df_exit_block_uses_collect): Likewise.
23239         * df.h: Update declarations.
23240         * double-int.c (double_int_divmod): Add cast to enum type.
23241         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
23242         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
23243         (based_loc_descr): Likewise.
23244         (loc_descriptor_from_tree_1): Change first_op and second_op to
23245         enum dwarf_location_atom.  Add cast to enum type.
23246         * expmed.c (init_expmed): Change 0 to SET in function call.
23247         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
23248         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
23249         (do_store_flag): Likewise.
23250         * fixed-value.h (struct fixed_value): Change mode to enum
23251         machine_mode.
23252         * function.c (assign_parms): Change 0 to VOIDmode in function call.
23253         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
23254         function call.
23255         (insert_insn_decl, insert_decl, insert_state): Likewise.
23256         (automata_list_finish): Likewise.
23257         * genrecog.c (process_define_predicate): Add cast to enum type.
23258         * gensupport.c (init_predicate_table): Add cast to enum type.
23259         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
23260         function call.
23261         (gimple_build_call_1, gimple_build_label): Likewise.
23262         (gimple_build_goto, gimple_build_asm_1): Likewise.
23263         (gimple_build_switch_1, gimple_build_cdt): Likewise.
23264         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
23265         (enum fallback): Rename from enum fallback_t.
23266         (fallback_t): Typedef as int.
23267         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
23268         GSI_SAME_STMT in function call.
23269         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
23270         enum type.
23271         (setup_reg_class_relations): Likewise.
23272         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
23273         (setup_prohibited_class_mode_regs): Add cast to enum type.
23274         (setup_prohibited_mode_move_regs): Likewise.
23275         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
23276         (record_address_regs): Change i to enum reg_class.
23277         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
23278         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
23279         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
23280         (GET_MODE_2XWIDER_MODE): Likewise.
23281         (GET_CLASS_NARROWEST_MODE): Likewise.
23282         * omp-low.c (expand_omp_for): Add cast to enum type.
23283         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
23284         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
23285         * postreload.c (reload_cse_simplify_operands): Change rclass local
23286         to enum reg_class.
23287         * predict.c (combine_predictions_for_insn): Change best_predictor
23288         and predictor to enum br_predictor.
23289         (combine_predictions_for_bb): Likewise.
23290         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
23291         use SET_PREDICT_EXPR_OUTCOME.
23292         * real.c (real_arithmetic): Change icode to code in function call.
23293         * reginfo.c (init_move_cost): Add casts to enum type.
23294         (init_reg_sets_1, init_fake_stack_mems): Likewise.
23295         * regmove.c (regclass_compatible_p): Change class0 and class1 to
23296         enum reg_class.
23297         * reload.c (find_valid_class): Add casts to enum type.
23298         (push_reload): Change 0 to NO_REGS in function call.
23299         (find_reloads): Change this_alternative to array of enum
23300         reg_class.  Remove some now-unnecessary casts.
23301         (make_memloc): Change 0 to VOIDmode in function call.
23302         * reload1.c (reload): Change 0 to VOIDmode in function call.
23303         (eliminate_regs_1, elimination_effects): Likewise.
23304         (eliminate_regs_in_insn): Likewise.
23305         (emit_input_reload_insns): Add cast to enum type.
23306         (delete_output_reload): Change 0 to VOIDmode in function call.
23307         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
23308         to enum type in function call.
23309         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
23310         (SET_PREDICT_EXPR_OUTCOME): Define.
23311         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
23312         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
23313         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
23314         (dump_function): Likewise.
23315         * tree-dump.h: Update declarations.
23316         * tree-pass.h: Update declarations.
23317         * varasm.c (assemble_integer): Change mclass to enum mode_class.
23318         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
23319         enum type.
23320         (arm_rtx_costs_1): Correct parenthesization.
23321         (arm_rtx_costs): Add casts to enum type.
23322         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
23323         (vfp_emit_fstmd): Use add_rg_note.
23324         (emit_multi_reg_push, emit_sfm): Likewise.
23325         (thumb_set_frame_pointer): Likewise.
23326         (arm_expand_prologue): Likewise.
23327         (arm_regno_class): Change return type to enum reg_class.
23328         (thumb1_expand_prologue): Use add_reg_note.
23329         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
23330         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
23331         in function call.
23332         * config/arm/gentune.sh: Add cast to enum type.
23333         * config/arm/arm-tune.md: Rebuild.
23334         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
23335         (ix86_split_fp_branch, predict_jump): Likewise.
23336         (ix86_expand_multi_arg_builtin): Change sub_code from enum
23337         insn_code to enum rtx_code.
23338         (ix86_builtin_vectorized_function): Add cast to enum type.
23339         * config/i386/i386.md (truncdfsf2): Change slot to enum
23340         ix86_stack_slot.
23341         (truncxf<mode>2, isinf<mode>2): Likewise.
23342         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
23343         enum type.
23344         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
23345         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
23346         (insert_bundle_state): Change 1 to INSERT in function call.
23347         (ia64_add_bundle_selector_before): Likewise.
23348         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
23349         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
23350         (restore_stack_nonlocal): Likewise.
23351         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
23352         function call.
23353         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
23354         function call.
23355         (mips_rtx_costs): Likewise.
23356         (mips_override_options): Add casts to enum type.
23357         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
23358         in function call.
23359         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
23360         (store_reg, set_reg_plus_d): Likewise.
23361         (hppa_expand_prologue, hppa_profile_hook): Likewise.
23362         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23363         cast to enum type.
23364         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
23365         function call.
23366         (emit_unlikely_jump): Use add_reg_note.
23367         (rs6000_emit_allocate_stack): Likewise.
23368         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
23369         (output_toc): Change 1 to INSERT in function call.
23370         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
23371         (rs6000_initialize_trampoline): Likewise.
23372         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
23373         function call.
23374         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
23375         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
23376         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
23377         (save_gprs): Use add_reg_note.
23378         (s390_emit_prologue): Likewise.
23379         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23380         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
23381         (sparc_fold_builtin): Add cast to enum type.
23382         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
23383         enum insn_code.
23384         (spu_expand_prologue): Use add_reg_note.
23385         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
23386
23387 2009-04-20  Ian Lance Taylor  <iant@google.com>
23388
23389         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
23390         (c_parser_postfix_expression_after_primary): Get VEC for list of
23391         arguments.  Get original types of arguments.  Call
23392         build_function_call_vec.
23393         (cached_expr_list_1, cached_expr_list_2): New static variables.
23394         (c_parser_expr_list): Change return type to VEC *.  Add
23395         p_orig_types parameter.  Change all callers.
23396         (c_parser_release_expr): New static function.
23397         (c_parser_vec_to_tree_list): New static function.
23398         * c-typeck.c (build_function_call): Rewrite to build a VEC and
23399         call build_function_call_vec.
23400         (build_function_call_vec): New function, based on old
23401         build_function_call.
23402         (convert_arguments): Remove nargs and argarray parameters.  Change
23403         values to a VEC.  Add origtypes parameter.
23404         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
23405         (convert_for_assignment): Add origtype parameter.  Change all
23406         callers.  If warn_cxx_compat, check for conversion to an enum
23407         type when calling a function.
23408         (store_init_value): Add origtype parameter.  Change all callers.
23409         (digest_init): Likewise.
23410         (struct init_node): Add origtype field.
23411         (add_pending_init): Add origtype parameter.  Change all callers.
23412         (output_init_element): Likewise.
23413         (output_pending_init_elements): Pass origtype from init_node to
23414         output_init_element.
23415         (process_init_element): Pass origtype from c_expr to
23416         output_init_element.
23417         (c_finish_return): Add origtype parameter.  Change all callers.
23418         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
23419         caller.
23420         (sync_resolve_params): Likewise.
23421         (sync_resolve_return): Change params to first_param.  Change caller.
23422         (resolve_overloaded_builtins): Change params to VEC *.  Change
23423         callers.  Save first parameter around call to build_function_call_vec.
23424         * c-decl.c (finish_decl): Add origtype parameter.  Change all
23425         callers.  Call build_function_call_vec rather than
23426         build_function_call for cleanup.
23427         * c-tree.h: Update declarations.
23428         * c-common.h: Update declarations.
23429         * stub-objc.c (objc_rewrite_function_call): Change parameter from
23430         params to first_param.
23431         * target.h (struct gcc_target): Change resolve_overloaded_builtin
23432         params parameter from tree to void *.
23433         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23434         Change arglist parameter to have type void *, and to be a pointer
23435         to a VEC.
23436         * config/rs6000/rs6000-protos.h
23437         (altivec_resolve_overloaded_builtin): Update declaration.
23438         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23439         fnargs parameter to have type void *, and to be a pointer to a
23440         VEC.  Call build_function_call_vec instead of
23441         build_function_call.
23442         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23443
23444 2009-04-20  Joey Ye  <joey.ye@intel.com>
23445             Xuepeng Guo  <xuepeng.guo@intel.com>
23446             H.J. Lu  <hongjiu.lu@intel.com>
23447
23448         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23449
23450         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23451         (IX86_LEA_PRIORITY): Likewise.
23452         (distance_non_agu_define): New function.
23453         (distance_agu_use): Likewise.
23454         (ix86_lea_for_add_ok): Likewise.
23455         (ix86_dep_by_shift_count): Likewise.
23456
23457         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23458         should split for LEA.
23459
23460         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23461         function.
23462         (ix86_dep_by_shift_count): Likewise.
23463
23464 2009-04-20  Richard Guenther  <rguenther@suse.de>
23465
23466         * expr.c (handled_component_p): Move ...
23467         * tree.h (handled_component_p): ... here.
23468         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23469         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23470         and REALPART_EXPR to be in one group.
23471
23472 2009-04-20  Richard Guenther  <rguenther@suse.de>
23473
23474         * basic-block.h (get_all_dominated_blocks): Declare.
23475         * dominance.c (get_all_dominated_blocks): New function.
23476         * tree-cfg.c (get_all_dominated_blocks): Remove.
23477         (remove_edge_and_dominated_blocks): Adjust.
23478         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23479         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
23480         instead of recursing.
23481
23482 2009-04-20  Doug Kwan  <dougkwan@google.com>
23483
23484         * cgraph.h (cgraph_node_ptr): New type for vector functions.
23485         (struct cgraph_node_set_def): New type.
23486         (cgraph_node_set) New type. Also declare vector functions.
23487         (struct cgraph_node_set_element_def): New type.
23488         (cgraph_node_set_element): Ditto.
23489         (cgraph_node_set_iterator): New iterator type.
23490         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23491         cgraph_node_set_remove, dump_cgraph_node_set,
23492         debug_cgraph_node_set): New prototypes.
23493         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23494         cgraph_node_set_size): New inlines.
23495         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23496         including cgraph.h.
23497         (struct ipa_opt_pass): Add struct cgraph_node_set_def
23498         argument to function 'write_summary'.
23499         * ipa.c: Include ggc.h.
23500         (hash_cgraph_node_set_element,
23501         eq_cgraph_node_set_element, cgraph_node_set_new,
23502         cgraph_node_set_add, cgraph_node_set_remove,
23503         cgraph_node_set_find, dump_cgraph_node_set,
23504         debug_cgraph_node_set): New functions.
23505         * Makefile.in (ipa.o): Add dependency on GGC_H.
23506
23507 2009-04-20  Ira Rosen  <irar@il.ibm.com>
23508
23509         PR tree-optimization/39675
23510         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23511         check of the return code of vect_schedule_slp. Check that
23512         stmt_vec_info still exists for the statement, before checking its
23513         vectorization type.
23514
23515 2009-04-20  Michael Matz  <matz@suse.de>
23516
23517         * Makefile.in (generated_files): Take out $(simple_generated_c).
23518
23519 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
23520
23521         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
23522         (UINTPTR_TYPE):  Likewise.
23523
23524 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23525
23526         PR c/37481
23527         * c-typeck.c (digest_init): Check for initializing an array with a
23528         string literal.
23529
23530 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23531
23532         PR c/19771
23533         * c-semantics.c (pop_stmt_list): Propagate
23534         STATEMENT_LIST_HAS_LABEL to parent statement list.
23535
23536 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
23537
23538         * config/mips/mips.h (mips_tune_attr): New macro.
23539         * config/mips/mips.md (cpu): Use it.
23540
23541 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23542
23543         PR c/38243
23544         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23545         declaring a tag.
23546
23547 2009-04-19  Diego Novillo  <dnovillo@google.com>
23548
23549         * toplev.c (compile_file): Move call to coverage_finish ...
23550         * cgraphunit.c (ipa_passes): ... here.
23551         Call cgraph_process_new_functions.
23552         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23553         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23554
23555 2009-04-19  Jan Hubicka  <jh@suse.cz>
23556
23557         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23558         cfun.
23559         (dump_cgraph_node): Dump can throw external flag.
23560         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23561
23562 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23563
23564         PR c/32061
23565         PR c++/36954
23566         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23567         * common.opt (Wlogical-op): Move from here...
23568         * c.opt (Wlogical-op): ... to here.
23569         * c-typeck.c (parser_build_binary_op): Update call to
23570         warn_logical_operator.
23571         * c-opts.c (c_common_post_options): Enable warn_logical_op with
23572         extra_warnings.
23573         * c-common.c (warn_logical_op): Update.
23574         * c-common.h (warn_logical_op): Update declaration.
23575
23576 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
23577
23578         * tree.c (protected_set_expr_location): Fix formatting.
23579
23580 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23581
23582         PR c/27676
23583         * c-typeck.c (readonly_warning): new.
23584         (build_unary_op, build_modify_expr): Use readonly_warning for
23585         storing into something readonly but not const-qualified.
23586
23587 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23588
23589         PR c/22367
23590         * c-typeck.c (build_unary_op): Check for taking address of
23591         expression of type void.
23592
23593 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23594
23595         PR c/35210
23596         * c-typeck.c (build_function_call): Check for calling a function
23597         with qualified void return types.  Call require_complete_type when
23598         generating a trap.
23599
23600 2009-04-18  Jan Hubicka  <jh@suse.cz>
23601
23602         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23603         Set nothrow flag.
23604         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23605         can_throw_external flag.
23606         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23607         * ipa-pure-const.c (ignore_edge): New function.
23608         (propagate): Compute order for NOTHROW computation; set NOTHROWs
23609         only over can_throw_external edges.
23610         (local_pure_const): Add nothrow flag.
23611         * ipa-utils.c (searchc): Add ignore_edge callback.
23612         (ipa_utils_reduced_inorder): Add ignore_edge callback.
23613         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23614         (set_nothrow_function_flags): Update cgraph.
23615         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23616
23617 2009-04-18  Richard Guenther  <rguenther@suse.de>
23618
23619         PR middle-end/39804
23620         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23621         (fold_stmt): ... this and ...
23622         (fold_stmt_inplace): ... this.
23623         (fold_stmt_1): Fold references in calls and asms.
23624         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23625
23626 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23627
23628         * tree-vrp.c (ssa_name_nonzero_p): Remove.
23629         * tree.h: Remove the prototype for ssa_name_nonzero_p.
23630
23631 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23632
23633         * tree.c (function_args_count): Remove.
23634         * tree.h: Remove the prototype for function_args_count.
23635
23636 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23637
23638         * tree-iterator.c (expr_only): Remove.
23639         * tree.h: Remove the prototype for expr_only.
23640
23641 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23642
23643         * reginfo.c (cannot_change_mode_set_regs): Remove.
23644         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23645
23646 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
23647
23648         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23649         whether operands 0 and 1 overlaps.
23650
23651 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23652
23653         PR middle-end/36902
23654         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23655         pointer. Use warning_at instead of warning.
23656         (search_for_addr_array): Likewise.
23657         (check_array_bounds): Likewise.
23658         (check_all_array_refs): Check that the incoming edge is not in the
23659         list of edges to be removed.
23660         (check_all_array_refs): Avoid the temporal pointer.
23661         (vrp_visit_cond_stmt): Fix typo.
23662         (simplify_switch_using_ranges): Handle the case where the switch
23663         index is an integer constant.
23664
23665 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
23666
23667         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23668
23669 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23670
23671         * doc/extend.texi, doc/invoke.texi: Fix typos.
23672
23673 2009-04-17  Cary Coutant  <ccoutant@google.com>
23674
23675         * tree-flow-inline.h (get_lineno): Fix inverted test.
23676
23677 2009-04-17  Diego Novillo  <dnovillo@google.com>
23678
23679         * tree-ssa-pre.c (create_expression_by_pieces): Remove
23680         assertion for AVAIL_OUT.
23681
23682 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
23683
23684         PR target/38627
23685         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23686         * config/sh/linux-atomic.asm: Likewise.
23687
23688 2009-04-17  Diego Novillo  <dnovillo@google.com>
23689
23690         * except.c (debug_eh_tree): New.
23691         (struct eh_region, struct eh_status): Move ...
23692         * except.h: ... here.
23693         (add_type_for_runtime): Declare extern.
23694         (lookup_type_for_runtime): Likewise.
23695         (debug_eh_tree): Declare.
23696         * Makefile.in (GTFILES): List except.h before except.c
23697
23698 2009-04-17  Diego Novillo  <dnovillo@google.com>
23699
23700         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23701         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23702         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23703         (find_vars_r): ... here.
23704         * tree-flow.h (find_referenced_vars_in): Declare.
23705         * tree-ssa-pre.c (create_expression_by_pieces): Assert
23706         that AVAIL_OUT exists for BLOCK.
23707         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23708         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23709         (tree-parloops.o): Likewise.
23710
23711 2009-04-17  Simon Baldwin  <simonb@google.com>
23712
23713         * toplev.c (default_tree_printer): Add handling for %E format.
23714
23715 2009-04-17  Diego Novillo  <dnovillo@google.com>
23716
23717         * tree-pretty-print.c (dump_generic_node): Add break after
23718         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
23719         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
23720         FUNCTION_TYPE together.  Call print_struct_decl when printing
23721         structures and TDF_SLIM is not given.
23722         (print_struct_decl): Fix logic for detecting recursion.
23723
23724 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23725
23726         PR 31567
23727         * gcc.c (create_at_file): New.
23728         (compile_input_file_p): New.
23729         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23730         * main.c (main): Update call to toplev_main.
23731         * toplev.c (toplev_main): Change signature. Call expandargv.
23732         * toplev.h (toplev_main): Change signature.
23733
23734 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23735
23736         * dwarf2out.c (field_byte_offset): Use the type size as the field size
23737         if the latter is not constant.
23738
23739 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
23740
23741         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23742
23743 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23744
23745         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23746         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23747
23748 2009-04-17  Richard Guenther  <rguenther@suse.de>
23749
23750         * tree-ssa-structalias.c (get_constraint_for_component_ref):
23751         Handle component references view-converting an invariant address.
23752
23753 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
23754
23755         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23756         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23757         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23758         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23759         Use @deftypevr rather than @deftypevar.
23760
23761 2009-04-17  Richard Guenther  <rguenther@suse.de>
23762
23763         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23764         (get_prop_source_stmt): Likewise.
23765         (can_propagate_from): Likewise.
23766
23767 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
23768
23769         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23770         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23771         (--with-multilib-list): Add default value.
23772         * configure: Regenerate.
23773         * Makefile.in (TM_ENDIAN_CONFIG): Define.
23774         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23775         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23776         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23777         Don't add default cpu to multilib list unnecessarily, but do enable
23778         the relevant compiler option..
23779         Add support for --with-multilib-list=<blank> and
23780         --with-multilib-list=!<somelib> to supress unwanted multilibs.
23781         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23782         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23783         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23784         TM_MULTILIB_CONFIG.
23785         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23786         (MULTILIB_OSDIRNAMES): New variable.
23787         * config/sh/t-1e: Delete file.
23788         * config/sh/t-mlib-sh1: Delete file.
23789         * config/sh/t-mlib-sh2: Delete file.
23790         * config/sh/t-mlib-sh2a: Delete file.
23791         * config/sh/t-mlib-sh2a-nofpu: Delete file.
23792         * config/sh/t-mlib-sh2a-single: Delete file.
23793         * config/sh/t-mlib-sh2a-single-only: Delete file.
23794         * config/sh/t-mlib-sh2e: Delete file.
23795         * config/sh/t-mlib-sh3e: Delete file.
23796         * config/sh/t-mlib-sh4: Delete file.
23797         * config/sh/t-mlib-sh4-nofpu: Delete file.
23798         * config/sh/t-mlib-sh4-single: Delete file.
23799         * config/sh/t-mlib-sh4-single-only: Delete file.
23800         * config/sh/t-mlib-sh4a: Delete file.
23801         * config/sh/t-mlib-sh4a-nofpu: Delete file.
23802         * config/sh/t-mlib-sh4a-single: Delete file.
23803         * config/sh/t-mlib-sh4a-single-only: Delete file.
23804         * config/sh/t-mlib-sh4al: Delete file.
23805         * config/sh/t-mlib-sh5-32media: Delete file.
23806         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23807         * config/sh/t-mlib-sh5-64media: Delete file.
23808         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23809         * config/sh/t-mlib-sh5-compact: Delete file.
23810         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23811         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23812         * doc/install.texi (Options specification): Add
23813         --with-multilib-list and --with-endian.
23814
23815 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23816
23817         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23818         REVISION_c.
23819         (OBJS-common): Add plugin-version.o.
23820         (plugin-version.o): New.
23821         * gcc-plugin.h (plugin_gcc_version): New.
23822         (plugin_default_version_check): New.
23823         (plugin_init_func, plugin_init): Add version argument.
23824         * plugin-version.c: New.
23825         * plugin.c (str_plugin_gcc_version_name): New.
23826         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23827         pass it to the init function.
23828         (plugin_default_version_check): New.
23829
23830 2009-04-17  Richard Guenther  <rguenther@suse.de>
23831
23832         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23833         for decl-vs-decl disambiguation.
23834
23835 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
23836
23837         * config/s390/s390.h (s390_tune_attr): New macro definition.
23838         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23839
23840 2009-04-17  Richard Guenther  <rguenther@suse.de>
23841
23842         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23843         (fold_stmt_r): Likewise.
23844         (maybe_fold_reference): New function.
23845         (fold_gimple_assign): Handle cases fold_stmt_r did.
23846         (fold_stmt): Do not use fold_stmt_r.
23847         (fold_stmt_inplace): Likewise.
23848
23849 2009-04-17  Richard Guenther  <rguenther@suse.de>
23850
23851         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23852         (record_equivalences_from_stmt): Remove useless checks and
23853         simplifications.
23854         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23855         the type is already suitable.
23856
23857 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
23858
23859         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23860
23861 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
23862
23863         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23864         (CMPtype): Define as __gcc_CMPtype.
23865
23866 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
23867
23868         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23869         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23870
23871 2009-04-17  Richard Guenther  <rguenther@suse.de>
23872
23873         PR tree-optimization/39746
23874         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23875         special-casing for builtins and static variable use/def.
23876         (call_may_clobber_ref_p_1): Likewise.
23877
23878 2009-04-16  Ian Lance Taylor  <iant@google.com>
23879
23880         * df.h: Include "timevar.h".
23881         (struct df_problem): Change tv_id field to timevar_id_t.
23882         * tree-pass.h: Include "timevar.h".
23883         (struct opt_pass): Change tv_id field to timevar_id_t.
23884         * timevar.h (timevar_id_t): Define TV_NONE.
23885         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23886         TV_NONE rather than tv_id != 0.
23887         (execute_one_pass): Likewise.
23888         * Makefile.in (DF_H): Add $(TIMEVAR_H).
23889         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
23890         dependencies to $(TREE_PASS_H).
23891         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23892         to TV_NONE.
23893         (pass_branch_target_load_optimize2): Likewise.
23894         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23895         (pass_outof_cfg_layout_mode): Likewise.
23896         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23897         (pass_rebuild_cgraph_edges): Likewise.
23898         (pass_remove_cgraph_callee_edges): Likewise.
23899         * df-core.c (pass_df_initialize_opt): Likewise.
23900         (pass_df_initialize_no_opt): Likewise.
23901         (pass_df_finish): Likewise.
23902         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23903         * except.c (pass_set_nothrow_function_flags): Likewise.
23904         (pass_convert_to_eh_region_ranges): Likewise.
23905         * final.c (pass_compute_alignments): Likewise.
23906         * function.c (pass_instantiate_virtual_regs): Likewise.
23907         (pass_init_function): Likewise.
23908         (pass_leaf_regs): Likewise.
23909         (pass_match_asm_constraints): Likewise.
23910         * gimple-low.c (pass_lower_cf): Likewise.
23911         (pass_mark_used_blocks): Likewise.
23912         * init-regs.c (pass_initialize_regs): Likewise.
23913         * integrate.c (pass_initial_value_sets): Likewise.
23914         * ira.c (pass_ira): Likewise.
23915         * jump.c (pass_cleanup_barriers): Likewise.
23916         * omp-low.c (pass_expand_omp): Likewise.
23917         (pass_lower_omp): Likewise.
23918         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23919         * recog.c (pass_split_all_insns): Likewise.
23920         (pass_split_after_reload): Likewise.
23921         (pass_split_before_regstack): Likewise.
23922         (pass_split_before_sched2): Likewise.
23923         (pass_split_for_shorten_branches): Likewise.
23924         * reginfo.c (pass_reginfo_init): Likewise.
23925         (pass_subregs_of_mode_init): Likewise.
23926         (pass_subregs_of_mode_finish): Likewise.
23927         * passes.c (pass_postreload): Likewise.
23928         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23929         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23930         (pass_warn_function_return): Likewise.
23931         (pass_warn_function_noreturn): Likewise.
23932         * tree-complex.c (pass_lower_complex): Likewise.
23933         (pass_lower_complex_O0): Likewise.
23934         * tree-if-conv.c (pass_if_conversion): Likewise.
23935         * tree-into-ssa.c (pass_build_ssa): Likewise.
23936         * tree-mudflap.c (pass_mudflap_1): Likewise.
23937         (pass_mudflap_2): Likewise.
23938         * tree-nomudflap.c (pass_mudflap_1): Likewise.
23939         (pass_mudflap_2): Likewise.
23940         * tree-nrv.c (pass_return_slot): Likewise.
23941         * tree-object-size.c (pass_object_sizes): Likewise.
23942         * tree-optimize.c (pass_all_optimizations): Likewise.
23943         (pass_early_local_passes): Likewise.
23944         (pass_all_early_optimizations): Likewise.
23945         (pass_cleanup_cfg): Likewise.
23946         (pass_cleanup_cfg_post_optimizing): Likewise.
23947         (pass_free_datastructures): Likewise.
23948         (pass_free_cfg_annotations): Likewise.
23949         (pass_fixup_cfg): Likewise.
23950         (pass_init_datastructures): Likewise.
23951         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23952         (pass_late_warn_uninitialized): Likewise.
23953         (pass_update_address_taken): Likewise.
23954         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23955         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23956         (pass_cse_sincos): Likewise.
23957         (pass_convert_to_rsqrt): Likewise.
23958         * tree-ssa-structalias.c (pass_build_alias): Likewise.
23959         * tree-stdarg.c (pass_stdarg): Likewise.
23960         * tree-tailcall.c (pass_tail_recursion): Likewise.
23961         (pass_tail_calls): Likewise.
23962         * tree-vect-generic.c (pass_lower_vector): Likewise.
23963         (pass_lower_vector_ssa): Likewise.
23964         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23965
23966 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
23967
23968         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23969         XLR entry.
23970         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23971         Handle -march=xlr.
23972         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23973         logical and signext.
23974
23975 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
23976
23977         PR target/39767
23978         * config/sh/predicates.md (arith_operand): Check if the operand
23979         of TRUNCATE is a REG.
23980
23981 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23982
23983         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23984         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23985
23986 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23987
23988         * tree-iterator.c (tsi_split_statement_list_after,
23989         tsi_split_statement_list_before): Remove.
23990         * tree-iterator.h: Remove the prototypes for
23991         tsi_split_statement_list_after and tsi_split_statement_list_before.
23992
23993 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23994
23995         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23996         * tree-ssa-propagate.h: Remove the prototype for
23997         stmt_makes_single_load.
23998
23999 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24000
24001         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
24002         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
24003
24004 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24005
24006         * tree-iterator.c (EXPR_LAST_BODY): Remove.
24007
24008 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24009
24010         * except.c (eh_region_outer_p): Remove.
24011         * except.h: Remove the prototype for eh_region_outer_p.
24012
24013 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24014
24015         * function.c (current_function_assembler_name): Remove.
24016         * function.h: Remove the prototype for
24017         current_function_assembler_name.
24018
24019 2009-04-16  Ian Lance Taylor  <iant@google.com>
24020
24021         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
24022         (add_reg_note): Call alloc_reg_note.
24023         * rtl.h (alloc_reg_note): Declare.
24024         * combine.c (try_combine): Use alloc_reg_note.
24025         (recog_for_combine, move_deaths): Likewise.
24026         (distribute_notes): Use alloc_reg_note and add_reg_note.
24027         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
24028         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
24029         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
24030
24031 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
24032
24033         PR rtl-optimization/39762
24034         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
24035         ira_may_move_out_cost): Add comments about way of their usage.
24036         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
24037
24038         * ira-conflicts.c (process_regs_for_copy): Use function
24039         ira_get_register_move_cost instead of global
24040         ira_register_move_cost.
24041
24042         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
24043         color_pass, move_spill_restore, update_curr_costs): Ditto.
24044
24045         * ira-lives.c (process_single_reg_class_operands): Ditto.
24046
24047         * ira-emit.c (emit_move_list): Ditto.
24048
24049         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
24050         (record_reg_classes): Ditto.  Use functions
24051         ira_get_register_move_cost and ira_get_may_move_cost instead of
24052         global vars ira_register_move_cost, ira_may_move_out_cost and
24053         ira_may_move_in_cost.
24054         (record_address_regs): Don't call ira_init_register_move_cost.
24055         Use function ira_get_may_move_cost instead of global
24056         ira_may_move_in_cost.
24057         (process_bb_node_for_hard_reg_moves): Use function
24058         ira_get_register_move_cost instead of global ira_register_move_cost.
24059         (ira_costs): Don't call ira_init_register_move_cost.
24060
24061 2009-04-16  Richard Guenther  <rguenther@suse.de>
24062
24063         * tree-cfg.c (verify_gimple_assign_binary):
24064         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
24065         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
24066         (create_general_new_stmt): Note that this function is broken.
24067
24068 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24069
24070         * common.opt (fhelp): Add Var(help_flag).
24071         * gcc-plugin.h (plugin_info): Add help.
24072         * plugin.c (plugin_name_args): Add help.
24073         (register_plugin_info): Set plugin->help.
24074         (print_help_one_plugin): New.
24075         (print_plugins_help): New.
24076         * plugin.h (print_plugins_help): New.
24077         * toplev.c (toplev_main): Call print_plugins_help if needed.
24078
24079 2009-04-16  Richard Guenther  <rguenther@suse.de>
24080
24081         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
24082         (gimple_ior_addresses_taken_1): New function.
24083         (gimple_ior_addresses_taken): Likewise.
24084         * gimple.h (struct gimple_statement_with_ops_base): Remove
24085         addresses_taken member.
24086         (gimple_ior_addresses_taken): Declare.
24087         (gimple_addresses_taken, gimple_addresses_taken_ptr,
24088         gimple_set_addresses_taken): Remove.
24089         * ipa-reference.c (mark_address): New function.
24090         (scan_stmt_for_static_refs): Use it for marking addresses taken.
24091         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
24092         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
24093         (gimple_add_to_addresses_taken): Remove.
24094         (get_tmr_operands): Call mark_address_taken.
24095         (get_asm_expr_operands): Likewise.
24096         (get_expr_operands): Likewise.
24097         (build_ssa_operands): Do not clear the addresses_taken bitmap.
24098         (free_stmt_operands): Do not free it.
24099         * tree-ssa.c (delete_tree_ssa): Likewise.
24100         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
24101
24102 2009-04-16  Richard Guenther  <rguenther@suse.de>
24103
24104         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
24105         (walk_stmt_load_store_ops): Likewise.
24106         * gimple.c (get_base_loadstore): New function.
24107         (walk_stmt_load_store_addr_ops): Likewise.
24108         (walk_stmt_load_store_ops): Likewise.
24109         * ipa-pure-const.c (check_op): Simplify.
24110         (check_load, check_store): New functions.
24111         (check_stmt): Use walk_stmt_load_store_ops.
24112         * ipa-reference.c (mark_load): Adjust signature.
24113         (mark_store): Likewise.
24114         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
24115
24116 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24117
24118         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
24119         (plugin_info): New.
24120         * opts.c (common_handle_option): Don't call print_version.
24121         * plugin.c (plugin_name_args): Add version.
24122         (register_plugin_info): New.
24123         (register_callback): Handle PLUGIN_INFO.
24124         (try_init_one_plugin): New.
24125         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
24126         if failed to init.
24127         (finalize_one_plugin): New.
24128         (finalize_plugins): New.
24129         (print_one_plugin): New.
24130         (print_plugins_versions): New.
24131         * plugin.h (print_plugins_versions): New.
24132         (finalize_plugins): New.
24133         * toplev.c (compile_file): Don't call initialize_plugins.
24134         (print_version): Call print_plugins_versions.
24135         (toplev_main): Call initialize_plugins. Print version if needed.
24136         Call finalize_plugins.
24137
24138 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24139
24140         * common.opt (fversion): New.
24141         * gcc.c (print_version): New.
24142         (process_command): Don't print the version. Just set print_version.
24143         (main): Print version. Call subprocesses if print_version and
24144         verbose_flag are set.
24145         * opts.c (common_handle_option): Handle OPT_fversion.
24146
24147 2009-04-16  Richard Guenther  <rguenther@suse.de>
24148             Ira Rosen  <irar@il.ibm.com>
24149
24150         PR tree-optimization/39698
24151         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
24152         type of the reduction variable.  Only generate the def if
24153         it is needed.
24154
24155         * omp-low.c (expand_omp_for_generic): When converting to a pointer
24156         make sure to first convert to an integer of the same precision.
24157         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
24158         the type of the evolution correctly in computing the new
24159         induction variable base.
24160
24161 2009-04-16  Richard Guenther  <rguenther@suse.de>
24162
24163         PR middle-end/39625
24164         * tree-cfg.c (make_blocks): Split statements with to-be
24165         abnormal SSA names on the lhs.
24166
24167 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
24168
24169         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
24170         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
24171         * c-typeck.c (really_start_incremental_init): Likewise.
24172         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
24173         (TARGET_INITIALIZER): Remove it.
24174         * target.h (struct target): Remove vector_opaque_p.
24175         * tree.c (build_opaque_vector_type): New.
24176         * tree.h (TYPE_VECTOR_OPAQUE): New.
24177         (build_opaque_vector_type): Declare.
24178         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
24179         * config/rs6000/rs6000.c (build_opaque_vector_type,
24180         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
24181         (rs6000_init_builtins): Use build_opaque_vector_type for
24182         opaque_V4SI_type_node.
24183
24184 2009-04-15  Catherine Moore  <clm@codesourcery.com>
24185
24186         * debug.h (set_name):  Declare.
24187         * dwarf2out.c (dwarf2out_set_name): Declare.
24188         (dwarf2_debug_hooks): Add set_name.
24189         (find_AT_string): New.
24190         (add_AT_string): Call find_AT_string.
24191         (dwarf2out_set_name): New.
24192         * cp/decl.c (grokdeclarator): Call set_name.
24193         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
24194         * debug.c (do_nothing_debug_hooks):  Likewise.
24195         * dbxout.c (dbx_debug_hooks): Likewise.
24196         * sdbout.c (sdb_debug_hooks): Likewise.
24197
24198 2009-04-15  Michael Eager  <eager@eagercon.com>
24199
24200         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
24201         reg for single-precision FPU.
24202         * config/rs6000/rs6000.md (movsi_internal1): Only for
24203         !TARGET_SINGLE_FPU.
24204         (movsi_internal1_single): New. Add pattern to move SI values to/from
24205         single-precision FP regs.
24206
24207 2009-04-15  Richard Guenther  <rguenther@suse.de>
24208
24209         * omp-low.c (lower_rec_input_clauses): Build correct address
24210         expressions.
24211         (expand_omp_for_generic): Fix multiplication type.
24212         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
24213         (generate_memset_zero): Fix types.
24214         * tree-profile.c (prepare_instrumented_value): Correctly
24215         widen a pointer.
24216
24217 2009-04-15  Ian Lance Taylor  <iant@google.com>
24218
24219         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
24220         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
24221         for -Wall and for -Wc++-compat.
24222         (c_common_post_options): For C++, set warn_enum_compare if not
24223         already set.
24224         * c-tree.h (struct c_expr): Add field original_type.
24225         (build_external_ref): Update declaration.
24226         * c-parser.c (c_parser_braced_init): Set original_type.
24227         (c_parser_initelt): Likewise.
24228         (c_parser_expr_no_commas): Likewise.
24229         (c_parser_conditional_expression): Likewise.
24230         (c_parser_cast_expression): Likewise.
24231         (c_parser_unary_expression): Likewise.  Pull setting of
24232         original_code to top of function.
24233         (c_parser_sizeof_expression): Set original_type.
24234         (c_parser_alignof_expression): Likewise.
24235         (c_parser_postfix_expression): Likewise.  Pull setting of
24236         original_code to top of function.
24237         (c_parser_postfix_expression_after_paren_type): Set original_type.
24238         (c_parser_postfix_expression_after_primary): Likewise.
24239         (c_parser_expression): Likewise.
24240         * c-typeck.c (build_external_ref): Add type parameter.  Change all
24241         callers.
24242         (c_expr_sizeof_expr): Set original_type field.
24243         (parser_build_unary_op): Likewise.
24244         (parser_build_binary_op): Likewise.  Optionally warn about
24245         comparisons of enums of different types.
24246         (digest_init): Set original_type field.
24247         (really_start_incremental_init): Likewise.
24248         (push_init_level, pop_init_level): Likewise.
24249         * doc/invoke.texi (Warning Options): -Wenum-compare now
24250         supported in C.
24251
24252 2009-04-15  Richard Guenther  <rguenther@suse.de>
24253
24254         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
24255         out a necessary conversion.
24256         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
24257         names we didn't value number.
24258         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
24259
24260 2009-04-15  Richard Guenther  <rguenther@suse.de>
24261
24262         PR tree-optimization/39764
24263         * tree-ssa-ccp.c (get_value): Canonicalize value with
24264         canonicalize_float_value.
24265
24266 2009-04-15  Jan Hubicka  <jh@suse.cz>
24267
24268         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
24269         Wrong version of patch.
24270
24271 2009-04-15  Jan Hubicka  <jh@suse.cz>
24272
24273         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
24274
24275 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
24276
24277         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
24278         our distinct integral and vector types.
24279
24280 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
24281
24282         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
24283         * init.c (build_vtbl_address): Remove call to assemble_external.
24284
24285 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
24286
24287         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
24288         output for other floating point modes.
24289
24290 2009-04-14  Diego Novillo  <dnovillo@google.com>
24291
24292         * diagnostic.c (diagnostic_report_diagnostic): Do not
24293         warn about loaded plugins for DK_ERROR and DK_WARNING.
24294         * c-decl.c (declspecs_add_type): Move call to
24295         invoke_plugin_callbacks ...
24296         * c-parser.c (c_parser_declspecs): ... here.
24297         * plugin.c (dump_active_plugins): Tidy output.
24298
24299 2009-04-14  Diego Novillo  <dnovillo@google.com>
24300             Le-Chun Wu  <lcwu@google.com>
24301
24302         * configure.ac: Add --enable-plugin support.
24303         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
24304         * Makefile.in (PLUGIN_H): Define.
24305         Export ENABLE_PLUGIN and GMPINC to site.exp.
24306         Add PLUGINLIBS to link command.
24307         Add/modify dependencies for plugin.o and files including plugin.h.
24308         (plugin.o): New.
24309         * config.in: Regenerate.
24310
24311         * opts.c (common_handle_option): Handle OPT_fplugin_ and
24312         OPT_fplugin_arg_.
24313
24314 2009-04-14  Le-Chun Wu  <lcwu@google.com>
24315
24316         * tree-pass.h (register_one_dump_file): Add a prototype for
24317         register_one_dump_file.
24318         * toplev.c (compile_file): Call initialize_plugins.
24319         (do_compile): Call invoke_plugin_callbacks.
24320         (toplev_main): Call invoke_plugin_callbacks.
24321         * common.opt: Add -fplugin= and -fplugin-arg-.
24322         * gcc-plugin.h: New public header file for plugins to include.
24323         * plugin.c: New source file.
24324         * plugin.h: New internal header file.
24325         * passes.c (register_one_dump_file): Make it external.
24326
24327         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
24328
24329 2009-04-14  Diego Novillo  <dnovillo@google.com>
24330
24331         * doc/plugins.texi: New.
24332         * doc/gccint.texi: Add reference to Plugins chapter.
24333         * doc/invoke.texi: Document -fplugin and -fplugin-arg
24334         * diagnostic.c (diagnostic_report_diagnostic): Warn about
24335         loaded plugins, if any.
24336         * timevar.def (TV_PLUGIN_INIT): Define.
24337         (TV_PLUGIN_RUN): Define.
24338         * plugin.c: Include timevar.h
24339         (plugins_active_p): New.
24340         (dump_active_plugins): New.
24341         (debug_active_plugins): New.
24342
24343 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
24344
24345         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
24346         library paths.
24347         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
24348
24349 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
24350
24351         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
24352         the same as a minus without a shift.
24353
24354 2009-04-14  Nick Clifton  <nickc@redhat.com>
24355
24356         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
24357         comparisons with small integers will always produce a short
24358         branch.
24359
24360 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
24361
24362         Merge:
24363         2008-12-19  Diego Novillo  <dnovillo@google.com>
24364
24365         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
24366
24367 2009-04-14  Richard Guenther  <rguenther@suse.de>
24368
24369         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
24370         verification.
24371         (verify_gimple_assign_binary): Likewise.  Handle shifts and
24372         rotates correctly.
24373         (verify_gimple_phi): Print the mismatched argument position.
24374         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24375         Fix types.
24376         (vect_update_init_of_dr): Likewise.
24377         * matrix-reorg.c (transform_access_sites): Do what the
24378         comment suggests.
24379         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
24380
24381 2009-04-13  Michael Eager  <eager@eagercon.com>
24382
24383         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
24384         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
24385         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
24386         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
24387         remove duplicate config
24388
24389 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
24390
24391         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
24392         file_name:line_number type locator of the call site.
24393
24394 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
24395
24396         * genautomata.c: Put blank after comma.
24397         (automaton_decls): New.
24398         (struct unit_usage): Add comments to member next.
24399         (store_alt_unit_usage): Keep the list ordered.
24400         (unit_present_on_list_p, equal_alternatives_p): New.
24401         (check_regexp_units_distribution): Check units distribution
24402         correctness correctly.
24403         (main): Don't write automata if error is found.  Return correct
24404         exit code.
24405
24406         * config/m68k/cf.md (cfv4_ds): Remove.
24407         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
24408         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
24409
24410         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
24411         power4-load-ext, power4-store, power4-store-update,
24412         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
24413         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
24414         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
24415         power4-sqrt, power4-isync): Modify reservation to make correct
24416         unit distribution to automata.
24417
24418         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
24419         power5-store-update, power5-two, power5-three, power5-lmul,
24420         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
24421
24422 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
24423
24424         * except.c (pass_set_nothrow_function_flags): Set name and add
24425         TODO_dump_func.
24426         (set_nothrow_function_flags): Mention in the dump file when
24427         changing a function to nothrow.
24428
24429 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
24430
24431         PR/39066
24432         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24433         instead of unsigned long.
24434
24435 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24436
24437         * config/arm/arm.c (return_used_this_function): Remove.
24438         (arm_output_function_prologue): Remove use of
24439         return_used_this_function.
24440         (output_return_instruction): Replace use of
24441         return_used_this_function
24442         by cfun->machine->return_used_this_function.
24443         (arm_output_epilogue): Likewise.
24444         (arm_output_function_epilogue): Likewise.
24445         (thumb_unexpanded_epilogue): Likewise.
24446         * config/arm/arm.h (struct machine_function):
24447         New member return_used_this_function.
24448
24449 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
24450
24451         * doc/install.texi: Correct description of default directory for
24452         --with-gxx-include-dir.
24453
24454 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
24455
24456         * fold-const.c (build_range_check): Properly deal with enumeral and
24457         boolean base types.
24458
24459 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
24460
24461         * doc/invoke.texi (max_gcse_passes): Remove documentation.
24462         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24463         * params.h (MAX_GCSE_PASSES): Remove.
24464         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24465         in sequence.  Remove ability to run multiple passes.
24466         (bypass_jumps): Report run as third CPROP pass.
24467
24468 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
24469
24470         PR middle-end/39651
24471         * except.c (can_throw_external): Look at each insn in a SEQUENCE
24472         when deciding whether the whole SEQUENCE can throw.
24473
24474 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
24475
24476         PR target/39740
24477         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24478         offseted label references.
24479
24480 2009-04-11  Jan Hubicka  <jh@suse.cz>
24481
24482         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24483
24484 2009-04-11  Richard Guenther  <rguenther@suse.de>
24485
24486         PR middle-end/39732
24487         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24488         return variables as TREE_ADDRESSABLE.
24489
24490 2009-04-11  Richard Guenther  <rguenther@suse.de>
24491
24492         PR tree-optimization/39713
24493         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24494         reference trees have SSA_NAME operands.
24495
24496 2009-04-11  Richard Guenther  <rguenther@suse.de>
24497
24498         PR c/39712
24499         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24500         address expressions.
24501
24502 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24503
24504         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
24505         match changes in Cygwin 1.7
24506         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24507         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
24508
24509 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24510
24511         PR tree-optimization/39701
24512         * doc/invoke.texi (Optimization Options): Document change in
24513         meaning and initialization of -fdelete-null-pointer-checks.
24514
24515 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24516
24517         PR middle-end/39701
24518         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24519
24520         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24521         here.
24522
24523         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24524
24525 2009-04-10  Chao-ying Fu  <fu@mips.com>
24526
24527         * doc/tm.texi (Instruction Output): Document
24528         TARGET_ASM_FINAL_POSTSCAN_INSN.
24529         * target.h (final_postscan_insn): New field in asm_out.
24530         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24531         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24532         * final.c (final_scan_insn): Call
24533         targetm.asm_out.final_postscan_insn after outputting
24534         an asm macro and a normal instruction.
24535
24536         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24537         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24538         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24539         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24540         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24541
24542 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24543
24544         PR middle-end/39701
24545         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24546         variables as non-NULL even with -fdelete-null-pointer-checks.
24547
24548 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24549
24550         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24551
24552 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
24553
24554         PR target/39678
24555         * config/i386/i386.c (classify_argument): Handle SCmode with
24556         (bit_offset % 64) != 0.
24557
24558 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
24559
24560         * doc/invoke.texi (Optimize Options): Add cross-reference to
24561         -Q --help=optimizers examples.
24562
24563 2009-04-10  Ben Elliston  <bje@au.ibm.com>
24564
24565         PR target/36800
24566         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24567         regalign for the reg == fpr and TDmode case.
24568
24569 2009-04-09  David Ayers  <ayers@fsfe.org>
24570
24571         PR objc/29200
24572         * objc/objc-act.c (warn_with_method): Remove helper function.
24573         (check_duplicates): Call warning and inform directly.
24574         (really_start_method): Likewise.
24575
24576 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24577
24578         * expmed.c (expand_divmod): Always use a comparison for a division
24579         by a large unsigned integer.
24580
24581         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24582         for things others than variables or functions as nonzero.
24583
24584 2009-04-09  Nick Clifton  <nickc@redhat.com>
24585
24586         * unwind-compat.c: Change copyright header to refer to version
24587         3 of the GNU General Public License with version 3.1 of the
24588         GCC Runtime Library Exception and to point readers at the
24589         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24590         * config/alpha/crtfastmath.c: Likewise.
24591         * config/alpha/linux-unwind.h: Likewise.
24592         * config/alpha/qrnnd.asm: Likewise.
24593         * config/alpha/vms-crt0-64.c: Likewise.
24594         * config/alpha/vms-crt0.c: Likewise.
24595         * config/alpha/vms-dwarf2.asm: Likewise.
24596         * config/alpha/vms-dwarf2eh.asm: Likewise.
24597         * config/alpha/vms-psxcrt0-64.c: Likewise.
24598         * config/alpha/vms-psxcrt0.c: Likewise.
24599         * config/alpha/vms_tramp.asm: Likewise.
24600         * config/arc/initfini.c: Likewise.
24601         * config/arc/lib1funcs.asm: Likewise.
24602         * config/arm/bpabi-v6m.S: Likewise.
24603         * config/arm/bpabi.S: Likewise.
24604         * config/arm/bpabi.c: Likewise.
24605         * config/arm/crti.asm: Likewise.
24606         * config/arm/crtn.asm: Likewise.
24607         * config/arm/ieee754-df.S: Likewise.
24608         * config/arm/ieee754-sf.S: Likewise.
24609         * config/arm/lib1funcs.asm: Likewise.
24610         * config/arm/libunwind.S: Likewise.
24611         * config/arm/linux-atomic.c: Likewise.
24612         * config/arm/mmintrin.h: Likewise.
24613         * config/arm/pr-support.c: Likewise.
24614         * config/arm/unaligned-funcs.c: Likewise.
24615         * config/arm/unwind-arm.c: Likewise.
24616         * config/arm/unwind-arm.h: Likewise.
24617         * config/avr/libgcc.S: Likewise.
24618         * config/bfin/crti.s: Likewise.
24619         * config/bfin/crtlibid.s: Likewise.
24620         * config/bfin/crtn.s: Likewise.
24621         * config/bfin/lib1funcs.asm: Likewise.
24622         * config/bfin/linux-unwind.h: Likewise.
24623         * config/cris/arit.c: Likewise.
24624         * config/cris/cris_abi_symbol.c: Likewise.
24625         * config/darwin-64.c: Likewise.
24626         * config/darwin-crt2.c: Likewise.
24627         * config/darwin-crt3.c: Likewise.
24628         * config/darwin.h: Likewise.
24629         * config/dbxelf.h: Likewise.
24630         * config/dfp-bit.c: Likewise.
24631         * config/dfp-bit.h: Likewise.
24632         * config/elfos.h: Likewise.
24633         * config/fixed-bit.c: Likewise.
24634         * config/fixed-bit.h: Likewise.
24635         * config/fp-bit.c: Likewise.
24636         * config/fp-bit.h: Likewise.
24637         * config/fr30/crti.asm: Likewise.
24638         * config/fr30/crtn.asm: Likewise.
24639         * config/fr30/lib1funcs.asm: Likewise.
24640         * config/freebsd-spec.h: Likewise.
24641         * config/frv/cmovd.c: Likewise.
24642         * config/frv/cmovh.c: Likewise.
24643         * config/frv/cmovw.c: Likewise.
24644         * config/frv/frvbegin.c: Likewise.
24645         * config/frv/frvend.c: Likewise.
24646         * config/frv/lib1funcs.asm: Likewise.
24647         * config/glibc-stdint.h: Likewise.
24648         * config/h8300/clzhi2.c: Likewise.
24649         * config/h8300/crti.asm: Likewise.
24650         * config/h8300/crtn.asm: Likewise.
24651         * config/h8300/ctzhi2.c: Likewise.
24652         * config/h8300/fixunssfsi.c: Likewise.
24653         * config/h8300/lib1funcs.asm: Likewise.
24654         * config/h8300/parityhi2.c: Likewise.
24655         * config/h8300/popcounthi2.c: Likewise.
24656         * config/i386/ammintrin.h: Likewise.
24657         * config/i386/att.h: Likewise.
24658         * config/i386/avxintrin.h: Likewise.
24659         * config/i386/biarch64.h: Likewise.
24660         * config/i386/bmmintrin.h: Likewise.
24661         * config/i386/cpuid.h: Likewise.
24662         * config/i386/cross-stdarg.h: Likewise.
24663         * config/i386/crtfastmath.c: Likewise.
24664         * config/i386/crtprec.c: Likewise.
24665         * config/i386/cygming-crtbegin.c: Likewise.
24666         * config/i386/cygming-crtend.c: Likewise.
24667         * config/i386/cygwin.asm: Likewise.
24668         * config/i386/emmintrin.h: Likewise.
24669         * config/i386/gmm_malloc.h: Likewise.
24670         * config/i386/gthr-win32.c: Likewise.
24671         * config/i386/i386.h: Likewise.
24672         * config/i386/immintrin.h: Likewise.
24673         * config/i386/linux-unwind.h: Likewise.
24674         * config/i386/linux64.h: Likewise.
24675         * config/i386/mm3dnow.h: Likewise.
24676         * config/i386/mmintrin-common.h: Likewise.
24677         * config/i386/mmintrin.h: Likewise.
24678         * config/i386/nmmintrin.h: Likewise.
24679         * config/i386/pmm_malloc.h: Likewise.
24680         * config/i386/pmmintrin.h: Likewise.
24681         * config/i386/smmintrin.h: Likewise.
24682         * config/i386/sol2-c1.asm: Likewise.
24683         * config/i386/sol2-ci.asm: Likewise.
24684         * config/i386/sol2-cn.asm: Likewise.
24685         * config/i386/sol2-gc1.asm: Likewise.
24686         * config/i386/tmmintrin.h: Likewise.
24687         * config/i386/unix.h: Likewise.
24688         * config/i386/w32-unwind.h: Likewise.
24689         * config/i386/wmmintrin.h: Likewise.
24690         * config/i386/x86-64.h: Likewise.
24691         * config/i386/x86intrin.h: Likewise.
24692         * config/i386/xmmintrin.h: Likewise.
24693         * config/ia64/crtbegin.asm: Likewise.
24694         * config/ia64/crtend.asm: Likewise.
24695         * config/ia64/crtfastmath.c: Likewise.
24696         * config/ia64/crti.asm: Likewise.
24697         * config/ia64/crtn.asm: Likewise.
24698         * config/ia64/fde-glibc.c: Likewise.
24699         * config/ia64/lib1funcs.asm: Likewise.
24700         * config/ia64/linux-unwind.h: Likewise.
24701         * config/ia64/quadlib.c: Likewise.
24702         * config/ia64/unwind-ia64.c: Likewise.
24703         * config/linux.h: Likewise.
24704         * config/m32c/m32c-lib1.S: Likewise.
24705         * config/m32c/m32c-lib2-trapv.c: Likewise.
24706         * config/m32c/m32c-lib2.c: Likewise.
24707         * config/m32r/initfini.c: Likewise.
24708         * config/m68hc11/larith.asm: Likewise.
24709         * config/m68hc11/m68hc11-crt0.S: Likewise.
24710         * config/m68k/cf.md: Likewise.
24711         * config/m68k/crti.s: Likewise.
24712         * config/m68k/crtn.s: Likewise.
24713         * config/m68k/lb1sf68.asm: Likewise.
24714         * config/m68k/linux-unwind.h: Likewise.
24715         * config/mcore/crti.asm: Likewise.
24716         * config/mcore/crtn.asm: Likewise.
24717         * config/mcore/lib1.asm: Likewise.
24718         * config/mips/linux-unwind.h: Likewise.
24719         * config/mips/loongson.h: Likewise.
24720         * config/mips/mips16.S: Likewise.
24721         * config/mmix/crti.asm: Likewise.
24722         * config/mmix/crtn.asm: Likewise.
24723         * config/pa/fptr.c: Likewise.
24724         * config/pa/hpux-unwind.h: Likewise.
24725         * config/pa/lib2funcs.asm: Likewise.
24726         * config/pa/linux-atomic.c: Likewise.
24727         * config/pa/linux-unwind.h: Likewise.
24728         * config/pa/milli64.S: Likewise.
24729         * config/pa/quadlib.c: Likewise.
24730         * config/pa/stublib.c: Likewise.
24731         * config/picochip/libgccExtras/adddi3.asm: Likewise.
24732         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24733         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24734         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24735         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24736         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24737         * config/picochip/libgccExtras/divmod15.asm: Likewise.
24738         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24739         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24740         * config/picochip/libgccExtras/longjmp.asm: Likewise.
24741         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24742         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24743         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24744         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24745         * config/picochip/libgccExtras/setjmp.asm: Likewise.
24746         * config/picochip/libgccExtras/subdi3.asm: Likewise.
24747         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24748         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24749         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24750         * config/rs6000/750cl.h: Likewise.
24751         * config/rs6000/altivec.h: Likewise.
24752         * config/rs6000/biarch64.h: Likewise.
24753         * config/rs6000/crtresfpr.asm: Likewise.
24754         * config/rs6000/crtresgpr.asm: Likewise.
24755         * config/rs6000/crtresxfpr.asm: Likewise.
24756         * config/rs6000/crtresxgpr.asm: Likewise.
24757         * config/rs6000/crtsavfpr.asm: Likewise.
24758         * config/rs6000/crtsavgpr.asm: Likewise.
24759         * config/rs6000/darwin-asm.h: Likewise.
24760         * config/rs6000/darwin-fallback.c: Likewise.
24761         * config/rs6000/darwin-fpsave.asm: Likewise.
24762         * config/rs6000/darwin-ldouble.c: Likewise.
24763         * config/rs6000/darwin-tramp.asm: Likewise.
24764         * config/rs6000/darwin-unwind.h: Likewise.
24765         * config/rs6000/darwin-vecsave.asm: Likewise.
24766         * config/rs6000/darwin-world.asm: Likewise.
24767         * config/rs6000/e500crtres32gpr.asm: Likewise.
24768         * config/rs6000/e500crtres64gpr.asm: Likewise.
24769         * config/rs6000/e500crtres64gprctr.asm: Likewise.
24770         * config/rs6000/e500crtrest32gpr.asm: Likewise.
24771         * config/rs6000/e500crtrest64gpr.asm: Likewise.
24772         * config/rs6000/e500crtresx32gpr.asm: Likewise.
24773         * config/rs6000/e500crtresx64gpr.asm: Likewise.
24774         * config/rs6000/e500crtsav32gpr.asm: Likewise.
24775         * config/rs6000/e500crtsav64gpr.asm: Likewise.
24776         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24777         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24778         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24779         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24780         * config/rs6000/eabi-ci.asm: Likewise.
24781         * config/rs6000/eabi-cn.asm: Likewise.
24782         * config/rs6000/eabi.asm: Likewise.
24783         * config/rs6000/linux-unwind.h: Likewise.
24784         * config/rs6000/linux64.h: Likewise.
24785         * config/rs6000/paired.h: Likewise.
24786         * config/rs6000/paired.md: Likewise.
24787         * config/rs6000/ppc64-fp.c: Likewise.
24788         * config/rs6000/ppu_intrinsics.h: Likewise.
24789         * config/rs6000/rs6000.h: Likewise.
24790         * config/rs6000/si2vmx.h: Likewise.
24791         * config/rs6000/sol-ci.asm: Likewise.
24792         * config/rs6000/sol-cn.asm: Likewise.
24793         * config/rs6000/spe.h: Likewise.
24794         * config/rs6000/spu2vmx.h: Likewise.
24795         * config/rs6000/sysv4.h: Likewise.
24796         * config/rs6000/tramp.asm: Likewise.
24797         * config/rs6000/vec_types.h: Likewise.
24798         * config/s390/linux-unwind.h: Likewise.
24799         * config/s390/tpf-unwind.h: Likewise.
24800         * config/score/crti.asm: Likewise.
24801         * config/score/crtn.asm: Likewise.
24802         * config/sh/crt1.asm: Likewise.
24803         * config/sh/crti.asm: Likewise.
24804         * config/sh/crtn.asm: Likewise.
24805         * config/sh/divtab-sh4-300.c: Likewise.
24806         * config/sh/divtab-sh4.c: Likewise.
24807         * config/sh/divtab.c: Likewise.
24808         * config/sh/lib1funcs-4-300.asm: Likewise.
24809         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24810         * config/sh/lib1funcs.asm: Likewise.
24811         * config/sh/lib1funcs.h: Likewise.
24812         * config/sh/linux-atomic.asm: Likewise.
24813         * config/sh/linux-unwind.h: Likewise.
24814         * config/sh/shmedia.h: Likewise.
24815         * config/sh/sshmedia.h: Likewise.
24816         * config/sh/ushmedia.h: Likewise.
24817         * config/sparc/crtfastmath.c: Likewise.
24818         * config/sparc/linux-unwind.h: Likewise.
24819         * config/sparc/sol2-c1.asm: Likewise.
24820         * config/sparc/sol2-ci.asm: Likewise.
24821         * config/sparc/sol2-cn.asm: Likewise.
24822         * config/spu/divmodti4.c: Likewise.
24823         * config/spu/divv2df3.c: Likewise.
24824         * config/spu/float_disf.c: Likewise.
24825         * config/spu/float_unsdidf.c: Likewise.
24826         * config/spu/float_unsdisf.c: Likewise.
24827         * config/spu/float_unssidf.c: Likewise.
24828         * config/spu/mfc_multi_tag_release.c: Likewise.
24829         * config/spu/mfc_multi_tag_reserve.c: Likewise.
24830         * config/spu/mfc_tag_release.c: Likewise.
24831         * config/spu/mfc_tag_reserve.c: Likewise.
24832         * config/spu/mfc_tag_table.c: Likewise.
24833         * config/spu/multi3.c: Likewise.
24834         * config/spu/spu_internals.h: Likewise.
24835         * config/spu/spu_intrinsics.h: Likewise.
24836         * config/spu/spu_mfcio.h: Likewise.
24837         * config/spu/vec_types.h: Likewise.
24838         * config/spu/vmx2spu.h: Likewise.
24839         * config/stormy16/stormy16-lib2.c: Likewise.
24840         * config/svr4.h: Likewise.
24841         * config/sync.c: Likewise.
24842         * config/v850/lib1funcs.asm: Likewise.
24843         * config/vxlib-tls.c: Likewise.
24844         * config/vxlib.c: Likewise.
24845         * config/vxworks-dummy.h: Likewise.
24846         * config/xtensa/crti.asm: Likewise.
24847         * config/xtensa/crtn.asm: Likewise.
24848         * config/xtensa/ieee754-df.S: Likewise.
24849         * config/xtensa/ieee754-sf.S: Likewise.
24850         * config/xtensa/lib1funcs.asm: Likewise.
24851         * config/xtensa/lib2funcs.S: Likewise.
24852         * config/xtensa/linux-unwind.h: Likewise.
24853         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24854         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24855         * coretypes.h: Likewise.
24856         * crtstuff.c: Likewise.
24857         * defaults.h: Likewise.
24858         * dwarf2.h: Likewise.
24859         * emutls.c: Likewise.
24860         * gbl-ctors.h: Likewise.
24861         * gcov-io.h: Likewise.
24862         * ginclude/float.h: Likewise.
24863         * ginclude/iso646.h: Likewise.
24864         * ginclude/stdarg.h: Likewise.
24865         * ginclude/stdbool.h: Likewise.
24866         * ginclude/stddef.h: Likewise.
24867         * ginclude/stdfix.h: Likewise.
24868         * ginclude/stdint-gcc.h: Likewise.
24869         * ginclude/tgmath.h: Likewise.
24870         * gthr-aix.h: Likewise.
24871         * gthr-dce.h: Likewise.
24872         * gthr-gnat.c: Likewise.
24873         * gthr-gnat.h: Likewise.
24874         * gthr-lynx.h: Likewise.
24875         * gthr-mipssde.h: Likewise.
24876         * gthr-nks.h: Likewise.
24877         * gthr-posix.c: Likewise.
24878         * gthr-posix.h: Likewise.
24879         * gthr-posix95.h: Likewise.
24880         * gthr-rtems.h: Likewise.
24881         * gthr-single.h: Likewise.
24882         * gthr-solaris.h: Likewise.
24883         * gthr-tpf.h: Likewise.
24884         * gthr-vxworks.h: Likewise.
24885         * gthr-win32.h: Likewise.
24886         * gthr.h: Likewise.
24887         * libgcc2.c: Likewise.
24888         * libgcc2.h: Likewise.
24889         * libgcov.c: Likewise.
24890         * tsystem.h: Likewise.
24891         * typeclass.h: Likewise.
24892         * unwind-c.c: Likewise.
24893         * unwind-compat.h: Likewise.
24894         * unwind-dw2-fde-compat.c: Likewise.
24895         * unwind-dw2-fde-darwin.c: Likewise.
24896         * unwind-dw2-fde-glibc.c: Likewise.
24897         * unwind-dw2-fde.c: Likewise.
24898         * unwind-dw2-fde.h: Likewise.
24899         * unwind-dw2.c: Likewise.
24900         * unwind-dw2.h: Likewise.
24901         * unwind-generic.h: Likewise.
24902         * unwind-pe.h: Likewise.
24903         * unwind-sjlj.c: Likewise.
24904         * unwind.inc: Likewise.
24905         * config/arm/neon-gen.ml: Change generated copyright header to
24906         refer to version 3 of the GNU General Public License with
24907         version 3.1 of the GCC Runtime Library Exception and to point
24908         readers at the COPYING3 and COPYING3.RUNTIME files and the
24909         FSF's license web page.
24910         * config/arm/arm_neon.h: Regenerate.
24911
24912 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
24913
24914         * config/cris/cris.md: Change copyright header to refer to version
24915         3 of the GNU General Public License.
24916         * doc/install.texi2html: Change copyright header to refer to version
24917         3 of the GNU General Public License and to point readers at the
24918         COPYING3 file and the FSF's license web page.
24919         * config/vax/linux.h: Likewise.
24920
24921 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24922
24923         * config/i386/i386.md (cmpcc): New.
24924         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24925         (sync_compare_and_swap_cc*): Delete.
24926
24927         * config/s390/s390.c (s390_compare_emitted): Remove.
24928         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24929         s390_compare_emitted used to be handled.  Assert that modes match.
24930         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24931         refer to sync_compare_and_swap_ccsi.
24932         * config/s390/s390.h (s390_compare_emitted): Remove.
24933         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24934         instead of s390_compare_emitted.
24935         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24936         instead of s390_compare_emitted.
24937         * config/s390/s390.md (cmpcc): New.
24938         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24939         CC_REGNUM, do not pretend it's set.
24940         (sync_compare_and_swap_cc*): Delete.
24941         * config/s390/predicates.md (cc_reg_operand): New.
24942
24943         * expr.c (sync_compare_and_swap_cc): Delete.
24944         * optabs.h (sync_compare_and_swap_cc): Delete.
24945         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24946         is being used with can_compare_p.
24947         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24948         (find_cc_set): New.
24949         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24950         look for a MODE_CC set instead.  Use emit_store_flag.
24951         (expand_compare_and_swap_loop): Likewise, with some additional
24952         complication to avoid a force_reg when useless.  Use
24953         emit_cmp_and_jump_insns.
24954         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24955         * doc/md.texi (sync_compare_and_swap_cc): Merge with
24956         sync_compare_and_swap documentation.
24957
24958 2009-04-09  Jan Hubicka  <jh@suse.cz>
24959
24960         * except.c (find_prev_try): Break out from ....
24961         (duplicate_eh_regions): ... here; properly update prev_try pointers
24962         when duplication part of tree.
24963         (dump_eh_tree): Improve dumping.
24964         (verify_eh_region): New.
24965         (verify_eh_tree): Use it.
24966
24967 2009-04-06  Richard Guenther  <rguenther@suse.de>
24968
24969         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24970         &ARRAY addresses by adjusting their types and prepending
24971         a conversion.
24972         * tree-cfg.c (verify_gimple_assign_single): Verify that
24973         addresses are correct.
24974
24975 2009-04-09  Richard Guenther  <rguenther@suse.de>
24976
24977         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24978         indices into an array reference if possible.
24979         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24980         Fold POINTER_PLUS_EXPR statements with invariant address.
24981
24982 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
24983
24984         PR target/39634
24985         * config.gcc (powerpc64-*-linux*): Always build biarch.
24986
24987 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
24988
24989         PR c/39613
24990         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24991         it and pedwarn if this results in an INTEGER_CST.
24992
24993 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24994
24995         * doc/install.texi: Update minimum GMP version.  Remove obsolete
24996         text in MPFR section.
24997
24998 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
24999
25000         * dwarf2out.c (class_scope_p): New static inline.
25001         (class_or_namespace_scope_p): Use it.
25002         (gen_variable_die): Use DW_TAG_member tag for static data member
25003         declarations instead of DW_TAG_variable.
25004
25005         PR middle-end/39573
25006         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
25007         variables.
25008
25009 2009-04-08  Richard Guenther  <rguenther@suse.de>
25010
25011         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
25012         valueize random data.
25013
25014 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
25015
25016         * config.gcc (aix tm_file):  Add aix-stdint.h.
25017         (aix tm clause use_gcc_stdint):  Set to wrap.
25018         * config/rs6000/aix-stdint.h:  New file.
25019
25020 2009-04-08  Richard Guenther  <rguenther@suse.de>
25021
25022         PR middle-end/36291
25023         * tree-dfa.c (add_referenced_var): Do not recurse into
25024         global initializers.
25025         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
25026         exposed variables.
25027         (fold_const_aggregate_ref): Likewise.
25028
25029 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
25030
25031         * recog.c (ordered_comparison_operator): New.
25032         * gensupport.c (std_preds): Add it.
25033         * doc/md.texi (Machine-Independent Predicates): Document it.
25034
25035 2009-04-08  Jan Hubicka  <jh@suse.cz>
25036
25037         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
25038         * function.h (rtl_eh): Remove exception_handler_label_map.
25039         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
25040         remove_exception_handler_label, for_each_eh_label_1): Remove.
25041         (rtl_remove_unreachable_regions): Remove.
25042         (convert_from_eh_region_ranges): Do not remove unreachable regions.
25043         (find_exception_handler_labels): Don't build the hashtable.
25044         (maybe_remove_eh_handler): Remove.
25045         (for_each_eh_label): Rewrite to walk the tree.
25046         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
25047         * except.h (maybe_remove_eh_handler): Remove.
25048         * passes.c (init_optimization_passes): Schedule second EH cleanup
25049         before out-of-ssa.
25050         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
25051         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
25052
25053 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
25054
25055         * genoutput.c (validate_optab_operands): New.
25056         (gen_insn, gen_expand): Call it.
25057
25058         * genflags.c (gen_insn): Detect misused iterators.
25059         (main): Pass line_no to gen_insn, exit with status 1 on error.
25060
25061         * genextract.c (line_no): Make global.
25062         (VEC_safe_set_locstr): Change assertion to error message.
25063         (main): Exit with status 1 on error.
25064
25065 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
25066
25067         PR c/39614
25068         PR c/39673
25069         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25070         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25071         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
25072         * c-convert.c (convert): Do not call fold on results of conversion
25073         functions when the result is a C_MAYBE_CONST_EXPR.
25074         * c-parser.c (c_parser_postfix_expression): Do not fold condition
25075         of __builtin_choose_expr.
25076         * c-typeck.c (remove_c_maybe_const_expr): New.
25077         (build_unary_op, build_conditional_expr, build_compound_expr,
25078         build_binary_op, c_objc_common_truthvalue_conversion): Call
25079         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
25080         integer operands.
25081
25082 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
25083
25084         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
25085         CODE to produce a new one. Add a prototype to use fold_convert_const
25086
25087 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
25088
25089         PR bootstrap/39660
25090         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
25091         mix declarations and code.
25092
25093 2009-04-08  Ben Elliston  <bje@au.ibm.com>
25094
25095         * gcc.c: Replace `CC' with `GCC' throughout.
25096
25097 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
25098
25099         * doc/invoke.texi: Document Atom support.
25100
25101 2009-04-07  Jason Merrill  <jason@redhat.com>
25102
25103         PR c++/25185
25104         * c-common.h, c-common.c: Add flag_pretty_templates.
25105         * c-opts.c (c_common_handle_option): Set it.
25106         * c.opt: Add -fno-pretty-templates.
25107         * doc/invoke.texi (C++ Dialect Options): Likewise.
25108
25109 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
25110
25111         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
25112         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
25113         (ia64_expand_builtin): Likewise.
25114
25115 2009-04-07  Martin Jambor  <mjambor@suse.cz>
25116
25117         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
25118         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
25119         ADDR_EXPRS are include too.
25120
25121 2009-04-07  Richard Guenther  <rguenther@suse.de>
25122
25123         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
25124         decls are only used if passes as parameters or if they are
25125         local statics and the call is not to a builtin.
25126         (call_may_clobber_ref_p_1): Likewise.
25127
25128 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25129
25130         * expr.c (do_store_flag): Remove last argument.  Simplify code
25131         to avoid duplication of tests already done by can_compare_p.
25132         (expand_expr_real_1): Adjust caller.
25133
25134 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25135
25136         * optabs.c (can_compare_p): Test the predicate of a
25137         cbranch and cstore pattern.
25138
25139 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25140
25141         * expr.c (convert_move): Use emit_store_flag instead of
25142         "emulating" it.
25143
25144 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25145
25146         * config/i386/i386.c (ix86_compare_emitted): Remove.
25147         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
25148         ix86_compare_op0 like ix86_compare_emitted used to be handled.
25149         * config/i386/i386.h (ix86_compare_emitted): Remove.
25150         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
25151         instead of ix86_compare_emitted.
25152         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
25153
25154 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
25155
25156         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
25157         Add t-sysroot-suffix to tmake_file.
25158         * config/print-sysroot-suffix.sh: New file.
25159         * config/t-sysroot-suffix: New file.
25160
25161 2009-04-07  Ben Elliston  <bje@au.ibm.com>
25162
25163         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
25164         as the latter produces a warning when the target does not support
25165         infinity.
25166
25167 2009-04-07  Ben Elliston  <bje@au.ibm.com>
25168
25169         * dfp.c: Replace type punning assignments with memcpy throughout.
25170         * Makefile.in (dfp.o-warn): Remove.
25171
25172 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
25173
25174         PR target/39634
25175         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
25176         Include soft-fp/t-softfp after rs6000/t-linux64.
25177
25178 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
25179
25180         * stor-layout.c (set_sizetype): Use the full precision of their
25181         machine mode for bitsize types.
25182
25183 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
25184
25185         * config/i386/i386.md: Revert 2 accidental checkins.
25186
25187 2009-04-06  Joey Ye  <joey.ye@intel.com>
25188             Xuepeng Guo  <xuepeng.guo@intel.com>
25189             H.J. Lu  <hongjiu.lu@intel.com>
25190
25191         Atom pipeline model, tuning and insn selection.
25192         * config.gcc (atom): Add atom config options and target.
25193
25194         * config/i386/atom.md: New.
25195
25196         * config/i386/i386.c (atom_cost): New cost.
25197         (m_ATOM): New macro flag.
25198         (initial_ix86_tune_features): Set m_ATOM.
25199         (x86_accumulate_outgoing_args): Likewise.
25200         (x86_arch_always_fancy_math_387): Likewise.
25201         (processor_target): Add Atom cost.
25202         (cpu_names): Add Atom cpu name.
25203         (override_options): Set Atom ISA.
25204         (ix86_issue_rate): New case PROCESSOR_ATOM.
25205         (ix86_adjust_cost): Likewise.
25206
25207         * config/i386/i386.h (TARGET_ATOM): New target macro.
25208         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
25209         (TARGET_OPT_AGU): New target option.
25210         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
25211         (processor_type): Add PROCESSOR_ATOM.
25212
25213         * config/i386/i386.md (cpu): Add new value "atom".
25214         (use_carry, movu): New attr.
25215         (atom.md): Include atom.md.
25216         (adddi3_carry_rex64): Set attr "use_carry".
25217         (addqi3_carry): Likewise.
25218         (addhi3_carry): Likewise.
25219         (addsi3_carry): Likewise.
25220         (*addsi3_carry_zext): Likewise.
25221         (subdi3_carry_rex64): Likewise.
25222         (subqi3_carry): Likewise.
25223         (subhi3_carry): Likewise.
25224         (subsi3_carry): Likewise.
25225         (x86_movdicc_0_m1_rex64): Likewise.
25226         (*x86_movdicc_0_m1_se): Likewise.
25227         (x86_movsicc_0_m1): Likewise.
25228         (*x86_movsicc_0_m1_se): Likewise.
25229         (*adddi_1_rex64): Emit add insn as much as possible.
25230         (*addsi_1): Likewise.
25231         (return_internal): Set atom_unit.
25232         (return_internal_long): Likewise.
25233         (return_pop_internal): Likewise.
25234         (*rcpsf2_sse): Set atom_sse_attr attr.
25235         (*qrt<mode>2_sse): Likewise.
25236         (*prefetch_sse): Likewise.
25237
25238         * config/i386/i386-c.c (ix86_target_macros_internal): New case
25239         PROCESSOR_ATOM.
25240         (ix86_target_macros_internal): Likewise.
25241
25242         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
25243         (*prefetch_sse_rex): Likewise.
25244         (sse_rcpv4sf2): Likewise.
25245         (sse_vmrcpv4sf2): Likewise.
25246         (sse_sqrtv4sf2): Likewise.
25247         (<sse>_vmsqrt<mode>2): Likewise.
25248         (sse_ldmxcsr): Likewise.
25249         (sse_stmxcsr): Likewise.
25250         (*sse_sfence): Likewise.
25251         (sse2_clflush): Likewise.
25252         (*sse2_mfence): Likewise.
25253         (*sse2_lfence): Likewise.
25254         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
25255         (<sse>_movup<ssemodesuffixf2c>): Likewise.
25256         (avx_movdqu<avxmodesuffix>): Likewise.
25257         (avx_lddqu<avxmodesuffix>): Likewise.
25258         (sse2_movntv2di): Change attr "type" to "ssemov".
25259         (sse2_movntsi): Likewise.
25260         (rsqrtv8sf2): Change attr "type" to "sseadd".
25261         (sse3_addsubv2df3): Set attr "atom_unit".
25262         (sse3_h<plusminus_insn>v4sf3): Likewise.
25263         (*sse2_pmaddwd): Likewise.
25264         (*vec_extractv2di_1_rex64): Likewise.
25265         (*vec_extractv2di_1_avx): Likewise.
25266         (sse2_psadbw): Likewise.
25267         (ssse3_phaddwv8hi3): Likewise.
25268         (ssse3_phaddwv4hi3): Likewise.
25269         (ssse3_phadddv4si3): Likewise.
25270         (ssse3_phadddv2si3): Likewise.
25271         (ssse3_phaddswv8hi3): Likewise.
25272         (ssse3_phaddswv4hi3): Likewise.
25273         (ssse3_phsubwv8hi3): Likewise.
25274         (ssse3_phsubwv4hi3): Likewise.
25275         (ssse3_phsubdv4si3): Likewise.
25276         (ssse3_phsubdv2si3): Likewise.
25277         (ssse3_phsubswv8hi3): Likewise.
25278         (ssse3_phsubswv4hi3): Likewise.
25279         (ssse3_pmaddubsw128): Likewise.
25280         (sse3_pmaddubsw: Likewise.
25281         (ssse3_palignrti): Likewise.
25282         (ssse3_palignrdi): Likewise.
25283
25284 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
25285
25286         * doc/install.texi (Specific): Fix two cross-references to MinGW.
25287
25288 2009-04-06  Richard Guenther  <rguenther@suse.de>
25289
25290         PR tree-optimization/28868
25291         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
25292         of which PHI results we inserted.
25293         (insert_into_preds_of_block): Record inserted PHIs.
25294         (eliminate): Eliminate redundant PHI nodes.
25295         (init_pre): Init inserted_phi_names.
25296
25297 2009-04-06  Richard Guenther  <rguenther@suse.de>
25298
25299         PR tree-optimization/39643
25300         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
25301         IMAGPART_EXPRs of complex constants.
25302         (execute_fold_all_builtins): If we folded a call queue
25303         TODO_update_address_taken.
25304
25305 2009-04-06  Jan Hubicka  <jh@suse.cz>
25306
25307         PR middle-end/39659
25308         * except.c (remove_unreachable_regions): Propagate may_contain_throw
25309         flag.
25310
25311 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
25312
25313         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
25314         delay slot.
25315         (ic_invalidate_array): Likewise.
25316
25317 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
25318
25319         * calls.c (emit_library_call_value_1): Fix a problem with parameter
25320         alignment for library calls.
25321
25322 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
25323
25324         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
25325         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
25326         * config/i386/mingw-stdint.h:  New file.
25327
25328 2009-04-05  Richard Guenther  <rguenther@suse.de>
25329
25330         PR tree-optimization/39648
25331         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
25332         our &A vs. &A[0] IL deficiencies.
25333
25334 2009-04-04  Jan Hubicka  <jh@suse.cz>
25335
25336         * except.c (sjlj_find_directly_reachable_regions): Be ready for
25337         removed toplevel regions.
25338         (sjlj_mark_call_sites): Likewise.
25339
25340 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
25341
25342         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
25343         (cygwin tm clause use_gcc_stdint):  Set to wrap.
25344         * config/i386/cygwin-stdint.h:  New file.
25345
25346 2009-04-04  Richard Guenther  <rguenther@suse.de>
25347
25348         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
25349         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
25350         single-argument PHIs if we are in loop-closed SSA form.
25351         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
25352         for the pre-condition.
25353         (slpeel_tree_peel_loop_to_edge): Likewise.
25354         (vect_build_loop_niters): Take an optional sequence to append stmts.
25355         (vect_generate_tmps_on_preheader): Likewise.
25356         (vect_do_peeling_for_loop_bound): Take extra guards for the
25357         pre-condition.
25358         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
25359         the cost model check.
25360         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
25361         guards if we are going to peel.  Do not apply versioning in that case.
25362         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
25363         (vect_do_peeling_for_loop_bound): Likewise.
25364         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
25365         loop bound only record extra pre-conditions, do not apply loop
25366         versioning.
25367
25368 2009-04-04  Richard Guenther  <rguenther@suse.de>
25369
25370         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
25371         renaming code.
25372
25373 2009-04-04  Jan Hubicka  <jh@suse.cz>
25374
25375         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25376         last_basic_block for size of bb->index indexed array.
25377         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
25378         compute_out, link_btr_uses, build_btr_def_use_webs,
25379         build_btr_def_use_webs, migrate_btr_defs): Likewise.
25380
25381 2009-04-04  Jan Hubicka  <jh@suse.cz>
25382
25383         * except.c (remove_eh_handler_and_replace): Break out from ...
25384         (remove_eh_handler): ... here.
25385         (bring_to_root): New function.
25386         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
25387         handled ones, bring others to root of tree.
25388
25389 2009-04-04  Jan Hubicka  <jh@suse.cz>
25390
25391         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
25392         (all_phis_safe_to_merge): New function.
25393         (update_info): New structure.
25394         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
25395         (cleanup_empty_eh): Update SSA if possible.
25396
25397 2009-04-04  Richard Guenther  <rguenther@suse.de>
25398
25399         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
25400         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
25401         (append_vuse): Likewise.
25402
25403 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
25404
25405         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
25406         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
25407         instead of REG_UNSAVED for DW_CFA_undefined.
25408         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
25409         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
25410         outermost frame.
25411
25412 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
25413
25414         PR target/39501
25415         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
25416
25417 2009-04-04  Richard Guenther  <rguenther@suse.de>
25418
25419         PR tree-optimization/8781
25420         PR tree-optimization/37892
25421         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
25422         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
25423         (valueize_refs): Call it for *& valueizations.
25424         (shared_reference_ops_from_ref): Rename to ...
25425         (valueize_shared_reference_ops_from_ref): ... this and valueize.
25426         (shared_reference_ops_from_call): Rename to ...
25427         (valueize_shared_reference_ops_from_call): ... this and valueize.
25428         (vn_reference_lookup): Update.
25429         (visit_reference_op_call): Likewise.
25430         * tree-ssa-pre.c (phi_translate_1): Fold *&.
25431         (eliminate): Value-replace the call address in call statements.
25432
25433 2009-04-04  Richard Guenther  <rguenther@suse.de>
25434
25435         PR tree-optimization/39636
25436         * tree-ssa-forwprop.c
25437         (forward_propagate_addr_into_variable_array_index): Check for
25438         GIMPLE_ASSIGN before accessing the rhs code.
25439
25440 2009-04-03  Jason Merrill  <jason@redhat.com>
25441
25442         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25443
25444 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
25445
25446         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25447         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25448         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25449         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25450         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25451         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25452         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25453         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25454         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25455         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25456         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25457         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25458         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25459         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25460         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25461         Use fr_reg_or_fp01_operand instead of fr_register_operand
25462
25463         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25464         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25465         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25466
25467 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
25468
25469         PR rtl-optimization/39607
25470         PR rtl-optimization/39631
25471
25472         Revert:
25473
25474         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25475         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25476         instead of DF_LR_OUT.
25477         * ira-lives.c (process_bb_node_lives): Ditto.
25478         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25479         instead of DF_LR_{OUT,IN}.
25480         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25481         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25482
25483 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
25484
25485         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25486         (execute_lower_omp): Always run but take the short way out if -fopenmp
25487         is not given.
25488         (gate_lower_omp): Remove, forcing the pass manager to always run the
25489         pass and always set PROP_gimple_lomp.
25490         (pass_lower_omp): Remove gate function.
25491         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25492         PROP_trees.  Instead, require it.
25493         * ipa-cp.c (pass_ipa_cp): Likewise.
25494         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25495         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25496         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25497         and PROP_gimple_leh.
25498
25499 2009-04-03  Richard Guenther  <rguenther@suse.de>
25500
25501         PR middle-end/13146
25502         PR tree-optimization/23940
25503         PR tree-optimization/33237
25504         PR middle-end/33974
25505         PR middle-end/34093
25506         PR tree-optimization/36201
25507         PR tree-optimization/36230
25508         PR tree-optimization/38049
25509         PR tree-optimization/38207
25510         PR tree-optimization/38230
25511         PR tree-optimization/38301
25512         PR tree-optimization/38585
25513         PR middle-end/38895
25514         PR tree-optimization/38985
25515         PR tree-optimization/39299
25516         * tree-ssa-structalias.h: Remove.
25517         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25518         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25519         (struct vuse_element_d): Remove.
25520         (struct vuse_vec_d): Likewise.
25521         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25522         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25523         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25524         VUSE_ELEMENT_VAR): Likewise.
25525         (struct voptype_d): Likewise.
25526         (NUM_VOP_FREE_BUCKETS): Likewise.
25527         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25528         (struct stmt_operands_d): Remove.
25529         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25530         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25531         VDEF_NUM, VDEF_VECT): Likewise.
25532         (copy_virtual_operands): Remove.
25533         (operand_build_cmp): Likewise.
25534         (create_ssa_artificial_load_stmt): Likewise.
25535         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25536         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25537         vuse_index and mayuse_index members.  Pack and move done and iter_type
25538         members to the front.
25539         (SSA_OP_VMAYUSE): Remove.
25540         (SSA_OP_VIRTUAL_USES): Adjust.
25541         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25542         (unlink_stmt_vdef): Declare.
25543         (add_to_addressable_set): Remove.
25544         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25545         (vrp_visit_stmt): Likewise.
25546         * doc/tree-ssa.texi (Alias analysis): Update.
25547         * doc/invoke.texi (max-aliased-vops): Remove docs.
25548         (avg-aliased-vops): Likewise.
25549         * tree-into-ssa.c (syms_to_rename): Remove.
25550         (need_to_update_vops_p): Likewise.
25551         (need_to_initialize_update_ssa_p): Rename to ...
25552         (update_ssa_initialized_fn): ... this.  Track function we are
25553         initialized for.
25554         (symbol_marked_for_renaming): Simplify.
25555         (add_new_name_mapping): Do not set need_to_update_vops_p.
25556         (dump_currdefs): Use SYMS_TO_RENAME.
25557         (rewrite_update_stmt): Always walk all uses/defs.
25558         (dump_update_ssa): Adjust.
25559         (init_update_ssa): Take function argument.  Track what we are
25560         initialized for.
25561         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25562         (create_new_def_for): Initialize for cfun, assert we are initialized
25563         for cfun.
25564         (mark_sym_for_renaming): Simplify.
25565         (mark_set_for_renaming): Do not initialize update-ssa.
25566         (need_ssa_update_p): Simplify.  Take function argument.
25567         (name_mappings_registered_p): Assert we ask for the correct function.
25568         (name_registered_for_update_p): Likewise.
25569         (ssa_names_to_replace): Likewise.
25570         (release_ssa_name_after_update_ssa): Likewise.
25571         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
25572         (dump_decl_set): Do not print a newline.
25573         (debug_decl_set): Do it here.
25574         (dump_update_ssa): And here.
25575         * tree-ssa-loop-im.c (move_computations): Adjust.
25576         (movement_possibility): Likewise.
25577         (determine_max_movement): Likewise.
25578         (gather_mem_refs_stmt): Likewise.
25579         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25580         or NAME_MEMORY_TAG.
25581         * tree-complex.c (update_all_vops): Remove.
25582         (expand_complex_move): Adjust.
25583         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25584         Simplify test for memory referencing statement.  Exclude
25585         non-invariant ADDR_EXPRs.
25586         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25587         * tree-loop-distribution.c (generate_memset_zero): Adjust.
25588         (rdg_flag_uses): Likewise.
25589         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25590         related code.
25591         (tree_optimize_tail_calls_1): Also split the
25592         edge from the entry block if we have degenerate PHI nodes in
25593         the first basic block.
25594         * tree.c (init_ttree): Remove memory-tag related code.
25595         (tree_code_size): Likewise.
25596         (tree_node_structure): Likewise.
25597         (build7_stat): Re-write to be build6_stat.
25598         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25599         (SSA_VAR_P): Adjust.
25600         (struct tree_memory_tag): Remove.
25601         (struct tree_memory_partition_tag): Likewise.
25602         (union tree_node): Adjust.
25603         (build7): Re-write to be build6.
25604         * tree-pass.h (pass_reset_cc_flags): Remove.
25605         (TODO_update_address_taken): New flag.
25606         (pass_simple_dse): Remove.
25607         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25608         * params.h (MAX_ALIASED_VOPS): Remove.
25609         (AVG_ALIASED_VOPS): Likewise.
25610         * omp-low.c (expand_omp_taskreg): Update SSA form.
25611         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25612         aliases the lhs in a copy stmt.
25613         * tree-ssa-dse.c (struct address_walk_data): Remove.
25614         (memory_ssa_name_same): Likewise.
25615         (memory_address_same): Likewise.
25616         (get_kill_of_stmt_lhs): Likewise.
25617         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
25618         unused stores.  Look through PHI nodes into post-dominated regions.
25619         (dse_optimize_stmt): Simplify.  Properly remove stores.
25620         (tree_ssa_dse): Compute dominators.
25621         (execute_simple_dse): Remove.
25622         (pass_simple_dse): Likewise.
25623         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25624         gimple_loaded_syms and gimple_stored_syms computation.
25625         * toplev.c (dump_memory_report): Dump alias and pta stats.
25626         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25627         (vn_reference_eq): Likewise.
25628         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25629         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25630         valueize_vuses): Remove.
25631         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
25632         (get_def_ref_stmt_vuse): ... this.
25633         (vn_reference_lookup_2): New function.
25634         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25635         walking equivalent vuses.  Simplify.
25636         (vn_reference_lookup): Likewise.
25637         (vn_reference_insert): Likewise.
25638         (vn_reference_insert_pieces): Likewise.
25639         (visit_reference_op_call): Simplify.
25640         (visit_reference_op_load): Likewise.
25641         (visit_reference_op_store): Likewise.
25642         (init_scc_vn): Remove shared_lookup_vuses initialization.
25643         (free_scc_vn): Remove shared_lookup_vuses freeing.
25644         (sort_vuses, sort_vuses_heap): Remove.
25645         (get_ref_from_reference_ops): Export.
25646         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25647         vector with single vuse pointer.
25648         (vn_reference_lookup_pieces, vn_reference_lookup,
25649         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25650         (shared_vuses_from_stmt): Remove.
25651         (get_ref_from_reference_ops): Declare.
25652         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25653         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25654         memory-tag related code.
25655         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25656         (likely_value): Add comment, skip static-chain of call statements.
25657         (surely_varying_stmt_p): Adjust.
25658         (gimplify_and_update_call_from_tree): Likewise.
25659         (execute_fold_all_builtins): Do not rebuild alias info.
25660         (gimplify_and_update_call_from_tree): Properly update VOPs.
25661         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25662         (copy_ref_info): Remove memory-tag related code.
25663         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25664         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25665         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25666         computation.
25667         * tree-ssa-dom.c (gimple_p): Remove typedef.
25668         (eliminate_redundant_computations): Adjust.
25669         (record_equivalences_from_stmt): Likewise.
25670         (avail_expr_hash): Likewise.
25671         (avail_expr_eq): Likewise.
25672         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25673         (stmt_makes_single_load): Likewise.
25674         (stmt_makes_single_store): Likewise.
25675         * tree-ssa-alias.c: Rewrite completely.
25676         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25677         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25678         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25679         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25680         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25681         Remove public functions.
25682         (pass_reset_cc_flags): Remove.
25683         (pass_build_alias): Move ...
25684         * tree-ssa-structalias.c (pass_build_alias): ... here.
25685         * tree-ssa-alias.c (may_be_aliased): Move ...
25686         * tree-flow-inline.h (may_be_aliased): ... here.
25687         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25688         count_uses_and_derefs): Move ...
25689         * gimple.c: ... here.
25690         * gimple.h (count_uses_and_derefs): Declare.
25691         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25692         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25693         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25694         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25695         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25696         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25697         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25698         New functions.
25699         * tree-dfa.c (refs_may_alias_p): Move ...
25700         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
25701         * tree-ssa-alias.h: New file.
25702         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25703         (statement_sink_location): Likewise.
25704         * opts.c (decode_options): Do not adjust max-aliased-vops or
25705         avg-aliased-vops values.
25706         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25707         (TV_CALL_CLOBBER): Likewise.
25708         (TV_FLOW_SENSITIVE): Likewise.
25709         (TV_FLOW_INSENSITIVE): Likewise.
25710         (TV_MEMORY_PARTITIONING): Likewise.
25711         (TV_ALIAS_STMT_WALK): New timevar.
25712         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25713         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25714         (get_address_description): Remove memory-tag related code.
25715         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25716         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25717         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25718         and immediate uses in statements.  Document.
25719         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25720         (dump_symbols): Remove.
25721         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25722         * alias.c (get_deref_alias_set): New function split out from ...
25723         (get_alias_set): ... here.
25724         * alias.h (get_deref_alias_set): Declare.
25725         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25726         type parameter.  Remove restrict pointer handling.  Create a
25727         ref-all pointer in case type-based alias sets do not conflict.
25728         (vect_analyze_data_refs): Remove SMT related code.
25729         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25730         (vectorizable_load): Likewise.
25731         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25732         (DR_SYMBOL_TAG, DR_VOPS): Remove.
25733         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25734         Ignore vops and SMTs.
25735         (dr_analyze_alias): Likewise..
25736         (free_data_ref): Likewise.
25737         (create_data_ref): Likewise.
25738         (analyze_all_data_dependences): Likewise.
25739         (get_references_in_stmt): Adjust.
25740         * tree-flow-inline.h (gimple_aliases_computed_p,
25741         gimple_addressable_vars, gimple_call_clobbered_vars,
25742         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25743         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25744         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25745         gimple_mem_ref_stats): Remove.
25746         (gimple_vop): New function.
25747         (op_iter_next_use): Remove vuses and mayuses cases.
25748         (op_iter_next_def): Remove vdefs case.
25749         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25750         (clear_and_done_ssa_iter): Do not set removed fields.
25751         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
25752         Assert we are not iterating over vuses or vdefs if not also
25753         iterating over uses or defs.
25754         (op_iter_init_use): Likewise.
25755         (op_iter_init_def): Likewise.
25756         (op_iter_next_vdef): Remove.
25757         (op_iter_next_mustdef): Likewise.
25758         (op_iter_init_vdef): Likewise.
25759         (compare_ssa_operands_equal): Likewise.
25760         (link_use_stmts_after): Handle vuse operand.
25761         (is_call_used): Use is_call_clobbered.
25762         (is_call_clobbered): Global variables are always call clobbered,
25763         query the call-clobbers bitmap.
25764         (mark_call_clobbered): Ignore global variables.
25765         (clear_call_clobbered): Likewise.
25766         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25767         virtual operands sanity check.
25768         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25769         Remove.
25770         (TARGET_MEM_REF): Remove TMR_TAG operand.
25771         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25772         Remove call-clobber related code.
25773         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
25774         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25775         partitions or escape reason.
25776         (get_single_def_stmt, get_single_def_stmt_from_phi,
25777         get_single_def_stmt_with_phi): Remove.
25778         (dump_referenced_vars): Tidy.
25779         (get_ref_base_and_extent): Allow bare decls.
25780         (collect_dfa_stats): Adjust.
25781         * graphite.c (rename_variables_in_stmt): Adjust.
25782         (graphite_copy_stmts_from_block): Likewise.
25783         (translate_clast): Likewise.
25784         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25785         (EXPR_DIES): New.
25786         (translate_vuse_through_block): Use the oracle.
25787         (phi_translate_1): Adjust.
25788         (value_dies_in_block_x): Use the oracle.  Cache the outcome
25789         in EXPR_DIES.
25790         (valid_in_sets): Check if the VUSE for
25791         a REFERENCE is available.
25792         (eliminate): Do not remove stmts during elimination,
25793         instead queue and remove them afterwards.
25794         (do_pre): Do not rebuild alias info.
25795         (pass_pre): Run TODO_rebuild_alias before PRE.
25796         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25797         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25798         (mark_all_v_defs_stmt): Remove.
25799         (mark_all_v_defs_seq): Adjust.
25800         (sra_replace): Likewise.
25801         (scalarize_use): Likewise.
25802         (scalarize_copy): Likewise.
25803         (scalarize_init): Likewise.
25804         (scalarize_ldst): Likewise.
25805         (todoflags): Remove.
25806         (tree_sra): Do not rebuild alias info.
25807         (tree_sra_early): Adjust.
25808         (pass_sra): Run TODO_update_address_taken before SRA.
25809         * tree-predcom.c (set_alias_info): Remove.
25810         (prepare_initializers_chain): Do not call it.
25811         (mark_virtual_ops_for_renaming): Adjust.
25812         (mark_virtual_ops_for_renaming_list): Remove.
25813         (initialize_root_vars): Adjust.
25814         (initialize_root_vars_lm): Likewise.
25815         (prepare_initializers_chain): Likewise.
25816         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25817         (may_propagate_copy_into_stmt): Likewise.
25818         (merge_alias_info): Do nothing for now.
25819         (propagate_tree_value_into_stmt): Adjust.
25820         (stmt_may_generate_copy): Likewise.
25821         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25822         not mark symbols for renaming.
25823         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25824         with the same statement, make sure to update the new pointed-to one.
25825         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25826         call statements, do not mark symbols for renaming.
25827         (mark_operand_necessary): Dump something.
25828         (ref_may_be_aliased): New function.
25829         (mark_aliased_reaching_defs_necessary_1): New helper function.
25830         (mark_aliased_reaching_defs_necessary): Likewise.
25831         (mark_all_reaching_defs_necessary_1): Likewise.
25832         (mark_all_reaching_defs_necessary): Likewise.
25833         (propagate_necessity): Do not process virtual PHIs.  For
25834         non-aliased loads mark all reaching definitions as necessary.
25835         For aliased loads and stores mark the immediate dominating
25836         aliased clobbers as necessary.
25837         (visited): New global static.
25838         (perform_tree_ssa_dce): Free visited bitmap after propagating
25839         necessity.
25840         (remove_dead_phis): Perform simple dead virtual PHI removal.
25841         (remove_dead_stmt): Properly unlink virtual operands when
25842         removing stores.
25843         (eliminate_unnecessary_stmts): Schedule PHI removal after
25844         stmt removal.
25845         * tree-ssa-ter.c (is_replaceable_p): Adjust.
25846         (process_replaceable): Likewise.
25847         (find_replaceable_in_bb): Likewise.
25848         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25849         based on the single gimple vop.
25850         (verify_flow_insensitive_alias_info): Remove.
25851         (verify_flow_sensitive_alias_info): Likewise.
25852         (verify_call_clobbering): Likewise.
25853         (verify_memory_partitions): Likewise.
25854         (verify_alias_info): Likewise.
25855         (verify_ssa): Adjust..
25856         (execute_update_addresses_taken): Export.  Update SSA
25857         manually.  Optimize only when optimizing.  Use a local bitmap.
25858         (pass_update_address_taken): Remove TODO_update_ssa, add
25859         TODO_dump_func.
25860         (pass_update_address_taken): Just use TODO_update_address_taken.
25861         (init_tree_ssa): Do not initialize addressable_vars.
25862         (verify_ssa): Verify new VUSE / VDEF properties.
25863         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25864         Do not call verify_alias_info.
25865         (delete_tree_ssa): Clear the VUSE, VDEF operands.
25866         Do not free the loaded and stored syms bitmaps.  Reset the escaped
25867         and callused solutions.  Do not free addressable_vars.
25868         Remove memory-tag related code.
25869         (warn_uninitialized_var): Aliases are always available.
25870         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25871         * lambda-code.c (can_put_in_inner_loop): Adjust.
25872         (can_put_after_inner_loop): Likewise.
25873         (perfect_nestify): Likewise.
25874         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25875         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25876         (vectorizable_conversion): Do not mark symbols for renaming.
25877         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25878         (expand_call_inline): Unlink the calls virtual operands before
25879         replacing it.
25880         (tree_function_versioning): Do not call update_ssa if we are not
25881         updating clones.  Simplify.
25882         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25883         (propagate_with_phi): Likewise..
25884         * tree-outof-ssa.c (create_temp): Remove memory tag and call
25885         clobber code.  Assert we are not aliased or global.
25886         * tree-flow.h: Include tree-ssa-alias.h
25887         (enum escape_type): Remove.
25888         (struct mem_sym_stats_d): Likewise.
25889         (struct mem_ref_stats_d): Likewise.
25890         (struct gimple_df): Add vop member.  Remove global_var,
25891         call_clobbered_vars, call_used_vars, addressable_vars,
25892         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
25893         escaped and callused members.
25894         (struct ptr_info_def): Remove all members, add points-to solution
25895         member pt.
25896         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25897         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25898         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25899         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25900         (tree-ssa-alias.o): Likewise.
25901         (toplev.o): Add tree-ssa-alias.h
25902         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25903         * gimple.c (gimple_set_bb): Fix off-by-one error.
25904         (is_gimple_reg): Do not handle memory tags.
25905         (gimple_copy): Also copy virtual operands.
25906         Delay updating the statement.  Do not reset loaded and stored syms.
25907         (gimple_set_stored_syms): Remove.
25908         (gimple_set_loaded_syms): Likewise.
25909         (gimple_call_copy_skip_args): Copy the virtual operands
25910         and mark the new statement modified.
25911         * tree-ssa-structalias.c (may_alias_p): Remove.
25912         (set_uids_in_ptset): Take the alias set to prune with as
25913         parameter.  Fold in the alias test of may_alias_p.
25914         (compute_points_to_sets): Compute whether a ptr is dereferenced
25915         in a local sbitmap.
25916         (process_constraint): Deal with &ANYTHING on the lhs, reject all
25917         other ADDRESSOF constraints on the lhs.
25918         (get_constraint_for_component_ref): Assert that we don't get
25919         ADDRESSOF constraints from the base of the reference.
25920         Properly generate UNKNOWN_OFFSET for DEREF if needed.
25921         (struct variable_info): Remove collapsed_to member.
25922         (get_varinfo_fc): Remove.
25923         (new_var_info): Do not set collapsed_to.
25924         (dump_constraint): Do not follow cycles.
25925         (dump_constraint_graph): Likewise.
25926         (build_pred_graph): Likewise.
25927         (build_succ_graph): Likewise.
25928         (rewrite_constraints): Likewise.
25929         (do_simple_structure_copy): Remove.
25930         (do_rhs_deref_structure_copy): Remove.
25931         (do_lhs_deref_structure_copy): Remove.
25932         (collapse_rest_of_var): Remove.
25933         (do_structure_copy): Re-implement.
25934         (pta_stats): New global variable.
25935         (dump_pta_stats): New function.
25936         (struct constraint_expr): Make offset signed.
25937         (UNKNOWN_OFFSET): Define special value.
25938         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25939         (solution_set_expand): New helper function split out from ...
25940         (do_sd_constraint): ... here.
25941         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
25942         (do_ds_constraint): Likewise.
25943         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
25944         and CALLUSED = *CALLUSED.
25945         (set_union_with_increment): Make inc argument signed.
25946         (type_safe): Remove.
25947         (get_constraint_for_ptr_offset): Handle unknown and negative
25948         constant offsets.
25949         (first_vi_for_offset): Handle offsets before start.  Bail
25950         out early for offsets beyond the variable extent.
25951         (first_or_preceding_vi_for_offset): New function.
25952         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25953         Together with ESCAPED = *ESCAPED this properly computes reachability.
25954         (find_what_var_points_to): New function.
25955         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25956         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25957         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25958         pt_solutions_intersect): New functions.
25959         (compute_call_used_vars): Remove.
25960         (compute_may_aliases): New main entry into PTA computation.
25961         * gimple.h (gimple_p): New typedef.
25962         (struct gimple_statement_base): Remove references_memory_p.
25963         (struct gimple_statement_with_memory_ops_base): Remove
25964         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
25965         members.
25966         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25967         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25968         gimple_set_references_memory): Remove.
25969         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25970         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25971         New functions.
25972         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25973         (verify_expr): Allow RESULT_DECL.
25974         (gimple_duplicate_bb): Do not copy virtual operands.
25975         (gimple_duplicate_sese_region): Adjust.
25976         (gimple_duplicate_sese_tail): Likewise.
25977         (mark_virtual_ops_in_region): Remove.
25978         (move_sese_region_to_fn): Do not call it.
25979         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25980         and pass_simple_dse.
25981         (execute_function_todo): Handle TODO_update_address_taken,
25982         call execute_update_addresses_taken for TODO_rebuild_alias.
25983         (execute_todo): Adjust.
25984         (execute_one_pass): Init dump files early.
25985         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25986         call-clobbered.
25987         (create_general_new_stmt): Clear vops.
25988         * tree-ssa-reassoc.c (get_rank): Adjust.
25989         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25990         symbols for renaming.
25991         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25992         (PARAM_AVG_ALIASED_VOPS): Likewise.
25993         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25994         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
25995         * tree-ssa-operands.c: Simplify for new virtual operand representation.
25996         (operand_build_cmp, copy_virtual_operands,
25997         create_ssa_artificial_load_stmt, add_to_addressable_set,
25998         gimple_add_to_addresses_taken): Remove public functions.
25999         (unlink_stmt_vdef): New function.
26000
26001 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
26002
26003         * config.gcc (powerpc-*-linux*): Merge variants.
26004
26005 2009-04-02  Chao-ying Fu  <fu@mips.com>
26006             James Grosbach  <james.grosbach@microchip.com>
26007
26008         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
26009         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
26010         cop0_sp_offset.
26011         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
26012         keep_interrupts_masked_p, use_debug_exception_return_p.
26013         (mips_attribute_table): Add interrupt, use_shadow_register_set,
26014         keep_interrupts_masked, use_debug_exception_return.
26015         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
26016         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
26017         New functions.
26018         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
26019         (mips_print_operand): Process COP0 registers to print $0 .. $31
26020         correctly for GAS to process.
26021         (mips_interrupt_extra_call_saved_reg_p): New function.
26022         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
26023         extra registers.
26024         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
26025         (mips_compute_frame_info): Add supports for interrupt context that
26026         includes doubleword accumulators and COP0 registers.
26027         (mips_for_each_saved_acc): New function.
26028         (mips_for_each_saved_gpr_and_fpr): Change the function name from
26029         mips_for_each_saved_reg.
26030         (mips_save_reg): Save accumulators.
26031         (mips_kernel_reg_p): A new for_each_rtx callback.
26032         (mips_expand_prologue): Support interrupt handlers.
26033         (mips_restore_reg): Restore accumulators.
26034         (mips_expand_epilogue): Support interrupt handlers.
26035         (mips_can_use_return_insn): Return false for interrupt handlers.
26036         (mips_epilogue_uses): New function.
26037         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
26038         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
26039         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
26040         cop0_move): New instructions.
26041         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
26042         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
26043         defines.
26044         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
26045         New defines.
26046         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
26047         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
26048         interrupt handlers, we use K0 as the temporary register.
26049         (EPILOGUE_USES): Change to a function call.
26050         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
26051         handlers, we use K0 as the temporary register.
26052
26053         * doc/extend.texi (Function Attributes): Document interrupt,
26054         use_shadow_register_set, keep_interrupts_masked,
26055         use_debug_exception_return for MIPS attributes.
26056
26057 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
26058
26059         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
26060         Remove a number of t-files from tmake_file.
26061         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
26062         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
26063         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
26064         target_prototype, not TARGET_PROTOTYPE.
26065         (LINK_OS_GNU_SPEC): Define.
26066         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
26067         and darwin-ldoubdle.c.
26068
26069 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26070
26071         PR driver/39293
26072         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
26073         (cpp_options): Ditto.
26074         (default_compilers): Ditto.
26075         (display_help): Ditto.
26076         (process_command): Ditto.
26077         (do_spec_1): Ditto.
26078         (set_input): Use lbasename instead of duplicate code.
26079         (save_temps_prefix): New static for -save-temps=obj.
26080         (save_temps_length): Ditto.
26081
26082         * doc/invoke.texi (-save-temps=obj): Document new variant to
26083         -save-temps switch.
26084
26085 2009-04-02  Jeff Law  <law@redhat.com>
26086
26087         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
26088         variable.
26089
26090 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
26091
26092         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
26093         * configure: Regenerated.
26094
26095 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26096
26097         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
26098         share the argument list.
26099
26100 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26101
26102         Merge
26103
26104         2009-02-12  Diego Novillo  <dnovillo@google.com>
26105
26106         * varpool.c (debug_varpool): New.
26107         * cgraph.h (debug_varpool): Declare.
26108
26109 2009-04-02  Jan Hubicka  <jh@suse.cz>
26110
26111         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
26112         pass.
26113
26114 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
26115
26116         * config/i386/i386.c (ix86_abi): Move initialization to ...
26117         (override_options): Here.
26118
26119 2009-04-02  Christian Bruel  <christian.bruel@st.com>
26120
26121         * config/sh/sh.c (sh_dwarf_register_span): New function.
26122         (TARGET_DWARF_REGISTER_SPAN): Define.
26123         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
26124
26125 2009-04-02  Ira Rosen  <irar@il.ibm.com>
26126
26127         PR tree-optimization/39595
26128         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
26129         interleaved loads group is not  greater than the SLP group size.
26130
26131 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26132
26133         * builtins.c (is_builtin_name): New.
26134         (called_as_built_in): Use is_builtin_name.
26135         * tree.h (is_builtin_name): New.
26136         * varasm.c (incorporeal_function_p): Use is_builtin_name
26137
26138 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
26139
26140         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
26141
26142 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
26143
26144         PR c++/26693
26145         * c-decl.c (clone_underlying_type): Move this ...
26146         * c-common.c (set_underlying_type): ... here.
26147         Also, make sure the function properly sets TYPE_STUB_DECL() on
26148         the newly created typedef variant type.
26149         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
26150         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
26151         points.
26152
26153 2009-04-02  Richard Guenther  <rguenther@suse.de>
26154
26155         PR tree-optimization/37221
26156         * tree-flow.h (degenerate_phi_result): Declare.
26157         * tree-ssa-dom.c (degenerate_phi_result): Export.
26158         * tree-scalar-evolution.c (analyze_initial_condition): If
26159         the initial condition is defined by a degenerate PHI node
26160         use the degenerate value.
26161
26162 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
26163
26164         PR rtl-optimization/39588
26165         * combine.c (merge_outer_ops): Do not set the constant when this
26166         is not necessary.
26167         (simplify_shift_const_1): Do not modify it either in this case.
26168
26169 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
26170
26171         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
26172         tuning is deprecated if -mtune value is set to an Itanium1 variant.
26173
26174 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
26175
26176         PR c/29027
26177         * c-lex.c (interpret_float): Default (no suffix) is double.
26178
26179 2009-04-1  Xinliang David Li  <davidxl@google.com>
26180
26181         * config/i386/i386.c (legitimate_constant_p): Recognize
26182         all one vector constant.
26183
26184 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26185
26186         * config/vax/vax.c: Add #includes to silence warnings.
26187         Change #include order to silence two warnings.
26188
26189 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26190
26191         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
26192         (ASM_SPEC): Pass -k to the assembler for PIC code.
26193
26194 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26195
26196         * config.gcc: Add vax-*-linux* to the switch.
26197         * config/vax/linux.h: New file. (TARGET_VERSION,
26198         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
26199
26200 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26201
26202         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
26203         Use predicate macros instead of GET_CODE() == foo.
26204         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
26205         ashlsi3, rotrsi3, <unnamed>): Likewise.
26206
26207 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26208
26209         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
26210         jbbccihi, jbbccisi): Remova trailing whitespace.
26211         * config/vax/constraints.md: Likewise.
26212         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
26213         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
26214         * config/vax/predicates.md: Likewise.
26215         * config/vax/vax.c (print_operand_address, vax_output_int_move,
26216         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
26217         * config/vax/vax.h: Likewise.
26218         * config/vax/vax.md (nonlocal_goto): Likewise.
26219
26220 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26221
26222         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
26223         (indirectable_address_p, adjacent_operands_p): Add spaces around
26224         braces.
26225         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
26226
26227 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26228
26229         * config/vax/vax.c (legitimate_constant_address_p,
26230         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
26231         index_term_p, reg_plus_index_p, legitimate_address_p,
26232         vax_mode_dependent_address_p): Update comments to match functions
26233         modified by the recent int->bool conversion.
26234
26235 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26236
26237         * config/vax/builtins.md: Update copyright message.
26238         * config/vax/constraints.md: Likewise.
26239         * config/vax/netbsd-elf.h: Likewise.
26240         * config/vax/predicates.md: Likewise.
26241         * config/vax/vax-protos.h: Likewise.
26242         * config/vax/vax.c: Likewise.
26243         * config/vax/vax.h: Likewise.
26244         * config/vax/vax.md: Likewise.
26245         * config/vax/vax.opt: Likewise.
26246
26247 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26248
26249         * config/vax/builtins.md (ffssi2, ffssi2_internal,
26250         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
26251         * config/vax/constraints.md (B, R): Likewise.
26252         * config/vax/predicates.md (external_memory_operand,
26253         nonimmediate_addsub_di_operand): Likewise.
26254         * config/vax/vax.c (vax_output_int_add): Likewise.
26255         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
26256         untyped_call): Likewise.
26257
26258 2009-04-01  Matt Thomas  <matt@3am-software.com>
26259
26260         * config/vax/predicates.md: New file.
26261         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
26262         external_const_operand, nonsymbolic_operand, external_memory_operand,
26263         indirect_memory_operand, indexed_memory_operand,
26264         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
26265         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
26266         predicate.
26267         * config/vax/constraints.md: New file.
26268         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
26269         New constraint.
26270         * config/vax/builtins.md: New file.
26271         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
26272         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
26273         jbbccisi): Define.
26274         * config/vax/vax.opt (mqmath): Add option.
26275         * config/vax/vax.md (isfx): Extend with DI.
26276         (VAXintQH, VAXintQHSD): Define.
26277         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
26278         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
26279         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
26280         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
26281         (movdi): Update constraints and use vax_output_int_move().
26282         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
26283         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
26284         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
26285         nonlocal_goto): New.
26286         (mov<mode>): Extend accepted operand types.
26287         (subdi3_old): Rename from subdi3, change update constraints and use
26288         a new implementation.
26289         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
26290         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
26291         MOVE_RATIO, CLEAR_RATIO): Define.
26292         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
26293         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
26294         (PRINT_OPERAND): Redefine using a function instead of inlined code.
26295         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
26296         (split_quadword_operands): Make static and really allow variable
26297         splitting.
26298         (print_operand_address): Update for PIC generation.
26299         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
26300         indexable_address_p, fixup_mathdi_operand,
26301         vax_expand_addsub_di_operands, adjacent_operands_p): New.
26302         (vax_float_literal, legitimate_constant_p,
26303         indirectable_constant_address_p, index_term_p,
26304         reg_plus_index_p): Return bool instead of int.
26305         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
26306         where needed.
26307         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
26308         generation.
26309         (vax_output_conditional_branch): Indent.
26310         (legitimate_constant_address_p, indirectable_constant_address_p,
26311         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
26312         vax_mode_dependent_address_p): Return bool instead of int, update for
26313         PIC generation.
26314         * config/vax/vax-protos.h (legitimate_constant_address_p,
26315         legitimate_constant_p, legitimate_address_p,
26316         vax_mode_dependent_address_p): Change declaration to bool.
26317         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
26318         vax_expand_addsub_di_operands, vax_output_int_subtract,
26319         vax_output_movmemsi): Declare.
26320         (split_quadword_operands, vax_float_literal): Delete declaration.
26321         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
26322         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
26323         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
26324         ASM_OUTPUT_DWARF_PCREL): Define.
26325         (ASM_SPEC): Change definition to allow PIC generation.
26326
26327 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
26328
26329         * doc/sourcebuild.texi: Update front-end requirements.
26330
26331 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26332
26333         PR target/39226
26334         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
26335         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
26336         (booldi3_internal3): Use boolean_or_operator instead of
26337         boolean_operator.
26338
26339 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
26340
26341         PR c/39605
26342         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
26343         declarator whose size is not an integer constant expression but
26344         folds to an integer constant, then treat it as a constant
26345         subsequently.
26346
26347 2009-04-01  Richard Guenther  <rguenther@suse.de>
26348
26349         * fold-const.c (fold_plusminus_mult_expr): Do not fold
26350         i * 4 + 2 to (i * 2 + 1) * 2.
26351
26352 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26353
26354         PR c/37772
26355         * c-parser.c (c_parser_asm_statement): Skip until close paren and
26356         return if c_parser_asm_string_literal returned NULL.
26357
26358 2009-04-01  Nick Clifton  <nickc@redhat.com>
26359
26360         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
26361         already defined.
26362         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
26363         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
26364         other typedefs to avoid conflicts with libgcc2.c.  Define labels
26365         to gain 16-bit bit-manipulation functions from libgcc2.c and then
26366         include it.
26367         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
26368         to gain 16-bit trapping arithmetic functions from libgcc2.c and
26369         then include it.
26370
26371 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
26372
26373         * varasm.c (default_function_rodata_section): Declare DOT as
26374         const char*.
26375
26376 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
26377             Andrey Galkin  <agalkin@hypercom.com>
26378
26379         PR/39492
26380         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
26381         Make object_name unique for each process.
26382
26383 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26384
26385         PR other/39591
26386         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
26387         addressable variables in the parallel that could go out of scope while
26388         running queued tasks.
26389
26390 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
26391
26392         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
26393         (CASE_VALUES_THRESHOLD): Redefine.
26394         * config/avr/avr.c (avr_override_options): Remove initialization of
26395         avr_case_values_threshold variable.
26396         (avr_case_values_threshold): Remove variable. Add new function.
26397         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
26398         * config/avr/avr.opt (mno-tablejump): Remove option.
26399         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
26400
26401 2009-04-01  DJ Delorie  <dj@redhat.com>
26402
26403         * varasm.c (default_function_rodata_section): Don't assume
26404         anything about where the first '.' in the section name is.
26405
26406 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
26407
26408         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
26409         rs6000_emit_stack_tie.
26410
26411 2009-03-31  Ian Lance Taylor  <iant@google.com>
26412
26413         * tree-eh.c (tree_remove_unreachable_handlers): Compare
26414         gimple_code with GIMPLE_RESX, not RESX.
26415
26416 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26417
26418         * c-common.c (c_get_ident): New.
26419         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
26420
26421 2009-04-01  Ben Elliston  <bje@au.ibm.com>
26422
26423         * config/rs6000/sysv4.opt (msdata): Improve option description.
26424
26425 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
26426
26427         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
26428         (divdf3_internal_lat): Remove.
26429         (divxf3_internal_lat): Remove.
26430         (divxf3_internal_thr): Remove.
26431         (divxf): Use divxf3_internal.
26432         * config/ia64/div.md (divsf3_internal_lat): New.
26433         (divdf3_internal_lat): New.
26434         (divxf3_internal): New.
26435
26436 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26437
26438         PR c/448
26439         * Makefile.in (USE_GCC_STDINT): Define.
26440         (stmp-int-hdrs): Install stdint.h if applicable.
26441         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26442         if known.
26443         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26444         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26445         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26446         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26447         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26448         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26449         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26450         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26451         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26452         (c_common_nodes_and_builtins): Initialize
26453         underlying_wchar_type_node.  Do not initialize
26454         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
26455         nodes for new types.
26456         (c_stddef_cpp_builtins): Define macros for new types.
26457         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26458         Remove.
26459         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26460         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26461         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26462         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26463         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26464         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26465         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26466         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26467         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26468         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26469         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26470         int16_type_node, int32_type_node, int64_type_node,
26471         uint8_type_node, uint16_type_node, c_uint32_type_node,
26472         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26473         int_least32_type_node, int_least64_type_node,
26474         uint_least8_type_node, uint_least16_type_node,
26475         uint_least32_type_node, uint_least64_type_node,
26476         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26477         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26478         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26479         uintptr_type_node): Define.
26480         * c-cppbuiltin.c (builtin_define_constants,
26481         builtin_define_type_minmax): New.
26482         (builtin_define_stdint_macros): Define more macros.
26483         (c_cpp_builtins): Define more limit macros.
26484         (type_suffix): New.
26485         (builtin_define_type_max): Define in terms of
26486         builtin_define_type_minmax.  Remove is_long parameter.  All
26487         callers changed.
26488         * config.gcc (use_gcc_stdint): Define.
26489         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26490         Add newlib-stdint.h for generic targets.
26491         * config/glibc-stdint.h, config/newlib-stdint.h,
26492         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26493         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26494         * config/score/score.h (UINTPTR_TYPE): Define.
26495         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26496         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26497         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26498         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26499         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26500         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26501         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26502         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26503         * config/spu/spu.h (STDINT_LONG32): Define.
26504         * configure.ac (use_gcc_stdint): Substitute.
26505         * configure: Regenerate.
26506         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26507         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26508         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26509         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26510         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26511         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26512         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26513         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26514         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26515         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26516         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26517         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26518         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26519         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26520         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26521         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26522         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26523         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26524         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26525         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26526         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26527         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26528         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26529         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26530         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26531         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26532         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26533         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26534         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26535
26536 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
26537
26538         * loop-iv.c (suitable_set_for_replacement): Renamed from
26539         simplify_using_assignment; changed to return bool and to accept new
26540         args DEST and SRC.  Return true iff we find a source/destination pair
26541         that can be used to make a replacement, and fill SRC and DEST if so.
26542         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
26543         changed.
26544         (simplify_using_initial_values): Deal with altered regs here and track
26545         more precisely the effect they have on the validity of our expression.
26546
26547         * loop-iv.c (simplify_using_condition): A condition of the form
26548         (EQ REG CONST) can be used to simply make a substitution.
26549         (simplify_using_initial_values): Keep track of conditions we have seen
26550         and keep using them to simplify new expressions, while applying the
26551         same substitutions to them as to the expression.
26552
26553         * simplify-rtx.c (simplify_relational_operation_1): Simplify
26554         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26555         GEU/LTU reversed.
26556
26557         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
26558         changed.  Use this when trying to improve the upper bound.
26559         Generate the comparison by using simplify_gen_relational.
26560
26561         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26562
26563         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26564         functions.
26565         (simplify_using_assignment, simplify_using_initial_values): Call
26566         replace_in_expr to make replacements.  Call replace_single_def_regs
26567         once on the initial version of the expression.
26568
26569 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26570
26571         PR target/27237
26572         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26573
26574 2009-03-31  Richard Guenther  <rguenther@suse.de>
26575
26576         PR middle-end/31029
26577         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26578         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
26579
26580 2009-03-31  Richard Guenther  <rguenther@suse.de>
26581
26582         * tree.h (div_if_zero_remainder): Declare.
26583         * fold-const.c (div_if_zero_remainder): Export.
26584         * tree-ssa-forwprop.c
26585         (forward_propagate_addr_into_variable_array_index): Handle
26586         constant array index addition outside of the variable index.
26587
26588 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26589
26590         PR target/39592
26591         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26592         define_splits, floatunssi<mode>2): Require x87 conversions from
26593         DImode to be permitted.
26594
26595 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26596
26597         PR preprocessor/15638
26598         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26599
26600 2009-03-31  Richard Guenther  <rguenther@suse.de>
26601
26602         PR middle-end/23401
26603         PR middle-end/27810
26604         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26605         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26606         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26607         a separate statement.
26608         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26609         (lookup_tmp_var): Likewise.
26610         (is_gimple_formal_tmp_or_call_rhs): Remove.
26611         (is_gimple_reg_or_call_rhs): Rename to ...
26612         (is_gimple_reg_rhs_or_call): ... this.
26613         (is_gimple_mem_or_call_rhs): Rename to ...
26614         (is_gimple_mem_rhs_or_call): ... this.
26615         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
26616         DECL_GIMPLE_REG_P only if is_formal is true.
26617         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
26618         for non-proper post-modify expression gimplification.
26619         (gimplify_self_mod_expr): For post-modify expressions gimplify
26620         the lvalue to a minimal lvalue.
26621         (rhs_predicate_for): Remove formal temp case.
26622         (gimplify_modify_expr_rhs): Likewise.
26623         (gimplify_addr_expr): Use is_gimple_reg.
26624         (gimplify_expr): Remove formal temp cases.
26625         (gimple_regimplify_operands): Likewise.
26626         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26627         and FILTER_EXPR like constants.
26628         * gimple.c (walk_gimple_op): Fix val_only initialization, use
26629         is_gimple_reg.
26630         (is_gimple_formal_tmp_rhs): Remove.
26631         (is_gimple_reg_rhs): Remove special casing.
26632         (is_gimple_mem_rhs): Fix.
26633         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26634         (is_gimple_formal_tmp_var): Remove.
26635         (is_gimple_formal_tmp_reg): Likewise.
26636         (is_gimple_min_lval): Allow invariant component ref parts.
26637         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26638         is_gimple_formal_tmp_reg): Remove declarations.
26639         * tree-cfg.c (verify_expr): Verify that variables with address
26640         taken do not have DECL_GIMPLE_REG_P set.
26641         * tree-mudflap.c (mf_build_check_statement_for): Use
26642         force_gimple_operand instead of gimplify_expr.
26643
26644 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
26645
26646         * modulo-sched.c (sms_schedule_by_order): Pass the actual
26647         schedulable rows to compute_split_row.
26648
26649 2009-03-31  Ben Elliston  <bje@au.ibm.com>
26650
26651         PR target/31635
26652         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26653         OPT_mvrsave.
26654
26655 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26656
26657         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26658         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26659         * configure: Regenerate.
26660         * config.in: Regenerate.
26661         * config/rs6000/rs6000.opt (mtls-markers): Add.
26662         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26663         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26664         (tls_ld_aix, tls_ld_sysv): Likewise.
26665         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26666         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26667
26668 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26669
26670         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26671
26672 2009-03-30  Jan Hubicka  <jh@suse.cz>
26673
26674         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26675         out of RESX.
26676         (tree_remove_unreachable_handlers): Cleanup EH predecestor
26677         detection and label handling.
26678
26679 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26680
26681         * ira-int.h (ira_allocno): Rename left_conflicts_num to
26682         left_conflicts_size.
26683         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26684         ALLOCNO_LEFT_CONFLICTS_SIZE.
26685
26686         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26687         remove_allocno_from_bucket_and_push,
26688         allocno_spill_priority_compare, push_allocnos_to_stack,
26689         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26690         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26691         (setup_allocno_left_conflicts_num): Ditto.  Rename to
26692         setup_allocno_left_conflicts_size.
26693         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26694         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26695         setup_allocno_left_conflicts_size instead of
26696         setup_allocno_left_conflicts_num.
26697
26698         * ira-build.c (ira_create_allocno): Use
26699         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26700         ALLOCNO_LEFT_CONFLICTS_NUM.
26701
26702 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26703
26704         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26705         instead of DF_LR_OUT.
26706
26707         * ira-lives.c (process_bb_node_lives): Ditto.
26708
26709         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26710         instead of DF_LR_{OUT,IN}.
26711
26712         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26713
26714         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26715
26716 2009-03-30  Jan Hubicka  <jh@suse.cz>
26717
26718         * except.c (label_to_region_map): Fix thinko.
26719
26720 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
26721
26722         PR middle-end/38237
26723         * tree.h (tree_find_value): New declaration.
26724         * tree.c (tree_find_value): New function.
26725         * varasm.c (assemble_external): Avoid duplicate entries on lists.
26726
26727 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
26728
26729         PR debug/39563
26730         * c-decl.c (struct c_binding): Add locus field.
26731         (bind): Add locus argument, set locus field from it.
26732         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26733         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26734         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26735         implicitly_declare, undeclared_variable, lookup_label,
26736         declare_label, c_make_fname_decl, c_builtin_function,
26737         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26738         bind callers.
26739
26740 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
26741
26742         PR target/38781
26743         * config/i386/i386.c (classify_argument): Check total size of
26744         structure.
26745
26746 2009-03-30  Martin Jambor  <mjambor@suse.cz>
26747
26748         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26749         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26750         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26751         respectively.
26752
26753         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26754         seen_variable_array_ref while also traversing a union.
26755
26756         * tree-inline.c (optimize_inline_calls): Do not call
26757         cgraph_node_remove_callees.
26758         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26759         (pass_remove_cgraph_callee_edges): New variable.
26760         * passes.c (init_optimization_passes): Add
26761         pass_remove_cgraph_callee_edges after early inlining and before all
26762         late intraprocedural passes.
26763
26764         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26765
26766 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26767
26768         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26769         Fix typos in names.
26770
26771 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26772
26773         * combine.c (simplify_comparison): Use have_insn_for.
26774         * dojump.c (do_jump): Likewise.
26775
26776 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26777
26778         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26779         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26780         sparc_compare_op0 like sparc_compare_emitted used to be handled.
26781         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26782         instead of sparc_compare_emitted.
26783         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26784         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26785         instead of sparc_compare_emitted.
26786
26787 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26788
26789         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26790         enter/exit cfglayout mode.
26791         (pass_partition_block): Require it.
26792         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26793         (combine_instructions): Track basic blocks instead of labels.
26794         (update_cfg_for_uncondjump): New.
26795         (try_combine): Use it.  Update jumps after rescanning.
26796         (pass_combine): Require PROP_cfglayout.
26797         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26798
26799 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26800
26801         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26802         Provide/destroy PROP_cfglayout respectively.
26803         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26804         * tree-pass.h (PROP_cfglayout): New.
26805
26806 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26807
26808         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26809         fold_convert_const_fixed_from_fixed,
26810         fold_convert_const_fixed_from_int,
26811         fold_convert_const_fixed_from_real, fold_negate_const): Do not
26812         set TREE_CONSTANT_OVERFLOW.
26813         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26814         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26815
26816 2009-03-30  Ira Rosen  <irar@il.ibm.com>
26817
26818         * tree-vect-loop-manip.c: New file.
26819         * tree-vectorizer.c: Update documentation and included files.
26820         (vect_loop_location): Make extern.
26821         (rename_use_op): Move to tree-vect-loop-manip.c
26822         (rename_variables_in_bb, rename_variables_in_loop,
26823         slpeel_update_phis_for_duplicate_loop,
26824         slpeel_update_phi_nodes_for_guard1,
26825         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26826         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26827         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26828         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26829         find_loop_location): Likewise.
26830         (new_stmt_vec_info): Move to tree-vect-stmts.c.
26831         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26832         get_vectype_for_scalar_type, vect_is_simple_use,
26833         supportable_widening_operation, supportable_narrowing_operation):
26834         Likewise.
26835         (bb_in_loop_p): Move to tree-vect-loop.c.
26836         (new_loop_vec_info, destroy_loop_vec_info,
26837         reduction_code_for_scalar_code, report_vect_op,
26838         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26839         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26840         (vect_supportable_dr_alignment): Likewise.
26841         * tree-vectorizer.h (tree-data-ref.h): Include.
26842         (vect_loop_location): Declare.
26843         Reorganize function declarations according to the new file structure.
26844         * tree-vect-loop.c: New file.
26845         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26846         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26847         * tree-vect-data-refs.c: New file.
26848         * tree-vect-patterns.c (timevar.h): Don't include.
26849         * tree-vect-stmts.c: New file.
26850         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26851         tree-vect-slp.c, tree-vect-loop.c.
26852         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26853         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26854         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26855         (tree-vect-analyze.o): Remove.
26856         (tree-vect-transform.o): Likewise.
26857         (tree-vect-data-refs.o): Add rule.
26858         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26859         tree-vect-slp.o): Likewise.
26860         (tree-vect-patterns.o): Remove redundant dependencies.
26861         (tree-vectorizer.o): Likewise.
26862         * tree-vect-slp.c: New file.
26863
26864 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26865
26866         * optc-gen.awk: Warn if an option flag has multiple different
26867         help strings.
26868
26869 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
26870
26871         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26872         -floop-block): Document dependences on PPL, CLooG and Graphite.
26873
26874 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26875
26876         PR rtl-optimization/323
26877         * c-common.c (c_fully_fold, convert_and_check,
26878         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26879         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26880         * c-common.def (EXCESS_PRECISION_EXPR): New.
26881         * c-cppbuiltin.c (builtin_define_float_constants): Define
26882         constants with enough digits for long double.
26883         * c-lex.c (interpret_float): Interpret constant with excess
26884         precision where appropriate.
26885         * c-opts.c (c_common_post_options): Set
26886         flag_excess_precision_cmdline.  Give an error for
26887         -fexcess-precision=standard for C++ for processors where the
26888         option is significant.
26889         * c-parser.c (c_parser_conditional_expression): Handle excess
26890         precision in condition.
26891         * c-typeck.c (convert_arguments): Handle arguments with excess
26892         precision.
26893         (build_unary_op): Move excess precision outside operation.
26894         (build_conditional_expr): Likewise.
26895         (build_compound_expr): Likewise.
26896         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26897         (build_modify_expr): Handle excess precision in RHS.
26898         (convert_for_assignment): Handle excess precision in converted
26899         value.
26900         (digest_init, output_init_element, process_init_element): Handle
26901         excess precision in initializer.
26902         (c_finish_return): Handle excess precision in return value.
26903         (build_binary_op): Handle excess precision in operands and add
26904         excess precision as needed for operation.
26905         * common.opt (-fexcess-precision=): New option.
26906         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26907         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26908         For standard excess precision, output explicit conversion to and
26909         truncation from XFmode.
26910         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26911         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26912         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26913         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26914         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26915         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26916         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26917         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26918         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26919         define_splits, sqrt<mode>2): Disable where appropriate for
26920         standard excess precision.
26921         * convert.c (convert_to_real): Do not shorten arithmetic to type
26922         for which excess precision would be used.
26923         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26924         * doc/invoke.texi (-fexcess-precision=): Document option.
26925         (-mfpmath=): Correct index entry.
26926         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26927         flag_excess_precision): New.
26928         * langhooks.c (lhd_post_options): Set
26929         flag_excess_precision_cmdline.
26930         * opts.c (common_handle_option): Handle -fexcess-precision=.
26931         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26932         init_excess_precision): New.
26933         (lang_dependent_init_target): Call init_excess_precision.
26934         * tree.c (excess_precision_type): New.
26935         * tree.h (excess_precision_type): Declare.
26936
26937 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26938
26939         PR c/35235
26940         * c-typeck.c (build_component_ref): Do not copy qualifiers from
26941         non-lvalue to component.
26942
26943 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26944
26945         PR preprocessor/34695
26946         * Makefile.in (c-opts.o): Depend on c-tree.h.
26947         * c-common.c: Move down include of diagnostic.h.
26948         (done_lexing, c_cpp_error): New.
26949         * c-common.h (done_lexing): Declare.
26950         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26951         (parse_in).
26952         * c-opts.c: Include c-tree.h.
26953         (c_common_init_options): Set preprocessor error callback.
26954         (c_common_handle_option): Do not set preprocessor
26955         inhibit_warnings, warnings_are_errors, warn_system_headers,
26956         pedantic_errors or inhibit_warnings flags.
26957         (c_common_post_options): Do not check cpp_errors (parse_in).
26958         (c_common_finish): Do not output dependencies if there were
26959         errors.  Do not check return value of cpp_finish.
26960         * c-ppoutput.c (pp_file_change): Set input_location.
26961         * c-tree.h (c_cpp_error): Declare.
26962         * diagnostic.c (diagnostic_set_info_translated): Also initialize
26963         override_column.
26964         (diagnostic_build_prefix): Check override_column.
26965         * diagnostic.h (diagnostic_info): Add override_column field.
26966         (diagnostic_override_column): Define.
26967
26968 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
26969
26970         * c-common.c (c_expand_expr, c_staticp): Remove.
26971         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26972         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26973         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26974         * c-gimplify.c (gimplify_compound_literal_expr,
26975         optimize_compound_literals_in_ctor): Remove.
26976         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26977         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26978         * c-semantics.c (emit_local_var): Remove.
26979
26980         * langhooks-def.h (lhd_expand_expr): Remove.
26981         * langhooks.c (lhd_expand_expr): Remove.
26982         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26983
26984         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26985         handling from c-semantics.c; don't call into langhook.
26986         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26987         * gimplify.c (gimplify_compound_literal_expr,
26988         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26989         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26990         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26991         as was done in c-gimplify.c.
26992         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26993         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26994         Move from c-common.h.
26995         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
26996
26997         * tree.c (staticp): Do not call langhook.
26998         * langhooks.c (lhd_staticp): Delete.
26999         * langhooks-def.h (lhd_staticp): Delete prototype.
27000         (LANG_HOOKS_STATICP): Delete.
27001         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
27002
27003         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
27004         instead of DECL_STMTs.
27005
27006 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
27007
27008         PR c/456
27009         PR c/5675
27010         PR c/19976
27011         PR c/29116
27012         PR c/31871
27013         PR c/35198
27014         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
27015         void_type_node.
27016         (fold_call_expr): Return a NOP_EXPR from folding rather than the
27017         contained expression.
27018         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
27019         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
27020         conditional expressions for C.
27021         (decl_constant_value_for_optimization): Move from
27022         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
27023         whether optimizing and that the expression is a VAR_DECL not of
27024         array type instead of doing such checks in the caller.  Do not
27025         check pedantic.  Call gcc_unreachable for C++.
27026         * c-common.def (C_MAYBE_CONST_EXPR): New.
27027         * c-common.h (c_fully_fold, c_save_expr,
27028         decl_constant_value_for_optimization): New prototypes.
27029         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27030         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27031         EXPR_INT_CONST_OPERANDS): Define.
27032         * c-convert.c (convert): Strip nops from expression.
27033         * c-decl.c (groktypename): Take extra parameters expr and
27034         expr_const_operands.  Update call to grokdeclarator.
27035         (start_decl): Update call to grokdeclarator.  Add statement for
27036         expressions used in type of decl.
27037         (grokparm): Update call to grokdeclarator.
27038         (push_parm_decl): Update call to grokdeclarator.
27039         (build_compound_literal): Add parameter non_const and build a
27040         C_MAYBE_COSNT_EXPR if applicable.
27041         (grokdeclarator): Take extra parameters expr and
27042         expr_const_operands.  Track expressions used in declaration
27043         specifiers and declarators.  Fold array sizes and track whether
27044         they are constant expressions and whether they are integer
27045         constant expressions.
27046         (parser_xref_tag): Set expr and expr_const_operands fields in
27047         return value.
27048         (grokfield): Update call to grokdeclarator.
27049         (start_function): Update call to grokdeclarator.
27050         (build_null_declspecs): Set expr and expr_const_operands fields in
27051         return value.
27052         (declspecs_add_type): Handle expressions in typeof specifiers.
27053         * c-parser.c (c_parser_declspecs): Set expr and
27054         expr_const_operands fields for declaration specifiers.
27055         (c_parser_enum_specifier): Likewise.
27056         (c_parser_struct_or_union_specifier): Likewise.
27057         (c_parser_typeof_specifier): Likewise.  Update call to
27058         groktypename.  Fold expression as needed.  Return expressions with
27059         type instead of adding statements.
27060         (c_parser_attributes): Update calls to c_parser_expr_list.
27061         (c_parser_statement_after_labels): Fold expression before passing
27062         to objc_build_throw_stmt.
27063         (c_parser_condition): Fold expression.
27064         (c_parser_asm_operands): Fold expression.
27065         (c_parser_conditional_expression): Use c_save_expr.  Update call
27066         to build_conditional_expr.
27067         (c_parser_alignof_expression): Update call to groktypename.
27068         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
27069         original_code.  Fold expression argument of va_arg.  Create
27070         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
27071         argument to va_arg.  Update calls to groktypename.  Fold array
27072         index for offsetof.  Verify that first argument to
27073         __builtin_choose_expr has integer type.
27074         (c_parser_postfix_expression_after_paren_type): Update calls to
27075         groktypename and build_compound_literal.  Handle expressions with
27076         side effects in type name.
27077         (c_parser_postfix_expression_after_primary): Update call to
27078         c_parser_expr_list.  Set original_code for calls to
27079         __builtin_constant_p.
27080         (c_parser_expr_list): Take extra parameter fold_p.  Fold
27081         expressions if requested.
27082         (c_parser_objc_type_name): Update call to groktypename.
27083         (c_parser_objc_synchronized_statement): Fold expression.
27084         (c_parser_objc_receiver): Fold expression.
27085         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
27086         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
27087         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
27088         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
27089         (struct c_typespec): Add elements expr and expr_const_operands.
27090         (struct c_declspecs): Add elements expr and expr_const_operands.
27091         (groktypename, build_conditional_expr, build_compound_literal):
27092         Update prototypes.
27093         (in_late_binary_op): Declare.
27094         * c-typeck.c (note_integer_operands): New function.
27095         (in_late_binary_op): New variable.
27096         (decl_constant_value_for_broken_optimization): Move to c-common.c
27097         and rename to decl_constant_value_for_optimization.
27098         (default_function_array_conversion): Do not strip nops.
27099         (default_conversion): Do not call
27100         decl_constant_value_for_broken_optimization.
27101         (build_array_ref): Do not fold result.
27102         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
27103         result when operand is a VLA.
27104         (c_expr_sizeof_type): Update call to groktypename.  Handle
27105         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
27106         result when operand names a VLA type.
27107         (build_function_call): Update call to build_compound_literal.
27108         Only fold result for calls to __builtin_* functions.  Strip
27109         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
27110         the function designator.
27111         (convert_arguments): Fold arguments.  Update call to
27112         convert_for_assignment.
27113         (build_unary_op): Handle increment and decrement of
27114         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
27115         decrement earlier.  Fold operand of increment and decrement.
27116         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
27117         built for integer operand.  Wrap returns that are INTEGER_CSTs
27118         without being integer constant expressions or that have integer
27119         constant operands without being INTEGER_CSTs.
27120         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
27121         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
27122         result is an integer constant expression or can be used in
27123         unevaluated parts of one and avoid folding and wrap as
27124         appropriate.  Fold operands before possibly doing -Wsign-compare
27125         warnings.
27126         (build_compound_expr): Wrap result for C99 if operands can be used
27127         in integer constant expressions.
27128         (build_c_cast): Update call to digest_init.  Do not ignore
27129         overflow from casting floating-point constants to integers.  Wrap
27130         results that could be confused with integer constant expressions,
27131         null pointer constants or floating-point constants.
27132         (c_cast_expr): Update call to groktypename.  Handle expressions
27133         included in type name.
27134         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
27135         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
27136         Update calls to convert_for_assignment.
27137         (convert_for_assignment): Take new parameter
27138         null_pointer_constant.  Do not strip nops or call
27139         decl_constant_value_for_broken_optimization.  Set
27140         in_late_binary_op for conversions to boolean.
27141         (store_init_value): Update call to digest_init.
27142         (digest_init): Take new parameter null_pointer_constant.  Do not
27143         call decl_constant_value_for_broken_optimization.  pedwarn for
27144         initializers not constant expressions.  Update calls to
27145         convert_for_assignment.
27146         (constructor_nonconst): New.
27147         (struct constructor_stack): Add nonconst element.
27148         (really_start_incremental_init, push_init_level, pop_init_level):
27149         Handle constructor_nonconst and nonconst element.
27150         (set_init_index): Call constant_expression_warning for array
27151         designators.
27152         (output_init_element): Fold value.  Set constructor_nonconst as
27153         applicable.  pedwarn for initializers not constant expressions.
27154         Update call to digest_init.  Call constant_expression_warning
27155         where constant initializers are required.
27156         (process_init_element): Use c_save_expr.
27157         (c_finish_goto_ptr): Fold expression.
27158         (c_finish_return): Fold return value.  Update call to
27159         convert_for_assignment.
27160         (c_start_case): Fold switch expression.
27161         (c_process_expr_stmt): Fold expression.
27162         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
27163         ensure statement expression is not evaluated in constant expression.
27164         (build_binary_op): Track whether results are integer constant
27165         expressions or may occur in such, disable folding and wrap results
27166         as applicable.  Fold operands for -Wsign-compare warnings unless
27167         in_late_binary_op.
27168         (c_objc_common_truthvalue_conversion): Handle results folded to
27169         integer constants that are not integer constant expressions.
27170         * doc/extend.texi: Document when typeof operands are evaluated,
27171         that condition of __builtin_choose_expr is an integer constant
27172         expression, and more about use of __builtin_constant_p in
27173         initializers.
27174
27175 2009-03-29  Richard Guenther  <rguenther@suse.de>
27176
27177         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
27178         propagate addresses of array references.
27179
27180 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
27181
27182         * regmove.c (perhaps_ends_bb_p): Remove.
27183         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
27184         from INSN and check that the main loop stays within that basic block.
27185         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
27186         (regmove_forward_pass): Split out from regmove_optimize.  Use
27187         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
27188         (regmove_backward_pass): Split out from regmove_optimize.  Use
27189         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
27190         (regmove_optimize): Simplify.
27191
27192 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
27193
27194         PR target/39545
27195         * config/i386/i386.c (classify_argument): Ignore flexible array
27196         member in struct and warn ABI change.
27197
27198 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
27199
27200         * config/i386/i386-protos.h (ix86_agi_dependent): New.
27201
27202         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
27203         (ix86_adjust_cost): Updated.
27204
27205 2009-03-29  Jan Hubicka  <jh@suse.cz>
27206
27207         PR middle-end/28850
27208         * tree-pass.h (pass_cleanup_eh): New function.
27209         (remove_unreachable_regions): Break code handling RTL
27210         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
27211         that can not be reached by runtime.
27212         (can_be_reached_by_runtime): New function.
27213         (label_to_region_map): New function.
27214         (num_eh_regions): New function.
27215         (rtl_remove_unreachable_regions): New function.
27216         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
27217         (remove_eh_region): New function.
27218         * except.h: Include sbitmap and vecprim.
27219         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
27220         num_eh_regions): Declare.
27221         * passes.c (init_optimization_passes): Schedule cleanup_eh.
27222         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
27223         * tree-eh.c (tree_remove_unreachable_handlers): New function.
27224         (tree_empty_eh_handler_p): New function.
27225         (cleanup_empty_eh): New function.
27226         (cleanup_eh): New function.
27227         (pass_cleanup_eh): New function.
27228
27229 2009-03-29  Jan Hubicka  <jh@suse.cz>
27230
27231         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
27232         for removed regions.
27233
27234 2009-03-29  Jan Hubicka  <jh@suse.cz>
27235
27236         * except.c (dump_eh_tree): Dump all datastructures.
27237
27238 2009-03-29  Jan Hubicka  <jh@suse.cz>
27239
27240         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
27241         (duplicate_eh_regions_1): Likewise.
27242         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
27243         vector; call EH verification.
27244         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27245         Be ready for region being removed.
27246
27247 2009-03-29  Jan Hubicka  <jh@suse.cz>
27248
27249         * bitmap.c (bitmap_last_set_bit): New function.
27250         * bitmap.h (bitmap_last_set_bit): Declare.
27251
27252 2009-03-29  David Ayers  <ayers@fsfe.org>
27253
27254         PR objc/27377
27255         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
27256         by calling objc_compare_types and surpress warnings about
27257         incompatible C pointers that are compatible ObjC pointers.
27258
27259 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
27260
27261         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
27262         call initialize_inline_failed.
27263         (initialize_inline_failed): Move it from here ...
27264         * cgraph.c (initialize_inline_failed): ... to here.
27265         (cgraph_create_edge): Call initialize_inline_failed rather than
27266         setting inline_failed directly.
27267
27268 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27269
27270         PR target/32542
27271         * sysv4.opt (msdata): Improve comment.
27272         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
27273         * sysv4.h (SVR4_ASM_SPEC): Likewise.
27274
27275 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27276
27277         PR target/30451
27278         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
27279         load and store attributes.
27280
27281 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27282
27283         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
27284         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
27285         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
27286         * doc/extend.texi (X86 Built-in Functions): Add index entries for
27287         __builtin_infq and __builtin_huge_valq.
27288
27289 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
27290
27291         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
27292         atmega8m1 devices.
27293         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27294         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
27295
27296 2009-03-28  Xinliang David Li  <davidxl@google.com>
27297
27298         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
27299         (do_dbg_cnt): New function.
27300
27301 2009-03-28  Jan Hubicka  <jh@suse.cz>
27302
27303         Merge from pretty-ipa:
27304
27305         2009-03-27  Jan Hubicka  <jh@suse.cz>
27306
27307         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27308         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
27309         * passes.c (function_called_by_processed_nodes_p): New.
27310         * ipa-pure-const.c (check_call): Fix handling of operands.
27311         (analyze_function): Dump debug output for skipped bodies.
27312         (local_pure_const): Use function_called_by_processed_nodes_p.
27313         * dwarf2out.c (reference_to_unused): Use output.
27314         * passes.c (do_per_function_toporder): Likewise.
27315
27316         2008-11-12  Jan Hubicka  <jh@suse.cz>
27317
27318         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
27319         * ipa-pure-const.c (funct_state_d): Add can throw field; make
27320         state_set_in_source enum
27321         (check_decl): Ignore memory tags; do not set fake looping flags;
27322         dump diagnostics.
27323         (check_operand, check_tree, check_rhs_var, check_lhs_var,
27324         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
27325         (check_call, analyze_function): Rewrite.
27326         (check_stmt): New.
27327         (add_new_function): Update call of analyze_function.
27328         (generate_summary): Add call of analyze_function.
27329         (propagate): Propagate can_throw; handle state_set_in_source correctly.
27330         (local_pure_const): New function.
27331         (pass_local_pure_const): New pass.
27332         * ipa-inline.c (inline_transform): Set after_inlining.
27333         * tree-eh.c (stmt_can_throw_external): New.
27334         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
27335         work with aliasing built.
27336         * tree-flow.h (stmt_can_throw_external): New.
27337         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
27338         and local pure/const pass in early and late optimization queue.
27339
27340 2009-03-28  Martin Jambor  <mjambor@suse.cz>
27341
27342         * fold-const.c (get_pointer_modulus_and_residue): New parameter
27343         allow_func_align.
27344         (fold_binary): Allow function decl aligment consideration is the
27345         second argument is integer constant one.
27346         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
27347         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
27348         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
27349
27350 2009-03-28  Jan Hubicka  <jh@suse.cz>
27351
27352         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
27353         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
27354         * function.h (rtl_data): Add nothrow flag.
27355         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
27356         set DECL_NOTHROW for AVAILABLE functions.
27357
27358 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
27359
27360         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
27361         following vector keyword has expansion starting with pixel or bool
27362         keyword, expand vector to __vector and pixel or bool to __pixel or
27363         __bool.
27364
27365         PR c++/39554
27366         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
27367         warn_if_disallowed_function_p): Removed.
27368         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
27369         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
27370         warning_if_disallowed_function_p.
27371         * flags.h (warn_if_disallowed_function_p,
27372         warn_disallowed_functions): Removed.
27373         * common.opt (Wdisallowed-function-list=): Removed.
27374         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
27375
27376 2009-03-28  Richard Guenther  <rguenther@suse.de>
27377
27378         PR tree-optimization/38723
27379         * tree-ssa-pre.c (compute_avail): Add all default definitions to
27380         the entry block.
27381
27382 2009-03-28  Jan Hubicka  <jh@suse.cz>
27383
27384         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
27385         test introduced by my previous patch.
27386
27387 2009-03-28  Richard Guenther  <rguenther@suse.de>
27388
27389         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
27390         the PHIs value undefined.
27391
27392 2009-03-28  Jan Hubicka  <jh@suse.cz>
27393
27394         * tree-pass.h (pass_fixup_cfg): New pass.
27395         * ipa-inline.c (inline_transform): Set
27396         always_inline_functions_inlined/after_inlining.
27397         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
27398         (pass_fixup_cfg): New pass.
27399         * passes.c (init_optimization_passes): Add fixup_cfg.
27400
27401 2009-03-28  Richard Guenther  <rguenther@suse.de>
27402
27403         PR tree-optimization/38458
27404         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
27405         argument use the arguments copy-of value.
27406
27407 2009-03-28  Richard Guenther  <rguenther@suse.de>
27408
27409         PR tree-optimization/38180
27410         * tree-ssa-ccp.c (get_default_value): Simplify.
27411         (likely_value): Likewise.
27412         (surely_varying_stmt_p): Properly handle VOP case.
27413         (ccp_initialize): Likewise.
27414         (ccp_fold): Handle propagating through *&.
27415         (fold_const_aggregate_ref): Also handle decls.
27416
27417 2009-03-28  Jan Hubicka  <jh@suse.cz>
27418
27419         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27420         * cgraph.h (cgraph_node): Likewise.
27421         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
27422         (cgraph_reset_node): Use process flag.
27423         (cgraph_mark_functions_to_output): Likewise.
27424         (cgraph_expand_function): Likewise.
27425         (cgraph_expand_all_functions): Likewise.
27426         (cgraph_output_in_order): Likewise.
27427         * dwarf2out.c (reference_to_unused): Likewise.
27428         * passes.c do_per_function_toporder): Likewise.
27429
27430 2009-03-28  Jan Hubicka  <jh@suse.cz>
27431
27432         Bring from lto-branch:
27433
27434         2008-09-03  Doug Kwan  <dougkwan@google.com>
27435
27436         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27437         enums instead of reason strings.
27438         * cgraph.c (cgraph_create_edge): Same.
27439         (cgraph_inline_failed_string): New function.
27440         * cgraph.h (cgraph_inline_failed_t): New enum type.
27441         (cgraph_inline_failed_string): New prototype.
27442         (struct cgraph_edge): Change type of INLINED_FAILED from constant
27443         char pointer to cgraph_inline_failed_t.
27444         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27445         (cgraph_default_inline_p): Ditto.
27446         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27447         to cgraph_inline_failed_t pointer.
27448         * cif-code.def: New file.
27449         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27450         reason string.
27451         (cgraph_check_inline_limits): Change type of REASON to pointer to
27452         cgraph_inline_failed_t.  Replace reason strings with enums.
27453         (cgraph_default_inline_p): Ditto.
27454         (cgraph_recursive_inlining_p): Ditto.
27455         (update_caller_keys): Change type of FAILED_REASON to
27456         cgraph_inline_failed_t.
27457         (cgraph_set_inline_failed): Change type of REASON to pointer to
27458         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
27459         convert enums to strings for text output.
27460         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27461         to be of type cgraph_inline_failed_t.  Replace reason strings with
27462         enums.  Call cgraph_inline_failed_string to covert enums
27463         to strings for text output.
27464         (cgraph_decide_inlining): Replace reason strings with enums.
27465         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27466         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
27467         for text output.
27468         * tree-inline.c (expand_call_inline): Change type of REASON
27469         to cgraph_inline_failed_t.  Replace reason strings with enums.
27470         Call cgraph_inline_failed_string for text output.
27471         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27472         (cgraph.o): Ditto.
27473
27474 2009-03-28  Jan Hubicka  <jh@suse.cz>
27475
27476         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27477         cgraph_clone_node): Remove master clone handling.
27478         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27479         * cgraph.h (master_clone): Remove.
27480         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27481         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27482         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27483
27484 2009-03-28  Jan Hubicka  <jh@suse.cz>
27485
27486         * cgraph.c (cgraph_function_body_availability): Functions declared
27487         inline are always safe to assume that it is not going to be replaced.
27488
27489 2009-03-28  Richard Guenther  <rguenther@suse.de>
27490
27491         PR tree-optimization/38513
27492         * tree-ssa-pre.c (eliminate): Remove redundant stores.
27493         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27494         EXC_PTR_EXPR and FILTER_EXPR.
27495         (get_ref_from_reference_ops): Likewise.
27496
27497 2009-03-28  Richard Guenther  <rguenther@suse.de>
27498
27499         PR tree-optimization/38968
27500         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27501         Use FLOOR_MOD_EXPR to compute misalignment.
27502
27503 2009-03-28  Richard Guenther  <rguenther@suse.de>
27504
27505         PR tree-optimization/37795
27506         * tree.h (combine_comparisons): Declare.
27507         * fold-const.c (combine_comparisons): Export.
27508         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27509         comparisons.
27510         (ifcombine_iforif): Use combine_comparisons.
27511
27512 2009-03-28  Jan Hubicka  <jh@suse.cz>
27513
27514         * tree-eh.c (inlinable_call_p): New function.
27515         (make_eh_edges): Use it.
27516         (verify_eh_edges): Use it.
27517         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27518         * except.c (reachable_next_level): Add inlinable_function argument
27519         (sjlj_find_directly_reachable_regions): Update.
27520         (add_reachable_handler): Do not set saw_any_handlers.
27521         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27522         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27523         Add new inlinable call parameter.
27524         (can_throw_internal, can_throw_external): Update.
27525         * except.h (can_throw_internal_1, can_throw_external_1,
27526         foreach_reachable_handler): Update declaration.
27527
27528 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
27529
27530         * config/arm/t-arm-coff, config/h8300/coff.h,
27531         config/i386/i386-aout.h, config/i386/i386-coff.h,
27532         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27533         config/pdp11/2bsd.h, config/rs6000/aix41.h,
27534         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27535         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27536         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27537         sys-types.h: Remove.
27538         * Makefile.in: Remove protoize and fixproto support and references
27539         in comments.
27540         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27541         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27542         Remove.
27543         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27544         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27545         unprotoize$(exeext).
27546         (rest.encap): Don't depend on $(STMP_FIXPROTO)
27547         (.PHONY): Don't depend on proto.
27548         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27549         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27550         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27551         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27552         build/gen-protos.o, build/scan.o, xsys-protos.h,
27553         build/fix-header$(build_exeext), build/fix-header.o,
27554         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27555         stmp-install-fixproto): Remove.
27556         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27557         SYSCALLS.c or fixproto files.
27558         (install-common): Don't install protoize.
27559         (install-headers-tar, install-headers-cpio, install-headers-cp):
27560         Don't depend on $(STMP_FIXPROTO).
27561         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
27562         install fixproto files or write out fixproto settings.
27563         (uninstall): Don't uninstall protoize.
27564         * config.gcc (use_fixproto): Remove.
27565         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27566         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27567         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27568         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27569         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27570         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27571         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27572         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27573         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27574         * config/t-vxworks (STMP_FIXPROTO): Remove.
27575         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27576         STMP_FIXPROTO): Remove.
27577         * config.in, configure: Regenerate.
27578         * crtstuff.c (gid_t, uid_t): Don't undefine.
27579         * doc/install.texi: Change m68k-coff to m68k-elf in example.
27580         (arm-*-coff, arm-*-aout: Remove target entries.
27581         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27582         Remove mention of AIX 4.1.
27583         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27584         * doc/invoke.texi (Running Protoize): Remove.
27585         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27586         (Protoize Caveats): Remove.
27587         * tsystem.h: Update comments on headers assumed to exist.
27588
27589 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27590
27591         * genautomata.c: Add a new year to the copyright.  Add a new
27592         reference.
27593         (struct insn_reserv_decl): Add comments for member bypass_list.
27594         (find_bypass): Remove.
27595         (insert_bypass): New.
27596         (process_decls): Use insert_bypass.
27597         (output_internal_insn_latency_func): Output all bypasses with the
27598         same input insn in one switch case.
27599
27600         * rtl.def (define_bypass): Describe bypass choice.
27601         * doc/md.texi (define_bypass): Ditto.
27602
27603 2009-03-27  Richard Guenther  <rguenther@suse.de>
27604
27605         * gimplify.c (mark_addressable): Export.
27606         * tree-flow.h (mark_addressable): Declare.
27607         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27608         * tree-ssa.c (verify_phi_args): Verify that address taken
27609         variables have TREE_ADDRESSABLE set.
27610
27611 2009-03-27  Richard Guenther  <rguenther@suse.de>
27612
27613         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27614         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
27615         Do not mark decls TREE_ADDRESSABLE.
27616         (build_fold_addr_expr): Adjust.
27617         (fold_addr_expr): Remove.
27618         (fold_unary): Use build_fold_addr_expr.
27619         (fold_comparison): Likewise.
27620         (split_address_to_core_and_offset): Likewise.
27621         * coverage.c (tree_coverage_counter_addr): Mark the array decl
27622         TREE_ADDRESSABLE.
27623         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27624         (gimplify_modify_expr_to_memcpy): Mark source and destination
27625         addressable.
27626         * omp-low.c (create_omp_child_function): Mark the object decl
27627         TREE_ADDRESSABLE.
27628         (lower_rec_input_clauses): Mark the var we take the address of
27629         TREE_ADDRESSABLE.
27630         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27631
27632 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27633
27634         PR middle-end/39315
27635         * cfgexpand.c (expand_one_stack_var_at): Change alignment
27636         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27637
27638 2009-03-27  Richard Guenther  <rguenther@suse.de>
27639
27640         PR tree-optimization/39120
27641         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27642         constraints.
27643         (handle_lhs_call): Process return constraints.  Add escape
27644         constraints if necessary.
27645         (handle_const_call): Fill out return constraints.  Make nested
27646         case more precise.  Avoid consttmp if possible.
27647         (handle_pure_call): Fill out return constraints.  Avoid
27648         callused if possible.
27649         (find_func_aliases): Simplify call handling.
27650
27651 2009-03-27  Richard Guenther  <rguenther@suse.de>
27652
27653         PR tree-optimization/39120
27654         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27655         as a representative.
27656         (solve_graph): Do propagate CALLUSED.
27657         (handle_pure_call): Use a scalar constraint from CALLUSED for
27658         the return value.
27659         (find_what_p_points_to): CALLUSED shall not appear in poins-to
27660         solutions.
27661
27662 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27663
27664         PR c/39323
27665         * c-common.c (handle_aligned_attribute): Properly check alignment
27666         overflow.  Use (1U << i) instead of (1 << i).
27667
27668         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27669
27670         * expr.h (get_mem_align_offset): Updated.
27671
27672         * tree.h (tree_decl_common): Change align to "unsigned int" and
27673         move it before pointer_alias_set.
27674
27675 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27676             Jakub Jelinek  <jakub@redhat.com>
27677
27678         PR target/38034
27679         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27680         gr_register_operand with gr_reg_or_0_operand.
27681         (cmpxchg_rel_di): Likewise.
27682         (sync_lock_test_and_set<mode>): Likewise.
27683
27684 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27685
27686         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27687         (true_regnum): Likewise.
27688
27689         * rtlanal.c (subreg_info): Moved to ...
27690         * rtl.h (subreg_info): Here.  New.
27691         (subreg_get_info): New.
27692
27693         * rtlanal.c (subreg_get_info): Make it extern.
27694
27695 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27696
27697         PR target/39472
27698         * config/i386/i386.c (ix86_abi): New.
27699         (override_options): Handle -mabi=.
27700         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27701         (ix86_call_abi_override): Likewise.
27702         (init_cumulative_args): Likewise.
27703         (function_arg_advance): Likewise.
27704         (function_arg_64): Likewise.
27705         (function_arg): Likewise.
27706         (ix86_pass_by_reference): Likewise.
27707         (ix86_function_value_regno_p): Likewise.
27708         (ix86_build_builtin_va_list_abi): Likewise.
27709         (setup_incoming_varargs_64): Likewise.
27710         (is_va_list_char_pointer): Likewise.
27711         (ix86_init_machine_status): Likewise.
27712         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27713         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
27714         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
27715         (ix86_function_abi): Make it static and return enum calling_abi.
27716         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
27717         with ix86_abi.
27718         (ix86_fn_abi_va_list): Updated.
27719
27720         * config/i386/i386.h (ix86_abi): New.
27721         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27722         (CONDITIONAL_REGISTER_USAGE): Likewise.
27723         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27724         (machine_function): Likewise.
27725
27726         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27727         with ix86_abi.
27728         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27729         (STACK_BOUNDARY): Likewise.
27730         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27731
27732         * config/i386/i386.opt (mabi=): New.
27733
27734         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27735         return enum calling_abi.
27736         (ix86_function_type_abi): Likewise.
27737         (ix86_function_abi): Removed.
27738
27739         * doc/invoke.texi: Document -mabi= option for x86.
27740
27741 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27742
27743         * builtins.c (real_dconstp): Delete.
27744         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27745
27746 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
27747             Jakub Jelinek  <jakub@redhat.com>
27748
27749         PR debug/37959
27750         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27751         (gen_subprogram_die): When a function is explicit, generate the
27752         DW_AT_explicit attribute.
27753         * langhooks.h (struct lang_hooks_for_decls): Add
27754         function_decl_explicit_p langhook.
27755         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27756         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27757
27758 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
27759
27760         * builtins.c (fold_builtin_memory_op): Optimize memmove
27761         into memcpy if we can prove source and destination don't overlap.
27762
27763         * tree-inline.c: Include gt-tree-inline.h.
27764         (clone_fn_id_num): New variable.
27765         (clone_function_name): New function.
27766         (tree_function_versioning): Use it.
27767         * Makefile.in (GTFILES): Add tree-inline.c.
27768
27769 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
27770
27771         * BASE-VER: Change to 4.5.0.
27772
27773 2009-03-27  Xinliang David Li  <davidxl@google.com>
27774
27775         PR tree-optimization/39557
27776         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27777
27778 2009-03-27  Xinliang David Li  <davidxl@google.com>
27779
27780         PR tree-optimization/39548
27781         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27782         candidate check.
27783
27784 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27785
27786         * c-common.c (pointer_int_sum): Use %wd on return from
27787         tree_low_cst.
27788
27789 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27790
27791         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27792         on return from tree_low_cst.
27793
27794 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27795
27796         PR c++/36799
27797         * ginclude/stdarg.h (va_copy): Define also for
27798         __GXX_EXPERIMENTAL_CXX0X__.
27799
27800 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27801
27802         PR c++/35652
27803         * builtins.h (c_strlen): Do not warn here.
27804         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27805         * c-common.c (pointer_int_sum): Take an explicit location.
27806         Warn about offsets out of bounds.
27807         * c-common.h (pointer_int_sum): Adjust declaration.
27808
27809 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27810
27811         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27812         markup glitch.
27813
27814 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
27815
27816         PR c++/39554
27817         * opts.c (warn_if_disallowed_function_p): Don't assume
27818         get_callee_fndecl must return non-NULL.
27819
27820 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
27821
27822         PR rtl-optimization/39522
27823         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27824         when reg_reloaded_valid is set.
27825
27826 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27827
27828         * config/spu/divv2df3.c: New file.
27829         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27830         (DPBIT_FUNCS): Filter out _div_df.
27831
27832 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
27833
27834         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27835         a jump insn, count that jump in the distance to the loop start.
27836
27837 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
27838
27839         PR target/39523
27840         * config/sh/sh.c (calc_live_regs): Fix condition for global
27841         registers except PIC_OFFSET_TABLE_REGNUM.
27842
27843 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
27844
27845         PR/39518
27846         * doc/invoke.texi (-mconsole): New.
27847         (-mcygwin): New.
27848         (-mno-cygwin): New.
27849         (-mdll): New.
27850         (-mnop-fun-dllimport): New.
27851         (-mthread): New.
27852         (-mwin32): New.
27853         (-mwindows): New.
27854         (sub section "i386 and x86-64 Windows Options"): New.
27855
27856 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
27857
27858         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27859         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27860
27861 2009-03-25  Richard Guenther  <rguenther@suse.de>
27862
27863         PR middle-end/39497
27864         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27865         of -Wno-error.
27866
27867 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
27868
27869         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27870         neither of haifa/selective schedulers are working.
27871
27872 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27873
27874         * doc/invoke.texi (Debugging Options): Fix description of
27875         -fno-merge-debug-strings.
27876
27877 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
27878
27879         * config/cris/libgcc.ver: New version-script.
27880         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27881
27882         * configure.ac <GAS features, nop mnemonic>: Add pattern
27883         crisv32-*-* for "nop".
27884         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27885         * configure: Regenerate.
27886
27887 2009-03-24  Ira Rosen  <irar@il.ibm.com>
27888
27889         PR tree-optimization/39529
27890         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27891         mark_sym_for_renaming for the tag copied to the new vector
27892         pointer.
27893
27894 2009-03-24  Arthur Loiret  <aloiret@debian.org>
27895
27896         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27897         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27898         EXTRA_SPEC_FUNCTIONS.
27899         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27900         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27901         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27902         -march and -mtune options.
27903
27904 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
27905
27906         * config/m68k/t-rtems: Add m5329 multilib.
27907
27908 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
27909             Jakub Jelinek  <jakub@redhat.com>
27910
27911         PR debug/39524
27912         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27913         nodes.
27914
27915 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27916
27917         PR c/39495
27918         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27919         instead of c_parser_expression_conv, if original_code isn't one of the
27920         4 allowed comparison codes, fail.
27921
27922 2009-03-23  Richard Guenther  <rguenther@suse.de>
27923
27924         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27925         * tree.h (struct tree_type): Likewise.
27926         * reload.h (struct insn_chain): Likewise.
27927         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27928         * function.h (struct function): Likewise.
27929         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27930
27931 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27932
27933         PR tree-optimization/39516
27934         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27935
27936 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
27937
27938         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
27939         should be set true if BITS_PER_WORD of target is bigger than 32
27940
27941 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
27942
27943         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27944         Translate -B-options to -rpath-link.  Correct existing
27945         rpath-link and conditionalize on !nostdlib.
27946
27947 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27948
27949         * doc/extend.texi (Function Attributes, Variable Attributes):
27950         Fix typos.
27951         * doc/invoke.texi (Debugging Options, Optimize Options)
27952         (i386 and x86-64 Options, MCore Options): Likewise.
27953
27954 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
27955
27956         PR debug/37890
27957         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27958         it for block local namespace aliases.
27959         (gen_decl_die): Pass context_die to gen_namespace_die.
27960
27961 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27962
27963         PR c/39495
27964         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27965         minimum or maximum value.
27966
27967 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
27968
27969         * reginfo.c (globalize_reg): Recompute derived reg sets.
27970
27971 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
27972
27973         PR target/39063
27974         * libgcc2.c (mprotect): Do not use signed arguments for
27975         VirtualProtect, use DWORD arguments.  Also fix the 'may
27976         be used uninitialized' warning for the np variable.
27977
27978 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27979
27980         PR target/39496
27981         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27982         functions using regparm calling conventions when not optimizing.
27983         (ix86_function_sseregparm): Similarly for sseregparm calling
27984         conventions.
27985
27986 2009-03-19  Li Feng  <nemokingdom@gmail.com>
27987
27988         PR middle-end/39500
27989         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27990         dependence if the first conflict is after niter iterations.
27991
27992 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
27993
27994         PR middle-end/38609
27995         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27996         functions with dynamic stack-pointer adjustments.
27997
27998 2009-03-19  Ben Elliston  <bje@au.ibm.com>
27999
28000         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
28001         option; change to -msdata=data.
28002
28003 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28004
28005         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
28006         and -fopenmp.
28007
28008 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
28009
28010         PR target/35180
28011         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
28012
28013 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
28014
28015         * doc/invoke.texi (Code Gen Options): Expand discussion of
28016         -fno-common.
28017
28018 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
28019
28020         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
28021         * matrix-reorg.c (struct matrix_info): Likewise.
28022         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
28023         * rtl.h (struct mem_attrs): Likewise.
28024         * df.h (struct df): Likewise.
28025         * tree-data-ref.h (struct data_dependence_relation): Likewise.
28026         * ira-int.h (struct ira_allocno): Likewise.
28027         * df-scan.c (struct df_collection_rec): Likewise.
28028         * ira.c (struct equivalence): Likewise.
28029         * function.c (struct temp_slot): Likewise.
28030         * cfgloop.h (struct loop): Likewise.
28031
28032         PR debug/39485
28033         * function.c (use_register_for_decl): When not optimizing, disregard
28034         register keyword for variables with types containing methods.
28035
28036 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
28037
28038         PR middle-end/39447
28039         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
28040         (is_simple_operand): Call contains_component_ref_p before calling data
28041         reference analysis that would fail on COMPONENT_REFs.
28042
28043         * tree-vrp.c (search_for_addr_array): Fix formatting.
28044
28045 2009-03-18  Richard Guenther  <rguenther@suse.de>
28046
28047         * tree-vect-transform.c (vect_loop_versioning): Fold the
28048         generated comparisons.
28049         * tree-vectorizer.c (set_prologue_iterations): Likewise.
28050         (slpeel_tree_peel_loop_to_edge): Likewise.
28051
28052 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28053
28054         PR middle-end/37805
28055         * opts.c (print_specific_help): In addition to `undocumented',
28056         accept `separate' and `joined' flags if passed alone.  Describe
28057         output by the first matched one of those.
28058         (common_handle_option): Skip over empty strings.
28059         * gcc.c (display_help): Fix help string for `--help='.
28060         * doc/invoke.texi (Option Summary, Overall Options): With
28061         `--help=', classes and qualifiers can both be repeated, but
28062         only the latter can be negated.  One should not pass only
28063         negated qualifiers.  Fix markup and examples.
28064
28065         Revert
28066         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
28067         PR middle-end/37805
28068         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
28069         and -fhelp=separate.
28070
28071 2009-03-17  Jing Yu  <jingyu@google.com>
28072
28073         PR middle-end/39378
28074         * function.h (struct rtl_data): Move is_thunk from here...
28075         (struct function): ...to here.
28076         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
28077         * varasm.c (assemble_start_function): Change is_thunk from crtl to
28078         cfun.
28079         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
28080         cfun.
28081         (alpha_does_function_need_gp, alpha_start_function): Likewise.
28082         (alpha_output_function_end_prologue): Likewise.
28083         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
28084         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
28085         (rs6000_output_function_epilogue): Likewise.
28086         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
28087
28088 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
28089
28090         PR target/39482
28091         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
28092         from different units in a single alternative.
28093         (*truncdfsf_i387): Ditto.
28094         (*truncxfsf2_mixed): Ditto.
28095         (*truncxfdf2_mixed): Ditto.
28096
28097 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
28098
28099         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
28100         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
28101
28102         PR debug/39474
28103         * tree-ssa-live.c (remove_unused_locals): Don't remove local
28104         unused non-artificial variables when not optimizing.
28105
28106         PR debug/39471
28107         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
28108         DW_TAG_imported_module even if decl is IMPORTED_DECL with
28109         NAMESPACE_DECL in its DECL_INITIAL.
28110
28111         PR middle-end/39443
28112         * optabs.c (set_user_assembler_libfunc): New function.
28113         * expr.h (set_user_assembler_libfunc): New prototype.
28114         * c-common.c: Include libfuncs.h.
28115         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
28116         for memcmp, memset, memcpy, memmove and abort.
28117         * Makefile.in (c-common.o): Depend on libfuncs.h.
28118
28119         PR debug/39412
28120         * dwarf2out.c (gen_inlined_enumeration_type_die,
28121         gen_inlined_structure_type_die, gen_inlined_union_type_die,
28122         gen_tagged_type_instantiation_die): Removed.
28123         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
28124         do nothing.
28125
28126 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
28127
28128         PR testsuite/38526
28129         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
28130         its use.
28131         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
28132         (check-parallel-%): Ditto.
28133         (check-consistency): Ditto.
28134
28135 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
28136
28137         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
28138         local variable rhs by NULL_TREE.
28139
28140 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28141
28142         PR target/39477
28143         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
28144
28145 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28146
28147         PR target/39476
28148         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
28149
28150 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28151
28152         PR target/39473
28153         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
28154         for ms->sysv ABI calls only in 64bit mode.
28155
28156         * config/i386/i386.md (untyped_call): Support 32bit.
28157
28158 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28159
28160         * doc/extend.texi: Replace x86_65 with x86_64.
28161
28162 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
28163
28164         PR tree-optimization/39455
28165         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
28166         mismatches for POINTER_TYPE_P (type).
28167         (number_of_iterations_le): Likewise.
28168
28169 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28170
28171         * config/picochip/picochip.c: Removed profiling support.
28172         * config/picochip/picochip.md: Removed profiling instruction.
28173         * config/picochip/picochip.h: Removed profiling builtin.
28174
28175 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
28176
28177         * doc/install.texi (--with-host-libstdcxx): Document.
28178
28179 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
28180
28181         PR target/34299
28182         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
28183         generate a warning if the function name does not begin with
28184         "__vector" and the function has either the 'signal' or 'interrupt'
28185         attribute, from here to ...
28186         (avr_declare_function_name): ...here. New function.
28187         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
28188         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
28189
28190 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
28191
28192         PR bootstrap/39454
28193         * cse.c (fold_rtx): Don't modify original const_arg1 when
28194         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
28195         separate variable instead.
28196         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
28197         from out of range shift counts.
28198         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
28199
28200 2009-03-13  Catherine Moore  <clm@codesourcery.com>
28201
28202         * config/i386/x-mingw32 (host-mingw32.o): Replace
28203         diagnostic.h with $(DIAGNOSTIC_H).
28204
28205 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
28206
28207         PR target/39431
28208         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
28209         predicate.
28210         * config/i386/sync.md (sync_compare_and_swap<mode>,
28211         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
28212         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
28213         into a register.
28214         (sync_double_compare_and_swapdi_pic,
28215         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
28216         cmpxchg8b_pic_memory_operand instead of just memory_operand.
28217
28218 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28219
28220         PR target/39445
28221         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
28222
28223 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28224
28225         PR target/39327
28226         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28227         (avx_addsubv4df3): Likewise.
28228         (*avx_addsubv4sf3): Likewise.
28229         (sse3_addsubv4sf3): Likewise.
28230
28231 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28232
28233         PR target/38824
28234         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
28235
28236 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
28237
28238         PR debug/39432
28239         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
28240         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
28241         registers for allocnos created from user-defined variables.
28242
28243 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28244
28245         PR target/39181
28246         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
28247         of non-integer mode as well.
28248
28249 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
28250
28251         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
28252         for functions for which the parameter types are unknown.
28253
28254 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
28255
28256         PR target/39137
28257         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
28258         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
28259         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
28260         * config/i386/i386.c (ix86_local_alignment): For
28261         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
28262         long long variables on the stack to avoid dynamic realignment.
28263         Allow the first argument to be a decl rather than type.
28264         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
28265
28266 2009-03-11  Nick Clifton  <nickc@redhat.com>
28267
28268         PR target/5362
28269         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
28270         options.
28271         Add description to mno-lsim option.
28272         * config/mcore/mcore.h: Remove comment about deprecated m4align
28273         option.
28274         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
28275         * doc/invoke.texi: Add description of mno-lsim and
28276         mstack-increment options.
28277
28278         * config/fr30/fr30.opt: Document the -mno-lsim option.
28279         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
28280         and -mno-lsim options.
28281
28282 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28283
28284         * fold-const.c (fold_comparison): Only call fold_inf_compare
28285         if the mode supports infinities.
28286
28287 2009-03-11  Jason Merrill  <jason@redhat.com>
28288
28289         PR debug/39086
28290         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
28291         end already did.  Notice GIMPLE_CALL modifications of the result.
28292         Don't copy debug information from an ignored decl or a decl from
28293         another function.
28294
28295 2009-03-10  Richard Guenther  <rguenther@suse.de>
28296             Nathan Froyd  <froydnj@codesourcery.com>
28297
28298         PR middle-end/37850
28299         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
28300         (__divMODE3): Likewise.
28301
28302 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
28303
28304         PR tree-optimization/39394
28305         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
28306         DECL_SIZE_UNIT of variable length FIELD_DECLs.
28307
28308 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28309
28310         * recog.c (verfiy_changes): Disallow renaming of hard regs in
28311         inline asms for register asm ("") declarations.
28312
28313 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
28314
28315         * fold-const.c (fold_unary): Fix comment.
28316
28317 2009-03-07  Jan Hubicka  <jh@suse.cz>
28318
28319         PR target/39361
28320         * tree-inline.c (setup_one_parameter): Do replacement of const
28321         argument by constant in SSA form.
28322
28323 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28324
28325         PR middle-end/38028
28326         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
28327         determine alignment passed to assign_stack_local.
28328         (assign_parms_unsplit_complex): Likewise.
28329         * except.c (sjlj_build_landing_pads): Likewise.
28330
28331 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
28332
28333         PR middle-end/39360
28334         * tree-flow.h (add_referenced_var): Return bool instead of void.
28335         * tree-dfa.c (add_referenced_var): Return result of
28336         referenced_var_check_and_insert call.
28337         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
28338         of referenced_var_check_and_insert.
28339
28340         PR debug/39372
28341         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
28342         (gen_variable_die): Emit DW_AT_location on abstract static variable's
28343         DIE, don't emit it if abstract origin already has it.
28344         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
28345         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
28346
28347 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28348
28349         * genpreds.c (needs_variable): Fix parentheses at variable name
28350         detection.
28351         (write_tm_constrs_h): Indent generated code.
28352
28353 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28354
28355         * doc/extend.texi (Function Attributes): Add documentation
28356         for isr attributes.
28357
28358 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
28359
28360         PR debug/39387
28361         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
28362         take locus from its DECL_SOURCE_LOCATION instead of input_location.
28363
28364 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
28365
28366         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
28367         the loop as bad.
28368
28369 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
28370
28371         PR debug/39379
28372         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
28373         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
28374
28375 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
28376
28377         * config/i386/i386.md (R8_REG, R9_REG): New constants.
28378         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
28379         constants instead of magic numbers.
28380         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
28381         (QI_REG_P): Ditto.
28382         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
28383         (x86_64_ms_abi_int_parameter_registers): Ditto.
28384         (x86_64_int_return_registers): Ditto.
28385         (ix86_maybe_switch_abi): Ditto.
28386         (ix86_expand_call): Ditto for clobbered_registers array.
28387         (ix86_hard_regno_mode_ok): Ditto.
28388         (x86_extended_QIreg_mentioned_p): Ditto.
28389
28390 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
28391
28392         PR tree-optimization/39349
28393         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
28394
28395         * combine.c (gen_lowpart_for_combine): Use omode when generating
28396         clobber.
28397
28398 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
28399
28400         PR rtl-optimization/39235
28401         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
28402
28403 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
28404
28405         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
28406
28407 2009-03-04  Richard Guenther  <rguenther@suse.de>
28408
28409         PR tree-optimization/39362
28410         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
28411         that occur in abnormal PHIs should be varying.
28412
28413 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
28414
28415         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
28416         Extend comments.
28417         (simple_iv):  Take loop as an argument instead of statement.
28418         * tree-scalar-evolution.h (simple_iv): Declaration changed.
28419         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
28420         to simple_iv.
28421         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
28422         Ditto.
28423         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
28424         * matrix-reorg.c (analyze_transpose): Ditto.
28425         * tree-data-ref.c (dr_analyze_innermost): Ditto.
28426         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28427         * tree-predcom.c (ref_at_iteration): Ditto.
28428         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
28429
28430 2009-03-04  Richard Guenther  <rguenther@suse.de>
28431
28432         PR tree-optimization/39358
28433         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28434         escaped_id and callused_id.
28435         (solve_graph): Likewise.
28436
28437 2009-03-04  Richard Guenther  <rguenther@suse.de>
28438
28439         PR tree-optimization/39339
28440         * tree-sra.c (try_instantiate_multiple_fields): Make it
28441         no longer ICE on the above.
28442
28443 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
28444
28445         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28446         that fits within Pmode.
28447
28448 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28449
28450         PR middle-end/10109
28451         * tm.texi (LIBCALL_VALUE): Update description.
28452
28453 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28454
28455         PR middle-end/34443
28456         * doc/extend.texi (section): Update description.
28457
28458 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
28459
28460         PR middle-end/39345
28461         * tree-inline.c (remapped_type): New.
28462         (can_be_nonlocal): Call remapped_type instead of remap_type.
28463
28464 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28465
28466         PR fortran/39354
28467         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28468         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28469
28470 2009-03-03  Richard Guenther  <rguenther@suse.de>
28471
28472         PR middle-end/39272
28473         * tree.c (tree_nonartificial_location): New function.
28474         * tree.h (tree_nonartificial_location): Declare.
28475         * builtins.c (expand_builtin_memory_chk): Provide location
28476         of the call location for artificial function pieces.
28477         (maybe_emit_chk_warning): Likewise.
28478         (maybe_emit_sprintf_chk_warning): Likewise.
28479         (maybe_emit_free_warning): Likewise.
28480         * expr.c (expand_expr_real_1): Likewise.
28481
28482 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28483
28484         PR tree-optimization/39343
28485         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28486         COMPONENT_REF t has ARRAY_TYPE.
28487
28488 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
28489
28490         PR middle-end/39335
28491         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28492         when the type precision of the induction variable should be
28493         larger than the type precision of nit.
28494         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28495         * graphite.c (graphite_loop_normal_form): Same.
28496         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28497
28498 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28499
28500         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28501         (*call_1_rex64_ms_sysv): Use named constants instead of magic
28502         numbers to describe clobbered registers.
28503         (*call_value_0_rex64_ms_sysv): Ditto.
28504         * config/i386/mmx.md (mmx_emms): Ditto.
28505         (mmx_femms): Ditto.
28506
28507 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
28508
28509         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28510         of ABI_64.
28511
28512 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28513
28514         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28515         (spu_section_type_flags): New function.
28516
28517 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28518
28519         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28520         reg_class_contents of FLOAT_REGS into a temporary.
28521
28522 2009-03-02  Richard Guenther  <rguenther@suse.de>
28523             Ira Rosen  <irar@il.ibm.com>
28524
28525         PR tree-optimization/39318
28526         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28527         information to the vectorized statement.
28528
28529 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
28530
28531         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28532         variable.  Use defined names instead of magic constants for REX SSE
28533         registers.
28534
28535 2009-03-01  Richard Guenther  <rguenther@suse.de>
28536
28537         PR tree-optimization/39331
28538         * omp-low.c (lower_send_shared_vars): Do not receive new
28539         values for the reference of DECL_BY_REFERENCE parms or results.
28540
28541 2009-03-01  Jan Hubicka  <jh@suse.cz>
28542
28543         PR debug/39267
28544         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28545         BLOCK_NONLOCALIZED_VAR): New macros.
28546         (tree_block): Add nonlocalized_vars.
28547         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28548         gen_decl_die): Add origin argument.  Allow generation of die with
28549         origin at hand only.
28550         (gen_member_die, gen_type_die_with_usage, force_decl_die,
28551         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28552         of gen_*.
28553         (gen_block_die): Fix checking for unused blocks.
28554         (process_scope_var): Break out from .... ; work with origins only.
28555         (decls_for_scope) ... here; process nonlocalized list.
28556         (dwarf2out_ignore_block): Look for nonlocalized vars.
28557         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28558         vars.
28559         (dump_scope_block): Dump them.
28560         * tree-inline.c (remap_decls): Handle nonlocalized vars.
28561         (remap_block): Likewise.
28562         (can_be_nonlocal): New predicate.
28563         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28564
28565 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28566
28567         * configure: Regenerate.
28568
28569 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28570
28571         * optc-gen.awk: No need to duplicate option flags twice.
28572         Reuse help texts for duplicate options which do not have any.
28573
28574         * gcc.c (display_help): Document --version.
28575
28576         * gcc.c (main): If print_help_list and verbose_flag, ensure
28577         driver output comes before subprocess output.
28578
28579         * optc-gen.awk: Assign all remaining fields to help string,
28580         space-separated, for multi-line help in *.opt.
28581
28582         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28583         -Wno-pedantic-ms-format is for MinGW targets only.
28584
28585         * doc/options.texi (Option file format): Fix bad indentation,
28586         restoring dropped sentence.
28587
28588 2009-02-28  Jan Hubicka  <jh@suse.cz>
28589
28590         * tree-inline.c (tree_function_versioning): Output debug info.
28591
28592 2009-02-28  Jan Hubicka  <jh@suse.cz>
28593
28594         PR debug/39267
28595         * tree-inline.c (setup_one_parameter): Do not copy propagate
28596         arguments when not optimizing.
28597
28598 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
28599
28600         PR target/39327
28601         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28602         (avx_addsubv4df3): Likewise.
28603         (*avx_addsubv4sf3): Likewise.
28604         (sse3_addsubv4sf3): Likewise.
28605         (*avx_addsubv2df3): Likewise.
28606         (sse3_addsubv2df3): Likewise.
28607         (avx_unpckhps256): Correct item selectors.
28608         (avx_unpcklps256): Likewise.
28609         (avx_unpckhpd256): Likewise.
28610         (avx_unpcklpd256): Likewise.
28611
28612 2009-02-28  Jan Hubicka  <jh@suse.cz>
28613
28614         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28615         static vars.
28616         (copy_arguments_for_versioning): If var is declared don't declare it.
28617         (tree_function_versioning): First setup substitutions and then copy
28618         args.
28619
28620 2009-02-27  Jan Hubicka  <jh@suse.cz>
28621
28622         PR debug/39267
28623         * cgraph.h (varpool_output_debug_info): Remove.
28624         * cgraphunit.c (varpool_output_debug_info): Remove.
28625         * dwarf2out.c (deferred_locations_struct): New struct
28626         (deferred_locations): New type.
28627         (deferred_locations_list): New static var.
28628         (deffer_location): New function.
28629         (gen_variable_die): Use it.
28630         (decls_for_scope): Output info on local static vars.
28631         (dwarf2out_finish): Process deferred locations.
28632         * varpool.c (varpool_output_debug_info): Remove.
28633
28634 2009-02-27  Jan Hubicka  <jh@suse.cz>
28635
28636         PR debug/39267
28637         * tree.h (TREE_PROTECTED): Fix comment.
28638         (BLOCK_HANDLER_BLOCK): Remove.
28639         (struct tree_block): Remove handler_block add body_block.
28640         (inlined_function_outer_scope_p): New.
28641         (is_body_block): Remove.
28642         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28643         * dwarf2out.c (is_inlined_entry_point): Remove.
28644         (add_high_low_attributes): Use inlined_function_outer_scope_p.
28645         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
28646         code.
28647         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28648         * gimplify.c (gimplify_expr): Gimplify body blocks.
28649         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28650         block with multiple subblocks.
28651         (dump_scope_block): Prettier output; dump more flags and info.
28652         (dump_scope_blocks): New.
28653         (remove_unused_locals): Use dump_scope_blocks.
28654         * tree-flow.h (dump_scope_blocks): Declare.
28655         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28656         * stmt.c (is_body_block): Remove.
28657         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28658         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28659
28660 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
28661
28662         PR middle-end/39308
28663         * graphite.c (graphite_loop_normal_form): Do not call
28664         number_of_iterations_exit from a gcc_assert.
28665
28666 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28667
28668         * config/s390/s390.c (s390_swap_cmp): Look for conditional
28669         jumps if COND is NULL.
28670         (find_cond_jump): New function.
28671         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28672         * config/s390/s390.md: Remove z10_cobra attribute value.
28673
28674 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
28675
28676         * config/alpha/alpha.h (alpha_expand_mov): Return false if
28677         force_const_mem returns NULL_RTX.
28678
28679 2009-02-26  Jan Hubicka  <jh@suse.cz>
28680
28681         PR debug/39267
28682         * cgraph.h (varpool_output_debug_info): Remove.
28683         * cgraphunit.c (varpool_output_debug_info): Remove.
28684         * dwarf2out.c (deferred_locations_struct): New struct
28685         (deferred_locations): New type.
28686         (deferred_locations_list): New static var.
28687         (deffer_location): New function.
28688         (gen_variable_die): Use it.
28689         (decls_for_scope): Output info on local static vars.
28690         (dwarf2out_finish): Process deferred locations.
28691         * varpool.c (varpool_output_debug_info): Remove.
28692
28693 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
28694
28695         PR rtl-optimization/39241
28696         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28697         to subreg_offset_representable_p.
28698
28699 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28700
28701         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28702         execute function prototype.  Get f and nregs from max_reg_num
28703         and get_insns.  Remove the first backward pass as it's dead,
28704         guard the forward pass by flag_expensive_optimizations.
28705         (rest_of_handle_regmove): Delete.
28706         (pass_regmove): Replace it with regmove_optimize.
28707
28708 2009-02-25  Martin Jambor  <mjambor@suse.cz>
28709
28710         PR tree-optimization/39259
28711         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28712         calls_alloca function flags.
28713         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28714         calls are detected.
28715
28716 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28717
28718         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28719         flags_set_1_rtx, flags_set_1_set): Delete.
28720         (regmove_optimize): Do not call mark_flags_life_zones.
28721
28722 2009-02-24  Julian Brown  <julian@codesourcery.com>
28723
28724         PR target/35965
28725         * config/arm/arm.c (require_pic_register): Only set
28726         cfun->machine->pic_reg once per function.
28727
28728 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
28729
28730         * doc/invoke.texi (Link Options): Document an easier way to pass
28731         options that take arguments to the GNU linker using -Xlinker and -Wl.
28732
28733 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
28734
28735         PR target/33785
28736         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28737
28738 2009-02-24  Richard Guenther  <rguenther@suse.de>
28739
28740         PR debug/39285
28741         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28742
28743 2009-02-24  Richard Guenther  <rguenther@suse.de>
28744             Zdenek Dvorak  <ook@ucw.cz>
28745
28746         PR tree-optimization/39233
28747         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28748         from converting them to a generic type.
28749
28750 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
28751
28752         PR tree-optimization/39260
28753         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28754         contains a condition with a real type.
28755         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28756
28757 2009-02-23  Jason Merrill  <jason@redhat.com>
28758
28759         PR c++/38880
28760         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28761         narrowing_initializer_constant_valid_p.
28762         (narrowing_initializer_constant_valid_p): Don't return
28763         null_pointer_node for adding a pointer to itself.
28764
28765 2009-02-23  Jan Hubicka  <jh@suse.cz>
28766
28767         PR c/12245
28768         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28769         resizing.
28770
28771 2009-02-23  Jan Hubicka  <jh@suse.cz>
28772
28773         PR tree-optimization/37709
28774         * tree.c (block_ultimate_origin): Move here from dwarf2out.
28775         * tree.h (block_ultimate_origin): Declare.
28776         * dwarf2out.c (block_ultimate_origin): Move to tree.c
28777         * tree-ssa-live.c (remove_unused_scope_block_p):
28778         Eliminate blocks containig no instructions nor live variables nor
28779         nested blocks.
28780         (dump_scope_block): New function.
28781         (remove_unused_locals): Enable removal of dead blocks by default;
28782         enable dumping at TDF_DETAILS.
28783
28784 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28785
28786         * config/i386/i386.c (classify_argument): Don't allow COImode
28787         and OImode.
28788         (function_arg_advance_32): Don't allow OImode.
28789         (function_arg_32): Likewise.
28790         (function_value_32): Likewise.
28791         (return_in_memory_32): Likewise.
28792         (function_arg_64): Remove OImode comment.
28793
28794 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28795
28796         PR target/39261
28797         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28798         ix86_expand_vector_set for V4DImode in 64bit mode only.
28799         (ix86_expand_vector_init_one_var): Likewise.
28800
28801 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
28802
28803         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28804
28805 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28806
28807         PR bootstrap/39257
28808         * loop-iv.c: Revert last change.
28809         * emit-rtl.c: Likewise.
28810
28811 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28812
28813         PR target/39256
28814         * config/i386/i386.c (type_natural_mode): Remove an extra
28815         space in the warning message.
28816         (function_value_32): Handle 32-byte vector modes.
28817         (return_in_memory_32): Likewise.
28818
28819 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28820
28821         * loop-iv.c (truncate_value): New function.
28822         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28823         of lowpart_subreg.
28824         (lowpart_subreg): Move to...
28825         * emit-rtl.c: ...here.
28826
28827 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
28828
28829         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28830         accidental and undocumented change at revision 140860.
28831
28832 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
28833
28834         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28835         take gimple_seq * arguments.
28836         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28837         types_compatible_p langhook.
28838
28839 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
28840             Joseph Myers  <joseph@codesourcery.com>
28841
28842         * config/arm/arm.c (arm_builtin_va_list): New function.
28843         (arm_expand_builtin_va_start): Likewise.
28844         (arm_gimplify_va_arg_expr): Likewise.
28845         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28846         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28847         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28848         (va_list_type): New variable.
28849         (arm_mangle_type): Mangle va_list_type appropriately.
28850
28851 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28852
28853         PR middle-end/39157
28854         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28855         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28856         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28857         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28858         parameter to 1000 for -O1 by default.
28859         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28860         parameter.
28861         * loop-invariant.c: Include params.h.
28862         (move_loop_invariants): Don't call move_single_loop_invariants on
28863         very large loops.
28864
28865 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
28866
28867         * calls.c (emit_library_call_value_1): Use slot_offset instead of
28868         offset when calculating bounds for indexing stack_usage_map.  Fixes
28869         a buffer overflow with certain target setups.
28870
28871 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28872
28873         PR target/39240
28874         * calls.c (expand_call): Clear try_tail_call if caller and callee
28875         disagree in promotion of function return value.
28876
28877 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
28878
28879         PR target/39175
28880         * c-common.c (c_determine_visibility): If visibility changed and
28881         DECL_RTL has been already set, call make_decl_rtl to update symbol
28882         flags.
28883
28884 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
28885
28886         PR c++/39188
28887         * varasm.c (assemble_variable): Don't check DECL_NAME when
28888         globalizing a variable.
28889
28890 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
28891
28892         PR c/38483
28893         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28894         expression before any __builtin_trap call.
28895         * c-typeck.c (build_function_call): Convert and check function
28896         arguments before generating a call to a trap.  Evaluate the
28897         function arguments before the trap.
28898
28899 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
28900
28901         PR target/39228
28902         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28903         (UNSPEC_FXAM_MEM): New unspec.
28904         (fxam<mode>2_i387_with_temp): New insn and split pattern.
28905         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
28906         memory using fxam<mode>2_i387_with_temp to remove excess precision.
28907
28908 2009-02-19  Richard Guenther  <rguenther@suse.de>
28909
28910         PR tree-optimization/39207
28911         PR tree-optimization/39074
28912         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28913         storedanything_tree): New.
28914         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
28915         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28916         (build_succ_graph): Add edges from STOREDANYTHING to all
28917         non-direct nodes.
28918         (init_base_vars): Initialize STOREDANYTHING.
28919         (compute_points_to_sets): Free substitution info after
28920         building the succ graph.
28921         (ipa_pta_execute): Likewise.
28922
28923         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28924         field.
28925         (do_ds_constraint): Do not add to special var or non-pointer
28926         field solutions.
28927         (type_could_have_pointers): Split out from ...
28928         (could_have_pointers): ... here.  For arrays use the element type.
28929         (create_variable_info_for): Initialize may_have_pointers.
28930         (new_var_info): Likewise.
28931         (handle_lhs_call): Make the HEAP variable unknown-sized.
28932         (intra_create_variable_infos): Use a type with pointers for
28933         PARM_NOALIAS, make it unknown-sized.
28934
28935 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28936
28937         PR target/39224
28938         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
28939
28940 2009-02-18  Jason Merrill  <jason@redhat.com>
28941
28942         PR target/39179
28943         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28944         value if DECL_EXTERNAL.
28945         * tree-sra.c (sra_walk_gimple_assign): Likewise.
28946         * target.h (gcc_target::binds_local_p): Clarify "module".
28947         * tree.h (TREE_PUBLIC): Clarify "module".
28948
28949 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
28950
28951         PR target/38891
28952         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28953         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28954
28955 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28956
28957         PR target/39082
28958         * c.opt (Wabi): Support C and ObjC.
28959         (Wpsabi): New.
28960
28961         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28962
28963         * config/i386/i386.c (classify_argument): Warn once about the ABI
28964         change when passing union with long double.
28965
28966         * doc/invoke.texi: Update -Wabi for warning psABI changes.
28967
28968 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
28969
28970         PR c/35447
28971         * c-parser.c (c_parser_compound_statement): Always enter and leave
28972         a scope.
28973
28974 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28975
28976         PR target/34587
28977         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28978
28979 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
28980
28981         PR tree-optimization/36922
28982         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28983         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28984         Likewise.
28985
28986 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28987
28988         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28989         to 0 for EABI64.
28990
28991 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28992
28993         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28994
28995 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28996
28997         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28998         tree sharing.
28999
29000 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
29001             Richard Sandiford  <rdsandiford@googlemail.com>
29002
29003         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
29004         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
29005         (loongson_biadd): ...this.
29006
29007 2009-02-17  Richard Guenther  <rguenther@suse.de>
29008
29009         PR tree-optimization/39202
29010         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
29011         a var make sure to follow existing collapses.
29012
29013 2009-02-17  Richard Guenther  <rguenther@suse.de>
29014
29015         PR middle-end/39214
29016         * langhooks.c (lhd_print_error_function): Check for NULL block.
29017
29018 2009-02-17  Richard Guenther  <rguenther@suse.de>
29019
29020         PR tree-optimization/39204
29021         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
29022         of the PHI arg.
29023
29024 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
29025
29026         * config/soft-fp/double.h: Update from glibc CVS.
29027
29028 2009-02-17  Richard Guenther  <rguenther@suse.de>
29029
29030         PR tree-optimization/39207
29031         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
29032         strict-aliasing warnings for pointers pointing to NULL.
29033
29034 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
29035
29036         PR c/35446
29037         * c-parser.c (c_parser_braced_init): Call pop_init_level when
29038         skipping until next close brace.
29039
29040 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
29041
29042         PR target/37049
29043         * config/i386/i386.c (ix86_expand_push): Set memory alignment
29044         to function argument boundary.
29045
29046 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
29047
29048         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
29049         in the lea_add. Reload eventually constraints it properly.
29050         * config/picochip/constraints.md: Remove the target constraint
29051         "b", since it is not needed anymore.
29052
29053 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
29054
29055         * gthr-dce.h: Uglify function parameter and local variable names.
29056         * gthr-gnat.h: Likewise.
29057         * gthr-mipssde.h: Likewise.
29058         * gthr-nks.h: Likewise.
29059         * gthr-posix95.h: Likewise.
29060         * gthr-posix.h: Likewise.
29061         * gthr-rtems.h: Likewise.
29062         * gthr-single.h: Likewise.
29063         * gthr-solaris.h: Likewise.
29064         * gthr-tpf.h: Likewise.
29065         * gthr-vxworks.h: Likewise.
29066         * gthr-win32.h: Likewise.
29067
29068 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
29069
29070         PR target/39196
29071         * config/i386/i386.md: Restrict the new peephole2 to move
29072         between MMX/SSE registers.
29073
29074 2009-02-15  Richard Guenther  <rguenther@suse.de>
29075
29076         Revert
29077         2009-02-13  Richard Guenther  <rguenther@suse.de>
29078
29079         * configure.ac: Enable LFS.
29080         * configure: Re-generate.
29081         * config.in: Likewise.
29082
29083 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29084
29085         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
29086         spu_srqwbyte, spu_srqwbytebc): Define.
29087         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
29088         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
29089         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
29090         "shrqby_<mode>"): New insn-and-split patterns.
29091         * config/spu/spu.c (expand_builtin_args): Determine and return
29092         number of operands using spu_builtin_description data.
29093         (spu_expand_builtin_1): Use it.
29094
29095 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
29096
29097         PR target/38056
29098         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
29099         TARGET_CONST_GP.
29100
29101 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29102
29103         PR target/39149
29104         * config/i386/i386.c (override_options): Correct warning
29105         messages for -malign-loops, -malign-jumps and -malign-functions.
29106
29107 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29108
29109         PR target/39152
29110         * config/i386/i386.md: Restrict the new peephole2 to move
29111         between the general purpose registers.
29112
29113 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29114
29115         PR target/39162
29116         * config/i386/i386.c (type_natural_mode): Add a new argument.
29117         Return the original mode and warn ABI change if vector size is 32byte.
29118         (function_arg_advance): Updated.
29119         (function_arg): Likewise.
29120         (ix86_function_value): Likewise.
29121         (ix86_return_in_memory): Likewise.
29122         (ix86_sol10_return_in_memory): Likewise.
29123         (ix86_gimplify_va_arg): Likewise.
29124         (function_arg_32): Don't warn ABX ABI change here.
29125         (function_arg_64): Likewise.
29126
29127 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
29128
29129         * loop-iv.c (implies_p): In the final case, test that operands 0
29130         of the two comparisons match.
29131
29132         * config/bfin/bfin.c (find_prev_insn_start): New function.
29133         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
29134         (find_next_insn_start): Move.
29135
29136 2009-02-13  Richard Guenther  <rguenther@suse.de>
29137
29138         * configure.ac: Enable LFS.
29139         * configure: Re-generate.
29140         * config.in: Likewise.
29141
29142 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
29143
29144         PR c/35444
29145         * c-parser.c (c_parser_parms_list_declarator): Discard pending
29146         sizes on syntax error after some arguments have been parsed.
29147
29148 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
29149
29150         * doc/invoke.texi (-fira): Remove.
29151
29152 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29153
29154         * caller-save.c: Replace regclass.c with reginfo.c in comments.
29155         * recog.c: Likewise.
29156         * rtl.h: Likewise.
29157
29158 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
29159
29160         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
29161         (umul_ppmm): Likewise.
29162         (count_leading_zeros): Likewise.
29163         (count_trailing_zeros): Likewise.
29164         (UMUL_TIME): Likewise.
29165
29166 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29167
29168         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
29169         soft-fp/t-softfp to tmake_file.
29170
29171         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
29172         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
29173         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
29174         IA64_BUILTIN_INFQ]: New.
29175         (ia64_init_builtins): Initialize __builtin_infq,
29176         __builtin_fabsq and __builtin_copysignq if not HPUX.
29177         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
29178         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
29179
29180         * config/ia64/lib1funcs.asm (__divtf3): Define only if
29181         SHARED is defined.
29182         (__fixtfti): Likewise.
29183         (__fixunstfti): Likewise.
29184         (__floattitf): Likewise.
29185
29186         * config/ia64/libgcc-glibc.ver: New.
29187         * config/ia64/t-fprules-softfp: Likewise.
29188         * config/ia64/sfp-machine.h: Likewise.
29189
29190         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
29191         (LIBGCC2_TF_CEXT): Likewise.
29192         (TF_SIZE): Likewise.
29193         (TARGET_INIT_LIBFUNCS): Likewise.
29194
29195         * config/ia64/t-glibc (SHLINB_MAPFILES):
29196         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
29197
29198 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29199
29200         * config/i386/i386.c (construct_container): Rewrite processing
29201         BLKmode with X86_64_SSE_CLASS.
29202
29203 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
29204
29205         PR target/39152
29206         * config/i386/i386.md: Replace simplify_replace_rtx with
29207         replace_rtx in the new peephole2.
29208
29209 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
29210
29211         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
29212         loop unrolling do not happen at -O2.
29213
29214 2009-02-12  Michael Matz  <matz@suse.de>
29215
29216         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
29217
29218 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
29219
29220         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
29221         for -g3.
29222
29223 2009-02-12  Ben Elliston  <bje@au.ibm.com>
29224
29225         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
29226         patterns when updating the back chain.  Missed in the 2009-02-10
29227         change.
29228
29229 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
29230
29231         * doc/extend.texi (Decimal Floating Types): Update identifier of
29232         draft TR and list of missing support.
29233
29234 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
29235
29236         PR middle-end/39154
29237         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
29238         bit to variable length decl's flags, add it also to its
29239         pointer replacement variable.
29240
29241 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
29242             Jakub Jelinek  <jakub@redhat.com>
29243
29244         PR target/39118
29245         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
29246         (memory_blockage): New expander.
29247         (*memory_blockage): New insn pattern.
29248         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
29249         instead of general blockage at the end of function prologue when
29250         frame pointer is used to access red zone area.  Do not emit blockage
29251         when profiling, it is emitted in generic code.
29252         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
29253         function epilogue when frame pointer is used to access red zone area.
29254
29255 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
29256
29257         PR target/38824
29258         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
29259         by arithmetic with memory operands.
29260         * config/i386/predicates.md (commutative_operator): New.
29261
29262 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
29263
29264         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
29265         bulleted lists.
29266
29267 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
29268
29269         * alias.h (record_alias_subset): Declare.
29270         * alias.c (record_alias_subset): Make global.
29271
29272 2009-02-10  Nick Clifton  <nickc@redhat.com>
29273
29274         * tree-parloops.c: Change license to GPLv3.
29275         * ipa-struct-reorg.c: Change license to GPLv3.
29276         * ipa-struct-reorg.h: Change license to GPLv3.
29277
29278 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
29279
29280         PR c/39084
29281         * c-decl.c (start_struct): Return NULL on error.
29282
29283 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
29284
29285         PR middle-end/39124
29286         * cfgloopmanip.c (remove_path): Call remove_bbs after
29287         cancel_loop_tree, not before it.
29288
29289         PR target/39139
29290         * function.h (struct function): Add has_local_explicit_reg_vars bit.
29291         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
29292         VAR_DECLs were seen.
29293         * tree-ssa-live.c (remove_unused_locals): Recompute
29294         cfun->has_local_explicit_reg_vars.
29295         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
29296         copies or clearings if cfun->has_local_explicit_reg_vars.
29297
29298 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
29299
29300         PR target/39118
29301         * config/i386/i386.c (expand_prologue): Emit blockage at the end
29302         of function prologue when frame pointer is used to access
29303         red zone area.
29304
29305 2009-02-10  Richard Guenther  <rguenther@suse.de>
29306
29307         PR middle-end/39127
29308         * gimplify.c (gimple_regimplify_operands): Always look if
29309         we need to create a temporary.
29310
29311 2009-02-10  Richard Guenther  <rguenther@suse.de>
29312
29313         PR tree-optimization/39132
29314         * tree-loop-distribution.c (todo): New global var.
29315         (generate_memset_zero): Trigger TODO_rebuild_alias.
29316         (tree_loop_distribution): Return todo.
29317
29318 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
29319
29320         PR target/39119
29321         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
29322         (x86_64_reg_class_name): Removed.
29323         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
29324         first one isn't X86_64_SSE_CLASS or any other ones aren't
29325         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
29326         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
29327         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
29328         and 3 X86_64_SSEUP_CLASS.
29329         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
29330         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
29331
29332 2009-02-10  Ben Elliston  <bje@au.ibm.com>
29333
29334         * config/rs6000/rs6000.md (allocate_stack): Always use an update
29335         form instruction to update the stack back chain word, even if the
29336         user has disabled the generation of update instructions.
29337         (movdi_<mode>_update_stack): New.
29338         (movsi_update_stack): Likewise.
29339         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
29340         always use an update form instruction to update the stack back
29341         chain word.
29342
29343 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
29344
29345         PR middle-end/38953
29346         * graphite.c (if_region_set_false_region): After moving a region in
29347         the false branch of a condition, remove the empty dummy basic block.
29348         (gloog): Remove wrong fix for PR38953.
29349
29350 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29351
29352         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
29353         generation due to implicit sign extension.
29354
29355 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
29356
29357         PR middle-end/38981
29358         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
29359         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
29360
29361 2009-02-09  Richard Guenther  <rguenther@suse.de>
29362
29363         PR middle-end/35202
29364         * convert.c (convert_to_real): Disable (float)fn((double)x)
29365         to fnf(x) conversion if errno differences may occur and
29366         -fmath-errno is set.
29367
29368 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
29369
29370         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
29371         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29372         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
29373
29374 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
29375
29376         PR c/35434
29377         * c-common.c (handle_alias_attribute): Disallow attribute for
29378         anything not a FUNCTION_DECL or VAR_DECL.
29379
29380 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
29381
29382         PR c/39035
29383         * real.c (do_compare): Special-case compare of zero against
29384         decimal float value.
29385
29386 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
29387
29388         PR c/36432
29389         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
29390         as indicating flexible array members unless the field itself is
29391         being declarared as the incomplete array.
29392
29393 2009-02-06  Jan Hubicka  <jh@suse.cz>
29394
29395         PR tree-optimization/38844
29396         * ipa-inline.c (try_inline): Stop inlining recursion when edge
29397         is already inlined.
29398
29399 2009-02-06  Richard Guenther  <rguenther@suse.de>
29400
29401         PR middle-end/38977
29402         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
29403         fork because we may expand it as __gcov_fork.
29404
29405 2009-02-06  Nick Clifton  <nickc@redhat.com>
29406
29407         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
29408
29409 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
29410
29411         PR tree-optimization/35659
29412         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
29413         vn_phi_eq): Shortcut if hashcode does not match.
29414         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
29415         NULL operands.
29416         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
29417         and avoid iterative_hash_expr.
29418         (FOR_EACH_VALUE_ID_IN_SET): New.
29419         (value_id_compare): Remove.
29420         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
29421         sort expressions by value id.
29422
29423 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
29424
29425         PR target/38991
29426         * config/sh/predicates.md (general_movsrc_operand): Don't check
29427         the subreg of system registers here.
29428
29429 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
29430
29431         PR c++/39106
29432         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29433         on the copied decl.
29434
29435 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
29436
29437         PR rtl-optimization/39110
29438         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29439         addresses, not aligned ones.
29440
29441 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
29442             Richard Guenther  <rguenther@suse.de>
29443
29444         PR tree-optimization/39100
29445         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29446         comment says and add edges.
29447
29448 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
29449
29450         PR c/35435
29451         * c-common.c (handle_tls_model_attribute): Ignore attribute for
29452         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29453
29454 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
29455
29456         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29457         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29458         register_bb_in_sese, new_sese, free_sese): Moved.
29459         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29460         outermost_loop_in_scop, build_scop_iteration_domain,
29461         expand_scalar_variables_ssa_name, get_vdef_before_scop,
29462         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29463         Use loop_in_sese_p instead of loop_in_scop_p.
29464         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29465         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29466         (scopdet_basic_block_info): Fix bug in scop detection.
29467         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29468         eq_loop_to_cloog_loop): Remove.
29469         (nb_loops_around_loop_in_scop, nb_loop
29470         ref_nb_loops): Moved here...
29471         * graphite.h (ref_nb_loops): ... from here.
29472         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29473         (loop_domain_dim, loop_iteration_vector_dim): Remove.
29474         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29475
29476 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
29477             Hans-Peter Nilsson  <hp@axis.com>
29478
29479         PR rtl-optimization/37889
29480         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29481         Move offset handling from PLUS to before the switch.  Use new
29482         arguments when considering SYMBOL_REFs too.
29483         (rtx_addr_can_trap_p): Pass dummy offset and size.
29484         (enum may_trap_p_flags): Remove.
29485         (may_trap_p_1): Pass size from MEM_SIZE.
29486
29487         PR rtl-optimization/38921
29488         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29489         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29490         * rtlanal.c (may_trap_after_code_motion_p): Delete.
29491         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29492
29493 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29494
29495         AVX Programming Reference (January, 2009)
29496         * config/i386/sse.md (*vpclmulqdq): New.
29497
29498 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
29499
29500         PR tree-optimization/38977
29501         PR gcov-profile/38292
29502         * calls.c (special_function_p): Disregard __builtin_ prefix.
29503
29504 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
29505
29506         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29507         non-indexable addresses even before reload.
29508
29509 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29510
29511         PR c/29129
29512         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29513         as having variable size.  Do not give an error for unnamed
29514         parameters with [*] declarators.  Give a warning for type names
29515         with [*] declarators and mark them as variable size.
29516         * c-parser.c (c_parser_sizeof_expression): Do not give an error
29517         for sizeof applied to [*] type names.
29518
29519 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29520
29521         PR C++/36607
29522         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29523
29524 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29525
29526         * gcc.c (process_command): Update copyright notice dates.
29527         * gcov.c (print_version): Likewise.
29528         * gcov-dump.c (print_version): Likewise.
29529         * mips-tfile.c (main): Likewise.
29530         * mips-tdump.c (main): Likewise.
29531
29532 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29533
29534         PR c/35433
29535         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29536         for composite type involving a zero-length array type.
29537
29538 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29539
29540         PR target/35318
29541         * function.c (match_asm_constraints_1): Skip over
29542         initial optional % in the constraint.
29543
29544         PR inline-asm/39059
29545         * c-parser.c (c_parser_postfix_expression): If fixed point is not
29546         supported, don't accept FIXED_CSTs.
29547         * c-decl.c (finish_declspecs): Error if fixed point is not supported
29548         and _Sat is used without _Fract/_Accum.  Set specs->type to
29549         integer_type_node for cts_fract/cts_accum if fixed point is not
29550         supported.
29551
29552 2009-02-02  Catherine Moore  <clm@codesourcery.com>
29553
29554         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29555
29556 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29557
29558         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29559         (ABI_HAS_64BIT_SYMBOLS): Use it.
29560         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29561
29562 2009-02-02  Paul Brook  <paul@codesourcery.com>
29563
29564         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29565
29566 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
29567
29568         PR inline-asm/39058
29569         * recog.h (asm_operand_ok): Add constraints argument.
29570         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
29571         recurse on matching constraint.
29572         (check_asm_operands): Pass constraints as 3rd argument to
29573         asm_operand_ok.  Don't look up matching constraint here.
29574         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29575         to asm_operand_ok.
29576
29577 2009-02-02  Ben Elliston  <bje@au.ibm.com>
29578
29579         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29580         TARGET_NARROW_VOLATILE_BITFIELD macro names.
29581
29582 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29583
29584         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29585         information.  Remove some obsolete information.  Reorganize.
29586
29587         * config/pa/fptr.c: Revert license to GPL 2.
29588         * config/pa/milli64.S: Likewise.
29589
29590 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29591
29592         PR target/38904
29593         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
29594         LIBRARY name in, instead of hard-coding it.
29595         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
29596         extra target make frag to tmake_files according to EH model.
29597         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
29598         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
29599         frags that define makefile variable EH_MODEL appropriately.
29600         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
29601         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
29602         to "-sjlj" according to type of EH configured.
29603         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29604         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
29605         to "_sjlj" according to type of EH configured.
29606         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29607         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
29608         (SHLIB_LINK):  Add missing semicolon to if-else construct.
29609         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29610         string value of "pe_dll" command-line option.
29611         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
29612         (SHLIB_SONAME):  Use it when overriding t-cygming default.
29613         (SHLIB_IMPLIB):  Override t-cygming default.
29614         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29615         string value of "pe_dll" command-line option.
29616
29617 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29618
29619         PR target/38952
29620         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29621         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29622
29623 2009-01-31  Richard Guenther  <rguenther@suse.de>
29624
29625         PR tree-optimization/38937
29626         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29627         computing the transitive closure.
29628
29629 2009-01-30  Richard Guenther  <rguenther@suse.de>
29630
29631         PR tree-optimization/39041
29632         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29633         Propagate variable indices only if the types match for this stmt.
29634
29635 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
29636
29637         PR target/39013
29638         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29639         inline but never defined.
29640
29641 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
29642
29643         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29644         (*insv_h_di_reg_extimm): New insn.
29645         (*insv_l<mode>_reg_extimm): New insn.
29646
29647 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29648
29649         * config/picochip/picochip.c (flag_conserve_stack): set
29650         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29651         fconserve-stack. Reduce call-overhead used by inliner.
29652
29653 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29654
29655         PR/38157
29656         * common.opt (flag_conserve_stack): Initialised to zero.
29657
29658 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
29659
29660         PR/39002
29661         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29662         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29663         method.
29664
29665 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29666
29667         * ira-color.c (allocno_reload_assign): Update comments.
29668         * regmove.c (regmove_optimize): Likewise.
29669
29670         * ra.h: Removed.
29671
29672 2009-01-29  Robert Millan  <rmh@aybabtu.com>
29673
29674         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29675         * config/i386/kopensolaris-gnu.h: New file.  Undefine
29676         `MD_UNWIND_SUPPORT'.
29677         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29678
29679 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
29680
29681         PR tree-optimization/39007
29682         * tree-loop-distribution.c (generate_builtin): Use
29683         recompute_dominator to compute the immediate dominator of the
29684         basic block just after the loop.
29685
29686 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29687
29688         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29689         (ASM_OUTPUT_DWARF_PCREL): Define.
29690
29691 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
29692
29693         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29694         * doc/passes.texi: Remove entries about regclass, local-alloc, and
29695         global.  Modify entries about regmove and IRA.
29696
29697         * ra-conflict.c: Remove the file.
29698
29699         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29700
29701         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29702         (pass_regclass_init): Rename to pass_reginfo_init.
29703
29704         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29705
29706         * toplev.h (flag_ira): Remove.
29707
29708         * caller-save.c (setup_save_areas): Remove flag_ira.
29709
29710         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29711
29712         * global.c: Remove the file.
29713
29714         * opts.c (decode_options): Remove flag_ira.
29715
29716         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29717
29718         * regmove.c: Modify file description.
29719         (find_use_as_address, try_auto_increment): Define them only if
29720         AUTO_INC_DEC is defined.
29721         (replacement_quality, replace_in_call_usage, fixup_match_1,
29722         stable_and_no_regs_but_for_p): Remove.
29723         (reg_set_in_bb): Make it static.
29724         (regmove_optimize): Remove flag_ira and code which worked for
29725         !flag_ira.
29726
29727         * local-alloc.c: Remove the file.
29728
29729         * common.opt (fira): Remove.
29730
29731         * ira.c: Include except.h.
29732         (eliminable_regset): Move from global.c.
29733         (mark_elimination): Ditto.  Remove flag_ira.
29734         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29735         equiv_mem_modified, validate_equiv_mem_from_store,
29736         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29737         contains_replace_regs, memref_referenced_p, memref_used_between_p,
29738         no_equiv, recorded_label_ref): Move from local-alloc.c.
29739         (update_equiv_regs): Ditto.  Make it static.
29740         (print_insn_chain, print_insn_chains): Move it from global.c.
29741         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
29742         (build_insn_chain): Ditto.  Make it static.
29743         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
29744         Rename to init_live_subregs.
29745         (gate_ira): Remove flag_ira.
29746
29747         * regclass.c: Rename reginfo.c.  Change file description.
29748         (FORBIDDEN_INC_DEC_CLASSES): Remove.
29749         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29750         (init_reg_sets_1): Remove code for evaluation of
29751         reg_class_superclasses and losing_caller_save_reg_set.
29752         (init_regs): Remove init_reg_autoinc.
29753         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29754         ok_for_base_p_nonstrict): Remove.
29755         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
29756         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
29757         corresponding entries.
29758         (dump_regclass, record_operand_costs, scan_one_insn,
29759         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29760         record_address_regs, auto_inc_dec_reg_p): Remove.
29761         (gt-regclass.h): Rename to gt-reginfo.h.
29762
29763         * rtl.h (dump_global_regs, retry_global_alloc,
29764         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29765
29766         * Makefile.in (RA_H): Remove.
29767         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29768         Rename regclass.o to reginfo.o.
29769         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
29770         gt-reginfo.h.
29771         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29772         (GTFILES): Rename regclass.c to reginfo.c.
29773
29774         * passes.c (init_optimization_passes): Remove pass_local_alloc and
29775         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
29776
29777         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29778         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29779         Remove flag_ira.
29780         (finish_spills): Ditto.  Remove code for !flag_ira.
29781
29782 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
29783
29784         PR middle-end/35854
29785         * doc/invoke.texi (rtl debug options): Complete rewrite.
29786         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29787         to auto_inc_dec".
29788         * mode-switching.c (pass_mode_switching): Rename pass from
29789         "mode-sw" to "mode_sw".
29790         * except.c (pass_convert_to_eh_ranges): Rename pass from
29791         "eh-ranges" to "eh_ranges".
29792         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29793         to "subreg1".
29794
29795
29796 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
29797             Alexander Monakov  <amonakov@ispras.ru>
29798
29799         PR middle-end/38857
29800         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29801         register.
29802         (move_exprs_to_boundary): Change return type and pass through
29803         should_move from move_op.  Relax assert.  Update usage ...
29804         (schedule_expr_on_boundary): ... here.  Use should_move instead of
29805         cant_move.
29806         (move_op_orig_expr_found): Indicate that insn was disconnected from
29807         stream.
29808         (code_motion_process_successors): Do not call after_merge_succs
29809         callback if original expression was not found when traversing any of
29810         the branches.
29811         (code_motion_path_driver): Change return type.  Update prototype.
29812         (move_op): Update comment.  Add a new parameter (should_move).  Update
29813         prototype.  Set *should_move based on indication provided by
29814         move_op_orig_expr_found.
29815
29816 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
29817
29818         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29819         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29820         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29821         * config/rs6000/rs6000.c (rs6000_override_options): Default
29822         avoid-indexed-addresses on for Power6, off for everything else.
29823         (avoiding_indexed_address_p): New function.
29824         (rs6000_legitimize_address): Use it.
29825         (rs6000_legitimate_address): Likewise.
29826         * config/rs6000/rs6000.md (movXX_updateX): Likewise
29827
29828 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
29829
29830         PR tree-optimization/38997
29831         * tree-loop-distribution.c (generate_memset_zero): Use
29832         POINTER_PLUS_EXPR for a pointer addition.
29833
29834 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
29835
29836         * config/s390/s390.md (bswap<mode>2): New pattern added.
29837
29838 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29839
29840         * config/s390/s390.md (*tls_load_31): Added type attribute.
29841
29842 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29843
29844         * config/s390/s390.md: Fix a few comments.
29845
29846 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29847
29848         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29849         (*tm<mode>_full): Fixed z10prop attribute.
29850         (*tst<mode>_extimm): Fixed z10prop attribute.
29851         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29852         (*tstqiCCT_cconly): Fixed z10prop attribute.
29853         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29854         (*movsi_larl): Fixed z10prop attribute.
29855         (*movsi_zarch): Fixed z10prop attribute.
29856         (*movsi_eas): Fixed z10prop attribute.
29857         (*movhi): Fixed z10prop attribute.
29858         (*movqi): Fixed z10prop attribute.
29859         (*movstrictqi): Fixed z10prop attribute.
29860         (*mov<mode>): Fixed z10prop attribute.
29861         (*movcc): Fixed z10prop attribute.
29862         (*sethighpartdi_64): Fixed z10prop attribute.
29863         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29864         (*negdi2_sign_cc): Fixed z10prop attribute.
29865         (*negdi2_sign): Fixed z10prop attribute.
29866         (*absdi2_sign_cc): Fixed z10prop attribute.
29867         (*absdi2_sign): Fixed z10prop attribute.
29868         (*negabsdi2_sign_cc): Fixed z10prop attribute.
29869         (*negabsdi2_sign): Fixed z10prop attribute.
29870         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29871         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29872         (doloop_si64): Fixed z10prop attribute.
29873         (doloop_si31): Fixed z10prop attribute.
29874         (doloop_long): Fixed z10prop attribute.
29875         (indirect_jump): Fixed z10prop attribute.
29876         (nop): Fixed z10prop attribute.
29877         (main_base_64): Fixed z10prop attribute.
29878         (reload_base_64): Fixed z10prop attribute.
29879
29880 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29881
29882         PR rtl-optimization/38740
29883         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29884         if !optimize.
29885         * config/mips/mips.c (mips_reorg): Likewise.
29886
29887 2009-01-28  Richard Guenther  <rguenther@suse.de>
29888
29889         PR tree-optimization/38926
29890         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29891         with the correct value id to a value.
29892         (do_regular_insertion): Use the value number of edoubleprime
29893         for the value number of the expr.
29894
29895         Revert
29896         2008-08-21  Richard Guenther  <rguenther@suse.de>
29897
29898         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29899         a PHI ask VN if it is already available.
29900         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29901         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29902
29903 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29904
29905         PR middle-end/38934
29906         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29907         set to varying whenever max has TREE_OVERFLOW set, similarly
29908         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29909
29910 2009-01-28  Richard Guenther  <rguenther@suse.de>
29911
29912         PR middle-end/38908
29913         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29914         uninitialized aggregate uses in call arguments.
29915
29916 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
29917
29918         PR tree-optimization/38984
29919         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29920         the nothing_id variable if -fno-delete-null-pointer-checks.
29921
29922 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
29923
29924         PR target/38988
29925         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29926         (set_got_offset_rex64): Ditto.
29927
29928 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
29929
29930         PR target/38941
29931         * doc/extend.texi: Improve local variable with asm reg.
29932
29933 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
29934
29935         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29936         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29937         was not supplied then set warn_packed_bitfield_compat to the
29938         default value of 1.
29939         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29940         against 1.
29941
29942 2009-01-27  Richard Guenther  <rguenther@suse.de>
29943
29944         PR tree-optimization/38503
29945         * cfgexpand.c (expand_gimple_basic_block): Ignore
29946         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29947         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29948         variables that cannot have TBAA applied.
29949         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29950         statements.
29951
29952 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
29953
29954         PR middle-end/38969
29955         * calls.c (initialize_argument_information): Do not wrap complex
29956         arguments in SAVE_EXPR.
29957
29958 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
29959
29960         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
29961         (INSTALL_LIBGCC): Revert typo commit.
29962
29963 2009-01-26  Richard Guenther  <rguenther@suse.de>
29964
29965         PR tree-optimization/38745
29966         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29967         from special handling.
29968
29969 2009-01-26  Richard Guenther  <rguenther@suse.de>
29970
29971         PR tree-optimization/38745
29972         * tree-ssa.c (execute_update_addresses_taken): Do not include
29973         variables that cannot possibly be a register in not_reg_needs.
29974         Do not clear TREE_ADDRESSABLE on vars that may not become
29975         registers.
29976         * tree-ssa.c (update_alias_info_1): Include those in the set
29977         of addressable vars.
29978
29979 2009-01-26  Richard Guenther  <rguenther@suse.de>
29980
29981         PR middle-end/38851
29982         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29983         * tree-ssa-dse.c: Include langhooks.h
29984         (execute_simple_dse): Remove stores with zero size.
29985
29986 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
29987
29988         PR c/38957
29989         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29990         as PLUS_EXPR.
29991
29992 2009-01-24  Julian Brown  <julian@codesourcery.com>
29993
29994         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29995         config/arm/linux-atomic.c.
29996         * config/arm/linux-atomic.c: New.
29997
29998 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
29999
30000         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
30001         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
30002         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
30003
30004 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30005
30006         PR c/38938
30007         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
30008         properly.
30009
30010 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
30011
30012         PR tree-optimization/38953
30013         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
30014         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
30015         (gloog): Split the exit of the scop when the scop exit is a loop exit.
30016         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
30017         changed the CFG.
30018
30019 2009-01-24  Paul Brook  <paul@codesourcery.com>
30020
30021         * config/arm/neon.md (neon_type): Move to arm.md.
30022         (neon_mov<VSTRUCT>): Add neon_type attribute.
30023         * config/arm/arm.md (neon_type): Move to here.
30024         (conds): Add "unconditioal" and use as default for NEON insns.
30025
30026 2009-01-24  Ben Elliston  <bje@au.ibm.com>
30027
30028         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
30029         void *' warning from -Wc++-compat.
30030         * Makefile.in (dominance.o-warn): Remove.
30031
30032 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
30033
30034         PR tree-optimization/38932
30035         * fold-const.c (fold_unary_ignore_overflow): New.
30036         * tree.h (fold_unary_ignore_overflow): Declare.
30037         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
30038         * tree-ssa-sccvn.c (visit_reference_op_load,
30039         simplify_unary_expression): Likewise.
30040
30041 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
30042
30043         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
30044         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
30045         regardless of their type.
30046         * c-common.c (handle_packed_attribute): Don't ignore packed on
30047         bitfields.
30048         * c.opt (Wpacked-bitfield-compat): New warning option.
30049         * stor-layout.c (place_field): Warn if offset of a field changed.
30050         * doc/extend.texi (packed): Mention the ABI change.
30051         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
30052         (Warning Options): Add it to the list.
30053
30054 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
30055
30056         * c-opts.c (c_common_post_options): Fix a typo in comments.
30057
30058 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
30059
30060         PR middle-end/38615
30061         * gimplify.c (gimplify_init_constructor): Fix promotion of const
30062         variables to static.
30063         * doc/invoke.texi (-fmerge-all-constants): Update description.
30064
30065 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
30066
30067         PR target/38931
30068         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
30069         (*movdi_1_rex64): Use type "mmx" for alternative 5.
30070
30071 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
30072
30073         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
30074         a word boundary.
30075         (LOCAL_ALIGNMENT): Similarly.
30076
30077 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
30078             Joseph Myers  <joseph@codesourcery.com>
30079
30080         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
30081         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
30082         * config/arm/arm-tune.md: Regenerate.
30083         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
30084         -march=iwmmxt2.
30085
30086 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
30087
30088         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
30089         version number to five.
30090
30091 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
30092
30093         PR c++/38930
30094         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
30095         * c-common.c (set_underlying_type): Likewise.
30096         (is_typedef_decl ): Likewise
30097         * tree.h: Likewise
30098         (set_underlying_type): Likewise.
30099         (is_typedef_type): Likewise.
30100
30101 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30102
30103         PR middle-end/38587
30104         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
30105         crossing setjmps.
30106
30107 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
30108
30109         PR bootstrap/37660
30110         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
30111         (LIBGCC_SPEC):  Don't define.
30112         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
30113
30114 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
30115
30116         PR rtl-optimization/38879
30117         * alias.c (base_alias_check): Unaligned access via AND address can
30118         alias all surrounding object types except those with sizes equal
30119         or wider than the size of unaligned access.
30120
30121 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
30122
30123         PR c++/26693
30124         * c-decl.c (clone_underlying_type): Move this ...
30125         * c-common.c (set_underlying_type): ... here.
30126         Also, make sure the function properly sets TYPE_STUB_DECL() on
30127         the newly created typedef variant type.
30128         (is_typedef_decl ): New entry point.
30129         * tree.h: Added a new member member_types_needing_access_check to
30130         struct tree_decl_non_common.
30131         (set_underlying_type): New entry point.
30132         (is_typedef_type): Likewise.
30133
30134 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
30135
30136         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
30137         Check whether two instructions have memory references that
30138         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
30139         are helper functions for traversing.
30140         * alias.h (insn_alias_sets_confilict_p): New prototypes.
30141         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
30142         not to draw dependency edge for instructions with non-conflicting
30143         alias sets.
30144
30145 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
30146
30147         PR other/38758
30148         * longlong.h: Update copyright years.  Use soft-fp license notice.
30149         Sync __clz_tab declaration with glibc.
30150
30151 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
30152
30153         PR target/30687
30154         * doc/extend.texi (syscall_linkage): New.
30155         (version_id): Modify.
30156
30157 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30158             Richard Guenther  <rguenther@suse.de>
30159
30160         PR tree-optimization/38747
30161         PR tree-optimization/38748
30162         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
30163         conversion if the base address is an indirect reference and the
30164         aliasing sets could cause issues.
30165
30166 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
30167
30168         * common.opt (fgraphite, fgraphite-identity): Add comment for
30169         explaining why these options are not documented.
30170
30171 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
30172
30173         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
30174         gimple_call_lhs is NULL.
30175
30176 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30177
30178         PR target/38868
30179         * emit-rtl.c (adjust_address_1): Make sure memref is never
30180         overwritten.
30181
30182 2009-01-20  Ben Elliston  <bje@au.ibm.com>
30183
30184         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30185         const qualifier from arg parameter. Remove unnecessary cast to char *.
30186         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30187         const qualifier from arg 2.
30188
30189 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
30190
30191         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
30192
30193 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
30194
30195         PR c/38869
30196         * rtl.h (reinit_regs): New prototype.
30197         * regclass.c: Include ira.h.
30198         (reinit_regs): New.
30199         * Makefile.in (regclass.o): Add ira.h.
30200         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
30201
30202 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30203
30204         PR target/38736
30205         * c-common.c (handle_aligned_attribute): Use
30206         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
30207         default alignment value.
30208
30209         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
30210
30211         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
30212         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
30213
30214         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
30215         __BIGGEST_ALIGNMENT__.
30216
30217         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
30218
30219 2009-01-18  Richard Guenther  <rguenther@suse.de>
30220
30221         PR tree-optimization/38819
30222         * tree-flow.h (operation_could_trap_helper_p): Declare.
30223         * tree-eh.c (operation_could_trap_helper_p): Export.
30224         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
30225         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
30226         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
30227         are about to insert a possibly trapping instruction and fail
30228         in this case.
30229
30230 2009-01-18  Andreas Schwab  <schwab@suse.de>
30231
30232         * doc/install.texi (Configuration): Remove obsolete paragraph
30233         about use of --with-gnu-ld with --with-gnu-as.
30234
30235 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
30236
30237         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
30238         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
30239         Follow spelling conventions.
30240
30241 2009-01-18  Ben Elliston  <bje@au.ibm.com>
30242
30243         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
30244         C++ warning about implicit conversion from void * to struct
30245         bitmap_head_def *.
30246         (bitmap_obstack_free): Likewise for bitmap_element *.
30247         * Makefile.in (bitmap.o-warn): Remove.
30248
30249 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
30250
30251         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
30252
30253 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
30254             Tobias Grosser  <tobi.grosser@amd.com>
30255
30256         * graphite.c (graphite_trans_scop_block): Do not block single
30257         nested loops.
30258
30259 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
30260
30261         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
30262         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
30263         test with assertion.
30264
30265 2009-01-16  Richard Guenther  <rguenther@suse.de>
30266
30267         PR tree-optimization/38835
30268         PR middle-end/36227
30269         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
30270         and INT + PTR -> (INT)(PTR p+ INT) folding.
30271         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
30272
30273 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
30274
30275         PR target/38554
30276         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
30277         the subreg from a lowpart subreg if it is also casting the value.
30278
30279 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
30280             Tobias Grosser  <tobi.grosser@amd.com>
30281
30282         * graphite.c (compare_prefix_loops): New.
30283         (build_scop_canonical_schedules): Rewritten.
30284         (graphite_transform_loops): Move build_scop_canonical_schedules
30285         after build_scop_iteration_domain.
30286
30287 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
30288             Tobias Grosser  <tobi.grosser@amd.com>
30289
30290         * graphite.c (add_conditions_to_domain): Add the loops to
30291         the dimension of the iteration domain.  Do copy the domain
30292         only when it exists.
30293         (build_scop_conditions_1): Do not call add_conditions_to_domain.
30294         (add_conditions_to_constraints): New.
30295         (can_generate_code_stmt, can_generate_code): Removed.
30296         (gloog): Do not call can_generate_code.
30297         (graphite_transform_loops): Call add_conditions_to_constraints
30298         after building the iteration domain.
30299
30300 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
30301
30302         PR tree-optimization/38789
30303         * tree-ssa-threadedge.c
30304         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
30305         __builtin_constant_p.
30306
30307 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
30308
30309         * dce.c (delete_unmarked_insns): Reversed the order that insns are
30310         examined before deleting them.
30311
30312 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
30313
30314         * function.c (aggregate_value_p): Correctly extract the function
30315         type from CALL_EXPR_FN lookup.
30316
30317 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30318
30319         * config/picochip/picochip.c (picochip_override_options): Revert
30320         CFI asm flag disable commited previously.
30321
30322 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
30323             Tobias Grosser  <tobi.grosser@amd.com>
30324             Jan Sjodin  <jan.sjodin@amd.com>
30325
30326         * graphite.c (scan_tree_for_params): On substractions negate
30327         all the coefficients of the term.
30328         (clast_to_gcc_expression_red): New.  Handle reduction expressions
30329         of more than two operands.
30330         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
30331         (get_vdef_before_scop): Handle also the case of default definitions.
30332
30333 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
30334
30335         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
30336         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
30337         Also use them when walking CALL_INSN_FUNCTION_USAGE.
30338
30339 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
30340             Joey Ye  <joey.ye@intel.com>
30341
30342         PR middle-end/37843
30343         * cfgexpand.c (expand_stack_alignment): Don't update stack
30344         boundary nor check incoming stack boundary here.
30345         (gimple_expand_cfg): Update stack boundary and check incoming
30346         stack boundary here.
30347
30348 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
30349
30350         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
30351
30352 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
30353
30354         PR rtl-optimization/38245
30355         * calls.c (expand_call): Add stack arguments to
30356         CALL_INSN_FUNCTION_USAGE even for pure calls (when
30357         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
30358         in regs and partially in memory or BLKmode arguments.
30359         (emit_library_call_value_1): Add stack arguments to
30360         CALL_INSN_FUNCTION_USAGE even for pure calls (when
30361         ACCUMULATE_OUTGOING_ARGS).
30362         * dce.c: Include tm_p.h.
30363         (find_call_stack_args): New function.
30364         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
30365         argument.
30366         (mark_insn): Call find_call_stack_args for CALL_Ps.
30367         (prescan_insns_for_dce): Walk insns backwards in bb rather than
30368         forwards.  Allocate and free arg_stores bitmap if needed, pass it
30369         down to deletable_insn_p, don't mark stores set in arg_stores
30370         bitmap, clear the bitmap at the beginning of each bb.
30371         * Makefile.in (dce.o): Depend on $(TM_P_H).
30372
30373 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
30374
30375         PR target/22599
30376         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
30377         to make sure the insn is a conditional test (bug 22599).  Reformat a
30378         few long lines.
30379
30380 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
30381
30382         PR middle-end/38431
30383         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
30384         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
30385         (gloog): Do not call cleanup_tree_cfg.
30386         (graphite_transform_loops): Call cleanup_tree_cfg after all
30387         scops have been code generated.
30388
30389 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
30390         * doc/gty.texi (Invoking the garbage collector): Added new node
30391         and section documenting ggc_collect.
30392
30393 2009-01-14  Richard Guenther  <rguenther@suse.de>
30394
30395         PR tree-optimization/38826
30396         PR middle-end/38477
30397         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
30398         initialization notes only if we actually emitted a warning.
30399         (intra_create_variable_infos): Add constraints for a result decl
30400         that is passed by hidden reference.
30401         (build_pred_graph): Mark all related variables non-direct on
30402         address-taking.
30403
30404 2009-01-14  Nick Clifton  <nickc@redhat.com>
30405
30406         * ira-conflicts.c: Include addresses.h for the definition of
30407         base_reg_class.
30408         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
30409         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
30410
30411 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
30412
30413         PR target/38811
30414         * Makefile.in (ira-lives.o): Add except.h.
30415
30416         * ira-lives.c: Include except.h.
30417         (process_bb_node_lives): Process can_throw_internal.
30418
30419 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
30420
30421         PR rtl-optimization/38774
30422         * combine.c (simplify_set): When undoing cc_use change, don't do
30423         PUT_CODE on the newly created comparison, but instead put back the
30424         old comparison.
30425
30426 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
30427
30428         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
30429         values.  Remove duplicate arm8 entry.
30430
30431 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30432
30433         PR tree-optimization/38786
30434         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30435         the SSA_NAME case of expand_scalar_variables_expr.
30436         Set the type of an expression to the type of its assign statement.
30437         (expand_scalar_variables_expr): Also gather the scalar computation
30438         used to index the memory access.  Do not pass loop_p.
30439         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
30440         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30441         the gimple_stmt_iterator where it inserts new code.
30442         Do not pass loop_p.
30443         (copy_bb_and_scalar_dependences): Do not pass loop_p.
30444         (translate_clast): Update call to copy_bb_and_scalar_dependences.
30445
30446 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30447
30448         * graphite.h (debug_value): Removed.
30449         * graphite.c (debug_value): Removed.
30450
30451 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30452
30453         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30454         ldrd/strd with two 32-bit instructions.
30455
30456 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30457
30458         * config/arm/arm.c (struct processors): Pass for speed down into
30459         cost helper functions.
30460         (const_ok_for_op): Handle COMPARE and inequality nodes.
30461         (arm_rtx_costs_1): Rewrite.
30462         (arm_size_rtx_costs): Update prototype.
30463         (arm_rtx_costs): Pass speed down to helper functions.
30464         (arm_slowmul_rtx_costs): Rework cost calculations.
30465         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30466         (arm_9e_rtx_costs): Likewise.
30467
30468 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
30469
30470         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30471         relocations of local symbols wider than UNITS_PER_WORD are not valid.
30472         (alpha_legitimize_address): Do not split local symbols wider than
30473         UNITS_PER_WORD into HIGH/LO_SUM parts.
30474
30475 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
30476
30477         PR bootstrap/38580
30478         * gcc.c (process_command): Replace call to execvp with calls
30479         to pex_one and exit.
30480
30481 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
30482
30483         PR target/29141
30484         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30485         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30486         variant for devices with 3-byte PC.
30487         (__tablejump_elpm__): New.
30488
30489 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30490
30491         PR c/32041
30492         * c-parser.c (c_parser_postfix_expression): Allow `->' in
30493         offsetof member-designator, handle it as `[0].'.
30494
30495 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30496
30497         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30498         function when not using named sections on targets with named sections
30499         if branch distance is less than 262132.
30500
30501 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
30502
30503         * combine.c (combine_instructions):  Recompute
30504         optimize_this_for_speed_p  for each BB in the main combine loop.
30505
30506 2009-01-12  Tomas Bily  <tbily@suse.cz>
30507
30508         PR middlend/38385
30509         * tree-loop-distribution.c (prop_phis): New function.
30510         (generate_builtin): Call prop_phis.
30511
30512 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30513
30514         PR tree-optimization/38807
30515         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30516         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30517
30518 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
30519
30520         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30521         subreg of op0 to the original op0.
30522
30523 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
30524
30525         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30526
30527 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
30528
30529         PR debug/7055
30530         * mips-tfile.c (parse_def): Fix parsing of def strings
30531         starting with digits.
30532
30533 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
30534
30535         PR target/38695
30536         * config/arm/arm.c (arm_is_long_call_p): Don't call
30537         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30538
30539 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
30540
30541         * regrename.c (regrename_optimize): Fix dumping.
30542         (find_oldest_value_reg): Preserve REG_POINTER.
30543         (copy_hardreg_forward_1): Likewise.
30544
30545 2009-01-09  Diego Novillo  <dnovillo@google.com>
30546
30547         * gimple.h (struct gimple_statement_base) <uid>: Document
30548         the restrictions on its use.
30549         (gimple_uid): Tidy.
30550         (gimple_set_uid): Tidy.
30551
30552 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30553
30554         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30555         zero guard even if align_bytes != 0 and count is smaller than
30556         size_needed.
30557
30558 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
30559
30560         PR rtl-optimization/38495
30561         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30562         (add_range_and_copies_from_move_list): Print all added ranges.
30563         Add ranges to memory optimized destination.
30564
30565 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30566
30567         PR target/38686
30568         PR target/38708
30569         * config/i386/i386.c (override_options): Reject
30570         -mstringop-strategy=rep_8byte with -m32.
30571         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30572         to 1.  Do count comparison against epilogue_size_needed at compile
30573         time even when count_exp was constant forced into register.  For
30574         size_needed don't jump to epilogue, instead just avoid aligning
30575         and invoke the body algorithm.  If need_zero_guard, add zero guard
30576         even if count is non-zero, but smaller than size_needed + number of
30577         bytes that could be stored for alignment.
30578         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30579         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
30580         but smaller than size_needed + number of bytes that could be stored
30581         for alignment.  Compare size_needed with epilogue_size_needed instead
30582         of desired_align - align, don't adjust size_needed, pass
30583         epilogue_size_needed to the epilogue expanders.
30584
30585         PR c/35742
30586         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30587
30588 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30589
30590         * pa.c (last_address): Change to unsigned.
30591         (update_total_code_bytes): Change argument to unsigned.  Don't
30592         check if insn addresses are set.
30593         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30594         addresses are not set.
30595         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30596
30597 2009-01-09  Nick Clifton  <nickc@redhat.com>
30598
30599         * config/sh/symbian.c: Replace uses of DECL_INLINE with
30600         DECL_DECLARED_INLINE_P.
30601
30602 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30603
30604         PR middle-end/38347
30605         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30606         GET_MODE (op0) in operand_subword_force calls.
30607
30608         PR middle-end/38771
30609         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30610         fold_convert arg0 operands to TREE_TYPE (op0) first.
30611
30612 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
30613
30614         * params.def (ira-max-conflict-table-size): Decrease default value
30615         to 1000.
30616
30617 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
30618
30619         PR tree-optimization/37031
30620         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30621         on parameter_set.
30622         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30623         allocate it using gc instead of heap, use VEC_quick_push instead of
30624         VEC_safe_push.
30625         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30626         instead of heap, use VEC_quick_push instead of VEC_safe_push.
30627         * tree-data-ref.h (struct access_matrix): Change matrix to gc
30628         allocated vector from heap allocated.
30629         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30630         * tree-loop-linear.c (linear_transform_loops): Allocate nest
30631         vector only after perfect_loop_nest_depth call.
30632
30633 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
30634             Jan Sjodin  <jan.sjodin@amd.com>
30635
30636         PR tree-optimization/38559
30637         * graphite.c (debug_value, copy_constraint,
30638         swap_constraint_variables, scale_constraint_variable, ): New.
30639         (get_lower_bound, get_upper_bound): Removed.
30640         (graphite_trans_bb_strip_mine): Clean up this code that works
30641         only for constant number of iterations.  Fully copy upper and
30642         lower bound constraints, not only the constant part of them.
30643         * graphite.h (debug_value): Declared.
30644
30645 2009-01-08  Ira Rosen  <irar@il.ibm.com>
30646
30647         PR tree-optimization/37194
30648         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30649         Don't add the cost of cost model guard in prologue to scalar
30650         outside cost in case of known number of iterations.
30651
30652 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
30653             Alan Modra  <amodra@bigpond.net.au>
30654
30655         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30656         non-word-aligned REG+CONST addressing.
30657
30658 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30659
30660         PR target/38706
30661         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30662         free_after_compilation when outputting a thunk.
30663         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30664         Do not call free_after_compilation here.
30665
30666 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30667
30668         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30669         (ix86_valid_target_attribute_inner_p): Ditto.
30670
30671 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
30672
30673         PR tree-optimization/38492
30674         PR tree-optimization/38498
30675         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30676         * tree-chrec.h (scev_is_linear_expression): Declared.
30677         * graphite.c (graphite_cannot_represent_loop_niter): New.
30678         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30679         (graphite_loop_normal_form): Use gcc_assert.
30680         (scan_tree_for_params): Use CASE_CONVERT.
30681         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30682         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30683         Use gcc_assert.  Discard scops that contain unhandled cases.
30684         (build_scop_conditions): Return a boolean status for unhandled cases.
30685         (strip_mine_profitable_p): Print the loop number, not its depth.
30686         (is_interchange_valid): Pass the depth of the loop nest, don't
30687         recompute it wrongly.
30688         (graphite_trans_bb_block): Same.
30689         (graphite_trans_bb_block): Print tentative of loop blocking.
30690         (graphite_trans_scop_block): Do not print that the loop has been
30691         blocked.
30692         (graphite_transform_loops): Do not handle scops that contain condition
30693         scalar phi nodes.
30694
30695 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30696
30697         AVX Programming Reference (December, 2008)
30698         * config/i386/avxintrin.h (_mm256_stream_si256): New.
30699         (_mm256_stream_pd): Likewise.
30700         (_mm256_stream_ps): Likewise.
30701
30702         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30703         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30704         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30705         (bdesc_special_args): Add __builtin_ia32_movntdq256,
30706         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30707         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30708         (ix86_expand_special_args_builtin): Likewise.
30709
30710         * config/i386/sse.md (AVXMODEDI): New.
30711         (avx_movnt<mode>): Likewise.
30712         (avx_movnt<mode>): Likewise.
30713         (<sse>_movnt<mode>): Remove AVX support.
30714         (sse2_movntv2di): Likewise.
30715
30716 2009-01-07  Richard Guenther  <rguenther@suse.de>
30717
30718         PR middle-end/38751
30719         * fold-const.c (extract_muldiv): Remove obsolete comment.
30720         (fold_plusminus_mult_expr): Undo MINUS_EXPR
30721         to PLUS_EXPR canonicalization for the canonicalization.
30722
30723 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
30724
30725         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30726         hosted cross-compilers generating less efficient code.
30727
30728 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30729
30730         * function.h (rtl_data): Add a dbr_scheduled_p field.
30731         * reorg.c (dbr_schedule): Set it.
30732         (gate_handle_delay_slots): Check it.
30733         * config/mips/mips.c (mips_base_delayed_branch): Delete.
30734         (mips_reorg): Check flag_delayed_branch instead of
30735         mips_base_delayed_branch.
30736         (mips_override_options): Don't set mips_base_delayed_branch
30737         or flag_delayed_branch.
30738
30739 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30740
30741         PR rtl-optimization/38426.
30742         * ira.c (ira): Set current_function_is_leaf earlier.
30743
30744 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
30745
30746         PR rtl-optimization/38722
30747         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30748         too early, only set a flag and modify after last possible
30749         undo_all point.
30750
30751 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
30752
30753         PR c/34252
30754         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30755         * real.c (decimal_single_format): Correct values of emin and emax.
30756         (decimal_double_format): Ditto.
30757         (decimal_quad_format): Ditto.
30758         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30759         computation of DECnn_MIN and DECnn_MAX for corrected values of
30760         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
30761         __DECnn_MIN__, and adjust its computation for the corrected value
30762         of emin.
30763
30764 2009-01-06  Jan Hubicka  <jh@suse.cz>
30765
30766         PR target/38744
30767         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30768
30769 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30770
30771         * doc/contrib.texi (Contributors): Slightly adjust the end note.
30772         Add Robert Clark to the list of testers.
30773
30774 2009-01-06  Jan Hubicka  <jh@suse.cz>
30775             Kai Tietz  <kai.tietz@onevision.com>
30776
30777         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30778         * config/i386/i386.c (ix86_expand_call): Add clobbers.
30779
30780 2009-01-06  Jan Hubicka  <jh@suse.cz>
30781             Kai Tietz  <kai.tietz@onevision.com>
30782
30783         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30784         for w64 ABI.
30785         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30786         (ix86_nsaved_regs): Count only general purpose regs.
30787         (ix86_nsaved_sseregs): New.
30788         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30789         to 16 for w64; compute padding and size of sse reg save area.
30790         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30791         general purpose regs.
30792         (ix86_emit_save_sse_regs_using_mov): New.
30793         (ix86_expand_prologue): Save SSE regs if needed.
30794         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30795         (ix86_emit_restore_sse_regs_using_mov): New.
30796         (ix86_expand_epilogue): Save SSE regs if needed.
30797
30798 2009-01-06  Jan Hubicka  <jh@suse.cz>
30799             Kai Tietz  <kai.tietz@onevision.com>
30800
30801         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30802         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30803         functions when accumulate outgoing args is off.
30804
30805 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30806
30807         PR bootstrap/38742
30808         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30809         before using pseudos_have_intersected_live_ranges_p.
30810
30811         * ira-int.h (ira_assert): Always define.
30812
30813 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30814
30815         AVX Programming Reference (December, 2008)
30816         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30817         (_mm256_permute2_pd): Likewise.
30818         (_mm_permute2_ps): Likewise.
30819         (_mm256_permute2_ps): Likewise.
30820         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30821         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30822
30823         * config/i386/i386.c (ix86_builtins): Remove
30824         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30825         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30826         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30827         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30828         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30829         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30830         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30831         __builtin_ia32_vpermil2ps256.
30832         (ix86_init_mmx_sse_builtins): Updated.
30833         (ix86_expand_args_builtin): Likewise.
30834
30835 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30836
30837         * pa.c (output_call): Relocate non-jump insns in the delay slot of
30838         long absolute calls when generating PA 2.0 code.
30839
30840 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
30841
30842         PR rtl-optimization/38583
30843         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30844
30845         * params.def (ira-max-conflict-table-size): New.
30846
30847         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30848
30849         * ira.h (ira_conflicts_p): New external definition.
30850
30851         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30852         table.  Report this.  Return result of building.
30853         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
30854         building conflict table.
30855
30856         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30857         (ira_color): Use ira_conflicts_p.
30858
30859         * global.c: Include ira.h.
30860         (pseudo_for_reload_consideration_p, build_insn_chain): Use
30861         ira_conflicts_p.
30862
30863         * Makefile.in (global.o): Add ira.h.
30864
30865         * ira-build.c (mark_all_loops_for_removal,
30866         propagate_some_info_from_allocno): New.
30867         (remove_unnecessary_allocnos): Call
30868         propagate_some_info_from_allocno.
30869         (remove_low_level_allocnos): New.
30870         (remove_unnecessary_regions): Add parameter.  Call
30871         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
30872         parameter to remove_unnecessary_regions.
30873         (ira_build): Remove all regions but root if the conflict table was
30874         not built.  Update conflict hard regs for allocnos crossing calls.
30875
30876         * ira.c (ira_conflicts_p): New global.
30877         (ira): Define and use ira_conflicts_p.
30878
30879         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30880         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30881         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30882
30883 2009-01-06  Ben Elliston  <bje@au.ibm.com>
30884
30885         * gengtype-lex.l (YY_NO_INPUT): Define.
30886
30887 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30888
30889         PR c/34911
30890         * c-common.c (handle_vector_size_attribute): Also reject
30891         BOOLEAN_TYPE types.
30892
30893 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
30894
30895         PR tree-optimization/38492
30896         * graphite.c (rename_map_elt, debug_rename_elt,
30897         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30898         rename_map_elt_info, eq_rename_map_elts,
30899         get_new_name_from_old_name, bb_in_sese_p): Moved around.
30900         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30901         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30902         (sese_build_livein_liveouts): New.
30903         (new_sese, free_sese): New.
30904         (new_scop): Call new_sese.
30905         (free_scop): Call free_sese.
30906         (rename_variables_from_edge, rename_phis_end_scop): Removed.
30907         (register_old_new_names): Renamed register_old_and_new_names.
30908         (register_scop_liveout_renames, add_loop_exit_phis,
30909         insert_loop_close_phis, struct igp,
30910         default_liveout_before_guard, add_guard_exit_phis,
30911         insert_guard_phis, copy_renames): New.
30912         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30913         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30914         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30915         (scop_adjust_phis_for_liveouts): New.
30916         (gloog): Call scop_adjust_phis_for_liveouts.
30917
30918         * graphite.h (struct sese): Documented.  Added fields liveout,
30919         num_ver and livein.
30920         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30921         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30922         (struct scop): Added field liveout_renames.
30923         (SCOP_LIVEOUT_RENAMES): New.
30924
30925 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30926
30927         PR tree-optimization/38510
30928         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30929         (translate_clast): Call recompute_all_dominators before
30930         graphite_verify.
30931         (gloog): Call recompute_all_dominators before graphite_verify.
30932
30933 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30934             Jan Sjodin  <jan.sjodin@amd.com>
30935
30936         PR tree-optimization/38500
30937         * graphite.c (create_sese_edges): Call fix_loop_structure after
30938         splitting blocks.
30939
30940 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
30941
30942         * config.gcc: Add m32r*-*-rtems*.
30943         * config/m32r/rtems.h: New file.
30944
30945 2009-01-05  Ben Elliston  <bje@au.ibm.com>
30946
30947         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30948         (.po.pox): Likewise.
30949         (po/gcc.pot): Likewise.
30950
30951 2009-01-04  David S. Miller  <davem@davemloft.net>
30952
30953         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30954         (STARTING_FRAME_OFFSET): Always set to zero.
30955
30956 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30957
30958         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30959         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30960         fixed-point types, and vectors of the same.
30961
30962 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30963
30964         * config/mips/sync.md (*mb_barrier): Rename to...
30965         (*memory_barrier): ...this.
30966
30967 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
30968
30969         * doc/extend.texi (Function Attributes): Move @cindex after @item
30970         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
30971         and put in alphabetical order. Fix 'target' name and put in order.
30972         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30973         typos.
30974
30975 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
30976
30977         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30978         (memory_barrier): Expand as unspec instead of unspec_volatile.
30979         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30980         (*memory_barrier): Define as unspec instead of unspec_volatile.
30981         Use (match_dup 0) as input operand.
30982
30983         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30984         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30985         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
30986         scratch register.  Remove operand 1.
30987         (*stbar): Define as unspec instead of unspec_volatile.
30988         Use (match_dup 0) as input operand, remove (const_int 8).
30989         (*membar): Define as unspec instead of unspec_volatile.
30990         Use (match_dup 0) as input operand, remove input operand 2.
30991
30992         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30993         (memory_barrier): Expand as unspec instead of unspec_volatile.
30994         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30995         (*memory_barrier): Define as unspec instead of unspec_volatile.
30996         Use (match_dup 0) as input operand.
30997
30998         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30999         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31000         Set volatile flag on operand 0.
31001         (*memory_barrier): New insn pattern.
31002
31003         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
31004         insn operands.
31005         (*memory_barrier): Use (match_dup 0) as input operand.
31006
31007         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
31008         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31009         Set volatile flag on operand 0.
31010         (*mb_internal): New insn pattern.
31011
31012         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
31013
31014 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
31015
31016         PR middle-end/38586
31017         * function.c (struct temp_slot): Move to the section of the file
31018         that deals with temp slots.  Remove field 'address'.
31019         (temp_slot_address_table): New hash table of address -> temp slot.
31020         (struct temp_slot_address_entry): New struct, items for the table.
31021         (temp_slot_address_compute_hash, temp_slot_address_hash,
31022         temp_slot_address_eq, insert_temp_slot_address): Support functions
31023         for the new table.
31024         (find_temp_slot_from_address): Rewrite to use the new hash table.
31025         (remove_unused_temp_slot_addresses): Remove addresses of temp
31026         slots that have been made available.
31027         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
31028         worker function for remove_unused_temp_slot_addresses.
31029         (assign_stack_temp_for_type): Don't clear the temp slot address list.
31030         Add the temp slot address to the address -> temp slot map.
31031         (update_temp_slot_address): Update via insert_temp_slot_address.
31032         (free_temp_slots): Call remove_unused_temp_slot_addresses.
31033         (pop_temp_slots): Likewise.
31034         (init_temp_slots): Allocate the address -> temp slot map, or empty
31035         the map if it is already allocated.
31036         (prepare_function_start): Initialize temp slot processing.
31037
31038 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
31039
31040         PR middle-end/38584
31041         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
31042         Calculate the size of all stack vars assuming no packing of stack
31043         vars will happen, replacing a quadratic algorithm with a linear one.
31044
31045 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
31046
31047         PR target/38707
31048         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
31049         can't be used.
31050
31051 2009-01-03  Diego Novillo  <dnovillo@google.com>
31052
31053         * doc/contrib.texi: Update contributions.
31054
31055 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
31056
31057         PR c++/38705
31058         * builtins.c (fold_builtin_memory_op): Give up if either operand
31059         is volatile.  Set srctype or desttype to non-qualified version
31060         of the other type.
31061
31062         PR c/38700
31063         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
31064         and FUNCTION_DECLs.
31065
31066 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
31067
31068         PR rtl-optimization/35805
31069         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
31070         problem if fast dce is able to remove any instructions.
31071         * dce.c (dce_process_block): Fix dump message.
31072
31073 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
31074
31075         PR 33649
31076         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
31077
31078 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
31079
31080         PR middle-end/38690
31081         * tree-flow.h (op_code_prio, op_prio): New prototypes.
31082         * tree-pretty-print.c (op_code_prio): New function.
31083         (op_prio): No longer static.  Use op_code_prio.
31084         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
31085         Use op_prio and op_code_prio to determine if () should be
31086         printed around operand(s) or not.
31087
31088         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
31089         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
31090         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
31091         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
31092         pp_character instead of pp_string for single letter printing.
31093
31094 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31095
31096         * doc/extend.texi: Fix '#pragma GCC option' typo.
31097
31098 2009-01-02  Richard Guenther  <rguenther@suse.de>
31099
31100         * doc/install.texi (--enable-checking): Mention different
31101         default for stage1.
31102         (--enable-stage1-checking): Document.
31103
31104 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
31105
31106         PR middle-end/30142
31107         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
31108         case to be an error.
31109
31110 2009-01-02  Ben Elliston  <bje@au.ibm.com>
31111
31112         * config/fp-bit.h (pack_d): Constify argument.
31113         * config/fp-bit.c (makenan): Constify return type. Remove casts.
31114         (isnan): Constify argument.
31115         (isinf): Likewise.
31116         (iszero): Likewise.
31117         (pack_d): Likewise.
31118         (_fpadd_parts): Constify return type.
31119         (_fpmul_parts): Likewise.
31120         (_fpdiv_parts): Likewise.
31121
31122 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
31123
31124         PR c/36489
31125         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
31126         warn about overwriting initializer with side-effects or
31127         -Woverride-init if !IMPLICIT.
31128         (output_init_element): Likewise.  Pass IMPLICIT down to
31129         add_pending_init.
31130         (process_init_element): Add IMPLICIT argument.  Pass it down
31131         to output_init_element.
31132         (push_init_element, pop_init_level, set_designator): Adjust
31133         process_init_element callers.
31134         (set_nonincremental_init, set_nonincremental_init_from_string):
31135         Adjust add_pending_init callers.
31136         (output_pending_init_elements): Adjust output_init_element callers.
31137         * c-tree.h (process_init_element): Adjust prototype.
31138         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
31139         process_init_element callers.
31140
31141 \f
31142 Copyright (C) 2009 Free Software Foundation, Inc.
31143
31144 Copying and distribution of this file, with or without modification,
31145 are permitted in any medium without royalty provided the copyright
31146 notice and this notice are preserved.