OSDN Git Service

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