re PR target/10781 (wrong class size and alignment with static class member)
[gcc.git] / gcc / ChangeLog
1 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2
3 PR target/10781
4 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
5 Prototype.
6 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
7 New function.
8 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
10 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
11
12 2004-01-17 Jan Hubicka <jh@suse.cz>
13
14 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
15 commit.
16
17 * toplev.c (HAVE_conditional_execution): Provide default.
18 (rest_of_handle_reorder_blocks): For conditional_execution target
19 update liveness once after all transformations
20 (rest_of_compilation): Do crossjumping before ce3.
21
22 2004-01-17 Geoffrey Keating <geoffk@apple.com>
23
24 * alias.c (new_alias_set): Mark last_alias_set for PCH.
25 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
26 for PCH.
27 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
28 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
29 (get_TOC_alias_set): Mark 'set' for PCH.
30
31 2004-01-16 Geoffrey Keating <geoffk@apple.com>
32
33 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
34 even after reload, just don't remove the actual jump tables.
35
36 2004-01-17 J. Brobecker <brobecker@gnat.com>
37
38 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
39 Remove checks for is_ada() and TREE_UNSIGNED.
40 (subrange_type_die): Emit a byte_size attribute if the subrange
41 type size is different from the base type size.
42 (modified_type_die): Replace call to is_ada_subrange_type() by
43 call to is_subrange_type().
44
45 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
46
47 * config/sh/sh.c: Include ggc.h.
48
49 2004-01-16 Geoffrey Keating <geoffk@apple.com>
50
51 * Makefile.in (MD5_H): New.
52 (fold-const.o): Depend on md5.h.
53 (dwarf2out.o): Likewise.
54 (cppfiles.o): Likewise.
55 * cppfiles.c: Include md5.h.
56 (should_stack_file): Check against list read from PCH file.
57 (struct pchf_data): New.
58 (pchf): New variable.
59 (struct pchf_adder_info): New.
60 (pchf_adder): New.
61 (pchf_save_compare): New.
62 (_cpp_save_file_entries): New.
63 (_cpp_read_file_entries): New.
64 (struct pchf_compare_data): New.
65 (pchf_compare): New.
66 (check_file_against_entries): New.
67 * cpphash.h (_cpp_save_file_entries): Prototype.
68 (_cpp_read_file_entries): Prototype.
69 * cpppch.c (cpp_write_pch_state): Write the list of headers.
70 (cpp_read_state): Read the list of headers.
71
72 2004-01-17 Jan Hubicka <jh@suse.cz>
73
74 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
75 builtin_expect specially.
76 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
77 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
78 * invoke.texi (max-inline-insns-single): Set to 100.
79 (large-function-insns): Set to 3000.
80
81 2004-01-16 Eric Christopher <echristo@redhat.com>
82 Chandrakala Chavva <cchavva@redhat.com>
83
84 * cppcharset.c (one_iso88591_to_utf8): New function.
85 (convert_iso88591_utf8): Ditto. Use.
86 (conversion_tab): Use.
87 (_cpp_input_to_utf8): New function.
88 (_cpp_init_iconv_buffer): Ditto.
89 (_cpp_close_iconv_buffer): Ditto.
90 * cpphash.h: Prototype new functions.
91 (cpp_buffer): Add input_cset_desc.
92 * cppinit.c: Add input_charset default.
93 * cpplib.c (cpp_push_buffer): Support init and
94 close of iconv.
95 * cpplib.h (cpp_options): Add input_charset.
96
97 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
98
99 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
100 * config/alpha/unicosmk.h: Remove a commented-out definition
101 of ASM_OUTPUT_SECTION_NAME.
102 * config/stormy16/stormy16.h: Likewise.
103
104 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
105
106 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
107 (alpha___extern_prefix_sys_stat): ... this.
108 Apply to <sys/mount.h>, too.
109 Tweak to match more variations.
110 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
111
112 * fixinc/inclhack.def (alpha___extern_prefix,
113 alpha___extern_prefix_standards): New hacks to obey
114 __PRAGMA_EXTERN_PREFIX.
115 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
116 test.
117 * fixinc/tests/base/standards.h: Likewise.
118
119 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
120 variations.
121 New testcase.
122 * fixinc/tests/base/pthread.h: Handle it.
123
124 * fixincl/inclhack.def (bad_lval): Sort file list.
125 Add many missing files up to Tru64 UNIX V5.1B.
126 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
127 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
128 order.
129
130 * fixinc/fixincl.x: Regenerate.
131
132 2004-01-16 Mark Mitchell <mark@codesourcery.com>
133
134 * version.c (version_string): Change to 3.5.0.
135 * doc/include/gcc-common.texi (version-GCC): Likewise.
136
137 2004-01-16 Jan Hubicka <jh@suse.cz>
138
139 * i386.md (load_tp_di): Fix pasto.
140
141 PR opt/13608
142 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
143
144 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
145 pp_c_character_constant, pp_c_floating_constant,
146 pp_c_additive_expression, pp_c_shift_expression,
147 pp_c_equality_expression, pp_c_and_expression,
148 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
149 pp_c_logical_and_expression): Remove inline modifier.
150 * dwarf2out.c (get_AT): Likewise.
151 * et-forest.c (et_splay): Likewise.
152 * ra.h (ra_alloc, ra_calloc): Likewise
153
154 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
155
156 * config/frv/frv-protos.h: Fix comment formatting.
157 * config/frv/frv.c: Likewise.
158 * config/frv/frv.h: Likewise.
159 * config/frv/frv.md: Likewise.
160 * config/frv/frvbegin.c: Likewise.
161 * config/frv/frvend.c: Likewise.
162
163 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
164
165 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
166 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
167 LINKER_DOES_NOT_WORK_WITH_DWARF2.
168 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
169
170 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
171
172 PR 11864
173 * postreload.c (reload_cse_simplify_operands): Don't remove
174 implicit extension from LOAD_EXTEND_OP.
175
176 2004-01-16 Jan Hubicka <jh@suse.cz>
177
178 PR opt/11350
179 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
180 after reload.
181 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
182 rtl_try_redirect_by_replacing_branch): Likewise.
183
184 2004-01-15 Geoffrey Keating <geoffk@apple.com>
185
186 PR pch/13689
187 * alias.c (struct alias_set_entry): Mark for GC.
188 (alias_sets): Make static, mark for GC.
189 (record_alias_subset): Use GC to allocate alias structures.
190 * varray.c (element): Make generic varrays GCed.
191
192 PR pch/13361
193 * c-typeck.c (constructor_asmspec): Delete.
194 (struct initializer_stack): Delete field 'asmspec'.
195 (start_init): Delete saving of asmspec.
196 (finish_init): Don't update constructor_asmspec.
197 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
198 * stmt.c (expand_asm): Duplicate strings from tree.
199 (expand_asm_operands): Likewise.
200 * tree.c (tree_size): Update computation of size of STRING_CST.
201 (make_node): Don't make STRING_CST nodes.
202 (build_string): Allocate string with tree node.
203 * tree.def (STRING_CST): Update comment.
204 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
205 (tree_string): Place contents of string in tree node.
206 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
207 from tree.
208
209 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
210 altivec operands.
211
212 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
213
214 * c-common.h: Fix comment formatting.
215 * c-cppbuiltin.c: Likewise.
216 * c-pragma.c: Likewise.
217 * calls.c: Likewise.
218 * collect2.c: Likewise.
219 * cppcharset.c: Likewise.
220 * cpptrad.c: Likewise.
221 * dbxout.c: Likewise.
222 * defaults.h: Likewise.
223 * dwarf2out.c: Likewise.
224 * fold-const.c: Likewise.
225 * genautomata.c: Likewise.
226 * genconditions.c: Likewise.
227 * genflags.c: Likewise.
228 * gengtype.c: Likewise.
229 * integrate.c: Likewise.
230 * loop.c: Likewise.
231 * predict.c: Likewise.
232 * sdbout.c: Likewise.
233
234 2004-01-15 Zack Weinberg <zack@codesourcery.com>
235
236 * config/ia64/ia64.md (*movti_internal): C output template
237 extracted to ia64.c.
238 (*movti_internal_reg): Delete.
239 (reload_inti, reload_outti): Use the correct mode on operand 2
240 in the first place, don't fix it up in the output template.
241 (movtf, reload_ointf, reload_outtf): New expanders.
242 (*movtf_internal): New define_insn_and_split.
243 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
244 make static; do not hand TFmode CONST_DOUBLEs to split_double.
245 (ia64_split_tmode_move): New function, body mostly pulled
246 from ia64.md:*movti_internal.
247 (ia64_function_arg_words): New function, extracted common
248 logic from ia64_function_arg et seq.
249 (ia64_function_arg_offset): Likewise. Handle correctly the
250 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
251 (ia64_function_arg, ia64_function_arg_partial_nregs)
252 (ia64_function_arg_advance): Use ia64_function_arg_words and
253 ia64_function_arg_offset.
254 (ia64_function_value): TCmode does not go in float regs.
255 (ia64_secondary_reload_class): Also handle TFmode.
256 * config/ia64/ia64-protos.h: Remove prototype for
257 ia64_split_timode; add prototype for ia64_split_tmode_move.
258
259 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
260
261 * Makefile.in (MAINT): Make it an immediate assignment.
262
263 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
264
265 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
266
267 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
268
269 * config/h8300/coff.h: Replace Hitachi with Renesas.
270 * config/h8300/elf.h: Likewise.
271 * config/h8300/h8300-protos.h: Likewise.
272 * config/h8300/h8300.c: Likewise.
273 * config/h8300/h8300.h: Likewise.
274 * config/h8300/h8300.md: Likewise.
275 * config/h8300/lib1funcs.asm: Likewise.
276
277 2004-01-15 Andrew Pinski <apinski@apple.com>
278
279 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
280 around it.
281
282 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
283
284 * config/h8300/h8300.c (h8300_return_in_memory): New.
285 (TARGET_STRUCT_VALUE_RTX): Likewise.
286 (TARGET_RETURN_IN_MEMORY): Likewise.
287 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
288 (RETURN_IN_MEMORY): Likewise.
289
290 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
291
292 PR optimization/13375
293 * gcse.c (handle_avail_expr): Just return if the source is not a
294 single set.
295
296 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
297 Daniel Jacobowitz <drow@mvista.com>
298
299 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
300 (EQUIV): Define.
301 (ARM_FUNC_ALIAS): New macro.
302 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
303 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
304
305 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
306
307 PR optimization/12372
308 * calls.c (expand_call): Add call_fusage data for stack arguments in
309 constant calls.
310
311 2004-01-15 Alan Modra <amodra@bigpond.net.au>
312
313 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
314 (rs6000_elf_declare_function_name): Formatting.
315 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
316
317 2004-01-15 Jan Hubicka <jh@suse.cz>
318
319 PR bootstrap/13692
320 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
321 previous patch.
322
323 2004-01-15 Richard Henderson <rth@redhat.com>
324
325 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
326 integer regs of the same call-savedness.
327
328 2004-01-15 Andreas Schwab <schwab@suse.de>
329
330 PR bootstrap/13562
331 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
332 status for NOTB/NOTW/NEGW methods.
333
334 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
335
336 * doc/invoke.texi: Update dump file names. Fix a typo.
337
338 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
339
340 * builtins.c (expand_builtin_va_end): Don't use
341 EXPAND_BUILTIN_VA_END.
342 * system.h (EXPAND_BUILTIN_VA_END): Poison.
343 * config/d30v/d30v.h: Remove a commented-out definition of
344 EXPAND_BUILTIN_VA_END.
345 * config/stormy16/stormy16.h: Likewise.
346
347 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
348
349 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
350 * targhooks.c (default_struct_value_rtx): Don't use
351 STRUCT_VALUE_INCOMING_REGNUM.
352
353 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
354
355 PR bootstrap/12744
356 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
357 GENINSRC and not parsedir. Define srcextra as a langhook.
358 * configure: Regenerate.
359 * Makefile.in: Suppress default .l.c rule. Don't substitute
360 parsedir and delete all references throughout. Conditionally define
361 rule for srcextra dependent on GENINSRC.
362 (stmp-docobjdir): Delete.
363 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
364 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
365 and gengtype-yacc.h back to source directory.
366 (maintainer-clean): Delete all parse files in source directory.
367 (distclean): Delete generated files.
368
369 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
370 (objc-parse.c, objc-parse.y): Don't use parsedir.
371 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
372 directory if requested.
373 (po-generated): Don't use parsedir.
374 (objc.maintainer-clean): Delete above files from source directory.
375
376 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
377
378 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
379
380 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
381
382 * doc/tm.texi: Replace RETURN_IN_MEMORY with
383 TARGET_RETURN_IN_MEMORY.
384
385 2004-01-15 Jan Hubicka <jh@suse.cz>
386
387 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
388 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
389 functions accepting SSE arguments
390 (function_arg): Warn only when asked to warn.
391 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
392
393 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
394
395 * c-parse.in (stmts_and_decls): Make label at end of compound
396 statement a hard error.
397
398 2004-01-14 Jan Hubicka <jh@suse.cz>
399
400 * cgraph.c (create_edge): Use local.redefined_extern_inline.
401 * cgraph.h (cgraph_local_info): Sort fields by size; add
402 redefined_extern_inline
403 (cgraph_global_info): Sort fields by size.
404 (cgraph_node): Likewise.
405 * cgraphunit.c (cgraph_finalize_function): Se
406 local.redefined_extern_inline on redefinition.
407 (cgraph_analyze_function): Use it; fix formating.
408
409 2004-01-14 Jan Hubicka <jh@suse.cz>
410
411 PR c++/10776
412 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
413 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
414 bitmaps
415 (cache_size): New variable
416 (add_dependence): Update use; canonize early memory locations
417 (sched_analyze_1): Likewise.
418 (sched_analyze_2): Likewise.
419 (init_dependency_caches): Initialize bitmaps.
420 (free_dependency_caches): Free bitmaps
421
422 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
423
424 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
425 targetm.calls.strict_argument_naming().
426 * target.h: Likewise.
427
428 2004-01-14 Richard Henderson <rth@redhat.com>
429
430 PR debug/13231
431 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
432 instructions.
433
434 2004-01-14 Richard Henderson <rth@redhat.com>
435
436 PR c++/12491
437 * except.c (struct eh_region): Add u.fixup.resolved.
438 (resolve_one_fixup_region): Split out from ...
439 (resolve_fixup_regions): ... here.
440
441 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
442
443 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
444
445 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
446
447 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
448 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
449 (STRUCT_VALUE): Remove.
450
451 2003-01-14 Steven Bosscher <stevenb@suse.de>
452
453 * system.h: Poison PROMOTED_MODE
454 * integrate.c (expand_inline_function): Don't mention the
455 PROMOTED_MODE.
456 * loop.c (update_giv_derive): Same.
457 * tree.h (DECL_RTL): Same.
458
459 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
460
461 PR target/9365
462 * sh.c (gen_block_redirect): Add special handling of RETURN.
463 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
464 far branch target (i.e. it's a return).
465
466 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
467
468 * regrename.c (find_oldest_value_reg): Fix a warning.
469
470 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
471
472 PR bootstrap/12527
473 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
474 Move linux-gas.h and linux-elf.h before aout.h.
475 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
476 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
477
478 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
479
480 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
481 (CONST_INT, VOIDmode, ...).
482
483 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
484
485 * regrename.c (find_oldest_value_reg): If the replacement uses
486 multiple hard registers, check that all of them are in CLASS.
487
488 2004-01-14 Jan Hubicka <jh@suse.cz>
489
490 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
491 impossible.
492
493 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
494
495 * Makefile.in: Define MAINT from --enable-maintainer-mode.
496
497 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
498
499 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
500 Calculate always vrsave_mask if TARGET_ALTIVEC.
501 (rs6000_emit_prologue): Emit code for vrsave
502 only if TARGET_ALTIVEC_VRSAVE.
503 (rs6000_emit_epilogue): Likewise.
504
505 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
506
507 * config/sparc/sparc.md (tie_add32): Fix pasto.
508 (tie_add64): Likewise.
509
510 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
511
512 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
513
514 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
515
516 * config/iq2000/iq2000-protos.h: Fix comment formatting.
517 * config/iq2000/iq2000.c: Likewise.
518 * config/iq2000/iq2000.md: Likewise.
519
520 2004-01-14 J. Brobecker <brobecker@gnat.com>
521
522 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
523 (subrange_type_die): Add handle for nameless subrange types.
524
525 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
526
527 * config/h8300/h8300-protos.h: Replace do_movsi with
528 h8300_expand_movsi.
529 * config/h8300/h8300.c (do_movsi): Change to
530 h8300_expand_movsi.
531 * config/h8300/h8300.md (movsi): Replace do_movsi with
532 h8300_expand_movsi.
533 (movsf): Likewise.
534
535 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
536
537 * config/h8300/h8300.c (dosize): Change to
538 h8300_emit_stack_adjustment. Update callers.
539
540 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
541
542 * config/h8300/h8300.md (movstrictqi): Add an alternative with
543 the source being post_inc. Tighten the predicate for the
544 destination to register_operand.
545 (movstricthi): Likewise.
546
547 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
548
549 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
550 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
551 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
552
553 2004-01-14 Jan Hubicka <jh@suse.cz>
554
555 Partial fix PR c++/12850
556 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
557 at zero nest level.
558
559 2004-01-13 Bernardo Innocenti <bernie@develer.com>
560
561 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
562 pseudo-register.
563
564 2004-01-13 Devang Patel <dpatel@apple.com
565
566 PR debug/7078
567 * dbxout.c (dbxout_symbol_name): Emit mangled names for
568 NAMESPACE_DECL memebers.
569
570 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
571
572 PR c++/12709
573 * c-common.c (finish_fname_decls): Use the chain only if the
574 tree is an expr_stmt.
575
576 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
577
578 * rtl.def: Add comment about new option in automata_option.
579
580 * genautomata.c (PROGRESS_OPTION): New macro.
581 (progress_flag): New global variable.
582 (gen_automata_option): Process `progress'.
583 (transform_insn_regexps, check_unit_distributions_to_automata,
584 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
585 expand_automata, write_automata): Print about the progress only if
586 progress_flag. Remove fflush.
587 (initiate_automaton_gen): Process command line flag `-progress'.
588
589 * doc/md.texi: Describe the new option.
590
591 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
592
593 * cfg.c (dump_bb): Dump entry edges.
594
595 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
596
597 * arm.c (thumb_legitimate_address_p): Only allow constant pool
598 references from SImode.
599 * arm.md (thumb_movhi_insn): Don't allow minipool references.
600
601 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
602
603 * system.h (TEXT_SECTION): Poison.
604 * varasm.c (text_section): Don't use TEXT_SECTION.
605 * config/sh/sh.c (sh_file_start): Fix a comment typo.
606 * doc/tm.texi (TEXT_SECTION): Remove.
607
608 2004-01-13 Ben Elliston <bje@wasabisystems.com>
609
610 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
611
612 2004-01-12 James E Wilson <wilson@specifixinc.com>
613
614 * unwind-libunwind.c: Delete.
615
616 2004-01-12 Zack Weinberg <zack@codesourcery.com>
617
618 PR 13656
619 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
620 oldtype is set, set *newtypep or *oldtypep too. Do not set
621 them at the very end.
622 (validate_proto_after_old_defn): Restructure for comprehensibility;
623 make error messages clearer.
624
625 2004-01-12 Zack Weinberg <zack@codesourcery.com>
626
627 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
628 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
629 * varray.c: No need to prototype error.
630 (varray_check_failed): Wrap long string onto two lines.
631 (varray_underflow): New function.
632
633 2004-01-13 Steven Bosscher <stevenb@suse.de>
634
635 PR c++/13376
636 * function.h (struct function): Kill `name' field.
637 (current_function_name): Make it an extern function.
638 * function.c (current_function_name): New function.
639 * graph.c: Update all uses of current_function_name.
640 * gcse.c: Likewise.
641 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
642 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
643 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
644 instead of a strcmp with "main".
645
646 2004-01-13 Jan Hubicka <jh@suse.cz>
647
648 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
649
650 * cgraphunit.c (cgraph_optimize_function): Always do
651 optimize_inline_calls when there is always_inline callee.
652 (cgraph_decide_inlining): Fix formating.
653 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
654 functions.
655 (expand_call_inline): Likewise.
656 * toplev.h (sorry): Fix prototype.
657
658 2004-01-12 Roger Sayle <roger@eyesopen.com>
659
660 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
661 conditional jumps that drop through to unconditional jumps or the
662 end of the sequence.
663
664 2004-01-13 Jan Hubicka <jh@suse.cz>
665
666 * alias.c (new_alias_set): Construct the alias_set varray.
667 (init_alias_once): Don't do it here.
668
669 2004-01-12 Marc Espie <espie@openbsd.org>
670
671 * system.h: handle YYBYACC like YYBISON.
672
673 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
674
675 PR target/10847
676 * config.gcc: No longer includes conflicting header sparc/sol2.h when
677 building on sparc64-*-openbsd*.
678
679 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
680
681 PR debug/13539
682 * dbxout.c (dbxout_type): Protected inheritance is not
683 private but protected.
684
685 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
686
687 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
688
689 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
690
691 PR optimization/12508.
692 * combine.c (try_combine): Remove a dead set in a parallel
693 even if its destination is a subreg.
694
695 Revert:
696 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
697 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
698 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
699
700 2004-01-12 Geoffrey Keating <geoffk@apple.com>
701
702 * real.c: Update copyright date.
703 * emit-rtl.c: Likewise.
704 * rtl.h: Likewise.
705 * dwarf2out.c: Likewise.
706 * config/rs6000/darwin-ldouble.c: Likewise.
707 * config/rs6000/rs6000.md: Likewise.
708
709 2004-01-12 David Edelsohn <edelsohn@gnu.org>
710
711 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
712 TFmode to SImode libfuncs.
713
714 2004-01-12 Roger Sayle <roger@eyesopen.com>
715
716 PR middle-end/11397
717 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
718
719 2004-01-12 Jan Hubicka <jh@suse.cz>
720
721 PR opt/12826
722 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
723 stored.
724
725 PR opt/12863
726 * cfgcleanup.c (label_is_jump_target_p): Move to...
727 * rtlanal.c (label_is_jump_target_p): ... here.
728 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
729 edges unified with branch edges.
730
731 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
732
733 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
734 high word of an integral CONST_DOUBLE.
735
736 2004-01-12 Paul Brook <paul@codesourcery.com>
737
738 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
739
740 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
741
742 PR target/13585
743 * sh-protos.h (check_use_sfunc_addr): Declare.
744 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
745 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
746
747 2004-01-12 Jan Hubicka <jh@suse.cz>
748
749 * alias.c: Invlude varray.h
750 (alias_sets): Turn into varray.
751 (get_alias_set_entry): Use VARRAY; mark inline.
752 (mems_in_disjoint_alias_sets_p): Mark inline.
753 (record_alias_subset): Use varray.
754 (init_alias_once): Initialize varray.
755 (new_alias_set): Grow array.
756 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
757
758 2004-01-12 Jan Hubicka <jh@suse.cz>
759
760 Partial fix for PR opt/10776 II
761 * cselib.c: Include params.h
762 (cselib_invalidate_mem): Limit amount of nonconflicting memory
763 locations.
764 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
765 * Makefile.in (cselib.o): Depend on params.h
766
767 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
768
769 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
770 simplify_unary_operation if the operand has a known mode.
771
772 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
773
774 PR target/13534
775 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
776 predicate to handle 'ld' conform addresses.
777 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
778 contraint.
779 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
780 are memory contraints.
781 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
782 New prototype.
783 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
784 Change 'o' to 'Y' constraint.
785 (*movdf_softfloat64): Ditto.
786
787 2004-01-12 Bernardo Innocenti <bernie@develer.com>
788
789 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
790 brace-enclosed syntax in all C output statements.
791
792 2004-01-12 David Edelsohn <edelsohn@gnu.org>
793
794 PR target/13401
795 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
796 Objective-C language type value is 14.
797
798 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
799
800 PR c/12148
801 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
802 `int' in a number of places to make sure we always have a SImode
803 and not a HImode. Add a 'L' suffix to a number of constants.
804
805 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
806
807 * pa.c: Don't include obstack.h.
808
809 * pa.md: Correct constraint in pattern for loading PIC label address.
810
811 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
812
813 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
814 before defining.
815
816 2004-01-11 Steven Bosscher <stevenb@suse.de>
817
818 PR fortran/9972
819 * toplev.c (rest_of_handle_inline): Also consider functions
820 for deferral if the language is GNU F77.
821
822 2004-01-11 Zack Weinberg <zack@codesourcery.com>
823
824 * c-decl.c (diagnose_arglist_conflict): Add missing space to
825 diagnostic messages.
826
827 2004-01-11 Jakub Jelinek <jakub@redhat.com>
828
829 PR middle-end/13392
830 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
831 to drop through label. Don't fall back to SCC even when conditional
832 jump has not been found.
833
834 2004-01-11 Jan Hubicka <jh@suse.cz>
835
836 * invoke.texi: Fix syntax error in previous patch.
837
838 Partial fix for PR opt/10776
839 * Makefile.in (reload.o): Include param.h
840 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
841 * reload.c: Include params.h.
842 (find_equiv_reg): Work limiting check.
843 * invoke.texi: Document.
844
845 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
846
847 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
848 out-of-bounds accesses to string constants. Simplify mips16
849 case accordingly.
850
851 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
852
853 PR optimization/13469
854 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
855 reload_cse_regs (-fnon-call-exceptions only).
856
857 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
858
859 * config/mcore/lib1.asm: Fix comment formatting.
860 * config/mcore/mcore-elf.h: Likewise.
861 * config/mcore/mcore.c: Likewise.
862 * config/mcore/mcore.h: Likewise.
863 * config/mcore/mcore.md: Likewise.
864
865 2004-01-10 Zack Weinberg <zack@codesourcery.com>
866
867 * c-decl.c (duplicate_decls): Break apart into...
868 (diagnose_arglist_conflict, validate_proto_after_old_defn)
869 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
870 ... these new functions. Restructure for comprehensibility.
871 Remove various archaic special cases. Always report the
872 location of the previous declaration when a diagnostic is issued.
873 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
874 (match_builtin_function_types): Delete unnecessary forward declaration.
875
876 2004-01-10 Zack Weinberg <zack@codesourcery.com>
877
878 * genautomata.c (make_automaton, NDFA_to_DFA):
879 Print progress bars with '.' characters instead of '*'.
880 (build_automaton): Change notes to match.
881
882 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
883
884 * config/m32r/m32r.md: Use define_constants for unspec and
885 unspec_volatile.
886
887 2004-01-10 Jan Hubicka <jh@suse.cz>
888
889 PR opt/11635
890 * expr.c (expand_expr_real): More curefully expand union casts.
891
892 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
893
894 * config/m32r/m32r.md (flush_icache): Use 1 for
895 unspec_volatile.
896
897 2004-01-10 David Edelsohn <edelsohn@gnu.org>
898 James E Wilson <wilson@specifixinc.com>
899
900 PR debug/12860
901 * dbxout.c (dbxout_symbol): Remove initialization of
902 current_sym_code, current_sym_value, and current_sym_addr.
903 (dbxout_symbol_location): Same.
904 (dbxout_prepare_symbol): Zero current_sym_code,
905 current_sym_value, and current_sym_addr.
906
907 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
908
909 * tree.c (get_unwidened): Reorder conditions so that the null pointer
910 check is done first.
911
912 2004-01-09 Eric Christopher <echristo@redhat.com>
913
914 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
915 if we're running mark_constant_function.
916
917 2004-01-09 Jeff Bailey <jbailey@nisa.net>
918
919 PR target/12561
920 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
921
922 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
923
924 PR debug/11231
925 * dbxout.c (dbxout_type_fields): Return if any item is
926 error_mark_node or the type is error_mark_node.
927
928 2004-01-09 Geoffrey Keating <geoffk@apple.com>
929
930 * config/rs6000/darwin-ldouble.c: Add big comment explaining
931 exactly what is expected as a 'long double'.
932 (_xlqadd): When a value to be returned is representable as a
933 'double', just return it directly, do not construct it using a union.
934 Also, correct final fixup.
935 (_xlqmul): Likewise.
936 (_xlqdiv): Likewise.
937 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
938
939 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
940
941 2004-01-09 Richard Henderson <rth@redhat.com>
942
943 * recog.c (constrain_operands): Validate mem operands.
944
945 2004-01-09 James E Wilson <wilson@specifixinc.com>
946
947 * gcc.c (init_spec): Remove -lunwind from shared case.
948 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
949
950 2004-01-09 Steve Ellcey <sje@cup.hp.com>
951
952 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
953 * configure: Regenerate
954
955 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
956
957 PR c/11234
958 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
959 between function and object pointers.
960 (digest_init): When comparing a pointer to function type to the
961 target type, only apply TREE_TYPE once to the pointer to function
962 type.
963 * except.c (for_each_eh_label_1): Treat data as a pointer to a
964 function pointer rather than casting it to a function pointer.
965 (for_each_eh_label): Update caller.
966 * recog.h (struct insn_data): Use a struct or union for output.
967 * genoutput.c (output_insn_data): Update.
968 * final.c (get_insn_template): Update.
969
970 2004-01-09 Mark Mitchell <mark@codesourcery.com>
971
972 * expr.h (expand_expr): Make it a macro, not a function.
973 (expand_expr_real): New function.
974 * expr.c (store_expr): Adjust logic for deciding whether or not to
975 copy the value returned by expand_expr.
976 (expand_expr): Rename to ...
977 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
978 calls to language hooks.
979 * c-common.h (c_expand_expr): Adjust prototype.
980 * c-common.c (c_expand_expr): Add alt_rtl parameter.
981 * langhooks-def.h (lhd_expand_expr): Change prototype.
982 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
983 * langhooks.h (lang_hooks): Change type of expand_expr.
984 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
985 (last_expr_alt_rtl): Likewise.
986 (expand_expr_stmt_value): Set last_expr_alt_rtl.
987 (clear_last_expr): Clear it.
988 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
989 (expand_end_bindings): Save and restor last_expr_alt_rtl.
990 * tree.def (RTL_EXPR): Give it an additional operand.
991 * tree.h (RTL_EXPR_ALT_RTL): New macro.
992
993 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
994
995 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
996 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
997
998 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
999
1000 PR target/13380.
1001 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
1002 or (ne:SI (reg:CC 17) (const_int 0)).
1003 Be specific about modes wherever possible.
1004
1005 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1006
1007 * config/m32r/m32r.c (m32r_expand_block_move): Call
1008 gen_movestrsi_internal with two more arguments.
1009 (m32r_output_block_move): Adjust operand numbers.
1010 Properly update the source and destination pointers.
1011 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
1012 'r+'. Change the set detinations to match_operand.
1013
1014 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1015
1016 * final.c (FIRST_INSN_ADDRESS): Remove.
1017 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
1018 * system.h (FIRST_INSN_ADDRESS): Poison.
1019 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
1020 * config/m32r/m32r-protos.h: Remove the prototype for
1021 m32r_first_insn_address.
1022 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
1023 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
1024 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
1025
1026 2004-01-09 J. Brobecker <brobecker@gnat.com>
1027
1028 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
1029 we just created.
1030 (is_ada_subrange_type): DIEs for enumeration subtypes should be
1031 emitted as subrange types too.
1032 (subrange_type_die): Add handling of enumeration subtypes.
1033
1034 2004-01-08 Richard Henderson <rth@redhat.com>
1035
1036 PR opt/12441
1037 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1038 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1039 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1040 (ix86_address_cost): Be prepared for SUBREGed registers.
1041 (legitimate_address_p): Accept SUBREGed registers.
1042
1043 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
1044
1045 * Makefile.in: Rename configure.in to configure.ac
1046 * doc/sourcebuild.texi: Likewise.
1047 * configure: Regenerate.
1048 * config.in: Regenerate.
1049
1050 2004-01-08 Stuart Hastings <stuart@apple.com>
1051
1052 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
1053
1054 2004-01-08 Jan Hubicka <jh@suse.cz>
1055
1056 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
1057
1058 2004-01-08 Geoffrey Keating <geoffk@apple.com>
1059
1060 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
1061 (UNSPEC_FIX_TRUNC_TF): New constant.
1062 (movtf_internal): Make splitter active only when insn is active.
1063 (extenddftf2): Rewrite to properly load zero into low part.
1064 (extenddftf2_internal): New.
1065 (extendsftf2): Rewrite.
1066 (truncdftf2): Correct length.
1067 (floatditf2): Delete.
1068 (fix_trunc_helper): New.
1069 (fix_trunctfdi2): Use fix_trunc_helper.
1070 (fix_trunctfsi2): Likewise.fix_trunc
1071 (fix_trunctfsi2_internal): New.
1072
1073 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
1074 addresses are legitimate on Darwin even when flag_pic.
1075 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
1076 non-offsettable addresses for loads of TFmode constants.
1077
1078 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1079
1080 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
1081 variables in the appropriate bss section.
1082
1083 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1084
1085 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
1086 target_flags has MASK_POWERPC64 when -m64.
1087 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
1088 to 620, 630, power3, power4 and rs64a entries.
1089 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
1090
1091 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
1092
1093 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
1094 floating-point constants.
1095
1096 2004-01-08 J. Brobecker <brobecker@gnat.com>
1097
1098 * dwarf2out.c (subrange_type_die): Add context_die parameter.
1099 Create the subrange_type DIE using the given context DIE.
1100 (modified_type_die): Update call to subrange_type_die.
1101
1102 2004-01-08 Zack Weinberg <zack@codesourcery.com>
1103
1104 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
1105 Add multiple-include guard.
1106
1107 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
1108
1109 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
1110 all vector constant loadable by vsplt*.
1111 (output_vec_const_move): Likewise.
1112
1113 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1114
1115 PR c/6024
1116 * c-typeck.c (comptypes): Only treat enumerated types in the same
1117 translation unit as compatible with each other when they are the
1118 same type.
1119 * doc/extend.texi: Update.
1120
1121 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1122
1123 PR c/12165
1124 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
1125 array type from the array element type.
1126
1127 2004-01-07 Alan Modra <amodra@bigpond.net.au>
1128
1129 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
1130 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
1131 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
1132 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
1133 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
1134
1135 2004-01-06 Eric Christopher <echristo@redhat.com>
1136
1137 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
1138 (DWARF2_DEBUGGING_INFO): Define.
1139 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
1140 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
1141 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
1142 for irix as.
1143 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
1144 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
1145 * config/mips/iris5gas.h: Ditto.
1146 (DBX_DEBUGGING_INFO): Remove.
1147 (DWARF2_DEBUGGING_INFO): Ditto.
1148 (MIPS_DEBUGGING_INFO): Ditto.
1149 (PREFERRED_DEBUGGING_TYPE): Ditto.
1150 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
1151 (PREFERRED_DEBUGGING_TYPE): Ditto.
1152 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
1153 * config/mips/elf64.h: Ditto.
1154
1155 2004-01-06 Jan Hubicka <jh@suse.cz>
1156
1157 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
1158 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
1159
1160 2004-01-06 Geoffrey Keating <geoffk@apple.com>
1161
1162 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
1163 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
1164 * config/rs6000/darwin-ldouble.c: New.
1165
1166 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
1167 for constants.
1168 (constant_subword): Delete.
1169 * rtl.h (constant_subword): Delete prototype.
1170 (immed_double_const): Is not in varasm.c.
1171 * simplify-rtx.c (simplify_immed_subreg): New.
1172 (simplify_subreg): Use simplify_immed_subreg.
1173
1174 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1175 than trying to generate RTL directly.
1176 (fix_trunctfsi2): Use expand_fix rather than trying to generate
1177 RTL directly.
1178
1179 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1180
1181 2004-01-06 David Edelsohn <edelsohn@gnu.org>
1182
1183 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1184 function into a separate macro.
1185 (read_only_data_section): Add void argument.
1186 (private_data_section): Same.
1187 (read_only_private_data_section): Same.
1188 (toc_section): Same.
1189
1190 2004-01-06 Jan Hubicka <jh@suse.cz>
1191
1192 * invoke.texi: Remove typo in last change.
1193
1194 PR target/10301
1195 * config.gcc: Accept opteron and athlon-64 as variants
1196 of k8.
1197 * i386.c (override_options): Likewise.
1198 * invoke.texi (i386 -mtune): Expand documentation.
1199
1200 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1201
1202 * alias.c: Fix comment typos.
1203 * builtins.c: Likewise.
1204 * cfg.c: Likewise.
1205 * df.c: Likewise.
1206 * dominance.c: Likewise.
1207 * dwarf2out.c: Likewise.
1208 * emit-rtl.c: Likewise.
1209 * expr.c: Likewise.
1210 * final.c: Likewise.
1211 * fold-const.c: Likewise.
1212 * gcse.c: Likewise.
1213 * genattrtab.c: Likewise.
1214 * genrecog.c: Likewise.
1215 * gensupport.c: Likewise.
1216 * ggc-zone.c: Likewise.
1217 * integrate.c: Likewise.
1218 * local-alloc.c: Likewise.
1219 * loop.c: Likewise.
1220 * recog.c: Likewise.
1221 * regmove.c: Likewise.
1222 * reg-stack.c: Likewise.
1223 * reorg.c: Likewise.
1224 * rtlanal.c: Likewise.
1225 * rtl.h: Likewise.
1226 * sched-ebb.c: Likewise.
1227 * simplify-rtx.c: Likewise.
1228 * toplev.c: Likewise.
1229 * varasm.c: Likewise.
1230
1231 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1232
1233 * doc/install.texi: Fix typos.
1234 * doc/invoke.texi: Likewise.
1235 * doc/md.texi: Likewise.
1236
1237 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1238
1239 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1240
1241 2004-01-06 Jan Hubicka <jh@suse.cz>
1242
1243 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
1244 (function_arg_advance): Do not pass aggregates in SSE; deal handling
1245 of MMX_REGPARM.
1246 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
1247 add MMX_REGPARM.
1248 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1249 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1250 (MMX_REGPARM_MAX): Similarly for -mmmx.
1251
1252 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1253
1254 * config/sh/linux.h: Fix comment formatting.
1255 * config/sh/netbsd-elf.h: Likewise.
1256 * config/sh/sh.c: Likewise.
1257 * config/sh/sh.h: Likewise.
1258 * config/sh/vxworks.h: Likewise.
1259
1260 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1261
1262 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1263 * toplev.c (output_file_directive): Don't use
1264 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1265
1266 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
1267
1268 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1269 (USING_MMAP): We don't support non-mmap.
1270 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1271 large objects.
1272 (struct page_entry): Remove bytes_free.
1273 (struct page_table_chain): Remove.
1274 (struct globals): Remove page_table member.
1275 (loookup_page_table_entry): Function deleted.
1276 (set_page_table_entry): Ditto.
1277 (ggc_allocated_p): No longer need page table lookups.
1278 (ggc_marked_p): Ditto.
1279 (alloc_small_page): Don't care about bytes_free anymore.
1280 (alloc_large_page): Round up size.
1281 (ggc_alloc_zone_1): Mark large objects as such, and calculate
1282 their size the new way.
1283 Remove page table lookups and setting.
1284 (ggc_get_size): Calculate large object size the new way.
1285 (sweep_pages): Redo to account for fact that we no longer have
1286 bytes_free.
1287 (ggc_collect): No longer need to reincrement bytes_free.
1288 (ggc_pch_alloc_object): Handle new large objects properly.
1289 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1290
1291 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1292
1293 * doc/invoke.texi: Remove a page break.
1294
1295 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1296
1297 * config/avr/avr.c (avr_output_function_prologue): Remove an
1298 extra pair of curly braces.
1299
1300 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1301
1302 * config/mn10300/mn10300.c: Fix comment formatting.
1303 * config/mn10300/mn10300.h: Likewise.
1304
1305 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1306
1307 * tree.h: Update documentation on nothrow_flag.
1308 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1309 types.
1310
1311 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1312
1313 * doc/invoke.texi: Remove traces of dead ports.
1314
1315 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1316
1317 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1318 option.
1319
1320 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1321
1322 PR target/12945
1323 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1324 counter labels.
1325 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1326 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1327 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
1328 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1329 (mips_symbol_insns): Don't trust the local/global classification.
1330 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1331 (override_options): Make -mabicalls -fno-unit-at-a-time imply
1332 -mno-explicit-relocs.
1333 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1334 between local and global symbols.
1335
1336 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1337
1338 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1339 (mips_preferred_reload_class): Declare.
1340 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1341 (EXTRA_CONSTRAINT): Update accordingly.
1342 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1343 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1344 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
1345 mips_dangerous_for_la25_p.
1346 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1347 if mips_dangerous_for_la25_p.
1348
1349 2004-01-05 Bernardo Innocenti <bernie@develer.com>
1350
1351 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1352 warning.
1353
1354 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
1355
1356 * configure.ac: Use AC_PROG_CPP_WERROR.
1357 * configure: Regenerate.
1358
1359 2004-01-04 Zack Weinberg <zack@codesourcery.com>
1360
1361 * .cvsignore: Add autom4te.cache.
1362
1363 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
1364
1365 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
1366 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1367 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
1368 then architecture options, then ABI options. General rewording.
1369
1370 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
1371
1372 PR c/3414
1373 * doc/extend.texi: Clarify definition of malloc attribute.
1374
1375 2004-01-04 Jan Hubicka <jh@suse.cz>
1376
1377 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1378 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1379 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1380 (cgraph_inline_p): Add extra argument reason.
1381 * cgraphunit.c: Minor formating fixes.
1382 cgraph_first_inlined_callee): New functions.
1383 (record_call_1): Record builtins too.
1384 (cgraph_analyze_function): Update inline_failed messages.
1385 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1386 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1387 (cgraph_check_inline_limits): Likewise; Add argument reason.
1388 (cgraph_set_inline_failed): New static function.
1389 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1390 reasons.
1391 (cgraph_inline_p): Add new argument reason.
1392 * tree-inline.c (expand_call_inline): Update warning.
1393
1394 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1395
1396 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1397 with modern equivalents.
1398 * configure: Regenerate.
1399
1400 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1401 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1402 * configure: Regenerate.
1403
1404 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1405
1406 * configure.in: Rename to configure.ac.
1407 * configure.ac: Renamed from configure.in; make minimum necessary
1408 changes for autoconf 2.5x.
1409 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1410 * configure: Regenerate with autoconf 2.57.
1411
1412 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
1413
1414 * config/mips/linux.h: Fix comment formatting.
1415 * config/mips/mips.c: Likewise.
1416 * config/mips/mips.h: Likewise.
1417 * config/mips/mips.md: Likewise.
1418 * config/mips/netbsd.h: Likewise.
1419 * config/mips/windiss.h: Likewise.
1420
1421 2004-01-02 Richard Henderson <rth@redhat.com>
1422
1423 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1424 for sse and 387; add suppression for mmx.
1425
1426 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
1427
1428 * loop.c (loop_optimize): Free all loops_info's mems.
1429
1430 * c-typeck.c (finish_init): Free spelling_base before
1431 setting it again.
1432
1433 * cfgloop.c (flow_loops_find): Always free the sbitmap
1434 headers.
1435
1436 * predict.c (estimate_probability): Free bbs after being
1437 done with it.
1438
1439 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1440
1441 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1442 const_8bit_operand and call_address_operand.
1443
1444 2004-01-02 Jan Hubicka <jh@suse.cz>
1445
1446 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
1447 when there is nothing to inline but warnings are requested.
1448 (cgraph_decide_inlining): Fix memory leak.
1449
1450 2004-01-02 Jan Hubicka <jh@suse.cz>
1451
1452 * expr.c (store_constructor): Fix pasto in previous patch.
1453
1454 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1455
1456 * config/i386/cygming.h: Fix comment formatting.
1457 * config/i386/djgpp.h: Likewise.
1458 * config/i386/gthr-win32.c: Likewise.
1459 * config/i386/i386-interix.h: Likewise.
1460 * config/i386/i386.c: Likewise.
1461 * config/i386/i386.h: Likewise.
1462 * config/i386/openbsd.h: Likewise.
1463 * config/i386/winnt.c: Likewise.
1464 * config/i386/xm-mingw32.h: Likewise.
1465
1466 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
1467
1468 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1469 copyright and last modification dates.
1470
1471 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
1472
1473 * doc/install.texi (Specific): Mention x86_64.
1474
1475 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1476
1477 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1478 Call force_operand on plus_constant result.
1479
1480 2004-01-01 Jan Hubicka <jh@suse.cz>
1481
1482 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1483 * expr.c (store_constructor): Use vec_init pattern.
1484 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1485 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1486 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1487 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1488 New patterns.
1489 (sse2_unpc?pd): Fix pattern.
1490 (sse2_movlpd): Kill.
1491 (sse2_movsd): Deal with movlpd too.
1492 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1493 (ix86_expand_vector_init): New.
1494 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1495 * md.texi (vec_set, vec_extract): Document
1496
1497 2003-12-31 Jan Hubicka <jh@suse.cz>
1498
1499 PR opt/13473
1500 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
1501 ASM input operands
1502
1503 PR opt/12617
1504 * toplev.c (dump_file_index): Reorder ce3 and bbro.
1505 (dump_file): Likewise.
1506 (rest_of_compilation): Likewise.
1507
1508 PR debug/13367
1509 * cgraph.c (cgraph_function_possibly_inlined): Even with
1510 flag_really_no_inline we inline always_inline functions.
1511 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1512 for non-always_inline functions when there is flag_really_no_inline.
1513 (cgraph_decide_inlining): Limit work done when not inlining.
1514 (cgraph_decide_inlining_incrementally): Likewise.
1515 (cgraph_optimize_function): Check whether something got inlined.
1516 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1517 extern inline functions when not inlining.
1518
1519 * opts.c (decode_options): Disable crossjumping at -O1
1520 * invoke.texi (-O1): Document change.
1521
1522 See ChangeLog.10 for earlier changes.