OSDN Git Service

84f4a5707ac9f687ee41eb99c0975e544963cbc9
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2
3         Merge
4
5         2009-02-12  Diego Novillo  <dnovillo@google.com>
6
7                 * varpool.c (debug_varpool): New.
8                 * cgraph.h (debug_varpool): Declare.
9
10 2009-04-02  Jan Hubicka  <jh@suse.cz>
11
12         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
13         pass.
14
15 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16
17         * config/i386/i386.c (ix86_abi): Move initialization to ...
18         (override_options): Here.
19
20 2009-04-02  Christian Bruel  <christian.bruel@st.com>
21
22         * config/sh/sh.c (sh_dwarf_register_span): New function.
23         (TARGET_DWARF_REGISTER_SPAN): Define.
24         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
25         
26 2009-04-02  Ira Rosen  <irar@il.ibm.com>
27
28         PR tree-optimization/39595
29         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of 
30         interleaved loads group is not  greater than the SLP group size.
31
32 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
33
34         * builtins.c (is_builtin_name): New.
35         (called_as_built_in): Use is_builtin_name.
36         * tree.h (is_builtin_name): New.
37         * varasm.c (incorporeal_function_p): Use is_builtin_name
38
39 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
40
41         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
42
43 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
44
45         PR c++/26693
46         * c-decl.c: (clone_underlying_type): Move this ...
47         * c-common.c (set_underlying_type): ... here.
48         Also, make sure the function properly sets TYPE_STUB_DECL() on
49         the newly created typedef variant type.
50         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
51         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry points.
52
53 2009-04-02  Richard Guenther  <rguenther@suse.de>
54
55         PR tree-optimization/37221
56         * tree-flow.h (degenerate_phi_result): Declare.
57         * tree-ssa-dom.c (degenerate_phi_result): Export.
58         * tree-scalar-evolution.c (analyze_initial_condition): If
59         the initial condition is defined by a degenerate PHI node
60         use the degenerate value.
61
62 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
63
64         PR rtl-optimization/39588
65         * combine.c (merge_outer_ops): Do not set the constant when this
66         is not necessary.
67         (simplify_shift_const_1): Do not modify it either in this case.
68
69 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
70
71         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
72         tuning is deprecated if -mtune value is set to an Itanium1 variant.
73
74 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
75
76         PR c/29027
77         * c-lex.c (interpret_float): Default (no suffix) is double.
78
79 2009-04-1  Xinliang David Li  <davidxl@google.com>
80
81         * config/i386/i386.c (legitimate_constant_p): Recognize
82         all one vector constant.
83
84 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
85
86         * gcc/config/vax/vax.c: Add #includes to silence warnings.
87         Change #include order to silence two warnings.
88
89 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
90
91         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
92         (ASM_SPEC): Pass -k to the assembler for PIC code.
93
94 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
95
96         * gcc/config.gcc: Add vax-*-linux* to the switch.
97         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
98         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
99
100 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
101
102         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
103         Use predicate macros instead of GET_CODE() == foo.
104         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
105         ashlsi3, rotrsi3, <unnamed>): Likewise.
106
107 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
108
109         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
110         jbbccihi, jbbccisi): Remova trailing whitespace.
111         * gcc/config/vax/constraints.md: Likewise.
112         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
113         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
114         * gcc/config/vax/predicates.md: Likewise.
115         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
116         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
117         * gcc/config/vax/vax.h: Likewise.
118         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
119
120 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
121
122         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
123         (indirectable_address_p, adjacent_operands_p): Add spaces around
124         braces.
125         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
126
127 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
128
129         * gcc/config/vax/vax.c (legitimate_constant_address_p,
130         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
131         index_term_p, reg_plus_index_p, legitimate_address_p,
132         vax_mode_dependent_address_p): Update comments to match functions
133         modified by the recent int->bool conversion.
134
135 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
136
137         * gcc/config/vax/builtins.md: Update copyright message.
138         * gcc/config/vax/constraints.md: Likewise.
139         * gcc/config/vax/netbsd-elf.h: Likewise.
140         * gcc/config/vax/predicates.md: Likewise.
141         * gcc/config/vax/vax-protos.h: Likewise.
142         * gcc/config/vax/vax.c: Likewise.
143         * gcc/config/vax/vax.h: Likewise.
144         * gcc/config/vax/vax.md: Likewise.
145         * gcc/config/vax/vax.opt: Likewise.
146
147 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
148
149         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
150         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
151         * gcc/config/vax/constraints.md (B, R): Likewise.
152         * gcc/config/vax/predicates.md (external_memory_operand,
153         nonimmediate_addsub_di_operand): Likewise.
154         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
155         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
156         untyped_call): Likewise.
157
158 2009-04-01      Matt Thomas <matt@3am-software.com>
159
160         * config/vax/predicates.md: New file. (symbolic_operand,
161         local_symbolic_operand, external_symbolic_operand,
162         external_const_operand, nonsymbolic_operand, external_memory_operand,
163         indirect_memory_operand, indexed_memory_operand,
164         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
165         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
166         predicate.
167         * config/vax/constraints.md: New file. (Z0, U06,  U08, U16, CN6, S08,
168         S16, I, J, K, L, M, N, O, G, Q, B, R, T): New constraint.
169         * config/vax/builtins.md: New file. (ffssi2, ffssi2_internal,
170         sync_lock_test_and_set<mode>, jbbssiqi, jbbssihi, jbbssisi,
171         sync_lock_release<mode>, jbbcciqi, jbbccihi, jbbccisi): Define.
172         * config/vax/vax.opt (mqmath): Add option.
173         * config/vax/vax.md (isfx): Extend with DI.
174         (VAXintQH, VAXintQHSD): Define.
175         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
176         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
177         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
178         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
179         (movdi): Update constraints and use vax_output_int_move().
180         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
181         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
182         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
183         nonlocal_goto): New.
184         (mov<mode>): Extend accepted operand types.
185         (subdi3_old): Rename from subdi3, change update constraints and use
186         a new implementation.
187         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
188         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
189         MOVE_RATIO, CLEAR_RATIO): Define.
190         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
191         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
192         (PRINT_OPERAND): Redefine using a function instead of inlined code.
193         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
194         (split_quadword_operands): Make static and really allow variable
195         splitting.
196         (print_operand_address): Update for PIC generation.
197         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
198         indexable_address_p, fixup_mathdi_operand,
199         vax_expand_addsub_di_operands, adjacent_operands_p): New.
200         (vax_float_literal, legitimate_constant_p,
201         indirectable_constant_address_p, index_term_p,
202         reg_plus_index_p): Return bool instead of int.
203         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
204         where needed.
205         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
206         generation.
207         (vax_output_conditional_branch): Indent.
208         (legitimate_constant_address_p, indirectable_constant_address_p,
209         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
210         vax_mode_dependent_address_p): Return bool instead of int, update for
211         PIC generation.
212         * config/vax/vax-protos.h (legitimate_constant_address_p,
213         legitimate_constant_p, legitimate_address_p,
214         vax_mode_dependent_address_p): Change declaration to bool.
215         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
216         vax_expand_addsub_di_operands, vax_output_int_subtract,
217         vax_output_movmemsi): Declare.
218         (split_quadword_operands, vax_float_literal): Delete declaration.
219         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
220         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
221         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
222         ASM_OUTPUT_DWARF_PCREL): Define.
223         (ASM_SPEC): Change definition to allow PIC generation.
224
225 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
226
227         PR target/39226
228         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
229         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
230         (booldi3_internal3): Use boolean_or_operator instead of
231         boolean_operator.
232
233 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
234
235         PR c/39605
236         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
237         declarator whose size is not an integer constant expression but
238         folds to an integer constant, then treat it as a constant
239         subsequently.
240
241 2009-04-01  Richard Guenther  <rguenther@suse.de>
242
243         * fold-const.c (fold_plusminus_mult_expr): Do not fold
244         i * 4 + 2 to (i * 2 + 1) * 2.
245
246 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
247
248         PR c/37772
249         * c-parser.c (c_parser_asm_statement): Skip until close paren and
250         return if c_parser_asm_string_literal returned NULL.
251
252 2009-04-01  Nick Clifton  <nickc@redhat.com>
253
254         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
255         already defined.
256         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
257         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
258         other typedefs to avoid conflicts with libgcc2.c.  Define labels
259         to gain 16-bit bit-manipulation functions from libgcc2.c and then
260         include it.
261         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
262         to gain 16-bit trapping arithmetic functions from libgcc2.c and
263         then include it.
264
265 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
266
267        * varasm.c (default_function_rodata_section): Declare DOT as const char*.
268
269 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
270             Andrey Galkin <agalkin@hypercom.com>
271
272         PR/39492
273         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
274         Make object_name unique for each process.
275
276 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
277
278         PR other/39591
279         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
280         addressable variables in the parallel that could go out of scope while
281         running queued tasks.
282
283 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
284
285         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
286         (CASE_VALUES_THRESHOLD): Redefine.
287         * config/avr/avr.c (avr_override_options): Remove initialization of
288         avr_case_values_threshold variable.
289         (avr_case_values_threshold): Remove variable. Add new function.
290         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
291         * config/avr/avr.opt (mno-tablejump): Remove option.
292         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
293
294 2009-04-01  DJ Delorie  <dj@redhat.com>
295
296         * varasm.c (default_function_rodata_section): Don't assume
297         anything about where the first '.' in the section name is.
298
299 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
300
301         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
302         rs6000_emit_stack_tie.
303
304 2009-03-31  Ian Lance Taylor  <iant@google.com>
305
306         * tree-eh.c (tree_remove_unreachable_handlers): Compare
307         gimple_code with GIMPLE_RESX, not RESX.
308
309 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
310
311         * c-common.c (c_get_ident): New.
312         (c_common_nodes_and_builtins): Call it for type names that may be
313         NULL.
314
315 2009-04-01  Ben Elliston  <bje@au.ibm.com>
316
317         * config/rs6000/sysv4.opt (msdata): Improve option description.
318
319 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
320
321         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
322         (divdf3_internal_lat): Remove.
323         (divxf3_internal_lat): Remove.
324         (divxf3_internal_thr): Remove.
325         (divxf): Use divxf3_internal.
326         * config/ia64/div.md (divsf3_internal_lat): New.
327         (divdf3_internal_lat): New.
328         (divxf3_internal): New.
329
330 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
331
332         PR c/448
333         * Makefile.in (USE_GCC_STDINT): Define.
334         (stmp-int-hdrs): Install stdint.h if applicable.
335         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
336         if known.
337         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
338         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
339         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
340         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
341         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
342         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
343         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
344         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
345         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
346         (c_common_nodes_and_builtins): Initialize
347         underlying_wchar_type_node.  Do not initialize
348         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
349         nodes for new types.
350         (c_stddef_cpp_builtins): Define macros for new types.
351         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
352         Remove.
353         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
354         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
355         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
356         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
357         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
358         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
359         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
360         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
361         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
362         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
363         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
364         int16_type_node, int32_type_node, int64_type_node,
365         uint8_type_node, uint16_type_node, c_uint32_type_node,
366         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
367         int_least32_type_node, int_least64_type_node,
368         uint_least8_type_node, uint_least16_type_node,
369         uint_least32_type_node, uint_least64_type_node,
370         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
371         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
372         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
373         uintptr_type_node): Define.
374         * c-cppbuiltin.c (builtin_define_constants,
375         builtin_define_type_minmax): New.
376         (builtin_define_stdint_macros): Define more macros.
377         (c_cpp_builtins): Define more limit macros.
378         (type_suffix): New.
379         (builtin_define_type_max): Define in terms of
380         builtin_define_type_minmax.  Remove is_long parameter.  All
381         callers changed.
382         * config.gcc (use_gcc_stdint): Define.
383         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
384         Add newlib-stdint.h for generic targets.
385         * config/glibc-stdint.h, config/newlib-stdint.h,
386         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
387         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
388         * config/score/score.h (UINTPTR_TYPE): Define.
389         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
390         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
391         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
392         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
393         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
394         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
395         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
396         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
397         * config/spu/spu.h (STDINT_LONG32): Define.
398         * configure.ac (use_gcc_stdint): Substitute.
399         * configure: Regenerate.
400         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
401         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
402         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
403         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
404         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
405         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
406         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
407         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
408         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
409         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
410         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
411         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
412         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
413         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
414         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
415         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
416         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
417         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
418         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
419         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
420         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
421         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
422         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
423         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
424         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
425         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
426         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
427         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
428         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
429
430 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
431
432         * loop-iv.c (suitable_set_for_replacement): Renamed from
433         simplify_using_assignment; changed to return bool and to accept new
434         args DEST and SRC.  Return true iff we find a source/destination pair
435         that can be used to make a replacement, and fill SRC and DEST if so.
436         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
437         changed.
438         (simplify_using_initial_values): Deal with altered regs here and track
439         more precisely the effect they have on the validity of our expression.
440
441         * loop-iv.c (simplify_using_condition): A condition of the form
442         (EQ REG CONST) can be used to simply make a substitution.
443         (simplify_using_initial_values): Keep track of conditions we have seen
444         and keep using them to simplify new expressions, while applying the
445         same substitutions to them as to the expression.
446
447         * simplify-rtx.c (simplify_relational_operation_1): Simplify
448         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
449         GEU/LTU reversed.
450
451         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
452         changed.  Use this when trying to improve the upper bound.
453         Generate the comparison by using simplify_gen_relational.
454
455         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
456
457         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
458         functions.
459         (simplify_using_assignment, simplify_using_initial_values): Call 
460         replace_in_expr to make replacements.  Call replace_single_def_regs
461         once on the initial version of the expression.
462
463 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
464
465         PR target/27237
466         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
467         
468 2009-03-31  Richard Guenther  <rguenther@suse.de>
469
470         PR middle-end/31029
471         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
472         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
473
474 2009-03-31  Richard Guenther  <rguenther@suse.de>
475
476         * tree.h (div_if_zero_remainder): Declare.
477         * fold-const.c (div_if_zero_remainder): Export.
478         * tree-ssa-forwprop.c
479         (forward_propagate_addr_into_variable_array_index): Handle
480         constant array index addition outside of the variable index.
481
482 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
483
484         PR target/39592
485         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
486         define_splits, floatunssi<mode>2): Require x87 conversions from
487         DImode to be permitted.
488
489 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
490
491         PR preprocessor/15638
492         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
493
494 2009-03-31  Richard Guenther  <rguenther@suse.de>
495
496         PR middle-end/23401
497         PR middle-end/27810
498         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
499         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
500         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
501         a separate statement.
502         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
503         (lookup_tmp_var): Likewise.
504         (is_gimple_formal_tmp_or_call_rhs): Remove.
505         (is_gimple_reg_or_call_rhs): Rename to ...
506         (is_gimple_reg_rhs_or_call): ... this.
507         (is_gimple_mem_or_call_rhs): Rename to ...
508         (is_gimple_mem_rhs_or_call): ... this.
509         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
510         DECL_GIMPLE_REG_P only if is_formal is true.
511         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
512         for non-proper post-modify expression gimplification.
513         (gimplify_self_mod_expr): For post-modify expressions gimplify
514         the lvalue to a minimal lvalue.
515         (rhs_predicate_for): Remove formal temp case.
516         (gimplify_modify_expr_rhs): Likewise.
517         (gimplify_addr_expr): Use is_gimple_reg.
518         (gimplify_expr): Remove formal temp cases.
519         (gimple_regimplify_operands): Likewise.
520         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
521         and FILTER_EXPR like constants.
522         * gimple.c (walk_gimple_op): Fix val_only initialization, use
523         is_gimple_reg.
524         (is_gimple_formal_tmp_rhs): Remove.
525         (is_gimple_reg_rhs): Remove special casing.
526         (is_gimple_mem_rhs): Fix.
527         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
528         (is_gimple_formal_tmp_var): Remove.
529         (is_gimple_formal_tmp_reg): Likewise.
530         (is_gimple_min_lval): Allow invariant component ref parts.
531         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
532         is_gimple_formal_tmp_reg): Remove declarations.
533         * tree-cfg.c (verify_expr): Verify that variables with address
534         taken do not have DECL_GIMPLE_REG_P set.
535         * tree-mudflap.c (mf_build_check_statement_for): Use
536         force_gimple_operand instead of gimplify_expr.
537
538 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
539
540         * modulo-sched.c (sms_schedule_by_order): Pass the actual
541         schedulable rows to compute_split_row.
542
543 2009-03-31  Ben Elliston  <bje@au.ibm.com>
544
545         PR target/31635
546         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
547         OPT_mvrsave.
548
549 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
550
551         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
552         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
553         * configure: Regenerate.
554         * config.in: Regenerate.
555         * config/rs6000/rs6000.opt (mtls-markers): Add.
556         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
557         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
558         (tls_ld_aix, tls_ld_sysv): Likewise.
559         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
560         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
561
562 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
563
564         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
565
566 2009-03-30  Jan Hubicka  <jh@suse.cz>
567
568         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
569         out of RESX.
570         (tree_remove_unreachable_handlers): Cleanup EH predecestor
571         detection and label handling.
572
573 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
574
575         * ira-int.h (ira_allocno): Rename left_conflicts_num to
576         left_conflicts_size.
577         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
578         ALLOCNO_LEFT_CONFLICTS_SIZE.
579
580         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
581         remove_allocno_from_bucket_and_push,
582         allocno_spill_priority_compare, push_allocnos_to_stack,
583         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
584         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
585         (setup_allocno_left_conflicts_num): Ditto.  Rename to
586         setup_allocno_left_conflicts_size.
587         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
588         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
589         setup_allocno_left_conflicts_size instead of
590         setup_allocno_left_conflicts_num.
591
592         * ira-build.c (ira_create_allocno): Use
593         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
594         ALLOCNO_LEFT_CONFLICTS_NUM.
595                 
596 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
597
598         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
599         instead of DF_LR_OUT.
600
601         * ira-lives.c (process_bb_node_lives): Ditto.
602
603         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
604         instead of DF_LR_{OUT,IN}.
605
606         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
607
608         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
609
610 2009-03-30  Jan Hubicka  <jh@suse.cz>
611
612         * except.c (label_to_region_map): Fix thinko.
613
614 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
615
616         PR middle-end/38237
617         * tree.h (tree_find_value): New declaration.
618         * tree.c (tree_find_value): New function.
619         * varasm.c (assemble_external): Avoid duplicate entries on lists.
620
621 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
622
623         PR debug/39563
624         * c-decl.c (struct c_binding): Add locus field.
625         (bind): Add locus argument, set locus field from it.
626         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
627         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
628         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
629         implicitly_declare, undeclared_variable, lookup_label,
630         declare_label, c_make_fname_decl, c_builtin_function,
631         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
632         bind callers.
633
634 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
635
636         PR target/38781
637         * config/i386/i386.c (classify_argument): Check total size of
638         structure.
639
640 2009-03-30  Martin Jambor  <mjambor@suse.cz>
641
642         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
643         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
644         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
645         respectively.
646
647         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
648         seen_variable_array_ref while also traversing a union.
649
650         * tree-inline.c (optimize_inline_calls): Do not call
651         cgraph_node_remove_callees.
652         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
653         (pass_remove_cgraph_callee_edges): New variable.
654         * passes.c (init_optimization_passes): Add
655         pass_remove_cgraph_callee_edges after early inlining and before all
656         late intraprocedural passes.
657
658         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
659
660 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
661
662         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
663         Fix typos in names.
664
665 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
666
667         * combine.c (simplify_comparison): Use have_insn_for.
668         * dojump.c (do_jump): Likewise.
669
670 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
671
672         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
673         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
674         sparc_compare_op0 like sparc_compare_emitted used to be handled.
675         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
676         instead of sparc_compare_emitted.
677         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
678         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
679         instead of sparc_compare_emitted.
680
681 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
682
683         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
684         enter/exit cfglayout mode.
685         (pass_partition_block): Require it.
686         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
687         (combine_instructions): Track basic blocks instead of labels.
688         (update_cfg_for_uncondjump): New.
689         (try_combine): Use it.  Update jumps after rescanning.
690         (pass_combine): Require PROP_cfglayout.
691         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
692
693 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
694
695         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
696         Provide/destroy PROP_cfglayout respectively.
697         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
698         * tree-pass.h (PROP_cfglayout): New.
699
700 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
701
702         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
703         fold_convert_const_fixed_from_fixed,
704         fold_convert_const_fixed_from_int,
705         fold_convert_const_fixed_from_real, fold_negate_const): Do not
706         set TREE_CONSTANT_OVERFLOW.
707         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
708         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
709
710 2009-03-30  Ira Rosen  <irar@il.ibm.com>
711
712         * tree-vect-loop-manip.c: New file.
713         * tree-vectorizer.c: Update documentation and included files.
714         (vect_loop_location): Make extern.
715         (rename_use_op): Move to tree-vect-loop-manip.c
716         (rename_variables_in_bb, rename_variables_in_loop, 
717         slpeel_update_phis_for_duplicate_loop, 
718         slpeel_update_phi_nodes_for_guard1,
719         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
720         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
721         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
722         set_prologue_iterations, slpeel_tree_peel_loop_to_edge, 
723         find_loop_location): Likewise.
724         (new_stmt_vec_info): Move to tree-vect-stmts.c.
725         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
726         get_vectype_for_scalar_type, vect_is_simple_use,
727         supportable_widening_operation, supportable_narrowing_operation):
728         Likewise.
729         (bb_in_loop_p): Move to tree-vect-loop.c.
730         (new_loop_vec_info, destroy_loop_vec_info, 
731         reduction_code_for_scalar_code, report_vect_op, 
732         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
733         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
734         (vect_supportable_dr_alignment): Likewise.
735         * tree-vectorizer.h (tree-data-ref.h): Include.
736         (vect_loop_location): Declare.
737         Reorganize function declarations according to the new file structure.
738         * tree-vect-loop.c: New file.
739         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, 
740         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
741         * tree-vect-data-refs.c: New file.
742         * tree-vect-patterns.c (timevar.h): Don't include.
743         * tree-vect-stmts.c: New file.
744         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, 
745         tree-vect-slp.c, tree-vect-loop.c.
746         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and 
747         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, 
748         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
749         (tree-vect-analyze.o): Remove.
750         (tree-vect-transform.o): Likewise.
751         (tree-vect-data-refs.o): Add rule.
752         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, 
753         tree-vect-slp.o): Likewise.
754         (tree-vect-patterns.o): Remove redundant dependencies.
755         (tree-vectorizer.o): Likewise.
756         * tree-vect-slp.c: New file.
757
758 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
759
760         * optc-gen.awk: Warn if an option flag has multiple different
761         help strings.
762
763 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
764
765         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
766         -floop-block): Document dependences on PPL, CLooG and Graphite.
767
768 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
769
770         PR rtl-optimization/323
771         * c-common.c (c_fully_fold, convert_and_check,
772         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
773         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
774         * c-common.def (EXCESS_PRECISION_EXPR): New.
775         * c-cppbuiltin.c (builtin_define_float_constants): Define
776         constants with enough digits for long double.
777         * c-lex.c (interpret_float): Interpret constant with excess
778         precision where appropriate.
779         * c-opts.c (c_common_post_options): Set
780         flag_excess_precision_cmdline.  Give an error for
781         -fexcess-precision=standard for C++ for processors where the
782         option is significant.
783         * c-parser.c (c_parser_conditional_expression): Handle excess
784         precision in condition.
785         * c-typeck.c (convert_arguments): Handle arguments with excess
786         precision.
787         (build_unary_op): Move excess precision outside operation.
788         (build_conditional_expr): Likewise.
789         (build_compound_expr): Likewise.
790         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
791         (build_modify_expr): Handle excess precision in RHS.
792         (convert_for_assignment): Handle excess precision in converted
793         value.
794         (digest_init, output_init_element, process_init_element): Handle
795         excess precision in initializer.
796         (c_finish_return): Handle excess precision in return value.
797         (build_binary_op): Handle excess precision in operands and add
798         excess precision as needed for operation.
799         * common.opt (-fexcess-precision=): New option.
800         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
801         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
802         For standard excess precision, output explicit conversion to and
803         truncation from XFmode.
804         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
805         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
806         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
807         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
808         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
809         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
810         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
811         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
812         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
813         define_splits, sqrt<mode>2): Disable where appropriate for
814         standard excess precision.
815         * convert.c (convert_to_real): Do not shorten arithmetic to type
816         for which excess precision would be used.
817         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
818         * doc/invoke.texi (-fexcess-precision=): Document option.
819         (-mfpmath=): Correct index entry.
820         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
821         flag_excess_precision): New.
822         * langhooks.c (lhd_post_options): Set
823         flag_excess_precision_cmdline.
824         * opts.c (common_handle_option): Handle -fexcess-precision=.
825         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
826         init_excess_precision): New.
827         (lang_dependent_init_target): Call init_excess_precision.
828         * tree.c (excess_precision_type): New.
829         * tree.h (excess_precision_type): Declare.
830
831 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
832
833         PR c/35235
834         * c-typeck.c (build_component_ref): Do not copy qualifiers from
835         non-lvalue to component.
836
837 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
838
839         PR preprocessor/34695
840         * Makefile.in (c-opts.o): Depend on c-tree.h.
841         * c-common.c: Move down include of diagnostic.h.
842         (done_lexing, c_cpp_error): New.
843         * c-common.h (done_lexing): Declare.
844         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
845         (parse_in).
846         * c-opts.c: Include c-tree.h.
847         (c_common_init_options): Set preprocessor error callback.
848         (c_common_handle_option): Do not set preprocessor
849         inhibit_warnings, warnings_are_errors, warn_system_headers,
850         pedantic_errors or inhibit_warnings flags.
851         (c_common_post_options): Do not check cpp_errors (parse_in).
852         (c_common_finish): Do not output dependencies if there were
853         errors.  Do not check return value of cpp_finish.
854         * c-ppoutput.c (pp_file_change): Set input_location.
855         * c-tree.h (c_cpp_error): Declare.
856         * diagnostic.c (diagnostic_set_info_translated): Also initialize
857         override_column.
858         (diagnostic_build_prefix): Check override_column.
859         * diagnostic.h (diagnostic_info): Add override_column field.
860         (diagnostic_override_column): Define.
861
862 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
863
864         * c-common.c (c_expand_expr, c_staticp): Remove.
865         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
866         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
867         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
868         * c-gimplify.c (gimplify_compound_literal_expr,
869         optimize_compound_literals_in_ctor): Remove.
870         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
871         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
872         * c-semantics.c (emit_local_var): Remove.
873
874         * langhooks-def.h (lhd_expand_expr): Remove.
875         * langhooks.c (lhd_expand_expr): Remove.
876         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
877
878         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
879         handling from c-semantics.c; don't call into langhook.
880         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
881         * gimplify.c (gimplify_compound_literal_expr,
882         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
883         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
884         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
885         as was done in c-gimplify.c.
886         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
887         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
888         Move from c-common.h.
889         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
890
891         * tree.c (staticp): Do not call langhook.
892         * langhooks.c (lhd_staticp): Delete.
893         * langhooks-def.h (lhd_staticp): Delete prototype.
894         (LANG_HOOKS_STATICP): Delete.
895         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
896
897         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
898         instead of DECL_STMTs.
899
900 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
901
902         PR c/456
903         PR c/5675
904         PR c/19976
905         PR c/29116
906         PR c/31871
907         PR c/35198
908         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
909         void_type_node.
910         (fold_call_expr): Return a NOP_EXPR from folding rather than the
911         contained expression.
912         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
913         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
914         conditional expressions for C.
915         (decl_constant_value_for_optimization): Move from
916         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
917         whether optimizing and that the expression is a VAR_DECL not of
918         array type instead of doing such checks in the caller.  Do not
919         check pedantic.  Call gcc_unreachable for C++.
920         * c-common.def (C_MAYBE_CONST_EXPR): New.
921         * c-common.h (c_fully_fold, c_save_expr,
922         decl_constant_value_for_optimization): New prototypes.
923         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
924         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
925         EXPR_INT_CONST_OPERANDS): Define.
926         * c-convert.c (convert): Strip nops from expression.
927         * c-decl.c (groktypename): Take extra parameters expr and
928         expr_const_operands.  Update call to grokdeclarator.
929         (start_decl): Update call to grokdeclarator.  Add statement for
930         expressions used in type of decl.
931         (grokparm): Update call to grokdeclarator.
932         (push_parm_decl): Update call to grokdeclarator.
933         (build_compound_literal): Add parameter non_const and build a
934         C_MAYBE_COSNT_EXPR if applicable.
935         (grokdeclarator): Take extra parameters expr and
936         expr_const_operands.  Track expressions used in declaration
937         specifiers and declarators.  Fold array sizes and track whether
938         they are constant expressions and whether they are integer
939         constant expressions.
940         (parser_xref_tag): Set expr and expr_const_operands fields in
941         return value.
942         (grokfield): Update call to grokdeclarator.
943         (start_function): Update call to grokdeclarator.
944         (build_null_declspecs): Set expr and expr_const_operands fields in
945         return value.
946         (declspecs_add_type): Handle expressions in typeof specifiers.
947         * c-parser.c (c_parser_declspecs): Set expr and
948         expr_const_operands fields for declaration specifiers.
949         (c_parser_enum_specifier): Likewise.
950         (c_parser_struct_or_union_specifier): Likewise.
951         (c_parser_typeof_specifier): Likewise.  Update call to
952         groktypename.  Fold expression as needed.  Return expressions with
953         type instead of adding statements.
954         (c_parser_attributes): Update calls to c_parser_expr_list.
955         (c_parser_statement_after_labels): Fold expression before passing
956         to objc_build_throw_stmt.
957         (c_parser_condition): Fold expression.
958         (c_parser_asm_operands): Fold expression.
959         (c_parser_conditional_expression): Use c_save_expr.  Update call
960         to build_conditional_expr.
961         (c_parser_alignof_expression): Update call to groktypename.
962         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
963         original_code.  Fold expression argument of va_arg.  Create
964         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
965         argument to va_arg.  Update calls to groktypename.  Fold array
966         index for offsetof.  Verify that first argument to
967         __builtin_choose_expr has integer type.
968         (c_parser_postfix_expression_after_paren_type): Update calls to
969         groktypename and build_compound_literal.  Handle expressions with
970         side effects in type name.
971         (c_parser_postfix_expression_after_primary): Update call to
972         c_parser_expr_list.  Set original_code for calls to
973         __builtin_constant_p.
974         (c_parser_expr_list): Take extra parameter fold_p.  Fold
975         expressions if requested.
976         (c_parser_objc_type_name): Update call to groktypename.
977         (c_parser_objc_synchronized_statement): Fold expression.
978         (c_parser_objc_receiver): Fold expression.
979         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
980         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
981         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
982         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
983         (struct c_typespec): Add elements expr and expr_const_operands.
984         (struct c_declspecs): Add elements expr and expr_const_operands.
985         (groktypename, build_conditional_expr, build_compound_literal):
986         Update prototypes.
987         (in_late_binary_op): Declare.
988         * c-typeck.c (note_integer_operands): New function.
989         (in_late_binary_op): New variable.
990         (decl_constant_value_for_broken_optimization): Move to c-common.c
991         and rename to decl_constant_value_for_optimization.
992         (default_function_array_conversion): Do not strip nops.
993         (default_conversion): Do not call
994         decl_constant_value_for_broken_optimization.
995         (build_array_ref): Do not fold result.
996         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
997         result when operand is a VLA.
998         (c_expr_sizeof_type): Update call to groktypename.  Handle
999         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
1000         result when operand names a VLA type.
1001         (build_function_call): Update call to build_compound_literal.
1002         Only fold result for calls to __builtin_* functions.  Strip
1003         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
1004         the function designator.
1005         (convert_arguments): Fold arguments.  Update call to
1006         convert_for_assignment.
1007         (build_unary_op): Handle increment and decrement of
1008         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
1009         decrement earlier.  Fold operand of increment and decrement.
1010         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
1011         built for integer operand.  Wrap returns that are INTEGER_CSTs
1012         without being integer constant expressions or that have integer
1013         constant operands without being INTEGER_CSTs.
1014         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
1015         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
1016         result is an integer constant expression or can be used in
1017         unevaluated parts of one and avoid folding and wrap as
1018         appropriate.  Fold operands before possibly doing -Wsign-compare
1019         warnings.
1020         (build_compound_expr): Wrap result for C99 if operands can be used
1021         in integer constant expressions.
1022         (build_c_cast): Update call to digest_init.  Do not ignore
1023         overflow from casting floating-point constants to integers.  Wrap
1024         results that could be confused with integer constant expressions,
1025         null pointer constants or floating-point constants.
1026         (c_cast_expr): Update call to groktypename.  Handle expressions
1027         included in type name.
1028         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
1029         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
1030         Update calls to convert_for_assignment.
1031         (convert_for_assignment): Take new parameter
1032         null_pointer_constant.  Do not strip nops or call
1033         decl_constant_value_for_broken_optimization.  Set
1034         in_late_binary_op for conversions to boolean.
1035         (store_init_value): Update call to digest_init.
1036         (digest_init): Take new parameter null_pointer_constant.  Do not
1037         call decl_constant_value_for_broken_optimization.  pedwarn for
1038         initializers not constant expressions.  Update calls to
1039         convert_for_assignment.
1040         (constructor_nonconst): New.
1041         (struct constructor_stack): Add nonconst element.
1042         (really_start_incremental_init, push_init_level, pop_init_level):
1043         Handle constructor_nonconst and nonconst element.
1044         (set_init_index): Call constant_expression_warning for array
1045         designators.
1046         (output_init_element): Fold value.  Set constructor_nonconst as
1047         applicable.  pedwarn for initializers not constant expressions.
1048         Update call to digest_init.  Call constant_expression_warning
1049         where constant initializers are required.
1050         (process_init_element): Use c_save_expr.
1051         (c_finish_goto_ptr): Fold expression.
1052         (c_finish_return): Fold return value.  Update call to
1053         convert_for_assignment.
1054         (c_start_case): Fold switch expression.
1055         (c_process_expr_stmt): Fold expression.
1056         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
1057         ensure statement expression is not evaluated in constant expression.
1058         (build_binary_op): Track whether results are integer constant
1059         expressions or may occur in such, disable folding and wrap results
1060         as applicable.  Fold operands for -Wsign-compare warnings unless
1061         in_late_binary_op.
1062         (c_objc_common_truthvalue_conversion): Handle results folded to
1063         integer constants that are not integer constant expressions.
1064         * doc/extend.texi: Document when typeof operands are evaluated,
1065         that condition of __builtin_choose_expr is an integer constant
1066         expression, and more about use of __builtin_constant_p in
1067         initializers.
1068
1069 2009-03-29  Richard Guenther  <rguenther@suse.de>
1070
1071         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1072         propagate addresses of array references.
1073
1074 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
1075
1076         * regmove.c (perhaps_ends_bb_p): Remove.
1077         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
1078         from INSN and check that the main loop stays within that basic block.
1079         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
1080         (regmove_forward_pass): Split out from regmove_optimize.  Use
1081         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
1082         (regmove_backward_pass): Split out from regmove_optimize.  Use
1083         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
1084         (regmove_optimize): Simplify.
1085
1086 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
1087
1088         PR target/39545
1089         * config/i386/i386.c (classify_argument): Ignore flexible array
1090         member in struct and warn ABI change.
1091
1092 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
1093
1094         * config/i386/i386-protos.h (ix86_agi_dependent): New.
1095
1096         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
1097         (ix86_adjust_cost): Updated.
1098
1099 2009-03-29  Jan Hubicka  <jh@suse.cz>
1100
1101         PR middle-end/28850
1102         * tree-pass.h (pass_cleanup_eh): New function.
1103         (remove_unreachable_regions): Break code handling RTL
1104         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
1105         that can not be reached by runtime.
1106         (can_be_reached_by_runtime): New function.
1107         (label_to_region_map): New function.
1108         (num_eh_regions): New function.
1109         (rtl_remove_unreachable_regions): New function.
1110         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
1111         (remove_eh_region): New function.
1112         * except.h: Include sbitmap and vecprim.
1113         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
1114         num_eh_regions): Declare.
1115         * passes.c (init_optimization_passes): Schedule cleanup_eh.
1116         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
1117         * tree-eh.c (tree_remove_unreachable_handlers): New function.
1118         (tree_empty_eh_handler_p): New function.
1119         (cleanup_empty_eh): New function.
1120         (cleanup_eh): New function.
1121         (pass_cleanup_eh): New function.
1122
1123 2009-03-29  Jan Hubicka  <jh@suse.cz>
1124
1125         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
1126         for removed regions.
1127
1128 2009-03-29  Jan Hubicka  <jh@suse.cz>
1129
1130         * except.c (dump_eh_tree): Dump all datastructures.
1131
1132 2009-03-29  Jan Hubicka  <jh@suse.cz>
1133
1134         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
1135         (duplicate_eh_regions_1): Likewise.
1136         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
1137         vector; call EH verification.
1138         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
1139         Be ready for region being removed.
1140
1141 2009-03-29  Jan Hubicka  <jh@suse.cz>
1142
1143         * bitmap.c (bitmap_last_set_bit): New function.
1144         * bitmap.h (bitmap_last_set_bit): Declare.
1145
1146 2009-03-29  David Ayers  <ayers@fsfe.org>
1147
1148         PR objc/27377
1149         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
1150         by calling objc_compare_types and surpress warnings about
1151         incompatible C pointers that are compatible ObjC pointers.
1152         
1153 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
1154
1155         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
1156         call initialize_inline_failed.
1157         (initialize_inline_failed): Move it from here ...
1158         * cgraph.c (initialize_inline_failed): ... to here.
1159         (cgraph_create_edge): Call initialize_inline_failed rather than
1160         setting inline_failed directly.
1161
1162 2009-03-29  Ben Elliston  <bje@au.ibm.com>
1163
1164         PR target/32542
1165         * sysv4.opt (msdata): Improve comment.
1166         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
1167         * sysv4.h (SVR4_ASM_SPEC): Likewise.
1168
1169 2009-03-29  Ben Elliston  <bje@au.ibm.com>
1170
1171         PR target/30451
1172         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
1173         load and store attributes.
1174
1175 2009-03-29  Ben Elliston  <bje@au.ibm.com>
1176
1177         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
1178         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
1179         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
1180         * doc/extend.texi (X86 Built-in Functions): Add index entries for
1181         __builtin_infq and __builtin_huge_valq.
1182
1183 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
1184
1185         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
1186         atmega8m1 devices.
1187         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1188         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
1189
1190 2009-03-28  Xinliang David Li  <davidxl@google.com>
1191
1192         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. 
1193         (do_dbg_cnt): New function.
1194
1195 2009-03-28  Jan Hubicka  <jh@suse.cz>
1196
1197         Merge from pretty-ipa:
1198
1199         2009-03-27  Jan Hubicka  <jh@suse.cz>
1200
1201         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
1202         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
1203         * passes.c (function_called_by_processed_nodes_p): New.
1204         * ipa-pure-const.c (check_call): Fix handling of operands.
1205         (analyze_function): Dump debug output for skipped bodies.
1206         (local_pure_const): Use function_called_by_processed_nodes_p.
1207         * dwarf2out.c (reference_to_unused): Use output.
1208         * passes.c (do_per_function_toporder): Likewise.
1209
1210         2008-11-12  Jan Hubicka  <jh@suse.cz>
1211
1212         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
1213         * ipa-pure-const.c (funct_state_d): Add can throw field; make
1214         state_set_in_source enum
1215         (check_decl): Ignore memory tags; do not set fake looping flags;
1216         dump diagnostics.
1217         (check_operand, check_tree, check_rhs_var, check_lhs_var,
1218         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
1219         (check_call, analyze_function): Rewrite.
1220         (check_stmt): New.
1221         (add_new_function): Update call of analyze_function.
1222         (generate_summary): Add call of analyze_function.
1223         (propagate): Propagate can_throw; handle state_set_in_source correctly.
1224         (local_pure_const): New function.
1225         (pass_local_pure_const): New pass.
1226         * ipa-inline.c (inline_transform): Set after_inlining.
1227         * tree-eh.c (stmt_can_throw_external): New.
1228         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
1229         work with aliasing built.
1230         * tree-flow.h (stmt_can_throw_external): New.
1231         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
1232         and local pure/const pass in early and late optimization queue.
1233
1234 2009-03-28  Martin Jambor  <mjambor@suse.cz>
1235
1236         * fold-const.c (get_pointer_modulus_and_residue): New parameter
1237         allow_func_align.
1238         (fold_binary): Allow function decl aligment consideration is the
1239         second argument is integer constant one.
1240         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
1241         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
1242         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
1243
1244 2009-03-28  Jan Hubicka  <jh@suse.cz>
1245
1246         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
1247         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
1248         * function.h (rtl_data): Add nothrow flag.
1249         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
1250         set DECL_NOTHROW for AVAILABLE functions.
1251
1252 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
1253
1254         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
1255         following vector keyword has expansion starting with pixel or bool
1256         keyword, expand vector to __vector and pixel or bool to __pixel or
1257         __bool.
1258
1259         PR c++/39554
1260         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
1261         warn_if_disallowed_function_p): Removed.
1262         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
1263         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
1264         warning_if_disallowed_function_p.
1265         * flags.h (warn_if_disallowed_function_p,
1266         warn_disallowed_functions): Removed.
1267         * common.opt (Wdisallowed-function-list=): Removed.
1268         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
1269
1270 2009-03-28  Richard Guenther  <rguenther@suse.de>
1271
1272         PR tree-optimization/38723
1273         * tree-ssa-pre.c (compute_avail): Add all default definitions to
1274         the entry block.
1275
1276 2009-03-28  Jan Hubicka  <jh@suse.cz>
1277
1278         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
1279         test introduced by my previous patch.
1280
1281 2009-03-28  Richard Guenther  <rguenther@suse.de>
1282
1283         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
1284         the PHIs value undefined.
1285
1286 2009-03-28  Jan Hubicka  <jh@suse.cz>
1287
1288         * tree-pass.h (pass_fixup_cfg): New pass.
1289         * ipa-inline.c (inline_transform): Set
1290         always_inline_functions_inlined/after_inlining.
1291         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
1292         (pass_fixup_cfg): New pass.
1293         * passes.c (init_optimization_passes): Add fixup_cfg.
1294
1295 2009-03-28  Richard Guenther  <rguenther@suse.de>
1296
1297         PR tree-optimization/38458
1298         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
1299         argument use the arguments copy-of value.
1300
1301 2009-03-28  Richard Guenther  <rguenther@suse.de>
1302
1303         PR tree-optimization/38180
1304         * tree-ssa-ccp.c (get_default_value): Simplify.
1305         (likely_value): Likewise.
1306         (surely_varying_stmt_p): Properly handle VOP case.
1307         (ccp_initialize): Likewise.
1308         (ccp_fold): Handle propagating through *&.
1309         (fold_const_aggregate_ref): Also handle decls.
1310
1311 2009-03-28  Jan Hubicka  <jh@suse.cz>
1312
1313         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
1314         * cgraph.h (cgraph_node): Likewise.
1315         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
1316         (cgraph_reset_node): Use process flag.
1317         (cgraph_mark_functions_to_output): Likewise.
1318         (cgraph_expand_function): Likewise.
1319         (cgraph_expand_all_functions): Likewise.
1320         (cgraph_output_in_order): Likewise.
1321         * dwarf2out.c (reference_to_unused): Likewise.
1322         * passes.c do_per_function_toporder): Likewise.
1323
1324 2009-03-28  Jan Hubicka  <jh@suse.cz>
1325
1326         Bring from lto-branch:
1327
1328         2008-09-03  Doug Kwan  <dougkwan@google.com>
1329
1330         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
1331         enums instead of reason strings.
1332         * cgraph.c (cgraph_create_edge): Same.
1333         (cgraph_inline_failed_string): New function.
1334         * cgraph.h (cgraph_inline_failed_t): New enum type.
1335         (cgraph_inline_failed_string): New prototype.
1336         (struct cgraph_edge): Change type of INLINED_FAILED from constant
1337         char pointer to cgraph_inline_failed_t.
1338         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
1339         (cgraph_default_inline_p): Ditto.
1340         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
1341         to cgraph_inline_failed_t pointer.
1342         * cif-code.def: New file.
1343         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
1344         reason string.
1345         (cgraph_check_inline_limits): Change type of REASON to pointer to
1346         cgraph_inline_failed_t.  Replace reason strings with enums.
1347         (cgraph_default_inline_p): Ditto.
1348         (cgraph_recursive_inlining_p): Ditto.
1349         (update_caller_keys): Change type of FAILED_REASON to
1350         cgraph_inline_failed_t.
1351         (cgraph_set_inline_failed): Change type of REASON to pointer to
1352         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
1353         convert enums to strings for text output.
1354         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
1355         to be of type cgraph_inline_failed_t.  Replace reason strings with
1356         enums.  Call cgraph_inline_failed_string to covert enums
1357         to strings for text output.
1358         (cgraph_decide_inlining): Replace reason strings with enums.
1359         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
1360         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
1361         for text output.
1362         * tree-inline.c (expand_call_inline): Change type of REASON
1363         to cgraph_inline_failed_t.  Replace reason strings with enums.
1364         Call cgraph_inline_failed_string for text output.
1365         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
1366         (cgraph.o): Ditto.
1367
1368 2009-03-28  Jan Hubicka  <jh@suse.cz>
1369
1370         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
1371         cgraph_clone_node): Remove master clone handling.
1372         (cgraph_is_master_clone, cgraph_master_clone): Remove.
1373         * cgraph.h (master_clone): Remove.
1374         (cgraph_is_master_clone, cgraph_master_clone): Remove.
1375         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
1376         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
1377
1378 2009-03-28  Jan Hubicka  <jh@suse.cz>
1379
1380         * cgraph.c (cgraph_function_body_availability): Functions declared
1381         inline are always safe to assume that it is not going to be replaced.
1382
1383 2009-03-28  Richard Guenther  <rguenther@suse.de>
1384
1385         PR tree-optimization/38513
1386         * tree-ssa-pre.c (eliminate): Remove redundant stores.
1387         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1388         EXC_PTR_EXPR and FILTER_EXPR.
1389         (get_ref_from_reference_ops): Likewise.
1390
1391 2009-03-28  Richard Guenther  <rguenther@suse.de>
1392
1393         PR tree-optimization/38968
1394         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
1395         Use FLOOR_MOD_EXPR to compute misalignment.
1396
1397 2009-03-28  Richard Guenther  <rguenther@suse.de>
1398
1399         PR tree-optimization/37795
1400         * tree.h (combine_comparisons): Declare.
1401         * fold-const.c (combine_comparisons): Export.
1402         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
1403         comparisons.
1404         (ifcombine_iforif): Use combine_comparisons.
1405
1406 2009-03-28  Jan Hubicka  <jh@suse.cz>
1407
1408         * tree-eh.c (inlinable_call_p): New function.
1409         (make_eh_edges): Use it.
1410         (verify_eh_edges): Use it.
1411         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
1412         * except.c (reachable_next_level): Add inlinable_function argument
1413         (sjlj_find_directly_reachable_regions): Update.
1414         (add_reachable_handler): Do not set saw_any_handlers.
1415         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
1416         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
1417         Add new inlinable call parameter.
1418         (can_throw_internal, can_throw_external): Update.
1419         * except.h (can_throw_internal_1, can_throw_external_1,
1420         foreach_reachable_handler): Update declaration.
1421
1422 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
1423
1424         * config/arm/t-arm-coff, config/h8300/coff.h,
1425         config/i386/i386-aout.h, config/i386/i386-coff.h,
1426         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
1427         config/pdp11/2bsd.h, config/rs6000/aix41.h,
1428         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
1429         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
1430         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
1431         sys-types.h: Remove.
1432         * Makefile.in: Remove protoize and fixproto support and references
1433         in comments.
1434         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
1435         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
1436         Remove.
1437         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
1438         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
1439         unprotoize$(exeext).
1440         (rest.encap): Don't depend on $(STMP_FIXPROTO)
1441         (.PHONY): Don't depend on proto.
1442         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
1443         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
1444         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
1445         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
1446         build/gen-protos.o, build/scan.o, xsys-protos.h,
1447         build/fix-header$(build_exeext), build/fix-header.o,
1448         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
1449         stmp-install-fixproto): Remove.
1450         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
1451         SYSCALLS.c or fixproto files.
1452         (install-common): Don't install protoize.
1453         (install-headers-tar, install-headers-cpio, install-headers-cp):
1454         Don't depend on $(STMP_FIXPROTO).
1455         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
1456         install fixproto files or write out fixproto settings.
1457         (uninstall): Don't uninstall protoize.
1458         * config.gcc (use_fixproto): Remove.
1459         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
1460         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
1461         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
1462         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
1463         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
1464         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
1465         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
1466         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
1467         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
1468         * config/t-vxworks (STMP_FIXPROTO): Remove.
1469         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
1470         STMP_FIXPROTO): Remove.
1471         * config.in, configure: Regenerate.
1472         * crtstuff.c (gid_t, uid_t): Don't undefine.
1473         * doc/install.texi: Change m68k-coff to m68k-elf in example.
1474         (arm-*-coff, arm-*-aout: Remove target entries.
1475         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
1476         Remove mention of AIX 4.1.
1477         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
1478         * doc/invoke.texi (Running Protoize): Remove.
1479         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
1480         (Protoize Caveats): Remove.
1481         * tsystem.h: Update comments on headers assumed to exist.
1482
1483 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
1484
1485         * genautomata.c: Add a new year to the copyright.  Add a new
1486         reference.
1487         (struct insn_reserv_decl): Add comments for member bypass_list.
1488         (find_bypass): Remove.
1489         (insert_bypass): New.
1490         (process_decls): Use insert_bypass.
1491         (output_internal_insn_latency_func): Output all bypasses with the
1492         same input insn in one switch case.
1493
1494         * rtl.def (define_bypass): Describe bypass choice.
1495         * doc/md.texi (define_bypass): Ditto.
1496
1497 2009-03-27  Richard Guenther  <rguenther@suse.de>
1498
1499         * gimplify.c (mark_addressable): Export.
1500         * tree-flow.h (mark_addressable): Declare.
1501         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
1502         * tree-ssa.c (verify_phi_args): Verify that address taken
1503         variables have TREE_ADDRESSABLE set.
1504
1505 2009-03-27  Richard Guenther  <rguenther@suse.de>
1506
1507         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
1508         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
1509         Do not mark decls TREE_ADDRESSABLE.
1510         (build_fold_addr_expr): Adjust.
1511         (fold_addr_expr): Remove.
1512         (fold_unary): Use build_fold_addr_expr.
1513         (fold_comparison): Likewise.
1514         (split_address_to_core_and_offset): Likewise.
1515         * coverage.c (tree_coverage_counter_addr): Mark the array decl
1516         TREE_ADDRESSABLE.
1517         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
1518         (gimplify_modify_expr_to_memcpy): Mark source and destination
1519         addressable.
1520         * omp-low.c (create_omp_child_function): Mark the object decl
1521         TREE_ADDRESSABLE.
1522         (lower_rec_input_clauses): Mark the var we take the address of
1523         TREE_ADDRESSABLE.
1524         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
1525
1526 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1527
1528         PR middle-end/39315
1529         * cfgexpand.c (expand_one_stack_var_at): Change alignment
1530         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
1531
1532 2009-03-27  Richard Guenther  <rguenther@suse.de>
1533
1534         PR tree-optimization/39120
1535         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
1536         constraints.
1537         (handle_lhs_call): Process return constraints.  Add escape
1538         constraints if necessary.
1539         (handle_const_call): Fill out return constraints.  Make nested
1540         case more precise.  Avoid consttmp if possible.
1541         (handle_pure_call): Fill out return constraints.  Avoid
1542         callused if possible.
1543         (find_func_aliases): Simplify call handling.
1544
1545 2009-03-27  Richard Guenther  <rguenther@suse.de>
1546
1547         PR tree-optimization/39120
1548         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
1549         as a representative.
1550         (solve_graph): Do propagate CALLUSED.
1551         (handle_pure_call): Use a scalar constraint from CALLUSED for
1552         the return value.
1553         (find_what_p_points_to): CALLUSED shall not appear in poins-to
1554         solutions.
1555
1556 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1557
1558         PR c/39323
1559         * c-common.c (handle_aligned_attribute): Properly check alignment
1560         overflow.  Use (1U << i) instead of (1 << i).
1561
1562         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
1563
1564         * expr.h (get_mem_align_offset): Updated.
1565
1566         * tree.h (tree_decl_common): Change align to "unsigned int" and
1567         move it before pointer_alias_set.
1568
1569 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1570             Jakub Jelinek  <jakub@redhat.com>
1571
1572         PR target/38034
1573         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
1574         gr_register_operand with gr_reg_or_0_operand.
1575         (cmpxchg_rel_di): Likewise.
1576         (sync_lock_test_and_set<mode>): Likewise.
1577
1578 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1579
1580         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
1581         (true_regnum): Likewise.
1582
1583         * rtlanal.c (subreg_info): Moved to ...
1584         * rtl.h (subreg_info): Here.  New.
1585         (subreg_get_info): New.
1586
1587         * rtlanal.c (subreg_get_info): Make it extern.
1588
1589 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1590
1591         PR target/39472
1592         * config/i386/i386.c (ix86_abi): New.
1593         (override_options): Handle -mabi=.
1594         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
1595         (ix86_call_abi_override): Likewise.
1596         (init_cumulative_args): Likewise.
1597         (function_arg_advance): Likewise.
1598         (function_arg_64): Likewise.
1599         (function_arg): Likewise.
1600         (ix86_pass_by_reference): Likewise.
1601         (ix86_function_value_regno_p): Likewise.
1602         (ix86_build_builtin_va_list_abi): Likewise.
1603         (setup_incoming_varargs_64): Likewise.
1604         (is_va_list_char_pointer): Likewise.
1605         (ix86_init_machine_status): Likewise.
1606         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
1607         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
1608         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
1609         (ix86_function_abi): Make it static and return enum calling_abi.
1610         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
1611         with ix86_abi.
1612         (ix86_fn_abi_va_list): Updated.
1613
1614         * config/i386/i386.h (ix86_abi): New.
1615         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
1616         (CONDITIONAL_REGISTER_USAGE): Likewise.
1617         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
1618         (machine_function): Likewise.
1619
1620         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
1621         with ix86_abi.
1622         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
1623         (STACK_BOUNDARY): Likewise.
1624         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
1625
1626         * config/i386/i386.opt (mabi=): New.
1627
1628         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
1629         return enum calling_abi.
1630         (ix86_function_type_abi): Likewise.
1631         (ix86_function_abi): Removed.
1632
1633         * doc/invoke.texi: Document -mabi= option for x86.
1634
1635 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1636
1637         * builtins.c (real_dconstp): Delete.
1638         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
1639
1640 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
1641             Jakub Jelinek  <jakub@redhat.com>
1642
1643         PR debug/37959
1644         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
1645         (gen_subprogram_die): When a function is explicit, generate the
1646         DW_AT_explicit attribute.
1647         * langhooks.h (struct lang_hooks_for_decls): Add
1648         function_decl_explicit_p langhook.
1649         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
1650         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
1651
1652 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
1653
1654         * builtins.c (fold_builtin_memory_op): Optimize memmove
1655         into memcpy if we can prove source and destination don't overlap.
1656
1657         * tree-inline.c: Include gt-tree-inline.h.
1658         (clone_fn_id_num): New variable.
1659         (clone_function_name): New function.
1660         (tree_function_versioning): Use it.
1661         * Makefile.in (GTFILES): Add tree-inline.c.
1662
1663 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
1664
1665         * BASE-VER: Change to 4.5.0.
1666
1667 2009-03-27  Xinliang David Li  <davidxl@google.com>
1668
1669         PR tree-optimization/39557
1670         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
1671
1672 2009-03-27  Xinliang David Li  <davidxl@google.com>
1673
1674         PR tree-optimization/39548
1675         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy 
1676         candidate check.
1677
1678 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1679
1680         * c-common.c (pointer_int_sum): Use %wd on return from
1681         tree_low_cst.
1682
1683 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1684
1685         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
1686         on return from tree_low_cst.
1687
1688 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1689
1690         PR c++/36799
1691         * ginclude/stdarg.h (va_copy): Define also for
1692         __GXX_EXPERIMENTAL_CXX0X__.
1693
1694 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1695
1696         PR c++/35652
1697         * builtins.h (c_strlen): Do not warn here.
1698         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
1699         * c-common.c (pointer_int_sum): Take an explicit location.
1700         Warn about offsets out of bounds.
1701         * c-common.h (pointer_int_sum): Adjust declaration.
1702
1703 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1704
1705         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
1706         markup glitch.
1707
1708 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
1709
1710         PR c++/39554
1711         * opts.c (warn_if_disallowed_function_p): Don't assume
1712         get_callee_fndecl must return non-NULL.
1713
1714 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
1715
1716         PR rtl-optimization/39522
1717         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
1718         when reg_reloaded_valid is set.
1719
1720 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1721
1722         * config/spu/divv2df3.c: New file.
1723         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
1724         (DPBIT_FUNCS): Filter out _div_df.
1725
1726 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
1727
1728         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
1729         a jump insn, count that jump in the distance to the loop start.
1730
1731 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1732
1733         PR target/39523
1734         * config/sh/sh.c (calc_live_regs): Fix condition for global
1735         registers except PIC_OFFSET_TABLE_REGNUM.
1736
1737 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
1738
1739         PR/39518
1740         * doc/invoke.texi (-mconsole): New.
1741         (-mcygwin): New.
1742         (-mno-cygwin): New.
1743         (-mdll): New.
1744         (-mnop-fun-dllimport): New.
1745         (-mthread): New.
1746         (-mwin32): New.
1747         (-mwindows): New.
1748         (sub section "i386 and x86-64 Windows Options"): New.
1749
1750 2009-03-25  Ralf Cors├ępius <ralf.corsepius@rtems.org>
1751
1752         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
1753         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
1754
1755 2009-03-25  Richard Guenther  <rguenther@suse.de>
1756
1757         PR middle-end/39497
1758         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
1759         of -Wno-error.
1760
1761 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
1762
1763         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
1764         neither of haifa/selective schedulers are working.
1765
1766 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1767
1768         * doc/invoke.texi (Debugging Options): Fix description of
1769         -fno-merge-debug-strings.
1770
1771 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
1772
1773         * config/cris/libgcc.ver: New version-script.
1774         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
1775
1776         * configure.ac <GAS features, nop mnemonic>: Add pattern
1777         crisv32-*-* for "nop".
1778         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
1779         * configure: Regenerate.
1780
1781 2009-03-24  Ira Rosen  <irar@il.ibm.com>
1782
1783         PR tree-optimization/39529
1784         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
1785         mark_sym_for_renaming for the tag copied to the new vector
1786         pointer.
1787
1788 2009-03-24  Arthur Loiret  <aloiret@debian.org>
1789
1790         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
1791         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
1792         EXTRA_SPEC_FUNCTIONS.
1793         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
1794         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
1795         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
1796         -march and -mtune options.
1797
1798 2009-03-24  Ralf Cors├ępius <ralf.corsepius@rtems.org>
1799
1800         * config/m68k/t-rtems: Add m5329 multilib.
1801
1802 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
1803             Jakub Jelinek  <jakub@redhat.com>
1804
1805         PR debug/39524
1806         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
1807         nodes.
1808
1809 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1810
1811         PR c/39495
1812         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
1813         instead of c_parser_expression_conv, if original_code isn't one of the
1814         4 allowed comparison codes, fail.
1815
1816 2009-03-23  Richard Guenther  <rguenther@suse.de>
1817
1818         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
1819         * tree.h (struct tree_type): Likewise.
1820         * reload.h (struct insn_chain): Likewise.
1821         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
1822         * function.h (struct function): Likewise.
1823         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
1824
1825 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1826
1827         PR tree-optimization/39516
1828         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
1829
1830 2009-03-23 Bingfeng Mei  <bmei@broadcom.com>
1831
1832         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint 
1833         should be set true if BITS_PER_WORD of target is bigger than 32
1834
1835 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
1836
1837         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
1838         Translate -B-options to -rpath-link.  Correct existing
1839         rpath-link and conditionalize on !nostdlib.
1840
1841 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1842
1843         * doc/extend.texi (Function Attributes, Variable Attributes):
1844         Fix typos.
1845         * doc/invoke.texi (Debugging Options, Optimize Options)
1846         (i386 and x86-64 Options, MCore Options): Likewise.
1847
1848 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
1849
1850         PR debug/37890
1851         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
1852         it for block local namespace aliases.
1853         (gen_decl_die): Pass context_die to gen_namespace_die.
1854
1855 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
1856
1857         PR c/39495
1858         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
1859         minimum or maximum value.
1860
1861 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
1862
1863         * reginfo.c (globalize_reg): Recompute derived reg sets.
1864
1865 2009-03-19  Ozkan Sezer <sezeroz@gmail.com>
1866
1867         PR target/39063
1868         * libgcc2.c (mprotect): Do not use signed arguments for
1869         VirtualProtect, use DWORD arguments.  Also fix the 'may
1870         be used uninitialized' warning for the np variable.
1871
1872 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
1873
1874         PR target/39496
1875         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
1876         functions using regparm calling conventions when not optimizing.
1877         (ix86_function_sseregparm): Similarly for sseregparm calling
1878         conventions.
1879
1880 2009-03-19  Li Feng  <nemokingdom@gmail.com>
1881
1882         PR middle-end/39500
1883         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
1884         dependence if the first conflict is after niter iterations.
1885
1886 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
1887
1888         PR middle-end/38609
1889         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
1890         functions with dynamic stack-pointer adjustments.
1891
1892 2009-03-19  Ben Elliston  <bje@au.ibm.com>
1893
1894         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
1895         option; change to -msdata=data.
1896
1897 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1898
1899         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
1900         and -fopenmp.
1901
1902 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
1903
1904         PR target/35180
1905         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
1906
1907 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
1908
1909         * doc/invoke.texi (Code Gen Options): Expand discussion of
1910         -fno-common.
1911
1912 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
1913
1914         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
1915         * matrix-reorg.c (struct matrix_info): Likewise.
1916         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
1917         * rtl.h (struct mem_attrs): Likewise.
1918         * df.h (struct df): Likewise.
1919         * tree-data-ref.h (struct data_dependence_relation): Likewise.
1920         * ira-int.h (struct ira_allocno): Likewise.
1921         * df-scan.c (struct df_collection_rec): Likewise.
1922         * ira.c (struct equivalence): Likewise.
1923         * function.c (struct temp_slot): Likewise.
1924         * cfgloop.h (struct loop): Likewise.
1925
1926         PR debug/39485
1927         * function.c (use_register_for_decl): When not optimizing, disregard
1928         register keyword for variables with types containing methods.
1929
1930 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
1931
1932         PR middle-end/39447
1933         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
1934         (is_simple_operand): Call contains_component_ref_p before calling data
1935         reference analysis that would fail on COMPONENT_REFs.
1936
1937         * tree-vrp.c (search_for_addr_array): Fix formatting.
1938
1939 2009-03-18  Richard Guenther  <rguenther@suse.de>
1940
1941         * tree-vect-transform.c (vect_loop_versioning): Fold the
1942         generated comparisons.
1943         * tree-vectorizer.c (set_prologue_iterations): Likewise.
1944         (slpeel_tree_peel_loop_to_edge): Likewise.
1945
1946 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1947
1948         PR middle-end/37805
1949         * opts.c (print_specific_help): In addition to `undocumented',
1950         accept `separate' and `joined' flags if passed alone.  Describe
1951         output by the first matched one of those.
1952         (common_handle_option): Skip over empty strings.
1953         * gcc.c (display_help): Fix help string for `--help='.
1954         * doc/invoke.texi (Option Summary, Overall Options): With
1955         `--help=', classes and qualifiers can both be repeated, but
1956         only the latter can be negated.  One should not pass only
1957         negated qualifiers.  Fix markup and examples.
1958
1959         Revert
1960         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
1961         PR middle-end/37805
1962         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
1963         and -fhelp=separate.
1964
1965 2009-03-17  Jing Yu  <jingyu@google.com>
1966
1967         PR middle-end/39378
1968         * function.h (struct rtl_data): Move is_thunk from here...
1969         (struct function): ...to here.
1970         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
1971         * varasm.c (assemble_start_function): Change is_thunk from crtl to
1972         cfun.
1973         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
1974         cfun.
1975         (alpha_does_function_need_gp, alpha_start_function): Likewise.
1976         (alpha_output_function_end_prologue): Likewise.
1977         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
1978         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
1979         (rs6000_output_function_epilogue): Likewise.
1980         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
1981
1982 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
1983
1984         PR target/39482
1985         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
1986         from different units in a single alternative.
1987         (*truncdfsf_i387): Ditto.
1988         (*truncxfsf2_mixed): Ditto.
1989         (*truncxfdf2_mixed): Ditto.
1990
1991 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
1992
1993         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
1994         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
1995
1996         PR debug/39474
1997         * tree-ssa-live.c (remove_unused_locals): Don't remove local
1998         unused non-artificial variables when not optimizing.
1999
2000         PR debug/39471
2001         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
2002         DW_TAG_imported_module even if decl is IMPORTED_DECL with
2003         NAMESPACE_DECL in its DECL_INITIAL.
2004
2005         PR middle-end/39443
2006         * optabs.c (set_user_assembler_libfunc): New function.
2007         * expr.h (set_user_assembler_libfunc): New prototype.
2008         * c-common.c: Include libfuncs.h.
2009         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
2010         for memcmp, memset, memcpy, memmove and abort.
2011         * Makefile.in (c-common.o): Depend on libfuncs.h.
2012
2013         PR debug/39412
2014         * dwarf2out.c (gen_inlined_enumeration_type_die,
2015         gen_inlined_structure_type_die, gen_inlined_union_type_die,
2016         gen_tagged_type_instantiation_die): Removed.
2017         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
2018         do nothing.
2019
2020 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
2021
2022         PR testsuite/38526
2023         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
2024         its use.
2025         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
2026         (check-parallel-%): Ditto.
2027         (check-consistency): Ditto.
2028
2029 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
2030
2031         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
2032         local variable rhs by NULL_TREE.
2033
2034 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2035
2036         PR target/39477
2037         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
2038
2039 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2040
2041         PR target/39476
2042         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
2043
2044 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2045
2046         PR target/39473
2047         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
2048         for ms->sysv ABI calls only in 64bit mode.
2049
2050         * config/i386/i386.md (untyped_call): Support 32bit.
2051
2052 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2053
2054         * doc/extend.texi: Replace x86_65 with x86_64.
2055
2056 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
2057
2058         PR tree-optimization/39455
2059         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
2060         mismatches for POINTER_TYPE_P (type).
2061         (number_of_iterations_le): Likewise.
2062
2063 2009-03-16  Hariharan Sandanagobalane <hariharan@picochip.com>
2064
2065         * config/picochip/picochip.c: Removed profiling support.
2066         * config/picochip/picochip.md: Removed profiling instruction.
2067         * config/picochip/picochip.h: Removed profiling builtin.
2068
2069 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
2070
2071         * doc/install.texi (--with-host-libstdcxx): Document.
2072
2073 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
2074
2075         PR target/34299
2076         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
2077         generate a warning if the function name does not begin with
2078         "__vector" and the function has either the 'signal' or 'interrupt'
2079         attribute, from here to ...
2080         (avr_declare_function_name): ...here. New function.
2081         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
2082         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
2083
2084 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
2085
2086         PR bootstrap/39454
2087         * cse.c (fold_rtx): Don't modify original const_arg1 when
2088         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
2089         separate variable instead.
2090         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
2091         from out of range shift counts.
2092         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
2093
2094 2008-03-13  Catherine Moore  <clm@codesourcery.com>
2095
2096         * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
2097         diagnostic.h with $(DIAGNOSTIC_H).
2098
2099 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2100
2101         PR target/39431
2102         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
2103         predicate.
2104         * config/i386/sync.md (sync_compare_and_swap<mode>,
2105         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
2106         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
2107         into a register.
2108         (sync_double_compare_and_swapdi_pic,
2109         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
2110         cmpxchg8b_pic_memory_operand instead of just memory_operand.
2111
2112 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
2113
2114         PR target/39445
2115         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
2116
2117 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
2118
2119         PR target/39327
2120         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
2121         (avx_addsubv4df3): Likewise.
2122         (*avx_addsubv4sf3): Likewise.
2123         (sse3_addsubv4sf3): Likewise.
2124
2125 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
2126
2127         PR target/38824
2128         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
2129
2130 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
2131
2132         PR debug/39432
2133         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
2134         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
2135         registers for allocnos created from user-defined variables.
2136
2137 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2138
2139         PR target/39181
2140         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
2141         of non-integer mode as well.
2142
2143 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
2144
2145         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
2146         for functions for which the parameter types are unknown.
2147
2148 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
2149
2150         PR target/39137
2151         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
2152         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
2153         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
2154         * config/i386/i386.c (ix86_local_alignment): For
2155         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
2156         long long variables on the stack to avoid dynamic realignment.
2157         Allow the first argument to be a decl rather than type.
2158         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
2159
2160 2009-03-11  Nick Clifton  <nickc@redhat.com>
2161
2162         PR target/5362
2163         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
2164         options.
2165         Add description to mno-lsim option.
2166         * config/mcore/mcore.h: Remove comment about deprecated m4align
2167         option.
2168         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
2169         * doc/invoke.texi: Add description of mno-lsim and
2170         mstack-increment options.
2171
2172         * config/fr30/fr30.opt: Document the -mno-lsim option.
2173         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
2174         and -mno-lsim options.
2175
2176 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2177
2178         * fold-const.c (fold_comparison): Only call fold_inf_compare
2179         if the mode supports infinities.
2180
2181 2009-03-11  Jason Merrill  <jason@redhat.com>
2182
2183         PR debug/39086
2184         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
2185         end already did.  Notice GIMPLE_CALL modifications of the result.
2186         Don't copy debug information from an ignored decl or a decl from
2187         another function.
2188
2189 2009-03-10  Richard Guenther  <rguenther@suse.de>
2190             Nathan Froyd  <froydnj@codesourcery.com>
2191
2192         PR middle-end/37850
2193         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
2194         (__divMODE3): Likewise.
2195
2196 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
2197
2198         PR tree-optimization/39394
2199         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
2200         DECL_SIZE_UNIT of variable length FIELD_DECLs.
2201
2202 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2203
2204         * recog.c (verfiy_changes): Disallow renaming of hard regs in
2205         inline asms for register asm ("") declarations.
2206
2207 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
2208
2209         * fold-const.c (fold_unary): Fix comment.
2210
2211 2009-03-07  Jan Hubicka  <jh@suse.cz>
2212
2213         PR target/39361
2214         * tree-inline.c (setup_one_parameter): Do replacement of const
2215         argument by constant in SSA form.
2216
2217 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2218
2219         PR middle-end/38028
2220         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
2221         determine alignment passed to assign_stack_local.
2222         (assign_parms_unsplit_complex): Likewise.
2223         * except.c (sjlj_build_landing_pads): Likewise.
2224
2225 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
2226
2227         PR middle-end/39360
2228         * tree-flow.h (add_referenced_var): Return bool instead of void.
2229         * tree-dfa.c (add_referenced_var): Return result of
2230         referenced_var_check_and_insert call.
2231         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
2232         of referenced_var_check_and_insert.
2233
2234         PR debug/39372
2235         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
2236         (gen_variable_die): Emit DW_AT_location on abstract static variable's
2237         DIE, don't emit it if abstract origin already has it.
2238         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
2239         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
2240
2241 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2242
2243         * genpreds.c (needs_variable): Fix parentheses at variable name
2244         detection.
2245         (write_tm_constrs_h): Indent generated code.
2246
2247 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2248
2249         * doc/extend.texi (Function Attributes): Add documentation
2250         for isr attributes.
2251
2252 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
2253
2254         PR debug/39387
2255         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
2256         take locus from its DECL_SOURCE_LOCATION instead of input_location.
2257
2258 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2259
2260         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
2261         the loop as bad.
2262
2263 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
2264
2265         PR debug/39379
2266         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
2267         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
2268
2269 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
2270
2271         * config/i386/i386.md (R8_REG, R9_REG): New constants.
2272         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
2273         constants instead of magic numbers.
2274         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
2275         (QI_REG_P): Ditto.
2276         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
2277         (x86_64_ms_abi_int_parameter_registers): Ditto.
2278         (x86_64_int_return_registers): Ditto.
2279         (ix86_maybe_switch_abi): Ditto.
2280         (ix86_expand_call): Ditto for clobbered_registers array.
2281         (ix86_hard_regno_mode_ok): Ditto.
2282         (x86_extended_QIreg_mentioned_p): Ditto.
2283
2284 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
2285
2286         PR tree-optimization/39349
2287         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
2288
2289         * combine.c (gen_lowpart_for_combine): Use omode when generating
2290         clobber.
2291
2292 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
2293
2294         PR rtl-optimization/39235
2295         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
2296
2297 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
2298
2299         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
2300
2301 2009-03-04  Richard Guenther  <rguenther@suse.de>
2302
2303         PR tree-optimization/39362
2304         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
2305         that occur in abnormal PHIs should be varying.
2306
2307 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
2308
2309         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
2310         Extend comments.
2311         (simple_iv):  Take loop as an argument instead of statement.
2312         * tree-scalar-evolution.h (simple_iv): Declaration changed.
2313         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
2314         to simple_iv.
2315         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
2316         Ditto.
2317         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
2318         * matrix-reorg.c (analyze_transpose): Ditto.
2319         * tree-data-ref.c (dr_analyze_innermost): Ditto.
2320         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
2321         * tree-predcom.c (ref_at_iteration): Ditto.
2322         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
2323
2324 2009-03-04  Richard Guenther  <rguenther@suse.de>
2325
2326         PR tree-optimization/39358
2327         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
2328         escaped_id and callused_id.
2329         (solve_graph): Likewise.
2330
2331 2009-03-04  Richard Guenther  <rguenther@suse.de>
2332
2333         PR tree-optimization/39339
2334         * tree-sra.c (try_instantiate_multiple_fields): Make it
2335         no longer ICE on the above.
2336
2337 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
2338
2339         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
2340         that fits within Pmode.
2341
2342 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
2343
2344         PR middle-end/10109
2345         * tm.texi (LIBCALL_VALUE): Update description.
2346
2347 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
2348
2349         PR middle-end/34443
2350         * doc/extend.texi (section): Update description.
2351
2352 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
2353
2354         PR middle-end/39345
2355         * tree-inline.c (remapped_type): New.
2356         (can_be_nonlocal): Call remapped_type instead of remap_type.
2357
2358 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
2359
2360         PR fortran/39354
2361         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
2362         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
2363
2364 2009-03-03  Richard Guenther  <rguenther@suse.de>
2365
2366         PR middle-end/39272
2367         * tree.c (tree_nonartificial_location): New function.
2368         * tree.h (tree_nonartificial_location): Declare.
2369         * builtins.c (expand_builtin_memory_chk): Provide location
2370         of the call location for artificial function pieces.
2371         (maybe_emit_chk_warning): Likewise.
2372         (maybe_emit_sprintf_chk_warning): Likewise.
2373         (maybe_emit_free_warning): Likewise.
2374         * expr.c (expand_expr_real_1): Likewise.
2375
2376 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
2377
2378         PR tree-optimization/39343
2379         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
2380         COMPONENT_REF t has ARRAY_TYPE.
2381
2382 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
2383
2384         PR middle-end/39335
2385         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
2386         when the type precision of the induction variable should be
2387         larger than the type precision of nit.
2388         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
2389         * graphite.c (graphite_loop_normal_form): Same.
2390         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
2391
2392 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
2393
2394         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
2395         (*call_1_rex64_ms_sysv): Use named constants instead of magic
2396         numbers to describe clobbered registers.
2397         (*call_value_0_rex64_ms_sysv): Ditto.
2398         * config/i386/mmx.md (mmx_emms): Ditto.
2399         (mmx_femms): Ditto.
2400
2401 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
2402
2403         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
2404         of ABI_64.
2405
2406 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2407
2408         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
2409         (spu_section_type_flags): New function.
2410
2411 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
2412
2413         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
2414         reg_class_contents of FLOAT_REGS into a temporary.
2415
2416 2009-03-02  Richard Guenther  <rguenther@suse.de>
2417             Ira Rosen  <irar@il.ibm.com>
2418
2419         PR tree-optimization/39318
2420         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
2421         information to the vectorized statement.
2422
2423 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
2424
2425         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
2426         variable.  Use defined names instead of magic constants for REX SSE
2427         registers.
2428
2429 2009-03-01  Richard Guenther  <rguenther@suse.de>
2430
2431         PR tree-optimization/39331
2432         * omp-low.c (lower_send_shared_vars): Do not receive new
2433         values for the reference of DECL_BY_REFERENCE parms or results.
2434
2435 2009-03-01  Jan Hubicka  <jh@suse.cz>
2436
2437         PR debug/39267
2438         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
2439         BLOCK_NONLOCALIZED_VAR): New macros.
2440         (tree_block): Add nonlocalized_vars.
2441         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
2442         gen_decl_die): Add origin argument.  Allow generation of die with
2443         origin at hand only.
2444         (gen_member_die, gen_type_die_with_usage, force_decl_die,
2445         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
2446         of gen_*.
2447         (gen_block_die): Fix checking for unused blocks.
2448         (process_scope_var): Break out from .... ; work with origins only.
2449         (decls_for_scope) ... here; process nonlocalized list.
2450         (dwarf2out_ignore_block): Look for nonlocalized vars.
2451         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
2452         vars.
2453         (dump_scope_block): Dump them.
2454         * tree-inline.c (remap_decls): Handle nonlocalized vars.
2455         (remap_block): Likewise.
2456         (can_be_nonlocal): New predicate.
2457         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
2458
2459 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2460
2461         * configure: Regenerate.
2462
2463 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2464
2465         * optc-gen.awk: No need to duplicate option flags twice.
2466         Reuse help texts for duplicate options which do not have any.
2467
2468         * gcc.c (display_help): Document --version.
2469
2470         * gcc.c (main): If print_help_list and verbose_flag, ensure
2471         driver output comes before subprocess output.
2472
2473         * optc-gen.awk: Assign all remaining fields to help string,
2474         space-separated, for multi-line help in *.opt.
2475
2476         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
2477         -Wno-pedantic-ms-format is for MinGW targets only.
2478
2479         * doc/options.texi (Option file format): Fix bad indentation,
2480         restoring dropped sentence.
2481
2482 2009-02-28  Jan Hubicka  <jh@suse.cz>
2483
2484         * tree-inline.c (tree_function_versioning): Output debug info.
2485
2486 2009-02-28  Jan Hubicka  <jh@suse.cz>
2487
2488         PR debug/39267
2489         * tree-inline.c (setup_one_parameter): Do not copy propagate
2490         arguments when not optimizing.
2491
2492 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
2493
2494         PR target/39327
2495         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
2496         (avx_addsubv4df3): Likewise.
2497         (*avx_addsubv4sf3): Likewise.
2498         (sse3_addsubv4sf3): Likewise.
2499         (*avx_addsubv2df3): Likewise.
2500         (sse3_addsubv2df3): Likewise.
2501         (avx_unpckhps256): Correct item selectors.
2502         (avx_unpcklps256): Likewise.
2503         (avx_unpckhpd256): Likewise.
2504         (avx_unpcklpd256): Likewise.
2505
2506 2009-02-28  Jan Hubicka  <jh@suse.cz>
2507
2508         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
2509         static vars.
2510         (copy_arguments_for_versioning): If var is declared don't declare it.
2511         (tree_function_versioning): First setup substitutions and then copy
2512         args.
2513
2514 2009-02-27  Jan Hubicka  <jh@suse.cz>
2515
2516         PR debug/39267
2517         * cgraph.h (varpool_output_debug_info): Remove.
2518         * cgraphunit.c (varpool_output_debug_info): Remove.
2519         * dwarf2out.c (deferred_locations_struct): New struct
2520         (deferred_locations): New type.
2521         (deferred_locations_list): New static var.
2522         (deffer_location): New function.
2523         (gen_variable_die): Use it.
2524         (decls_for_scope): Output info on local static vars.
2525         (dwarf2out_finish): Process deferred locations.
2526         * varpool.c (varpool_output_debug_info): Remove.
2527
2528 2009-02-27  Jan Hubicka  <jh@suse.cz>
2529
2530         PR debug/39267
2531         * tree.h (TREE_PROTECTED): Fix comment.
2532         (BLOCK_HANDLER_BLOCK): Remove.
2533         (struct tree_block): Remove handler_block add body_block.
2534         (inlined_function_outer_scope_p): New.
2535         (is_body_block): Remove.
2536         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
2537         * dwarf2out.c (is_inlined_entry_point): Remove.
2538         (add_high_low_attributes): Use inlined_function_outer_scope_p.
2539         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
2540         code.
2541         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
2542         * gimplify.c (gimplify_expr): Gimplify body blocks.
2543         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
2544         block with multiple subblocks.
2545         (dump_scope_block): Prettier output; dump more flags and info.
2546         (dump_scope_blocks): New.
2547         (remove_unused_locals): Use dump_scope_blocks.
2548         * tree-flow.h (dump_scope_blocks): Declare.
2549         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
2550         * stmt.c (is_body_block): Remove.
2551         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
2552         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
2553
2554 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
2555
2556         PR middle-end/39308
2557         * graphite.c (graphite_loop_normal_form): Do not call 
2558         number_of_iterations_exit from a gcc_assert.
2559
2560 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2561
2562         * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
2563         jumps if COND is NULL.
2564         (find_cond_jump): New function.
2565         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
2566         * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
2567
2568 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
2569
2570         * config/alpha/alpha.h (alpha_expand_mov): Return false if
2571         force_const_mem returns NULL_RTX.
2572
2573 2009-02-26  Jan Hubicka  <jh@suse.cz>
2574
2575         PR debug/39267
2576         * cgraph.h (varpool_output_debug_info): Remove.
2577         * cgraphunit.c (varpool_output_debug_info): Remove.
2578         * dwarf2out.c (deferred_locations_struct): New struct
2579         (deferred_locations): New type.
2580         (deferred_locations_list): New static var.
2581         (deffer_location): New function.
2582         (gen_variable_die): Use it.
2583         (decls_for_scope): Output info on local static vars.
2584         (dwarf2out_finish): Process deferred locations.
2585         * varpool.c (varpool_output_debug_info): Remove.
2586
2587 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
2588
2589         PR rtl-optimization/39241
2590         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
2591         to subreg_offset_representable_p.
2592
2593 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
2594
2595         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
2596         execute function prototype.  Get f and nregs from max_reg_num
2597         and get_insns.  Remove the first backward pass as it's dead,
2598         guard the forward pass by flag_expensive_optimizations.
2599         (rest_of_handle_regmove): Delete.
2600         (pass_regmove): Replace it with regmove_optimize.
2601
2602 2009-02-25  Martin Jambor  <mjambor@suse.cz>
2603
2604         PR tree-optimization/39259
2605         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
2606         calls_alloca function flags.
2607         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
2608         calls are detected.
2609
2610 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
2611
2612         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
2613         flags_set_1_rtx, flags_set_1_set): Delete.
2614         (regmove_optimize): Do not call mark_flags_life_zones.
2615
2616 2009-02-24  Julian Brown  <julian@codesourcery.com>
2617
2618         PR target/35965
2619         * config/arm/arm.c (require_pic_register): Only set
2620         cfun->machine->pic_reg once per function.
2621
2622 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
2623
2624         * doc/invoke.texi (Link Options): Document an easier way to pass
2625         options that take arguments to the GNU linker using -Xlinker and -Wl.
2626
2627 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
2628
2629         PR target/33785
2630         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
2631
2632 2009-02-24  Richard Guenther  <rguenther@suse.de>
2633
2634         PR debug/39285
2635         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
2636
2637 2009-02-24  Richard Guenther  <rguenther@suse.de>
2638             Zdenek Dvorak  <ook@ucw.cz>
2639
2640         PR tree-optimization/39233
2641         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
2642         from converting them to a generic type.
2643
2644 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2645
2646         PR tree-optimization/39260
2647         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
2648         contains a condition with a real type.
2649         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
2650
2651 2009-02-23  Jason Merrill  <jason@redhat.com>
2652
2653         PR c++/38880
2654         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
2655         narrowing_initializer_constant_valid_p.
2656         (narrowing_initializer_constant_valid_p): Don't return 
2657         null_pointer_node for adding a pointer to itself.
2658
2659 2009-02-23  Jan Hubicka  <jh@suse.cz>
2660
2661         PR c/12245
2662         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
2663         resizing.
2664
2665 2009-02-23  Jan Hubicka  <jh@suse.cz>
2666
2667         PR tree-optimization/37709
2668         * tree.c (block_ultimate_origin): Move here from dwarf2out.
2669         * tree.h (block_ultimate_origin): Declare.
2670         * dwarf2out.c (block_ultimate_origin): Move to tree.c
2671         * tree-ssa-live.c (remove_unused_scope_block_p):
2672         Eliminate blocks containig no instructions nor live variables nor
2673         nested blocks.
2674         (dump_scope_block): New function.
2675         (remove_unused_locals): Enable removal of dead blocks by default;
2676         enable dumping at TDF_DETAILS.
2677
2678 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
2679
2680         * config/i386/i386.c (classify_argument): Don't allow COImode
2681         and OImode.
2682         (function_arg_advance_32): Don't allow OImode.
2683         (function_arg_32): Likewise.
2684         (function_value_32): Likewise.
2685         (return_in_memory_32): Likewise.
2686         (function_arg_64): Remove OImode comment.
2687
2688 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
2689
2690         PR target/39261
2691         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
2692         ix86_expand_vector_set for V4DImode in 64bit mode only.
2693         (ix86_expand_vector_init_one_var): Likewise.
2694
2695 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
2696
2697         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
2698
2699 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
2700
2701         PR bootstrap/39257
2702         * loop-iv.c: Revert last change.
2703         * emit-rtl.c: Likewise.
2704
2705 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
2706
2707         PR target/39256
2708         * config/i386/i386.c (type_natural_mode): Remove an extra
2709         space in the warning message.
2710         (function_value_32): Handle 32-byte vector modes.
2711         (return_in_memory_32): Likewise.
2712
2713 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
2714
2715         * loop-iv.c (truncate_value): New function.
2716         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
2717         of lowpart_subreg.
2718         (lowpart_subreg): Move to...
2719         * emit-rtl.c: ...here.
2720
2721 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
2722
2723         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
2724         accidental and undocumented change at revision 140860.
2725
2726 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
2727
2728         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
2729         take gimple_seq * arguments.
2730         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
2731         types_compatible_p langhook.
2732
2733 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
2734             Joseph Myers  <joseph@codesourcery.com>
2735
2736         * config/arm/arm.c (arm_builtin_va_list): New function.
2737         (arm_expand_builtin_va_start): Likewise.
2738         (arm_gimplify_va_arg_expr): Likewise.
2739         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
2740         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
2741         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
2742         (va_list_type): New variable.
2743         (arm_mangle_type): Mangle va_list_type appropriately.
2744
2745 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
2746
2747         PR middle-end/39157
2748         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
2749         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
2750         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
2751         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
2752         parameter to 1000 for -O1 by default.
2753         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
2754         parameter.
2755         * loop-invariant.c: Include params.h.
2756         (move_loop_invariants): Don't call move_single_loop_invariants on
2757         very large loops.
2758
2759 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
2760
2761         * calls.c (emit_library_call_value_1): Use slot_offset instead of
2762         offset when calculating bounds for indexing stack_usage_map.  Fixes
2763         a buffer overflow with certain target setups.
2764
2765 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
2766
2767         PR target/39240
2768         * calls.c (expand_call): Clear try_tail_call if caller and callee
2769         disagree in promotion of function return value.
2770
2771 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
2772
2773         PR target/39175
2774         * c-common.c (c_determine_visibility): If visibility changed and
2775         DECL_RTL has been already set, call make_decl_rtl to update symbol
2776         flags.
2777
2778 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
2779
2780         PR c++/39188
2781         * varasm.c (assemble_variable): Don't check DECL_NAME when
2782         globalizing a variable.
2783
2784 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
2785
2786         PR c/38483
2787         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
2788         expression before any __builtin_trap call.
2789         * c-typeck.c (build_function_call): Convert and check function
2790         arguments before generating a call to a trap.  Evaluate the
2791         function arguments before the trap.
2792
2793 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
2794
2795         PR target/39228
2796         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
2797         (UNSPEC_FXAM_MEM): New unspec.
2798         (fxam<mode>2_i387_with_temp): New insn and split pattern.
2799         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
2800         memory using fxam<mode>2_i387_with_temp to remove excess precision.
2801
2802 2009-02-19  Richard Guenther  <rguenther@suse.de>
2803
2804         PR tree-optimization/39207
2805         PR tree-optimization/39074
2806         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
2807         storedanything_tree): New.
2808         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
2809         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
2810         (build_succ_graph): Add edges from STOREDANYTHING to all
2811         non-direct nodes.
2812         (init_base_vars): Initialize STOREDANYTHING.
2813         (compute_points_to_sets): Free substitution info after
2814         building the succ graph.
2815         (ipa_pta_execute): Likewise.
2816
2817         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
2818         field.
2819         (do_ds_constraint): Do not add to special var or non-pointer
2820         field solutions.
2821         (type_could_have_pointers): Split out from ...
2822         (could_have_pointers): ... here.  For arrays use the element type.
2823         (create_variable_info_for): Initialize may_have_pointers.
2824         (new_var_info): Likewise.
2825         (handle_lhs_call): Make the HEAP variable unknown-sized.
2826         (intra_create_variable_infos): Use a type with pointers for
2827         PARM_NOALIAS, make it unknown-sized.
2828
2829 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2830
2831         PR target/39224
2832         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
2833
2834 2009-02-18  Jason Merrill  <jason@redhat.com>
2835
2836         PR target/39179
2837         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
2838         value if DECL_EXTERNAL.
2839         * tree-sra.c (sra_walk_gimple_assign): Likewise.
2840         * target.h (gcc_target::binds_local_p): Clarify "module".
2841         * tree.h (TREE_PUBLIC): Clarify "module".
2842
2843 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
2844
2845         PR target/38891
2846         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
2847         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
2848
2849 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2850
2851         PR target/39082
2852         * c.opt (Wabi): Support C and ObjC.
2853         (Wpsabi): New.
2854
2855         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
2856
2857         * config/i386/i386.c (classify_argument): Warn once about the ABI
2858         change when passing union with long double.
2859
2860         * doc/invoke.texi: Update -Wabi for warning psABI changes.
2861
2862 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
2863
2864         PR c/35447
2865         * c-parser.c (c_parser_compound_statement): Always enter and leave
2866         a scope.
2867
2868 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2869
2870         PR target/34587
2871         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
2872
2873 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2874
2875         PR tree-optimization/36922
2876         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
2877         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
2878         Likewise.
2879
2880 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
2881
2882         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2883         to 0 for EABI64.
2884
2885 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
2886
2887         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
2888
2889 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
2890
2891         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
2892         tree sharing.
2893
2894 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
2895             Richard Sandiford  <rdsandiford@googlemail.com>
2896
2897         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
2898         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
2899         (loongson_biadd): ...this.
2900
2901 2009-02-17  Richard Guenther  <rguenther@suse.de>
2902
2903         PR tree-optimization/39202
2904         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
2905         a var make sure to follow existing collapses.
2906
2907 2009-02-17  Richard Guenther  <rguenther@suse.de>
2908
2909         PR middle-end/39214
2910         * langhooks.c (lhd_print_error_function): Check for NULL block.
2911
2912 2009-02-17  Richard Guenther  <rguenther@suse.de>
2913
2914         PR tree-optimization/39204
2915         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
2916         of the PHI arg.
2917
2918 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
2919
2920         * config/soft-fp/double.h: Update from glibc CVS.
2921
2922 2009-02-17  Richard Guenther  <rguenther@suse.de>
2923
2924         PR tree-optimization/39207
2925         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
2926         strict-aliasing warnings for pointers pointing to NULL.
2927
2928 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
2929
2930         PR c/35446
2931         * c-parser.c (c_parser_braced_init): Call pop_init_level when
2932         skipping until next close brace.
2933
2934 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
2935
2936         PR target/37049
2937         * config/i386/i386.c (ix86_expand_push): Set memory alignment
2938         to function argument boundary.
2939
2940 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
2941
2942         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
2943         in the lea_add. Reload eventually constraints it properly.
2944         * config/picochip/constraints.md : Remove the target constraint
2945         "b", since it is not needed anymore.
2946
2947 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2948
2949         * gthr-dce.h: Uglify function parameter and local variable names.
2950         * gthr-gnat.h: Likewise.
2951         * gthr-mipssde.h: Likewise.
2952         * gthr-nks.h: Likewise.
2953         * gthr-posix95.h: Likewise.
2954         * gthr-posix.h: Likewise.
2955         * gthr-rtems.h: Likewise.
2956         * gthr-single.h: Likewise.
2957         * gthr-solaris.h: Likewise.
2958         * gthr-tpf.h: Likewise.
2959         * gthr-vxworks.h: Likewise.
2960         * gthr-win32.h: Likewise.
2961
2962 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
2963
2964         PR target/39196
2965         * config/i386/i386.md: Restrict the new peephole2 to move
2966         between MMX/SSE registers.
2967
2968 2009-02-15  Richard Guenther  <rguenther@suse.de>
2969
2970         Revert
2971         2009-02-13  Richard Guenther  <rguenther@suse.de>
2972
2973         * configure.ac: Enable LFS.
2974         * configure: Re-generate.
2975         * config.in: Likewise.
2976
2977 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2978
2979         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
2980         spu_srqwbyte, spu_srqwbytebc): Define.
2981         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
2982         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
2983         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
2984         "shrqby_<mode>"): New insn-and-split patterns.
2985         * config/spu/spu.c (expand_builtin_args): Determine and return
2986         number of operands using spu_builtin_description data.
2987         (spu_expand_builtin_1): Use it.
2988
2989 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
2990
2991         PR target/38056
2992         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
2993         TARGET_CONST_GP.
2994
2995 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
2996
2997         PR target/39149
2998         * config/i386/i386.c (override_options): Correct warning
2999         messages for -malign-loops, -malign-jumps and -malign-functions.
3000
3001 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3002
3003         PR target/39152
3004         * config/i386/i386.md: Restrict the new peephole2 to move
3005         between the general purpose registers.
3006
3007 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3008
3009         PR target/39162
3010         * config/i386/i386.c (type_natural_mode): Add a new argument.
3011         Return the original mode and warn ABI change if vector size is 32byte.
3012         (function_arg_advance): Updated.
3013         (function_arg): Likewise.
3014         (ix86_function_value): Likewise.
3015         (ix86_return_in_memory): Likewise.
3016         (ix86_sol10_return_in_memory): Likewise.
3017         (ix86_gimplify_va_arg): Likewise.
3018         (function_arg_32): Don't warn ABX ABI change here.
3019         (function_arg_64): Likewise.
3020
3021 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3022
3023         * loop-iv.c (implies_p): In the final case, test that operands 0
3024         of the two comparisons match.
3025
3026         * config/bfin/bfin.c (find_prev_insn_start): New function.
3027         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
3028         (find_next_insn_start): Move.
3029
3030 2009-02-13  Richard Guenther  <rguenther@suse.de>
3031
3032         * configure.ac: Enable LFS.
3033         * configure: Re-generate.
3034         * config.in: Likewise.
3035
3036 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
3037
3038         PR c/35444
3039         * c-parser.c (c_parser_parms_list_declarator): Discard pending
3040         sizes on syntax error after some arguments have been parsed.
3041
3042 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
3043
3044         * doc/invoke.texi (-fira): Remove.
3045
3046 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
3047
3048         * caller-save.c: Replace regclass.c with reginfo.c in comments.
3049         * recog.c: Likewise.
3050         * rtl.h: Likewise.
3051
3052 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
3053
3054         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
3055         (umul_ppmm): Likewise.
3056         (count_leading_zeros): Likewise.
3057         (count_trailing_zeros): Likewise.
3058         (UMUL_TIME): Likewise.
3059
3060 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
3063         soft-fp/t-softfp to tmake_file.
3064
3065         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
3066         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
3067         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
3068         IA64_BUILTIN_INFQ]: New.
3069         (ia64_init_builtins): Initialize __builtin_infq,
3070         __builtin_fabsq and __builtin_copysignq if not HPUX.
3071         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
3072         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
3073
3074         * config/ia64/lib1funcs.asm (__divtf3): Define only if
3075         SHARED is defined.
3076         (__fixtfti): Likewise.
3077         (__fixunstfti): Likewise.
3078         (__floattitf): Likewise.
3079
3080         * config/ia64/libgcc-glibc.ver: New.
3081         * config/ia64/t-fprules-softfp: Likewise.
3082         * config/ia64/sfp-machine.h: Likewise.
3083
3084         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
3085         (LIBGCC2_TF_CEXT): Likewise.
3086         (TF_SIZE): Likewise.
3087         (TARGET_INIT_LIBFUNCS): Likewise.
3088
3089         * config/ia64/t-glibc (SHLINB_MAPFILES):
3090         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
3091
3092 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
3093
3094         * config/i386/i386.c (construct_container): Rewrite processing
3095         BLKmode with X86_64_SSE_CLASS.
3096
3097 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
3098
3099         PR target/39152
3100         * config/i386/i386.md: Replace simplify_replace_rtx with
3101         replace_rtx in the new peephole2.
3102
3103 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
3104
3105         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
3106         loop unrolling do not happen at -O2.
3107
3108 2009-02-12  Michael Matz  <matz@suse.de>
3109
3110         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
3111
3112 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
3113
3114         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
3115         for -g3.
3116
3117 2009-02-12  Ben Elliston  <bje@au.ibm.com>
3118
3119         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
3120         patterns when updating the back chain.  Missed in the 2009-02-10
3121         change.
3122
3123 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
3124
3125         * doc/extend.texi (Decimal Floating Types): Update identifier of
3126         draft TR and list of missing support.
3127
3128 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
3129
3130         PR middle-end/39154
3131         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
3132         bit to variable length decl's flags, add it also to its
3133         pointer replacement variable.
3134
3135 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
3136             Jakub Jelinek  <jakub@redhat.com>
3137
3138         PR target/39118
3139         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
3140         (memory_blockage): New expander.
3141         (*memory_blockage): New insn pattern.
3142         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
3143         instead of general blockage at the end of function prologue when
3144         frame pointer is used to access red zone area.  Do not emit blockage
3145         when profiling, it is emitted in generic code.
3146         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
3147         function epilogue when frame pointer is used to access red zone area.
3148
3149 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
3150
3151         PR target/38824
3152         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
3153         by arithmetic with memory operands.
3154         * config/i386/predicates.md (commutative_operator): New.
3155
3156 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
3157
3158         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
3159         bulleted lists.
3160
3161 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
3162
3163         * alias.h (record_alias_subset): Declare.
3164         * alias.c (record_alias_subset): Make global.
3165
3166 2009-02-10  Nick Clifton  <nickc@redhat.com>
3167
3168         * tree-parloops.c: Change license to GPLv3.
3169         * ipa-struct-reorg.c: Change license to GPLv3.
3170         * ipa-struct-reorg.h: Change license to GPLv3.
3171
3172 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
3173
3174         PR c/39084
3175         * c-decl.c (start_struct): Return NULL on error.
3176
3177 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
3178
3179         PR middle-end/39124
3180         * cfgloopmanip.c (remove_path): Call remove_bbs after
3181         cancel_loop_tree, not before it.
3182
3183         PR target/39139
3184         * function.h (struct function): Add has_local_explicit_reg_vars bit.
3185         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
3186         VAR_DECLs were seen.
3187         * tree-ssa-live.c (remove_unused_locals): Recompute
3188         cfun->has_local_explicit_reg_vars.
3189         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
3190         copies or clearings if cfun->has_local_explicit_reg_vars.
3191
3192 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
3193
3194         PR target/39118
3195         * config/i386/i386.c (expand_prologue): Emit blockage at the end
3196         of function prologue when frame pointer is used to access
3197         red zone area.
3198
3199 2009-02-10  Richard Guenther  <rguenther@suse.de>
3200
3201         PR middle-end/39127
3202         * gimplify.c (gimple_regimplify_operands): Always look if
3203         we need to create a temporary.
3204
3205 2009-02-10  Richard Guenther  <rguenther@suse.de>
3206
3207         PR tree-optimization/39132
3208         * tree-loop-distribution.c (todo): New global var.
3209         (generate_memset_zero): Trigger TODO_rebuild_alias.
3210         (tree_loop_distribution): Return todo.
3211
3212 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
3213
3214         PR target/39119
3215         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
3216         (x86_64_reg_class_name): Removed.
3217         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
3218         first one isn't X86_64_SSE_CLASS or any other ones aren't
3219         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
3220         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
3221         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
3222         and 3 X86_64_SSEUP_CLASS.
3223         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
3224         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
3225
3226 2009-02-10  Ben Elliston  <bje@au.ibm.com>
3227
3228         * config/rs6000/rs6000.md (allocate_stack): Always use an update
3229         form instruction to update the stack back chain word, even if the
3230         user has disabled the generation of update instructions.
3231         (movdi_<mode>_update_stack): New.
3232         (movsi_update_stack): Likewise.
3233         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
3234         always use an update form instruction to update the stack back
3235         chain word.
3236
3237 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
3238
3239         PR middle-end/38953
3240         * graphite.c (if_region_set_false_region): After moving a region in
3241         the false branch of a condition, remove the empty dummy basic block.
3242         (gloog): Remove wrong fix for PR38953.
3243
3244 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3245
3246         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
3247         generation due to implicit sign extension.
3248
3249 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
3250
3251         PR middle-end/38981
3252         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
3253         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
3254
3255 2009-02-09  Richard Guenther  <rguenther@suse.de>
3256
3257         PR middle-end/35202
3258         * convert.c (convert_to_real): Disable (float)fn((double)x)
3259         to fnf(x) conversion if errno differences may occur and
3260         -fmath-errno is set.
3261
3262 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
3263
3264         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
3265         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3266         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3267
3268 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3269
3270         PR c/35434
3271         * c-common.c (handle_alias_attribute): Disallow attribute for
3272         anything not a FUNCTION_DECL or VAR_DECL.
3273
3274 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
3275
3276         PR c/39035
3277         * real.c (do_compare): Special-case compare of zero against
3278         decimal float value.
3279
3280 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3281
3282         PR c/36432
3283         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
3284         as indicating flexible array members unless the field itself is
3285         being declarared as the incomplete array.
3286
3287 2009-02-06  Jan Hubicka  <jh@suse.cz>
3288
3289         PR tree-optimization/38844
3290         * ipa-inline.c (try_inline): Stop inlining recursion when edge
3291         is already inlined.
3292
3293 2009-02-06  Richard Guenther  <rguenther@suse.de>
3294
3295         PR middle-end/38977
3296         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
3297         fork because we may expand it as __gcov_fork.
3298
3299 2009-02-06  Nick Clifton  <nickc@redhat.com>
3300
3301         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
3302
3303 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
3304
3305         PR tree-optimization/35659
3306         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
3307         vn_phi_eq): Shortcut if hashcode does not match.
3308         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
3309         NULL operands.
3310         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
3311         and avoid iterative_hash_expr.
3312         (FOR_EACH_VALUE_ID_IN_SET): New.
3313         (value_id_compare): Remove.
3314         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
3315         sort expressions by value id.
3316
3317 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3318
3319         PR target/38991
3320         * config/sh/predicates.md (general_movsrc_operand): Don't check
3321         the subreg of system registers here.
3322
3323 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
3324
3325         PR c++/39106
3326         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
3327         on the copied decl.
3328
3329 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
3330
3331         PR rtl-optimization/39110
3332         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
3333         addresses, not aligned ones.
3334
3335 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
3336             Richard Guenther  <rguenther@suse.de>
3337
3338         PR tree-optimization/39100
3339         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
3340         comment says and add edges.
3341
3342 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
3343
3344         PR c/35435
3345         * c-common.c (handle_tls_model_attribute): Ignore attribute for
3346         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
3347
3348 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de> 
3349
3350         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
3351         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
3352         register_bb_in_sese, new_sese, free_sese): Moved.
3353         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
3354         outermost_loop_in_scop, build_scop_iteration_domain,
3355         expand_scalar_variables_ssa_name, get_vdef_before_scop,
3356         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
3357         Use loop_in_sese_p instead of loop_in_scop_p.
3358         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
3359         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
3360         (scopdet_basic_block_info): Fix bug in scop detection.
3361         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
3362         eq_loop_to_cloog_loop): Remove.
3363         (nb_loops_around_loop_in_scop, nb_loop
3364         ref_nb_loops): Moved here...
3365         * graphite.h (ref_nb_loops): ... from here.
3366         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
3367         (loop_domain_dim, loop_iteration_vector_dim): Remove.
3368         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
3369         * testsuite/gcc.dg/graphite/scop-19.c: New
3370
3371 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
3372             Hans-Peter Nilsson  <hp@axis.com>
3373
3374         PR rtl-optimization/37889
3375         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
3376         Move offset handling from PLUS to before the switch.  Use new
3377         arguments when considering SYMBOL_REFs too.
3378         (rtx_addr_can_trap_p): Pass dummy offset and size.
3379         (enum may_trap_p_flags): Remove.
3380         (may_trap_p_1): Pass size from MEM_SIZE.
3381
3382         PR rtl-optimization/38921
3383         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
3384         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
3385         * rtlanal.c (may_trap_after_code_motion_p): Delete.
3386         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
3387
3388 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3389
3390         AVX Programming Reference (January, 2009)
3391         * config/i386/sse.md (*vpclmulqdq): New.
3392
3393 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
3394
3395         PR tree-optimization/38977
3396         PR gcov-profile/38292
3397         * calls.c (special_function_p): Disregard __builtin_ prefix.
3398
3399 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
3400
3401         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
3402         non-indexable addresses even before reload.
3403
3404 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
3405
3406         PR c/29129
3407         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
3408         as having variable size.  Do not give an error for unnamed
3409         parameters with [*] declarators.  Give a warning for type names
3410         with [*] declarators and mark them as variable size.
3411         * c-parser.c (c_parser_sizeof_expression): Do not give an error
3412         for sizeof applied to [*] type names.
3413
3414 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3415
3416         PR C++/36607
3417         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
3418
3419 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
3420
3421         * gcc.c (process_command): Update copyright notice dates.
3422         * gcov.c (print_version): Likewise.
3423         * gcov-dump.c (print_version): Likewise.
3424         * mips-tfile.c (main): Likewise.
3425         * mips-tdump.c (main): Likewise.
3426
3427 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
3428
3429         PR c/35433
3430         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
3431         for composite type involving a zero-length array type.
3432
3433 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
3434
3435         PR target/35318
3436         * function.c (match_asm_constraints_1): Skip over
3437         initial optional % in the constraint.
3438
3439         PR inline-asm/39059
3440         * c-parser.c (c_parser_postfix_expression): If fixed point is not
3441         supported, don't accept FIXED_CSTs.
3442         * c-decl.c (finish_declspecs): Error if fixed point is not supported
3443         and _Sat is used without _Fract/_Accum.  Set specs->type to
3444         integer_type_node for cts_fract/cts_accum if fixed point is not
3445         supported.
3446
3447 2009-02-02  Catherine Moore  <clm@codesourcery.com>
3448
3449         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
3450
3451 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
3452
3453         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
3454         (ABI_HAS_64BIT_SYMBOLS): Use it.
3455         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
3456
3457 2009-02-02  Paul Brook  <paul@codesourcery.com>
3458
3459         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
3460
3461 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
3462
3463         PR inline-asm/39058
3464         * recog.h (asm_operand_ok): Add constraints argument.
3465         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
3466         recurse on matching constraint.
3467         (check_asm_operands): Pass constraints as 3rd argument to
3468         asm_operand_ok.  Don't look up matching constraint here.
3469         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
3470         to asm_operand_ok.
3471
3472 2009-02-02  Ben Elliston  <bje@au.ibm.com>
3473
3474         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
3475         TARGET_NARROW_VOLATILE_BITFIELD macro names.
3476
3477 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3478
3479         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
3480         information.  Remove some obsolete information.  Reorganize.
3481
3482         * config/pa/fptr.c: Revert license to GPL 2.
3483         * config/pa/milli64.S: Likewise.
3484
3485 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
3486
3487         PR target/38904
3488         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
3489         LIBRARY name in, instead of hard-coding it.
3490         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
3491         extra target make frag to tmake_files according to EH model.
3492         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
3493         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
3494         frags that define makefile variable EH_MODEL appropriately.
3495         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
3496         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
3497         to "-sjlj" according to type of EH configured.
3498         (LIBGCC_SONAME):  Concatenate it to shared library base name.
3499         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
3500         to "_sjlj" according to type of EH configured.
3501         (LIBGCC_SONAME):  Concatenate it to shared library base name.
3502         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
3503         (SHLIB_LINK):  Add missing semicolon to if-else construct.
3504         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
3505         string value of "pe_dll" command-line option.
3506         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
3507         (SHLIB_SONAME):  Use it when overriding t-cygming default.
3508         (SHLIB_IMPLIB):  Override t-cygming default.
3509         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
3510         string value of "pe_dll" command-line option.
3511
3512 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
3513
3514         PR target/38952
3515         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
3516         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
3517
3518 2009-01-31  Richard Guenther  <rguenther@suse.de>
3519
3520         PR tree-optimization/38937
3521         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
3522         computing the transitive closure.
3523
3524 2009-01-30  Richard Guenther  <rguenther@suse.de>
3525
3526         PR tree-optimization/39041
3527         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
3528         Propagate variable indices only if the types match for this stmt.
3529
3530 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3531
3532         PR target/39013
3533         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
3534         inline but never defined.
3535
3536 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
3537
3538         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
3539         (*insv_h_di_reg_extimm): New insn.
3540         (*insv_l<mode>_reg_extimm): New insn.
3541
3542 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
3543
3544         * config/picochip/picochip.c (flag_conserve_stack): set
3545         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
3546         fconserve-stack. Reduce call-overhead used by inliner.
3547
3548 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
3549
3550         PR/38157
3551         * common.opt (flag_conserve_stack): Initialised to zero.
3552
3553 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
3554
3555         PR/39002
3556         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
3557         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
3558         method.
3559
3560 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3561
3562         * ira-color.c (allocno_reload_assign): Update comments.
3563         * regmove.c (regmove_optimize): Likewise.
3564
3565         * ra.h: Removed.
3566
3567 2009-01-29  Robert Millan  <rmh@aybabtu.com>
3568
3569         * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
3570         * gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
3571         `MD_UNWIND_SUPPORT'.
3572         * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
3573
3574 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
3575
3576         PR tree-optimization/39007
3577         * tree-loop-distribution.c (generate_builtin): Use
3578         recompute_dominator to compute the immediate dominator of the
3579         basic block just after the loop.
3580
3581 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3582
3583         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
3584         (ASM_OUTPUT_DWARF_PCREL): Define.
3585
3586 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
3587
3588         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
3589         * doc/passes.texi: Remove entries about regclass, local-alloc, and
3590         global.  Modify entries about regmove and IRA.
3591
3592         * ra-conflict.c: Remove the file.
3593
3594         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
3595
3596         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
3597         (pass_regclass_init): Rename to pass_reginfo_init.
3598
3599         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
3600
3601         * toplev.h (flag_ira): Remove.
3602
3603         * caller-save.c (setup_save_areas): Remove flag_ira.
3604
3605         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
3606
3607         * global.c: Remove the file.
3608
3609         * opts.c (decode_options): Remove flag_ira.
3610
3611         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
3612
3613         * regmove.c: Modify file description.
3614         (find_use_as_address, try_auto_increment): Define them only if
3615         AUTO_INC_DEC is defined.
3616         (replacement_quality, replace_in_call_usage, fixup_match_1,
3617         stable_and_no_regs_but_for_p): Remove.
3618         (reg_set_in_bb): Make it static.
3619         (regmove_optimize): Remove flag_ira and code which worked for
3620         !flag_ira.
3621
3622         * local-alloc.c: Remove the file.
3623
3624         * common.opt (fira): Remove.
3625
3626         * ira.c: Include except.h.
3627         (eliminable_regset): Move from global.c.
3628         (mark_elimination): Ditto.  Remove flag_ira.
3629         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
3630         equiv_mem_modified, validate_equiv_mem_from_store,
3631         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
3632         contains_replace_regs, memref_referenced_p, memref_used_between_p,
3633         no_equiv, recorded_label_ref): Move from local-alloc.c.
3634         (update_equiv_regs): Ditto.  Make it static.
3635         (print_insn_chain, print_insn_chains): Move it from global.c.
3636         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
3637         (build_insn_chain): Ditto.  Make it static.
3638         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
3639         Rename to init_live_subregs.
3640         (gate_ira): Remove flag_ira.
3641
3642         * regclass.c: Rename reginfo.c.  Change file description.
3643         (FORBIDDEN_INC_DEC_CLASSES): Remove.
3644         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
3645         (init_reg_sets_1): Remove code for evaluation of
3646         reg_class_superclasses and losing_caller_save_reg_set.
3647         (init_regs): Remove init_reg_autoinc.
3648         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
3649         ok_for_base_p_nonstrict): Remove.
3650         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
3651         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
3652         corresponding entries.
3653         (dump_regclass, record_operand_costs, scan_one_insn,
3654         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
3655         record_address_regs, auto_inc_dec_reg_p): Remove.
3656         (gt-regclass.h): Rename to gt-reginfo.h.
3657
3658         * rtl.h (dump_global_regs, retry_global_alloc,
3659         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
3660
3661         * Makefile.in (RA_H): Remove.
3662         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
3663         Rename regclass.o to reginfo.o.
3664         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
3665         gt-reginfo.h.
3666         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
3667         (GTFILES): Rename regclass.c to reginfo.c.
3668
3669         * passes.c (init_optimization_passes): Remove pass_local_alloc and
3670         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
3671
3672         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
3673         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
3674         Remove flag_ira.
3675         (finish_spills): Ditto.  Remove code for !flag_ira.
3676         
3677 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
3678
3679         PR middle-end/35854
3680         * doc/invoke.texi (rtl debug options): Complete rewrite.
3681         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
3682         to auto_inc_dec".
3683         * mode-switching.c (pass_mode_switching): Rename pass from
3684         "mode-sw" to "mode_sw".
3685         * except.c (pass_convert_to_eh_ranges): Rename pass from
3686         "eh-ranges" to "eh_ranges".
3687         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
3688         to "subreg1".
3689                 
3690         
3691 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
3692             Alexander Monakov  <amonakov@ispras.ru>
3693
3694         PR middle-end/38857
3695         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
3696         register.
3697         (move_exprs_to_boundary): Change return type and pass through
3698         should_move from move_op.  Relax assert.  Update usage ...
3699         (schedule_expr_on_boundary): ... here.  Use should_move instead of
3700         cant_move.
3701         (move_op_orig_expr_found): Indicate that insn was disconnected from
3702         stream.
3703         (code_motion_process_successors): Do not call after_merge_succs
3704         callback if original expression was not found when traversing any of
3705         the branches.
3706         (code_motion_path_driver): Change return type.  Update prototype.
3707         (move_op): Update comment.  Add a new parameter (should_move).  Update
3708         prototype.  Set *should_move based on indication provided by
3709         move_op_orig_expr_found.
3710
3711 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
3712
3713         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
3714         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
3715         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
3716         * config/rs6000/rs6000.c (rs6000_override_options): Default
3717         avoid-indexed-addresses on for Power6, off for everything else.
3718         (avoiding_indexed_address_p): New function.
3719         (rs6000_legitimize_address): Use it.
3720         (rs6000_legitimate_address): Likewise.
3721         * config/rs6000/rs6000.md (movXX_updateX): Likewise
3722
3723 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
3724
3725         PR tree-optimization/38997
3726         * tree-loop-distribution.c (generate_memset_zero): Use
3727         POINTER_PLUS_EXPR for a pointer addition.
3728
3729 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
3730
3731         * config/s390/s390.md (bswap<mode>2): New pattern added.
3732
3733 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
3734
3735         * config/s390/s390.md (*tls_load_31): Added type attribute.
3736
3737 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
3738
3739         * config/s390/s390.md: Fix a few comments.
3740
3741 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
3742
3743         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
3744         (*tm<mode>_full): Fixed z10prop attribute.
3745         (*tst<mode>_extimm): Fixed z10prop attribute.
3746         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
3747         (*tstqiCCT_cconly): Fixed z10prop attribute.
3748         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
3749         (*movsi_larl): Fixed z10prop attribute.
3750         (*movsi_zarch): Fixed z10prop attribute.
3751         (*movsi_eas): Fixed z10prop attribute.
3752         (*movhi): Fixed z10prop attribute.
3753         (*movqi): Fixed z10prop attribute.
3754         (*movstrictqi): Fixed z10prop attribute.
3755         (*mov<mode>): Fixed z10prop attribute.
3756         (*movcc): Fixed z10prop attribute.
3757         (*sethighpartdi_64): Fixed z10prop attribute.
3758         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
3759         (*negdi2_sign_cc): Fixed z10prop attribute.
3760         (*negdi2_sign): Fixed z10prop attribute.
3761         (*absdi2_sign_cc): Fixed z10prop attribute.
3762         (*absdi2_sign): Fixed z10prop attribute.
3763         (*negabsdi2_sign_cc): Fixed z10prop attribute.
3764         (*negabsdi2_sign): Fixed z10prop attribute.
3765         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
3766         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
3767         (doloop_si64): Fixed z10prop attribute.
3768         (doloop_si31): Fixed z10prop attribute.
3769         (doloop_long): Fixed z10prop attribute.
3770         (indirect_jump): Fixed z10prop attribute.
3771         (nop): Fixed z10prop attribute.
3772         (main_base_64): Fixed z10prop attribute.
3773         (reload_base_64): Fixed z10prop attribute.
3774
3775 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
3776
3777         PR rtl-optimization/38740
3778         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
3779         if !optimize.
3780         * config/mips/mips.c (mips_reorg): Likewise.
3781
3782 2009-01-28  Richard Guenther  <rguenther@suse.de>
3783
3784         PR tree-optimization/38926
3785         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
3786         with the correct value id to a value.
3787         (do_regular_insertion): Use the value number of edoubleprime
3788         for the value number of the expr.
3789
3790         Revert
3791         2008-08-21  Richard Guenther  <rguenther@suse.de>
3792
3793         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3794         a PHI ask VN if it is already available.
3795         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3796         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3797
3798 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
3799
3800         PR middle-end/38934
3801         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
3802         set to varying whenever max has TREE_OVERFLOW set, similarly
3803         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
3804
3805 2009-01-28  Richard Guenther  <rguenther@suse.de>
3806
3807         PR middle-end/38908
3808         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
3809         uninitialized aggregate uses in call arguments.
3810
3811 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
3812
3813         PR tree-optimization/38984
3814         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
3815         the nothing_id variable if -fno-delete-null-pointer-checks.
3816
3817 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
3818
3819         PR target/38988
3820         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
3821         (set_got_offset_rex64): Ditto.
3822
3823 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
3824
3825         PR target/38941
3826         * doc/extend.texi: Improve local variable with asm reg.
3827
3828 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
3829
3830         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
3831         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
3832         was not supplied then set warn_packed_bitfield_compat to the
3833         default value of 1.
3834         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
3835         against 1.
3836
3837 2009-01-27  Richard Guenther  <rguenther@suse.de>
3838
3839         PR tree-optimization/38503
3840         * cfgexpand.c (expand_gimple_basic_block): Ignore
3841         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
3842         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
3843         variables that cannot have TBAA applied.
3844         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
3845         statements.
3846
3847 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
3848
3849         PR middle-end/38969
3850         * calls.c (initialize_argument_information): Do not wrap complex
3851         arguments in SAVE_EXPR.
3852
3853 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
3854
3855         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
3856         (INSTALL_LIBGCC): Revert typo commit.
3857
3858 2009-01-26  Richard Guenther  <rguenther@suse.de>
3859
3860         PR tree-optimization/38745
3861         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
3862         from special handling.
3863
3864 2009-01-26  Richard Guenther  <rguenther@suse.de>
3865
3866         PR tree-optimization/38745
3867         * tree-ssa.c (execute_update_addresses_taken): Do not include
3868         variables that cannot possibly be a register in not_reg_needs.
3869         Do not clear TREE_ADDRESSABLE on vars that may not become
3870         registers.
3871         * tree-ssa.c (update_alias_info_1): Include those in the set
3872         of addressable vars.
3873
3874 2009-01-26  Richard Guenther  <rguenther@suse.de>
3875
3876         PR middle-end/38851
3877         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
3878         * tree-ssa-dse.c: Include langhooks.h
3879         (execute_simple_dse): Remove stores with zero size.
3880
3881 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
3882
3883         PR c/38957
3884         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
3885         as PLUS_EXPR.
3886
3887 2009-01-24  Julian Brown  <julian@codesourcery.com>
3888
3889         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
3890         config/arm/linux-atomic.c.
3891         * config/arm/linux-atomic.c: New.
3892
3893 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
3894
3895         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
3896         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
3897         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
3898
3899 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3900
3901         PR c/38938
3902         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
3903         properly.
3904
3905 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
3906
3907         PR tree-optimization/38953
3908         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
3909         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
3910         (gloog): Split the exit of the scop when the scop exit is a loop exit.
3911         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
3912         changed the CFG.
3913
3914 2009-01-24  Paul Brook  <paul@codesourcery.com>
3915
3916         * config/arm/neon.md (neon_type): Move to arm.md.
3917         (neon_mov<VSTRUCT>): Add neon_type attribute.
3918         * config/arm/arm.md (neon_type): Move to here.
3919         (conds): Add "unconditioal" and use as default for NEON insns.
3920
3921 2009-01-24  Ben Elliston  <bje@au.ibm.com>
3922
3923         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
3924         void *' warning from -Wc++-compat.
3925         * Makefile.in (dominance.o-warn): Remove.
3926
3927 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
3928
3929         PR tree-optimization/38932
3930         * fold-const.c (fold_unary_ignore_overflow): New.
3931         * tree.h (fold_unary_ignore_overflow): Declare.
3932         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
3933         * tree-ssa-sccvn.c (visit_reference_op_load,
3934         simplify_unary_expression): Likewise.
3935
3936 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
3937
3938         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
3939         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
3940         regardless of their type.
3941         * c-common.c (handle_packed_attribute): Don't ignore packed on
3942         bitfields.
3943         * c.opt (Wpacked-bitfield-compat): New warning option.
3944         * stor-layout.c (place_field): Warn if offset of a field changed.
3945         * doc/extend.texi (packed): Mention the ABI change.
3946         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
3947         (Warning Options): Add it to the list.
3948
3949 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
3950
3951         * c-opts.c (c_common_post_options): Fix a typo in comments.
3952
3953 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
3954
3955         PR middle-end/38615
3956         * gimplify.c (gimplify_init_constructor): Fix promotion of const
3957         variables to static.
3958         * doc/invoke.texi (-fmerge-all-constants): Update description.
3959
3960 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
3961
3962         PR target/38931
3963         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
3964         (*movdi_1_rex64): Use type "mmx" for alternative 5.
3965
3966 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
3967
3968         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
3969         a word boundary.
3970         (LOCAL_ALIGNMENT): Similarly.
3971
3972 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
3973             Joseph Myers  <joseph@codesourcery.com>
3974
3975         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
3976         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
3977         * config/arm/arm-tune.md: Regenerate.
3978         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
3979         -march=iwmmxt2.
3980
3981 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
3982
3983         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
3984         version number to five.
3985
3986 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
3987
3988         PR c++/38930
3989         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
3990         * c-common.c (set_underlying_type): Likewise.
3991         (is_typedef_decl ): Likewise
3992         * tree.h: Likewise
3993         (set_underlying_type): Likewise.
3994         (is_typedef_type): Likewise.
3995
3996 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
3997
3998         PR middle-end/38587
3999         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
4000         crossing setjmps.
4001
4002 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
4003
4004         PR bootstrap/37660
4005         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
4006         (LIBGCC_SPEC):  Don't define.
4007         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
4008
4009 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
4010
4011         PR rtl-optimization/38879
4012         * alias.c (base_alias_check): Unaligned access via AND address can
4013         alias all surrounding object types except those with sizes equal
4014         or wider than the size of unaligned access.
4015
4016 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
4017
4018         PR c++/26693
4019         * c-decl.c (clone_underlying_type): Move this ...
4020         * c-common.c (set_underlying_type): ... here.
4021         Also, make sure the function properly sets TYPE_STUB_DECL() on
4022         the newly created typedef variant type.
4023         (is_typedef_decl ): New entry point.
4024         * tree.h: Added a new member member_types_needing_access_check to
4025         struct tree_decl_non_common.
4026         (set_underlying_type): New entry point.
4027         (is_typedef_type): Likewise.
4028
4029 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
4030
4031         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
4032         Check whether two instructions have memory references that
4033         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
4034         are helper functions for traversing.
4035         * alias.h (insn_alias_sets_confilict_p): New prototypes.
4036         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
4037         not to draw dependency edge for instructions with non-conflicting
4038         alias sets.
4039
4040 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
4041
4042         PR other/38758
4043         * longlong.h: Update copyright years.  Use soft-fp license notice.
4044         Sync __clz_tab declaration with glibc.
4045
4046 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
4047
4048         PR target/30687
4049         * doc/extend.texi (syscall_linkage): New.
4050         (version_id): Modify.
4051
4052 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4053             Richard Guenther  <rguenther@suse.de>
4054
4055         PR tree-optimizati