1 2002-05-18 Richard Henderson <rth@redhat.com>
3 * final.c (HAVE_READONLY_DATA_SECTION): New.
4 (shorten_branches): Use it instead of ifdefs.
5 * varasm.c (enum in_section): Add in_readonly_data.
6 (text_section, data_section): Tidy.
7 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
9 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
10 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
11 (READONLY_DATA_SECTION): Don't undef.
13 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
14 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
15 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
17 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
18 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
19 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
20 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
22 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
23 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
24 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
25 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
26 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
27 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
28 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
29 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
30 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
32 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
33 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
34 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
35 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
36 config/pa/pa64-hpux.h, config/sparc/litecoff.h
37 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
39 * config/elfos.h, config/netware.h, config/svr3.h,
40 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
41 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
42 config/h8300/h8300.h, config/i386/i386-interix.h,
43 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
44 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
46 * config/elfos.h, config/netware.h, config/svr3.h,
47 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
48 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
49 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
50 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
52 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
53 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
54 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
55 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
56 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
57 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
58 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
59 config/rs6000/sysv4.h, config/v850/v850.h
60 (EXTRA_SECTIONS): Remove in_const/in_rdata.
61 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
63 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
64 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
65 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
66 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
67 * config/alpha/alpha.c (alpha_start_function): Likewise.
68 (alpha_write_linkage): Likewise.
69 * config/m32r/m32r.c (m32r_select_section): Likewise.
70 * config/m88k/m88k.c (m88k_select_section): Likewise.
71 * config/mips/mips.c (mips_select_rtx_section): Likewise.
72 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
73 (rs6000_elf_select_section): Likewise.
74 * config/v850/v850.c (v850_select_section): Likewise.
76 * config/1750a/1750a.h, config/i860/sysv3.h
77 (READONLY_DATA_SECTION_ASM_OP): New.
78 READONLY_DATA_SECTION_ASM_OP.
79 * config/i386/interix.c, config/i386/winnt.c
80 (i386_pe_unique_section): Always use .rdata prefix.
81 * config/pa/som.h (readonly_data): Always switch to read-only section.
82 (READONLY_DATA_SECTION): Predicate on flag_pic.
83 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
84 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
85 (READONLY_DATA_SECTION): Update.
87 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
89 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
90 is used without -Wformat.
91 * c-common.h (warn_format_zero_length): Declare extern.
92 * c-decl.c (warn_options): Add "format-zero-length".
93 * c-format.c (warn_format_zero_length): Declare.
94 (set_Wformat): Set warn_format_zero_length for -Wformat.
95 (check_format_info): Only warn about zero-length formats if
96 warn_format_zero_length is true. Include the format type
97 name in the warning message.
98 * doc/invoke.texi: Document -Wformat-zero-length.
99 * testsuite/gcc.dg/format/zero-length-1.c: New test.
101 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
103 * timevar.c: Fix formatting.
105 * toplev.c: Likewise.
106 * tree-dump.c: Likewise.
107 * tree-inline.c: Likewise.
109 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
111 * cppinit.c (cpp_post_options): If preprocessed, turn off
112 traditional. If traditional, turn off column numbers.
113 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
114 * cpptrad.c (handle_newline): Update line_base.
115 (skip_comment): Handle -Wcomment.
117 2002-05-17 Zack Weinberg <zack@codesourcery.com>
119 * cppinit.c (struct builtin): Remove unused fields.
120 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
121 (operator_array): New - was second half of builtin_array.
122 (init_builtins): Simplify loop over builtin_array/operator_array.
124 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
126 * defaults.h (UNIQUE_SECTION): Remove.
127 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
129 2002-05-17 Richard Henderson <rth@redhat.com>
131 * expr.c (init_expr_once): Don't use start/end_sequence.
132 Use rtx_alloc instead of emit_insn.
133 * toplev.c (lang_dependent_init): Run init_expr_once here ...
134 (lang_independent_init): ... not here.
136 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
138 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
140 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
142 * config/avr/avr.c (avr_regs_to_save): New function. Also check
143 for fixed registers, possibly used for global register variables.
144 (initial_elimination_offset, avr_output_function_prologue,
145 avr_output_function_epilogue): Move common code to avr_regs_to_save.
147 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
149 * Makefile.in: Update for cpptrad.c.
150 * cpphash.h (struct cpp_buffer): New members for buffer
152 (struct cpp_reader): New members for traditional output.
153 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
154 * cppinit.c (cpp_create_reader): Set trad_line.
155 (cpp_destroy): Free trad_out_base if used.
156 (cpp_read_main_file): Overlay an empty buffer if traditional.
157 (cpp_finish_options): Don't do builtins.
158 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
159 (cpp_handle_option): Handle it.
160 * cpplex.c (continue_after_nul): New.
161 (_cpp_lex_direct): Use handle_nul.
162 * cpplib.h (struct cpp_options): New traditional option.
163 * cpptrad.c: New file.
165 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
167 * c-common.c (c_common_init_options): Use C89 for Objective-C,
168 and set the options flag.
169 * cppinit.c (lang_flags): Remove objc.
170 (lang_defaults): Remove OBJC and OBJCXX.
172 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
173 (cpp_handle_option): Remove -+ and -lang-objc++.
174 For ObjC, just set a flag.
175 (print_help): Update.
176 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
178 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
180 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
181 bootstrap with -mips3.
183 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
185 * final.c: Fix formatting.
186 * fix-header.c: Likewise.
188 * fold-const.c: Likewise.
189 * function.c: Likewise.
191 2002-05-17 David S. Miller <davem@redhat.com>
193 PR c/6689, PR optimization/6615
194 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
195 and make it a pointer to rtx. Update comments.
196 (update_equiv_regs): When scanning for equivalences, record
197 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
198 it while making the equiv replacements.
200 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
202 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
204 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
206 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
207 when encoding visibility into SYMBOL_REF_FLAG.
209 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
211 * expr.c (force_operand): Fix reversed move.
213 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
215 * doc/install.texi (Testing): Mention two common DejaGnu warnings
218 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
220 * doc/install.texi (Final install): Recommend to install into a
221 "clean" target directory.
223 2002-05-17 Richard Henderson <rth@redhat.com>
225 * config/ia64/ia64.md: Use braced strings instead of quoted strings
226 for code blocks. Tidy whitespace.
228 2002-05-17 Richard Henderson <rth@redhat.com>
230 * hooks.c (hook_tree_bool_false): New.
231 * hooks.h: Declare it.
232 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
233 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
234 * target.h (select_section, unique_section): New.
235 (in_small_data_p): New.
236 * varasm.c (resolve_unique_section): Use hooks instead of macros.
237 (variable_section, output_constant_def_contents): Likewise.
238 (default_select_section, default_unique_section): New.
239 (categorize_decl_for_section, default_elf_select_section): New.
240 * output.h: Declare them.
242 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
243 (TARGET_ASM_SELECT_SECTION): New.
244 (SELECT_SECTION): Move ...
245 * config/darwin.c (machopic_select_section): ... here.
246 * config/darwin-protos.h: Update.
248 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
249 (SELECT_SECTION): Move ...
250 * config/nextstep.c (nextstep_select_section): ... here.
251 * config/nextstep-protos.h: Update.
253 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
254 (TARGET_ASM_SELECT_SECTION): New.
255 * config/svr3.h (SELECT_SECTION): Remove.
257 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
258 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
259 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
260 (alpha_encode_section_info): Use it.
261 * config/alpha/alpha-protos.h: Update.
262 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
263 (SELECT_SECTION, UNIQUE_SECTION): Remove.
264 (TARGET_ASM_SELECT_SECTION): New.
265 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
267 * config/arm/pe.h (UNIQUE_SECTION): Remove.
268 (TARGET_ASM_UNIQUE_SECTION): New.
270 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
271 (avr_unique_section): Rename from unique_section; make static.
272 * config/avr/avr-protos.h: Update.
273 * config/avr/avr.h (UNIQUE_SECTION): Remove.
275 * config/c4x/c4x.h (SELECT_SECTION): Remove.
277 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
278 (TARGET_ASM_UNIQUE_SECTION): New.
279 * config/i386/i386-interix.h: Likewise.
280 * config/i386/win32.h: Likewise.
281 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
282 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
283 * config/i386/sco5.h (SELECT_SECTION): Remove.
284 (TARGET_ASM_SELECT_SECTION): New.
285 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
287 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
288 instead of SELECT_SECTION.
289 * config/m68k/dpx2.h: Likewise.
290 * config/rs6000/lynx.h: Likewise.
292 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
293 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
294 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
295 (ia64_in_small_data_p): New.
296 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
297 (ia64_aix_select_section, ia64_aix_unique_section): New.
298 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
299 (SELECT_SECTION, UNIQUE_SECTION): Remove.
301 * config/m32r/m32r.h (SELECT_SECTION): Remove.
302 (TARGET_ASM_SELECT_SECTION): New.
303 * config/m32r/m32r.c (m32r_select_section): Take align argument.
304 * config/m32r/m32r-protos.h: Update.
306 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
307 (SELECT_SECTION): Move ...
308 * config/m88k/m88k.c (m88k_select_section): ... here.
310 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
311 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
312 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
313 (mcore_unique_section): Make static.
314 * config/mcore/mcore-protos.h: Update.
316 * config/mips/elf.h (UNIQUE_SECTION): Remove.
317 (TARGET_ASM_UNIQUE_SECTION): New.
318 * config/mips/elf64.h: Likewise.
319 * config/mips/iris6gld.h: Likewise.
320 * config/mips/linux.h: Likewise.
321 * config/mips/mips-protos.h: Update.
322 * config/mips/mips.c (mips_select_section): Add align argument.
323 * config/mips/mips.h (SELECT_SECTION): Remove.
324 (TARGET_ASM_SELECT_SECTION): New.
326 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
327 * config/mmix/mmix.c (mmix_select_section): Remove.
328 (mmix_unique_section): Remove.
329 * config/mmix/mmix-protos.h: Update.
331 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
332 (SELECT_SECTION): Move ...
333 * config/pa/pa.c (pa_select_section): ... here.
334 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
336 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
337 from rs6000_select_section and make static.
338 (rs6000_elf_unique_section): Similarly.
339 (rs6000_xcoff_select_section): From xcoff.h.
340 (rs6000_xcoff_unique_section): Likewise.
341 * config/rs6000/rs6000-protos.h: Update.
342 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
343 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
344 * config/rs6000/xcoff.h: Likewise.
346 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
347 (SELECT_SECTION): Move ...
348 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
350 * config/v850/v850.h (SELECT_SECTION): Move ...
351 * config/v850/v850.c (v850_select_section): ... here.
352 (TARGET_ASM_SELECT_SECTION): New.
354 * config/vax/vms.h (SELECT_SECTION): Move ...
355 * config/vax/vax.c (vms_select_section): ... here.
356 (TARGET_ASM_SELECT_SECTION): New.
358 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
359 for the target hooks.
361 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
363 * config/arm/arm.c (emit_multi_reg_push): Do not set
364 RTX_FRAME_RELATED_P on the SEQUENCE.
366 2002-05-16 Richard Henderson <rth@redhat.com>
368 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
369 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
371 2002-05-16 Richard Henderson <rth@redhat.com>
373 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
375 * config/ia64/ia64.c (saveable_obstack): Do not declare.
377 2002-05-16 Richard Henderson <rth@redhat.com>
379 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
380 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
381 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
382 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
383 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
384 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
385 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
386 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
387 Revert "Basic block renumbering removal", and two followup patches.
389 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
391 * lcm.c (optimize_mode_switching): Revert previous change.
393 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
395 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
396 with only extant block numbers.
398 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
400 * lcm.c (optimize_mode_switching): Fix typo.
402 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
404 * flow.c (calculate_global_regs_live): Queue blocks in program order.
406 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
408 * doc/install.texi (Configuration): Document PWDCMD.
410 2002-05-16 Dale Johannesen <dalej@apple.com>
412 * combine.c (cant_combine_insn_p): Reenable combinations
413 involving hard regs unless CLASS_LIKELY_SPILLED_P.
415 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
417 * c-common.c (cb_register_builtins): Handle more built-ins
418 here rather than in gcc.c specs.
419 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
420 (cpp_options): Pass -O flags even when only preprocessing.
421 * toplev.c (set_fast_math_flags): New prototype.
422 (fast_math_flags_set_p): New.
423 (set_no_fast_math_flags): Remove.
424 (decode_f_option): Update.
425 * toplev.h (set_fast_math_flags): Update.
426 (fast_math_flags_set_p): New.
427 (set_no_fast_math_flags): Remove.
429 * c4x/c4x.c (c4x_override_options): Update.
431 2002-05-16 Zack Weinberg <zack@codesourcery.com>
433 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
435 (builtin_define_with_value): Can now wrap the expansion in
436 quotation marks if such is wanted.
437 (cb_register_builtins): Update calls to builtin_define_with_value.
438 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
440 (c_common_init): Set options->stdc_0_in_system_headers.
441 * c-lex.h: Update prototype of builtin_define_with_value.
442 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
445 * cppinit.c (VERS, ULP, C, X): Kill.
446 (builtin_array): Remove entries for __VERSION__,
447 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
448 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
450 (init_builtins): Kill off a bunch of now-dead code.
451 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
452 -fno-leading-underscore.
453 (cpp_handle_option): Remove code to set user_label_prefix.
454 (cpp_post_options): Likewise.
456 * cpplib.h (struct cpp_options): Remove user_label_prefix.
457 (stdc_0_in_system_headers): New.
458 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
459 stdc_0_in_system_headers) too to decide the value of __STDC__.
461 * tradcpp.c (user_label_prefix): Kill.
462 (main): Remove code handling -f(no-)leading-underscore.
463 (initialize_builtins): Don't define __REGISTER_PREFIX__
464 or __USER_LABEL_PREFIX__.
465 (install_value): Wrap compound statement in dummy loop so the
466 macro works properly in an if statement.
469 2002-05-16 Janis Johnson <janis187@us.ibm.com>
471 * loop.h (struct loop_info): Add member has_prefetch.
472 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
473 (prescan_loop): Initialize has_prefetch.
474 (struct prefetch_info): Change prefetch_in_loop and
475 prefetch_before_loop from bit fields to ints.
476 (emit_prefetch_instructions): Several small fixes.
477 (check_dbra_loop): Don't reverse loop that uses prefetch.
479 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
481 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
482 * configure.in: Likewise.
483 * fixinc/check.tpl: Likewise.
484 * fixinc/fixinc.dgux: Likewise.
485 * fixinc/fixinc.svr4: Likewise.
486 * fixinc/fixinc.winnt: Likewise.
487 * fixinc/fixincl.sh: Likewise.
488 * fixproto: Likewise.
489 * configure: Regenerate.
491 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
493 Basic block renumbering removal:
494 * basic_block.h (struct basic_block_def): Renamed index to sindex,
495 added prev_bb and next_bb fields.
496 (n_basic_blocks): Renamed to num_basic_blocks.
497 (last_basic_block): New, index of last basic block.
498 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
499 traversing basic block chain.
500 (BLOCK_NUM): index -> sindex.
501 (create_basic_block_structure, create_basic_block): Declaration changed.
502 (debug_num2bb): Declare.
503 (expunge_block_nocompact): Declaration removed.
504 (link_block, unlink_block, compact_blocks): Declare.
505 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
506 * cfg.c (entry_exit_blocks): Initialize new fields.
507 (clear_edges, alloc_block, expunge_block, cached_make_edge,
508 redirect_edge_pred, dump_flow_info, dump_edge_info,
509 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
510 free_aux_for_edges): Modified.
511 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
512 (expunge_block_nocompact): Removed.
513 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
514 find_unreachable_blocks, create_edge_list, print_edge_list,
515 verify_edge_list, flow_edge_list_print, remove_fake_successors,
516 remove_fake_edges, flow_reverse_top_sort_order_compute,
517 flow_depth_first_order_compute, flow_preorder_transversal_compute,
518 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
519 flow_dfs_compute_reverse_execute): Modified.
520 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
521 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
523 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
524 merge_blocks_move_predecessor_nojumps,
525 merge_blocks_move_successor_nojumps, merge_blocks,
526 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
527 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
528 * cfglayout.c (skip_insns_after_block, label_for_bb,
529 record_effective_endpoints, scope_to_insns_finalize,
530 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
531 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
532 cfg_layout_duplicate_bb): Modified.
533 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
534 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
535 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
536 flow_loops_find, flow_loop_outside_edge_p): Modified.
537 * cfgrtl.c (create_basic_block_structure, create_basic_block,
538 flow_delete_block, compute_bb_for_insn, split_block,
539 try_redirect_by_replacing_jump, redirect_edge_and_branch,
540 force_nonfallthru_and_redirect, tidy_fallthru_edge,
541 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
542 commit_edge_insertions, commit_edge_insertions_watch_calls,
543 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
544 purge_all_dead_edges): Modified.
545 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
546 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
547 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
549 * conflict.c (conflict_graph_compute): Modified.
550 * df.c (FOR_ALL_BBS): Removed.
551 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
552 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
553 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
554 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
555 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
556 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
557 * final.c (compute_alignments, final_scan_insn): Modified.
558 * flow.c (verify_local_live_at_start, update_life_info,
559 update_life_info_in_dirty_blocks, free_basic_block_vars,
560 delete_noop_moves, calculate_global_regs_live,
561 initialize_uninitialized_subregs, allocate_bb_life_data,
562 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
563 mark_used_reg, count_or_remove_death_notes): Modified.
564 * function.c (thread_prologue_and_epilogue_insns): Modified.
565 * gcse.c (struct null_pointer_info): Change typo of current_block
567 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
568 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
569 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
570 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
571 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
572 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
573 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
574 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
575 pre_delete, one_pre_gcse_pass, compute_transpout,
576 invalidate_nonnull_info, delete_null_pointer_checks_1,
577 free_code_hoist_mem, compute_code_hoist_vbeinout,
578 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
579 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
580 compute_store_table, build_store_vectors, insert_insn_start_bb,
581 insert_store, replace_store_insn, free_store_memory, store_motion):
583 * global.c (global_alloc, global_conflicts, mark_elimination,
584 build_insn_chain): Modified.
585 * graph.c (print_rtl_graph_with_bb): Modified.
586 * haifa-sched.c (sched_init): Modified.
587 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
588 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
589 if_convert): Modified.
590 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
591 compute_insert_delete, pre_edge_lcm, compute_available,
592 compute_farthest, compute_nearerout, compute_rev_insert_delete,
593 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
595 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
596 * loop.c (loop_dump_aux): Modified.
597 * predict.c (combine_predictions_for_insn, estimate_probability,
598 last_basic_block_p, process_note_prediction, process_note_predictions,
599 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
600 expensive_function_p, estimate_bb_frequencies,
601 compute_function_frequency): Modified.
602 * print-rtl.c (print_rtx): Modified.
603 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
604 get_exec_counts, compute_branch_probabilities, compute_checksum,
605 branch_prob, find_spanning_tree): Modified.
606 * recog.c (split_all_insns, peephole2_optimize): Modified.
607 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
608 convert_regs_1, convert_regs_2, convert_regs): Modified.
609 * regclass.c (scan_one_insn, regclass): Modified.
610 * regmove.c (mark_flags_life_zones, regmove_optimize,
611 combine_stack_adjustments): Modified.
612 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
613 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
614 * reorg.c (dbr_schedule): Modified.
615 * resource.c (find_basic_block, init_resource_info): Modified.
616 * sbitmap.c (sbitmap_intersection_of_succs,
617 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
618 sbitmap_union_of_preds): Modified.
619 * sched-deps.c (init_dependency_caches): Modified.
620 * sched-ebb.c (schedule_ebbs): Modified.
621 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
622 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
623 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
624 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
625 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
626 ssa_const_prop): Modified.
627 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
628 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
629 * ssa.c (remove_phi_alternative, find_evaluations,
630 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
631 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
632 make_regs_equivalent_over_bad_edges,
633 make_equivalent_phi_alternatives_equival,
634 compute_conservative_reg_partition,
635 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
636 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
639 2002-05-16 Mark Mitchell <mark@codesourcery.com>
641 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
643 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
645 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
646 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
647 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
648 calling CONSTANT_POOL_ADDRESS_P.
649 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
650 to decide whether to define __arm__ or __thumb.
651 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
652 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
654 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
656 * config/arc/arc.h (CPP_PREDEFINES): Remove.
658 (TARGET_CPU_CPP_BUILTINS): New.
660 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
662 * cpphash.h (cpp_macro): Move here, and make expansion a union.
663 * cppmacro.c (cpp_macro): Remove.
664 (enter_macro_context, replace_args, warn_of_redefinition,
665 _cpp_create_definition, cpp_macro_definition): Update.
667 2002-05-16 Jason Merrill <jason@redhat.com>
669 * config/mips/mips.c (mips_output_external): Don't do sdata
670 optimization for a variable with DECL_COMDAT set.
672 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
674 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
675 Cleanups for accepting modifiers on pointers.
677 Allow long pointers as well as int pointers.
679 2002-05-15 Richard Henderson <rth@redhat.com>
681 * varasm.c (merge_weak): Remove special case for extern and common.
683 2002-05-15 Matt Hiller <hiller@redhat.com>
685 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
687 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
688 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
689 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
690 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
691 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
692 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
694 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
696 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
698 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
700 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
701 ("altivec_mfvscr"): Read from VSCR.
703 Add vscr sets for the following insns: altivec_vctuxs,
704 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
705 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
706 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
707 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
708 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
709 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
710 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
711 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
712 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
713 altivec_vsum2sws, altivec_vsumsws.
715 * config/rs6000/rs6000.h: Add VSCR fixed register.
716 (CALL_REALLY_USED_REGISTERS): Add vscr.
717 (CALL_USED_REGISTERS): Same.
718 (FIXED_REGISTERS): Same.
719 (REG_ALLOC_ORDER): Same.
720 (reg_class): Add VSCR_REGS.
721 (REG_CLASS_NAMES): Same.
722 (REG_CLASS_CONTENTS): Same.
724 (REGISTER_NAMES): Add vscr.
725 (DEBUG_REGISTER_NAMES): Same.
726 (ADDITIONAL_REGISTER_NAMES): Same.
727 (FIRST_PSEUDO_REGISTER): Increment.
728 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
730 2002-05-15 Jakub Jelinek <jakub@redhat.com>
732 * fold-const.c (fold): Fix a typo.
734 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
736 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
737 comparison against the highest or lowest integer value before
738 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
739 transformation and that of an unsigned comparison against 0
742 2002-05-15 Richard Henderson <rth@redhat.com>
744 * varasm.c (merge_weak): Error for any weakening after definition.
745 Adjust weakening after use warning to catch more cases.
746 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
747 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
749 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
751 * invoke.texi (-malign-double): Re-add lost warning.
753 * i386-protos.h (x86_output_mi_thunk): Declare.
754 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
755 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
757 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
758 when flag_asynchronous_unwind_tables is set.
760 * flags.h (flag_reorder_functions): Declare.
761 * function.c (prepare_function_start): Initialize frequnecy.
762 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
763 * Makefile.in (predict.o): Add dependency on target.h and params.h
764 * defaults.h (HOT_TEXT_SECTION_NAME,
765 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
766 * predict.c (choose_function_section): New function.
767 (estimate_bb_frequencies): Use it.
768 * toplev.c (flag_reorder_functions): New global variable.
769 (lang_independent_options): New.
770 (parse_options_and_default_flags): Set.
771 * varasm.c (assemble_start_function): Bypass functdion alignment
772 for never executed functions.
773 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
774 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
775 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
778 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
780 * predict.c: Inlude profile.h
781 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
782 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
783 Use the information about maximal counter in the program.
785 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
787 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
788 probably_never_executed_bb_p): New functions.
789 * cfgcleanup.c (outgoing_edges_match): Use them.
790 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
791 (maybe_hot_bb_p, probably_cold_bb_p,
792 probably_never_executed_bb_p): New functions.
794 * function.h (function): Add new field function_frequency.
795 * predict.c (compute_function_frequency): New function.
796 (estimate_probability): Call it.
798 2002-03-09 Jakub Jelinek <jakub@redhat.com>
800 PR optimization/5172, optimization/5200
801 * gcse.c (gcse_main): Disable store_motion.
803 2002-05-14 Zack Weinberg <zack@codesourcery.com>
805 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
806 (c_common_nodes_and_builtins): Use it.
807 (builtin_define_with_value): New function.
808 (cb_register_builtins): Define __SIZE_TYPE__,
809 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
810 using builtin_define_with_value. Use consistent notation when
811 defining __GXX_WEAK__.
812 (WCHAR_TYPE_SIZE): Don't redefine.
813 (combine_strings): Don't use WCHAR_TYPE_SIZE.
815 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
816 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
817 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
818 * tradcpp.c (initialize_builtins): Likewise.
819 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
821 * c-lex.h (builtin_define_with_value): Prototype.
822 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
823 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
824 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
826 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
827 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
828 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
829 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
830 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
831 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
832 config/sparc/sol2-bi.h, config/sparc/sparc.h:
833 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
834 to __SIZE_TYPE__ etc from all spec strings. When this makes
835 extra specs empty, delete them.
837 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
839 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
840 for PA8000 or generating dwarf2 call frame information.
841 (output_call): Remove DO_FRAME_NOTES check from return pointer
843 (following_call): Return 0 when scheduling for PA8000 or generating
844 dwarf2 call frame information. Revise comment.
846 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
849 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
850 and __IEEE_FP_INEXACT as appropriate.
851 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
852 (CPP_SPEC): Remove ieee defines.
853 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
855 2002-05-14 Richard Henderson <rth@redhat.com>
857 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
858 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
860 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
862 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
864 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
865 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
866 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
867 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
868 (EXTRA_SPECS): Update.
869 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
870 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
871 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
872 define TARGET_OS_CPP_BUILTINS if necessary.
874 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
876 * gcc.c (cpp_options): Must pass -m* and -f* options
877 to the front end even when only preprocessing.
878 (cc1_options): Remove redundant -lang-c.
879 * tradcpp.c (main): Ignore -m options.
881 * lang-specs.h: Similarly.
883 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
885 * genautomata.c (transform_3): Add code for transformation
886 `(A,B,...)+C -> A+C,B,...'.
888 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
890 * final.c (end_final): Do not output profile_arcs constructor, when
891 no functions are instrumented.
893 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
895 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
897 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
899 * doc/install.texi: Remove special markup originally required for
900 HTML generation with texi2html.
902 2002-05-14 Andreas Schwab <schwab@suse.de>
904 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
906 (UNIQUE_SECTION): Define to get small data correctly.
908 * varasm.c (resolve_unique_section): Add third parameter
909 flag_function_or_data_sections and use it instead of
910 flag_function_sections.
911 (assemble_start_function): Pass flag_function_sections.
912 (asm_emit_uninitialised): Pass flag_data_sections.
913 (assemble_variable): Likewise.
915 2002-05-14 Richard Henderson <rth@redhat.com>
917 * config/i386/i386.md: Use define_constants for unspec numbers.
918 * config/i386/i386.c: Likewise.
920 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
922 * doc/contrib.texi: Update my entry.
924 2002-05-13 Mark Mitchell <mark@codesourcery.com>
926 * fixinc/inclhack.def (winidss_valist): Limit applicability.
927 * fixinc/fixincl.x: Regenerated.
928 * fixinc/tests/base/math.h: Update.
929 * fixinc/tests/base/testing.h: Likewise.
931 2002-05-13 Zack Weinberg <zack@codesourcery.com>
933 * genattr.c (gen_attr): Don't emit a comma after the last
936 2002-05-13 Richard Henderson <rth@redhat.com>
938 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
940 * recog.c (peephole2_optimize): Likewise.
942 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
944 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
947 2002-05-13 Jeffrey A Law (law@redhat.com)
949 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
950 Update prototype and callers.
951 (propagate_one_insn): Stack pointer adjustments kill MEMs on
952 the mem_set_list which reference the stack pointer, as do
953 calls to constant functions as they may clobber outgoing
956 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
958 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
959 (ia32_multipass_dfa_lookahead): New function.
961 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
963 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
964 (translate_options): Remove 'V'.
965 (process_command): Similarly.
967 * invoke.texi: Remove documentation of 'V'.
969 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
971 * config/s390/linux.h: Revert 2002-04-22 changes.
973 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
975 * config/fr30/fr30.md: Only allow splits of immediate loads
976 if the destination is a register.
978 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
980 * Makefile.in (c-common.o, cppinit.o): Update.
981 * c-common.c: Include except.h.
982 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
983 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
984 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
985 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
986 CPP_PREDEFINES): Handle here.
988 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
989 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
990 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
991 TARGET_OS_CPP_BUILTINS.
992 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
993 (CPP_SPEC, EXTRA_SPECS): Update.
994 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
995 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
996 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
997 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
998 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1000 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1001 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1003 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1005 * emit-rtl.c (global_rtl): Update comment.
1006 (const_double_htab, const_double_htab_hash,
1007 const_double_htab_hash, lookup_const_double): New.
1008 (const_int_htab_hash, const_int_htab_eq): Remove const
1009 qualifiers, which cause tons of warnings with RTL checking on.
1010 (gen_rtx_CONST_DOUBLE): Deleted.
1011 (const_double_from_real_value): New function - bears some
1012 resemblance to the former immed_real_const_1.
1013 (immed_double_const): Moved here from varasm.c and
1015 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1016 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1017 (gen_rtx): Use immed_double_const.
1018 (init_emit_once): Initialize the const_double_htab. Use
1019 REAL_VALUE_FROM_INT where possible. Can now use
1020 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1021 * varasm.c (struct varasm_status): Remove x_const_double_chain.
1022 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1023 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1024 (init_varasm_status, mark_varasm_status): Don't touch
1025 x_const_double_chain.
1027 * output.h: Delete prototype for clear_const_double_mem.
1028 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
1029 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
1030 const_double_from_real_value, not immed_real_const_1, and use
1031 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
1033 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1034 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1035 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1036 (gen_rtx_REG): Second arg is unsigned.
1038 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1039 (excluded_rtx): New, return true for CONST_DOUBLE.
1040 (genmacro): Write nothing for excluded codes.
1041 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1042 * expr.c (expand_expr): Likewise.
1043 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1045 * toplev.c (rest_of_compilation): Don't call
1046 clear_const_double_mem.
1048 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1049 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1050 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1051 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1052 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1053 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1054 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1055 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1057 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1059 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1061 2002-05-12 Tom Tromey <tromey@redhat.com>
1063 * tree.h (copy_node): Don't mention TREE_PERMANENT.
1065 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1067 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1068 (scan_comma_elt): New function. Accepts whitespace in comma lists.
1069 * gensupport.h: Prototype new routines.
1070 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
1072 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1073 (next_comma_elt): Use scan_comma_elt.
1075 * config/i386/i386.md: Use new attribute notation to break up
1076 long lines in define_attr forms.
1078 2002-05-12 Richard Henderson <rth@redhat.com>
1080 * expr.c (compress_float_constant): New.
1081 (emit_move_insn): Use it.
1082 (float_extend_from_mem): New.
1083 (init_expr_once): Initialize it.
1084 * real.c (exact_real_truncate): New.
1086 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1087 dropped into memory; penalize for size.
1088 (RTX_COSTS): FLOAT_EXTEND is free.
1089 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1090 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1092 2002-05-12 Richard Henderson <rth@redhat.com>
1094 * profile.h (profile_info): Add missing extern to declaration.
1095 * profile.c (profile_info): Define it.
1097 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1099 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1100 used for DImode and TImode.
1102 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
1104 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1107 2002-05-11 Zack Weinberg <zack@codesourcery.com>
1109 * config/rs6000/rs6000.c (rs6000_default_long_calls,
1110 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1111 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1112 (rs6000_override_options): Handle -m(no-)longcall.
1113 (init_cumulative_args, output_mi_thunk): Check for both
1114 longcall and shortcall attributes on the function.
1115 (rs6000_attribute_table): Add "shortcall".
1116 (rs6000_handle_longcall_attribute): Update comment.
1117 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1118 altivec_expand_ternop_builtin): Add default clauses to switches
1119 to silence warnings.
1121 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1122 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
1123 (TARGET_OPTIONS): Add longcall and no-longcall.
1125 * config/rs6000/rs6000.md (call_nonlocal_sysv,
1126 call_value_nonlocal_sysv): Split by alternatives. One pair
1127 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1128 the call cookie. The other pair accepts only LR/CTR and has
1131 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1132 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1134 * config/rs6000/rs6000-c.c: New file.
1135 * config/rs6000/t-rs6000-c-rule: New file.
1136 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1137 Prototype rs6000_pragma_longcall.
1139 * doc/extend.texi: Document shortcall attribute.
1140 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1142 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1144 * reorg.c (dbr_schedule): Remove unnecessary test.
1146 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1148 * i386.md (testsi to testqi spliters): New.
1150 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
1152 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1154 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
1156 * basic-block.h: New flag EDGE_CAN_FALLTHRU
1157 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1158 that can be made fallthru.
1160 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
1162 * cfglayout.c (cleanup_unconditional_jumps): New static function.
1163 (cfg_layout_initialize): Use it.
1165 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
1167 * config/avr/avr.c (avr_mcu_types): Update supported devices.
1168 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1169 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1171 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1173 * dbxout.c: Fix formatting.
1174 * dependence.c: Likewise.
1176 * diagnostic.c: Likewise.
1177 * doloop.c: Likewise.
1178 * dominance.c: Likewise.
1179 * doschk.c: Likewise.
1180 * dwarf2asm.c: Likewise.
1181 * dwarf2out.c: Likewise.
1182 * dwarfout.c: Likewise.
1184 2002-05-10 Richard Henderson <rth@redhat.com>
1186 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
1187 Convert integers constants as needed. Replace "nwords" field with
1189 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1190 * function.h: Fix typo in comment.
1191 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1193 2002-05-10 Roger Sayle <roger@eyesopen.com>
1195 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1196 into the equivalent (signed char)c > 0.
1198 2002-05-10 Janis Johnson <janis187@us.ibm.com>
1200 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1201 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1202 (struct prefetch_info): Fix spelling of member bytes_accessed.
1203 (emit_prefetch_instructions): Make dump messages more regular;
1204 restructure code to add more dump messages; use new macros for
1205 heuristics. (There are no code generation changes in any of this).
1207 2002-05-10 David S. Miller <davem@redhat.com>
1209 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1210 (struct rtx_def): Update unchanging flag comment.
1211 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1212 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1213 to be handled to INSN too.
1214 (dbr_schedule): Likewise.
1215 * resource.c (next_insn_no_annul): Likewise.
1217 * cse.c (rtx_cost): Remove multiplication by power of 2 special
1220 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1222 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1223 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1224 (possibly) work around broken /bin/sh.
1226 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1228 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1229 . as N64/N32 libgcc_s.so subdirs.
1231 2002-05-10 David S. Miller <davem@redhat.com>
1233 * config/sparc/sparc.md: Use define_constants for unspec numbers.
1235 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1237 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1239 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1240 * doc/rtl.texi: Document these macros more accurately.
1241 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1242 JUMP_INSNs and CALL_INSNs.
1243 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1244 or INSN_FROM_TARGET_P if the code is appropriate.
1246 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1248 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1249 before using SYMBOL_REF_FLAG (addr).
1251 * config/avr/avr-protos.h (avr_io_address_p): Declare.
1252 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1253 Make non-static. Update all callers.
1254 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1255 New insns to clear/set/test a single bit in I/O address space.
1257 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1259 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1261 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1263 * Makefile.in: Update.
1264 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1265 builtin_define_std): New.
1266 (c_common_init): Register CPP builtins callback.
1267 * c-common.h (flag_iso, flag_undef): New.
1268 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1269 * c-lex.c: Don't include target.h.
1270 (cb_register_builtins): Move to c-common.c.
1271 (init_c_lex): Don't register hook here.
1272 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1273 (cpp_define, cpp_assert): Remove.
1274 * gcc.c (cc1_options): Pass -undef to front end.
1275 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1276 (TARGET_INITIALIZER): Update.
1277 * target.h (struct cpp_reader): Don't predeclare.
1278 (struct gcc_target): Remove cpp builtin hook.
1279 * tree.c (default_register_cpp_builtins): Remove.
1283 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1285 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1287 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1289 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1290 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1292 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1294 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1295 * config/sparc/libgcc-sparc-glibc.ver: New file.
1296 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1297 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1299 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1302 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1303 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1304 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1306 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1307 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1308 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1309 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1311 2002-05-09 Richard Henderson <rth@redhat.com>
1313 * config/ia64/ia64.md: Use define_constants for unspec numbers.
1314 * config/ia64/ia64.c: Likewise.
1316 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
1318 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1319 (save_restore_insns): Likewise.
1320 (mips_expand_prologue, mips_expand_epilogue): Update callers.
1321 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1323 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
1325 * athlon.md, k6.md, pentium.md, ppro.md): New files.
1326 * i386.md: Move scheduling information into new files.
1328 * i386.md (type attribute): Add "rotate" for rotate insns.
1329 (rotate insns): Set type to "rotate".
1330 (various attributes and function units): Treat rotate like shift.
1331 (pent_pair attribute): Only rotates by one bit position are
1333 (sbb insns): Explicitly set pent_pair attribute on a couple
1334 that were missing it.
1336 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1338 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1339 make sure that buffer starts on odd word address.
1340 (sh_va_arg): Skip odd fp registers when reading a double precision
1343 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1345 * tree.h (preserve_data, object_permanent_p, type_precision):
1348 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1350 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1351 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1353 * cpp.texi: Update for removal of obsolete features.
1355 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
1356 Jeffrey A Law (law@redhat.com)
1358 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
1359 the DFA interface for Pentium processors.
1360 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1361 (attr_pent_pair, ix86_pent_find_pair): Remove.
1362 (ix86_sched_reorder_pentium): Remove.
1363 (ix86_sched_reorder): Remove reordering for Pentium.
1364 * i386.md (Pentium scheduling): Rewrite using DFA description.
1366 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1368 * cfganal.c (can_fallthru): Fix fast path.
1369 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1370 with edges to the next block.
1372 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
1373 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1375 * final.c (end_final): Use C trees to output data structures for profiling.
1377 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1378 (profile.o): New dependency profile.h
1379 (final.o): New dependency profile.h
1380 * profile.h: New file. New global structure profile_info.
1381 * final.h (count_edges_instrumented_now): Declare.
1382 (current_function_cfg_checksum): Declare.
1383 (function_list): New structure.
1384 (functions_head, functions_tail): New static variables.
1385 (end_final): Emits more data, removed some -ax stuff.
1386 (final): Stores function names and chcksums.
1387 * gcov-io.h (__write_gcov_string): New function.
1388 (__read_gcov_string): New function.
1389 * gcov.c (read_profile): New function.
1390 (create_program_flow_graph): Uses read_profile instead of reading
1392 (read_files): Removed da_file checking, it's done by read_profile now.
1393 * libgcc2.c (bb_function_info): New structure.
1394 (bb): New field in structure, removed some -ax stuff.
1395 (__bb_exit_func): Changed structure of da_file.
1396 * profile.c (count_edges_instrumented_now): New global variable.
1397 (current_function_cfg_checksum): New global variable.
1398 (max_counter_in_program): New global variable.
1399 (get_exec_counts): New function.
1400 (compute_checksum): New function.
1401 (instrument_edges): Sets count_edges_instrumented_now.
1402 (compute_branch_probabilities): Uses get_exec_counts instead of
1404 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1405 (init_branch_prob): Removed da_file checking, done in get_exec_counts
1407 (end_branch_prob): Removed da_file checking, done in get_exec_counts
1409 * gcov.texi: Updated information about gcov file format.
1411 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1413 * sbitmap.c: Fix formatting.
1415 * scan-decls.c: Likewise.
1416 * sched-deps.c: Likewise.
1417 * sched-ebb.c: Likewise.
1418 * sched-rgn.c: Likewise.
1419 * sched-vis.c: Likewise.
1420 * sdbout.c: Likewise.
1421 * sibcall.c: Likewise.
1422 * simplify-rtx.c: Likewise.
1424 * ssa-ccp.c: Likewise.
1425 * ssa-dce.c: Likewise.
1427 * stor-layout.c: Likewise.
1428 * stringpool.c: Likewise.
1430 2002-05-09 David S. Miller <davem@redhat.com>
1432 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1434 2002-05-07 David S. Miller <davem@redhat.com>
1436 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1437 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1438 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1439 library implementation clobbers the output before the inputs
1440 are fully consumed, use stack temporary for the output.
1442 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
1444 * config/netbsd.h (CPP_SPEC): Remove.
1445 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1446 * config/i386/netbsd.h (CPP_SPEC): Define.
1447 * config/ns32k/netbsd.h (CPP_SPEC): Define.
1448 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1449 * config/sparc/netbsd.h (CPP_SPEC): Define.
1450 * config/vax/netbsd.h (CPP_SPEC): Define.
1452 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1454 * read-rtl.c: Fix formatting.
1456 * recog.c: Likewise.
1457 * regclass.c: Likewise.
1458 * regmove.c: Likewise.
1459 * reg-stack.c: Likewise.
1460 * reload1.c: Likewise.
1461 * reload.c: Likewise.
1462 * resource.c: Likewise.
1463 * rtlanal.c: Likewise.
1465 * rtl-error.c: Likewise.
1467 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1469 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1470 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1472 2002-05-08 Bernd Schmidt <bernds@redhat.com>
1474 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1475 use __SSE2__ macro instead.
1476 * config/i386/xmmintrin.h: Likewise.
1478 2002-05-08 Janis Johnson <janis187@us.ibm.com>
1480 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1481 and use it in all invocations of these macros. Clean up comments.
1482 * rtl.c (rtl_check_failed_flag): Add an argument for the name
1483 of the flag access macro whose check failed.
1484 * doc/rtl.texi (Flags): Document additional flag uses.
1486 2002-05-08 Robert Spier <rspier@pobox.com>
1487 Neil Booth <neil@daikokuya.demon.co.uk>
1489 PR preprocessor/6521
1490 * cppfiles.c (handle_missing_header): Don't do anything
1491 different for <> includes.
1493 * cppopts.texi: Update documentation for -MG.
1495 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
1497 * cpplex.c (cpp_interpret_charconst): Truncate as well as
1500 * cpp.texi: Clarify multichar charconst valuation.
1502 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1504 * doc/invoke.texi: Document -mwindiss option.
1506 2002-05-08 Jason Merrill <jason@redhat.com>
1508 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1510 * dwarf2out.c (gen_type_die): Abort on broken recursion.
1513 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1516 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
1518 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1519 little-endian multilibs to override arm/thumb multilibs.
1520 Do not build hardware floating point multilibs, nor apcs-26
1521 multilibs for the Thumb.
1523 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1526 * varasm.c (mark_weak): New function.
1527 (merge_weak): Use it. Do not call declare_weak.
1528 (declare_weak): Use merge_weak.
1530 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1532 * cse.c (dead_libcall_p): Update counts.
1533 (delete_trivially_dead_insns): Update call of dead_libcall_p.
1535 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1537 * cfglayout.c (function_tail_eff_head): Rename to ...
1538 (function_footer): ... this one.
1539 (unlink_insn_chain): New functions.
1540 (label_for_bb): Only call block_label and emit debug message.
1541 (record_effective_endpoints): Actually unlink the headers and footers.
1542 (fixup_reorder_cahin): Re-insert the unlinked sequences.
1543 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1544 * cfglayout.h (struct reorder_block_def): New fields footer/header;
1545 remove eff_head/eff_end.
1546 * rtl.h (set_first_insn): Declare.
1547 * emit-rtl.c (set_first_insn): New function.
1549 * cfglayout.c (fixup_reorder_chain): Dump duplicated
1550 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1551 cfg_layout_duplicate_bb): New global function.
1552 (duplicate_insn_chain): New static function.
1553 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1554 cfg_layout_duplicate_bb): Declare.
1555 (struct reorder_block_def): Add "original" field.
1556 * emit-rtl.c (emit_copy_of_insn_after): New function.
1557 * rtl.h (emit_copy_of_insn_after): Declare.
1559 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1560 (fixup_reorder_chain): properly handle edges to exit block.
1562 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1563 Jan Hubicka <jh@suse.cz>
1565 * basic-block.h (note_prediction_to_br_prob): declare.
1566 * c-semantics.c: Inlucde predit.h
1567 (expand_stmt): predict GOTO_STMT as not taken.
1568 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1569 (cleanup_cfg): Do not free tail_recursion_list.
1570 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1571 (flow_delete_block): Kill predictions past end of basic block.
1572 * output.h (delete_unreachable_blocks): Declare.
1573 * predict.c (predicted_by_p, process_note_predictions,
1574 process_note_prediction, last_block_p): New function.
1575 (estimate_probability): Bypass loop on PRED_CONTINUE;
1576 do not handle noreturn heuristics; kill PRED_RETURN; add
1578 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1579 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1580 * predict.h (IS_TAKEN): New constant.
1581 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1582 * rtl.c (NOTE_INSN_PREDICTION): New.
1583 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1585 (insn_note): add NOTE_INSN_PREDICTION.
1586 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1587 CFG; free tail_recursion_label_list.
1588 * stmt.c: Include predict.h;
1589 (return_prediction): New.
1590 (expand_value_return): Use it.
1591 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1593 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
1595 * config/mips/mips.md: Name the unspecs with define_constant.
1596 (*HILO_delay): Rename to 'hilo_delay' (no star).
1597 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1598 (reload_outdi, reload_outsi): Likewise.
1600 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1602 * toplev.c: Fix formatting.
1604 2002-05-07 Janis Johnson <janis187@us.ibm.com>
1606 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1607 * configure.in (ac_rtlflag_checking): New.
1608 * doc/install.texi (--enable-checking): Document RTL flag checking.
1610 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1612 * c-common.c (c_common_init): Set options->unsigned_wchar.
1613 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1614 group target dependencies.
1615 (init_builtins, cpp_handle_option): Update.
1616 * cpplex.c (cpp_interpret_charconst): Update.
1617 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1618 signed_char to unsigned_char, group target dependencies.
1619 * defaults.h (WCHAR_UNSIGNED): Remove.
1620 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1622 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1623 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1624 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1625 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1626 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1628 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1630 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1632 * fixinc/inclhack.def (windiss_math1): New fix.
1633 (windiss_math2): Likewise.
1634 (windiss_valist): Likewise.
1635 * fixinc/fixincl.x: Regenerated.
1637 2002-05-07 Andreas Jaeger <aj@suse.de>
1639 * genautomata.c (output_internal_min_issue_delay_func): Add
1640 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1641 (output_internal_trans_func): Likewise.
1643 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
1645 * pa.c (hppa_profile_hook): Use force_reg to get the address
1646 of the profile hook into an appropriate pseudo register.
1648 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1650 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1651 (LINK_START_SPEC): Handle it.
1652 (LINK_OS_SPEC): Likewise.
1653 (CPP_SPEC): Likewise.
1654 (STARTFILE_SPEC): Likewise.
1655 (LIB_SPEC): Likewise.
1656 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
1658 (CRTSAVRES_DEFAULT_SPEC): New macro.
1659 (LIB_WINDISS_SPEC): New macro.
1660 (CPP_OS_WINDISS_SPEC): Likewise.
1661 (STARTFILE_WINDISS_SPEC): Likewise.
1662 (ENDFILE_WINDISS_SPEC): Likewise.
1663 (LINK_START_WINDISS_SPEC): Likewise.
1664 (LINK_OS_WINDISS_SPEC): Likewise.
1665 * config/rs6000/windiss.h: New file.
1667 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
1669 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1671 2002-05-06 David S. Miller <davem@redhat.com>
1673 * config/sparc/sparc.md (shift insns): Do not mask off
1674 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1677 2002-05-06 Richard Henderson <rth@redhat.com>
1680 * expr.c (highest_pow2_factor_for_type): New.
1681 (expand_assignment): Use it.
1683 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
1685 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1687 ("altivec_mfvscr"): Same.
1689 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1691 * rtl.h (struct rtx_def): Update comments.
1692 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
1693 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
1694 RTL_FLAG_CHECK macros with list of expected RTL codes.
1695 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1696 (rtl_check_failed_flag): New.
1697 * reload1.c (reload): Use REG macro before changing rtx to MEM.
1698 (reload_cse_noop_set_p): Check rtx code before using access macro.
1699 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1700 before using access macro.
1702 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1704 * doc/rtl.texi (Flags): Update to reflect current usage.
1706 2002-05-06 Roger Sayle <roger@eyesopen.com>
1709 * fold-const.c (sign_bit_p): New function.
1710 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1711 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1712 Reapply fold when converting (A & C) == C into (A & C) != 0.
1713 (fold_binary_op_with_conditional_arg): Fix typo in comment.
1715 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1717 * c-common.c (warn_multichar): New.
1718 (c_common_init): Set CPP's warn_multichar.
1719 * c-common.h (warn_multichar): New.
1720 * c-decl.c (warn_multichar): Remove.
1721 * c-lex.c (lex_charconst): Update.
1722 * c-tree.h (warn_multichar): Remove.
1723 * cppexp.c (eval_token): Sign-extend charconst value.
1724 * cppinit.c (cpp_create_reader): Set warn_multichar.
1725 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1726 each character. Update prototype. Sign-extend the result.
1727 * cpplib.h: Fix conditions.
1728 (struct cpp_options): Add new warning flag.
1729 (cpp_interpret_charconst): Update prototype.
1731 * cpp.texi: Update documentation.
1733 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
1735 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1736 Fix typo in usage of allof instead of unit.
1738 2002-05-06 Richard Henderson <rth@redhat.com>
1740 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1741 and any jump or call for IN.
1743 2002-05-06 Bernd Schmidt <bernds@redhat.com>
1745 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1747 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1749 2002-05-06 Roger Sayle <roger@eyesopen.com>
1751 * fold-const.c (lshift-double): Cast the high word to an unsigned
1752 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1753 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1754 avoid compiler warning. (fold): Remove redundant code from
1755 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1757 2002-05-06 Jeff Law <law@redhat.com>
1759 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1760 * pa.c (pa_adjust_cost): Remove all true dependency cost
1761 adjustments. Also remove support for non-DFA scheduling.
1762 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1763 to adjust true dependency costs. Update various comments.
1764 (7100lc, 7200, 7300 scheduling): Simplify by combining the
1765 FP ALU & MPY units into a single unit.
1767 2002-05-06 Catherine Moore <clm@redhat.com>
1769 * config/v850/v850.c (compute_register_save_size): Make sure
1770 to count all of the registers that will be saved.
1772 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1774 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1776 2002-05-06 David S. Miller <davem@redhat.com>
1778 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1779 allow result to overlap input operands in memory.
1781 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1784 * cpp.texi: Update multichar charconst docs.
1786 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1788 * cpplex.c (cpp_interpret_charconst): Sign-extend each
1789 character. Don't ignore excess characters. Treat
1790 multicharacter character constants as signed.
1791 (cpp_parse_escape): Clarify diagnostic.
1793 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1795 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1796 use add instead of shift.
1797 (ashldi3_sp64): Likewise.
1798 (ashlsi3_const1, ashldi3_const1): Remove.
1799 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1800 * config/sparc/sparc.c (const1_operand): New.
1802 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1804 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1806 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1809 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1811 2002-05-05 Richard Henderson <rth@redhat.com>
1813 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1814 memory latency adjustments.
1815 (alpha_variable_issue): Remove.
1816 (alpha_use_dfa_pipeline_interface): New.
1817 (alpha_multipass_dfa_lookahead): New.
1818 * config/alpha/alpha.md: Remove define_function_unit scheduling;
1819 include new dfa scheduling.
1820 (attr type): Add none.
1822 * config/alpha/ev4.md: New.
1823 * config/alpha/ev5.md: New.
1824 * config/alpha/ev6.md: New.
1826 2002-05-05 David S. Miller <davem@redhat.com>
1828 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1830 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
1832 * cse.c: Fix formatting.
1833 * emit-rtl.c: Likewise.
1835 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1837 * genautomata.c (initiate_states): Add additional guard to
1838 initialize `units_array'.
1840 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1842 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1843 process_unit_to_form_the_same_automaton_unit_lists,
1844 form_the_same_automaton_unit_lists
1845 check_unit_distributions_to_automata): New prototypes and
1847 (check_automata): Rename it into `check_automata_insn_issues'.
1848 (unit_decl): New fields `the_same_automaton_unit' and
1849 `the_same_automaton_message_reported_p'.
1850 (unit_decl_t): New typedef.
1851 (the_same_automaton_lists): New gloval variable.
1852 (unit_regexp, unit_set_el, units_array, units_cmp,
1853 output_get_cpu_unit_code_func): Use the typedef.
1854 (evaluate_max_reserv_cycles): Increment
1855 `description->max_insn_reserv_cycles'.
1856 (initiate_states): Don't increment `max_cycles_num'.
1857 (transform_insn_regexps): Move code around transformation of
1858 regexps from `generate'.
1859 (generate): Remove call of `transform_insn_regexps'.
1860 (expand_automata): Call `transform_insn_regexps' and
1861 `check_unit_distributions_to_automata'. Check errors before
1864 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1865 automaton `ultrasparc3_1'.
1867 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
1869 * c-common.c (c_common_init): Set up CPP arithmetic.
1870 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1871 something reasonable for the host.
1872 (sanity_checks): Add checks.
1873 (cpp_read_main_file): Call sanity_checks() from here...
1874 (cpp_post_options): ... not here.
1875 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1876 * cpplib.h (struct cpp_options): New member int_precision.
1878 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1880 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1882 2002-05-04 David S. Miller <davem@redhat.com>
1884 * config/sparc/linux.h, config/sparc/linux64.h
1885 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1887 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1889 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1891 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1894 2002-05-05 Tim Josling <tej@melbpc.org.au>
1896 * treelang; New directory for new sample language treelang.
1898 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1900 * Makefile.in (c-lex.o): Update.
1901 * c-lex.c: Include target.h.
1902 (cb_register_builtins): New.
1903 (init_c_lex): Set builtins callback.
1904 * c-lex.h (cpp_define, cpp_assert): New prototypes.
1905 * cppinit.c (init_builtins): Use callback, including for
1907 * cpplib.h (struct cpp_callbacks): New member.
1908 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1909 (TARGET_INITIALIZER): Update.
1910 * target.h (struct gcc_target): New hook.
1911 * tree.c (default_register_cpp_builtins): New.
1912 * tree.h (default_register_cpp_builtins): New.
1914 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1916 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1918 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1919 (cpp_post_options): Move sanity checks to...
1920 (sanity_checks): New.
1921 * cpplex.c (maybe_read_ucs): Fix prototype.
1922 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1923 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1926 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1928 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1929 builtins. Use V2DI patterns instead of TI for logical operations.
1930 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1931 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1932 (ix86_expand_builtins): Change the pattern used for movntdq.
1933 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1934 sse2_nandv2di3): New patterns.
1935 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1937 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1938 (cvtdq2pd): Correct mode on operand 1.
1939 (sse2_umulsidi3): Describe without unspec.
1940 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1942 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1943 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1944 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1945 ashlv4si3, ashlv2di3): Use SImode for shift count.
1946 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1947 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1949 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1951 (__m128i, __m128d): New macros.
1952 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1953 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1954 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1955 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1956 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1957 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1958 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1959 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1960 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1961 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1962 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1963 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1964 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1965 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1966 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1967 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1968 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1969 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1970 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1971 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1972 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1973 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1974 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1975 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1976 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1977 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1978 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1979 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1980 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1981 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1982 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1983 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1984 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1985 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1986 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1987 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1988 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1990 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1991 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1993 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1995 * dwarf2out.c: Fix formatting.
1996 * varasm.c: Likewise.
1998 2002-05-04 David Edelsohn <edelsohn@gnu.org>
2001 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2002 clobber and use result as temporary value.
2004 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2006 * expr.c (force_operand): Use expand_simple_* to handle more
2009 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2011 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2013 (lex_charconst): Update for change in prototype of
2014 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
2016 * cpphash.h (BITS_PER_CPPCHAR_T): New.
2017 * cppinit.c (cpp_create_reader): Initialize them for no
2018 change in semantics.
2019 (cpp_post_options): Add sanity checks.
2020 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2021 and truncation issues. Calculate in type cppchar_t.
2022 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2023 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
2024 run-time dependent precision correctly. Return whether the
2025 result is signed or not.
2026 * cpplib.c (dequote_string): Use cppchar_t; update.
2027 * cpplib.h (cppchar_signed_t): New.
2028 struct cpp_options): New precision members.
2029 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2030 * cppexp.c (eval_token): Update.
2032 2002-05-03 David S. Miller <davem@redhat.com>
2034 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2035 * config/sparc/sparc.c (sparc_rtx_costs): New function
2036 implementing RTX_COSTS and CONST_COSTS.
2037 * config/sparc/sparc.h (CONST_COSTS): Delete.
2038 (RTX_COSTS_CASES): Define.
2039 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2042 * config/sparc/sparc.md (DFA schedulers): Split out...
2043 * config/sparc/cypress.md, config/sparc/hypersparc.md,
2044 config/sparc/sparclet.md, config/sparc/supersparc.md,
2045 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2047 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2048 checks on it, always defined for Sparc.
2050 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2051 Tweak, and add more detailed comments.
2053 2002-05-03 Zack Weinberg <zack@codesourcery.com>
2055 * Re-apply patch accidentally reverted with
2056 DFA scheduler merge: remove all rules and variables to slurp
2057 source files out of libiberty and rebuild them with HOST_CC.
2058 ($(HOST_PREFIX_1)varray.o): New rule.
2059 (genattrtab rule): Word wrap.
2061 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2063 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2064 (CPP_SUBTARGET_SPEC): Define.
2065 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2066 cpp_subtarget specs.
2067 (CPP_SPEC): Redefine to include %(cpp_subtarget).
2069 2002-05-03 David S. Miller <davem@redhat.com>
2071 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2072 * target.h (struct gcc_target): Delete cycle_display member.
2074 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2075 (rtx_needs_barrier): Delete reference to cycle_display unspec.
2076 (ia64_sched_reorder2): Mention need for cycle display handling
2077 once such notes exist.
2079 2002-05-03 Richard Henderson <rth@redhat.com>
2081 * real.c (etoasc): Strip most trailing zeros for clarity.
2082 * sched-vis.c: Include real.h.
2083 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2084 * Makefile.in (sched-vis.o): Add real.h.
2086 2002-05-03 David S. Miller <davem@redhat.com>
2088 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2091 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
2093 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2094 when we get an out of range literal.
2095 (altivec_expand_ternop_builtin): Same.
2096 (altivec_expand_unop_builtin): Same.
2097 (altivec_expand_builtin): Same, for dss.
2098 (altivec_expand_builtin): Use trees instead of rtl when
2099 determining literal argument validity.
2101 2002-05-03 David S. Miller <davem@redhat.com>
2103 Delete cycle display scheduling hook.
2104 * config/ia64/ia64.c (ia64_cycle_display,
2105 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2106 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2107 and use emit_insn_before instead of ia64_emit_insn_before.
2108 * config/ia64/ia64.md (unspec usage): Delete cycle display.
2109 (cycle_display): Delete insn pattern.
2110 * config/sparc/sparc.md (unspec usage): Delete cycle display.
2111 (cycle_display): Delete insn pattern.
2112 * config/sparc/sparc.c (sparc_cycle_display,
2113 TARGET_SCHED_CYCLE_DISPLAY): Delete.
2114 * doc/md.texi (cycle_display): Don't mention.
2115 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2117 2002-05-03 Richard Henderson <rth@redhat.com>
2119 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2120 * recog.h: Declare them.
2122 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2123 * config/sparc/sparc.md: Use store_data_bypass_p instead.
2124 * config/sparc/sparc-protos.h: Update.
2126 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2128 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2129 -D__arch64__. Add -D_LP64.
2130 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2132 (CPP_ARCH64_SPEC): Likewise.
2133 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2134 (NO_BUILTIN_SIZE_TYPE): Undef.
2136 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
2138 * genautomata.c (min_issue_delay_pass_states): Change return type
2140 (min_issue_delay_pass_states): Change the algorithm.
2141 (min_issue_delay): Set up min_insn_issue_delay for the state.
2142 (output_min_issue_delay_table): Interchange the nested loops and
2143 and initiate min_insn_issue_delay for states.
2145 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
2147 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
2150 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2152 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
2155 2002-05-03 Richard Henderson <rth@redhat.com>
2158 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2159 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2160 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2161 code before JUMP, not EARLIEST.
2163 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
2165 * c-format.c (check_format_info_main): Don't check for presence of
2166 parameter for * width until after operand number has been read,
2167 and only check for it if format parameters are available.
2170 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2172 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2173 (LINK_SPEC): Undef before defining.
2175 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2177 PR preprocessor/6489
2178 * tradcpp.c (fixup_newlines): New.
2179 (main, finclude): Use it.
2181 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
2183 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2184 * config/mips/mips.c (mips_unique_section): Strip encoding from
2187 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2189 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2192 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2194 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2195 (Specific): Removed buildstats references.
2196 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2197 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2198 Accomodate Solaris versions beyond 8.
2199 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2200 (Specific, *-*-solaris2.8): Removed, obsolete.
2202 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2205 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2206 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2207 fill leaf_reg_remap with identity.
2208 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2210 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2212 * config/h8300/crti.asm: Remove trailing spaces.
2213 * config/h8300/h8300.c: Likewise.
2214 * config/h8300/lib1funcs.asm: Likewise.
2216 2002-05-02 Jason Merrill <jason@redhat.com>
2218 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2219 * c-decl.c (c_init_decl_processing): Use it.
2220 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2221 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2222 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2224 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2226 * regrename.c: Fix formatting.
2229 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2231 * i386.md (attribute memory): Handle compares properly.
2233 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
2235 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2238 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2240 * function.c: Fix formatting.
2242 2002-05-02 Jan Hubicka <jh@suse.cz>
2244 * haifa-sched.c (schedule_insn): Print table of instructions and
2246 (sched_block): Do not print ready list at verbosity level 1.
2247 * sched-vis.c (print_insn): Make global.
2248 * sched-ebb.c (ebb_print_insn): Rename from...
2249 (print_insn): ... this one.
2250 * sched-int.h (print_insn): Declare
2252 2002-05-02 Richard Henderson <rth@redhat.com>
2254 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2255 emitted by cycle_display.
2257 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
2259 * doc/install.texi (*-*-freebsd*): Update to latest status.
2261 2002-05-02 Jakub Jelinek <jakub@redhat.com>
2264 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2265 * config/float-sparc.h: Assume 128-bit long double if
2266 __LONG_DOUBLE_128__ is defined.
2268 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
2270 * genattrtab.c (write_function_unit_info): Add a dummy element
2271 when num_units == 0.
2273 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2275 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2276 TYPE_MODE (double_type_node) instead of DFmode.
2278 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
2280 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2282 * toplev.c (rest_of_compilation): Revert Richard's patch.
2284 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2286 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2288 2002-05-02 Catherine Moore <clm@redhat.com>
2290 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2292 2002-05-02 Kazu Hirata <kazu@hxi.com>
2294 * combine.c: Fix comment typos.
2296 * genautomata.c: Likewise.
2300 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
2302 * doc/install.texi: State GNAT version requirements.
2304 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2306 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2307 of the frame pointer or arg pointer register which strict register
2308 checking is not enabled.
2310 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
2312 * gcc.dg/altivec-8.c: New.
2314 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2315 PRE_INC and PRE_DEC for altivec modes.
2317 2002-05-01 Bruce Korb <bkorb@gnu.org>
2319 * fixinc/check.tpl(set-writable): make sure the function exists first
2320 * fixinc/inclhack.def(alpha_assert): fix test_text
2321 * fixinc/tests/base/assert.h: add in missing result
2323 2002-05-01 Jeff Law <law@redhat.com>
2325 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2328 2002-05-01 Joel Brobecker <brobecker@gnat.com>
2330 * dbxout.c (dbxout_type): Emit size information for range types,
2331 as well, but only when using GDB extensions.
2333 2002-05-01 Richard Henderson <rth@redhat.com>
2335 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2336 target-independent gnu binutils date test.
2338 2002-05-01 Richard Henderson <rth@redhat.com>
2340 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2341 info before expunging the block.
2343 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2345 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2346 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
2347 -M -or -MM is in effect.
2349 2002-05-01 Zack Weinberg <zack@codesourcery.com>
2351 * config.gcc: Correct test of --enable-obsolete. Obsolete all
2352 A29k configurations.
2353 * doc/install.texi: Update to match.
2355 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2358 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2359 for duplicates. Always loop over whole list.
2361 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2363 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2365 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2367 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2370 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2372 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2374 2002-05-01 David Edelsohn <edelsohn@gnu.org>
2376 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2377 (nabs_nopower): Same.
2378 (floatdisf2): New pattern.
2379 (absdi2): Convert to define_insn_and_split.
2384 (fix_trunctfdi2): Same.
2385 (fix_trunctfsi2): Same.
2387 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
2389 * doc/install.texi: Update Texinfo version requirement
2392 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2394 PR target/6512, PR target/5628
2395 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2396 when memory is not aligned.
2397 (movdf_insn_v9only_vis): Likewise.
2398 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2399 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2400 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2402 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
2404 * gcc.dg/altivec-7.c: New.
2406 * config/rs6000/altivec.h: Cleanup.
2408 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
2410 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2411 (RS/6000 and PowerPC Options): Document -mvrsave=.
2413 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2414 (rs6000_altivec_vrsave_string): Same.
2415 (rs6000_override_options): Call rs6000_parse_vrsave_option.
2416 (rs6000_parse_vrsave_option): New.
2417 (rs6000_stack_info): Only generate vrsave instructions when
2418 TARGET_ALTIVEC_VRSAVE.
2420 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2421 (rs6000_altivec_vrsave_string): Define extern.
2422 (rs6000_altivec_vrsave): Same.
2423 (TARGET_ALTIVEC_VRSAVE): New.
2425 2002-04-30 Richard Henderson <rth@redhat.com>
2428 * toplev.c (rest_of_compilation): Don't run cross-jump before
2431 2002-04-30 Tom Rix <trix@redhat.com>
2433 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2434 check which_alternative.
2436 2002-04-30 Kazu Hirata <kazu@hxi.com>
2438 * cpplex.c: Fix comment formatting.
2439 * function.c: Likewise.
2440 * integrate.c: Likewise.
2441 * regrename.c: Likewise.
2442 * sibcall.c: Likewise.
2443 * simplify-rtx.c: Likewise.
2444 * tree-inline.c: Likewise.
2446 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2448 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2449 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2450 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2451 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2452 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2453 * pa/x-ada: New file. Define ADA_CFLAGS.
2455 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
2457 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2458 from MMIX_LAST_REGISTER_FILE_REGNUM.
2459 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2460 (struct machine_function): New member highest_saved_stack_register
2461 previously static variable in mmix.c.
2462 (MACHINE_DEPENDENT_REORG): Define.
2463 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2464 (MMIX_OUTPUT_REGNO): New.
2465 (mmix_target_asm_function_prologue): Move calculation of last used
2466 saved-stack-register into...
2467 (mmix_machine_dependent_reorg): New function. Update to also handle
2469 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2470 register names, simplify somewhat by new variable regno.
2471 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
2473 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2474 emitting register names.
2475 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2476 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2478 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2481 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2483 2002-04-30 Richard Henderson <rth@redhat.com>
2485 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2486 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2487 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2488 emit_tfmode_cvt): New.
2489 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2490 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2491 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2492 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2493 * config/sparc/sparc-protos.h: Update.
2495 2002-04-30 Janis Johnson <janis187@us.ibm.com>
2497 * install.texi (Final install): Add to the list of info to include
2498 in a report of a successful bootstrap, and add link to 3.1 list.
2500 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
2502 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2503 (mode): Add vector modes
2504 (i387): Kill attribute.
2505 (unit): New attribute.
2506 (length_immediate): Grok new types.
2507 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2508 (modrm): Use "unit".
2509 (memory): Handle MMX/SSE properly.
2510 (scheduling descriptions): Kill uses of fop1.
2511 (sse, mmx, fp patterns): Set type and mode properly.
2513 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
2515 * pa.c (override_options): Default to PA8000 scheduling.
2516 * doc/invoke.texi (HP-PA options): Mention newly added 7300
2517 scheduling parameter.
2519 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2520 handling of double precision multiplies.
2522 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2523 fpdiv and fpsqrt instructions.
2524 (7200 & 7300 scheduling): Fix typo in handling of
2525 store-load and store-store penalties.
2527 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2529 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2530 mips. Add two missing commas.
2532 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
2534 * doc/contrib.texi (Contributors): Update Paolo Carlini's
2535 and Benjamin Kosnik's entries.
2537 2002-04-29 David S. Miller <davem@redhat.com>
2539 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2540 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2541 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2542 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2544 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2546 * combine.c (find_split_point): Use gen_int_mode.
2548 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
2550 Merging code from dfa-branch:
2552 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
2554 * genautomata.c (output_reserv_sets): Fix typo.
2556 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
2558 * genautomata.c (output_reserv_sets): Remove
2559 next_cycle_output_flag.
2561 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
2563 * sched-rgn.c (init_ready_list): Make the DFA code handle
2564 USE/CLOBBER insns in the same way as the traditional
2566 (new_ready): Similarly..
2568 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
2570 * haifa-sched.c (schedule_block): Change the DFA state only after
2573 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
2575 * pa.c (hppa_use_dfa_pipeline_interface): New function.
2576 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2577 (override_options): Add PA7300 scheduling support.
2578 (pa_adjust_cost): Update various comments. Properly
2579 handle anti and output dependencies when using the
2581 (pa_issue_rate): Add PA7300 scheduling support.
2582 (pa_can_combine_p): Call extract_insn before calling
2583 constrain_operands (taken from mainline tree).
2584 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2585 * pa.md (cpu attr): Add 7300. Rewrite pipeline
2586 descriptions using DFA descriptions. Add PA7300
2589 2002-03-30 David S. Miller <davem@redhat.com>
2591 Add UltraSPARC-III DFA scheduling support.
2592 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2593 Update FP conditional move on register insn patterns to use it, as
2595 (define_attr cpu): Add ultrasparc3.
2596 (define_attr us3load_type): New, update integer load patterns to
2597 set it, as appropriate.
2598 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2599 (rest): Add UltraSPARC3 scheduling description.
2600 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2601 (PROCESSOR_ULTRASPARC3): New.
2602 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2603 ({ASM,CPP}_CPU_SPEC): Likewise.
2604 (REGISTER_MOVE_COST): Likewise.
2605 (RTX_COSTS): Likewise.
2606 * config/sparc/sparc.c (sparc_override_options,
2607 sparc_initialize_trampoline, sparc64_initialize_trampoline,
2608 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2609 sparc_issue_rate): Likewise.
2610 * config/sparc/sol2.h: Likewise.
2611 * config/sparc/sol2-sld-64.h: Likewise.
2612 * config/sparc/linux64.h: Likewise.
2614 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
2616 * doc/md.texi: Add comments about usage the latency time for the
2617 different dependencies and about case when two or more conditions
2618 in different define_insn_reservations returns TRUE for an insn.
2620 * doc/md.texi: Add reference for automaton based pipeline
2623 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
2625 * doc/passes.texi: Add missed information about genattrtab.
2627 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
2629 * genautomata.c (output_automata_list_transition_code): Check
2630 automata_list on NULL.
2632 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
2634 * genautomata.c (output_insn_code_cases,
2635 output_automata_list_min_issue_delay_code,
2636 output_automata_list_transition_code,
2637 output_automata_list_state_alts_code): Comment the functions.
2639 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
2641 * genautomata.c (automata_list_el_t): New typedef.
2642 (get_free_automata_list_el,free_automata_list_el,
2643 free_automata_list, automata_list_hash, automata_list_eq_p,
2644 initiate_automata_lists, automata_list_start, automata_list_add,
2645 automata_list_finish, finish_automata_lists,
2646 output_insn_code_cases, output_automata_list_min_issue_delay_code,
2647 output_automata_list_transition_code,
2648 output_automata_list_state_alts_code, add_automaton_state,
2649 form_important_insn_automata_lists): New functions and prototypes.
2650 (insn_reserv_decl): Add members important_automata_list and
2652 (ainsn): Add members important_p.
2653 (automata_list_el): New structure.
2654 (first_free_automata_list_el, current_automata_list,
2655 automata_list_table): New global variables.
2656 (create_ainsns): Initiate member important_p.
2657 (output_internal_min_issue_delay_func): Generate the switch and
2658 call output_insn_code_cases.
2659 (output_internal_trans_func, output_internal_state_alts_func):
2661 (generate): Call initiate_automata_lists.
2662 (automaton_states): New global variable.
2663 (expand_automata): Call form_important_insn_automata_lists.
2664 (write_automata): Call finish_automata_lists.
2666 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
2668 * genautomata.c (add_excls, add_presence_absence): Check that
2669 cpu units in the sets belong the same automaton.
2671 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2672 about that cpu units in the sets belong the same automaton.
2674 * doc/md.texi: Ditto.
2676 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
2677 Nitin Gupta <niting@noida.hcltech.com>
2679 * config/sh/sh.c (sh_use_dfa_interface): New function.
2681 (sh_issue_rate): New Function.
2682 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2683 TARGET_SCHED_ISSUE_RATE: define.
2685 * config/sh/sh.md: Add DFA based pipeline description for SH4.
2687 (define_attr insn_class): New attribute used for DFA
2689 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2690 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2691 cmpeqdi_t): Likewise.
2693 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2694 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2696 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2698 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2700 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2703 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2705 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2706 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2708 (output_dfa_start_func): Initiate new variable insn_codes_length,
2709 (write_automata): Output definition of the new variable.
2711 2001-10-02 David S. Miller <davem@redhat.com>
2713 * haifa-sched.c (advance_one_cycle): New function.
2714 (schedule_block): Use it.
2715 (queue_to_ready): Use it, and also make sure to advance the DFA
2716 state on all stall cycles, not just those where insn_queue links
2719 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
2721 * haifa-sched.c (max_issue): Remove last_p argument. Only return
2722 non-zero if the highest-priority instruction could be scheduled.
2723 (choose_ready): Remove last argument from max_issue call.
2725 2001-09-28 David S. Miller <davem@redhat.com>
2727 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2728 ultrasparc and 3 for other multi-issue sparcs.
2730 2001-09-27 David S. Miller <davem@redhat.com>
2732 * config/sparc/sparc.md (cycle_display): New pattern.
2733 * config/sparc/sparc.c (sparc_cycle_display): New.
2734 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2736 2001-09-25 David S. Miller <davem@redhat.com>
2738 Convert all of Sparc scheduling to DFA
2739 * config/sparc/sparc.md: Kill all define_function_unit
2740 directives and replace with DFA equivalent.
2741 * config/sparc/sparc.c (ultrasparc_adjust_cost,
2742 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2743 ultra_fpmode_conflict_exists, ultra_find_type,
2744 ultra_build_types_avail, ultra_flush_pipeline,
2745 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2746 ultrasparc_variable_issue, ultrasparc_sched_init,
2747 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2748 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2749 ultra_cur_hist, ultra_cycles_elapsed): Kill.
2750 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2751 ultrasparc_store_bypass_p): New.
2752 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2755 2001-09-24 David S. Miller <davem@redhat.com>
2757 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2758 ready->vec[foo] not ready[foo].
2760 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2762 * doc/md.texi: Correct examples for define_insn_reservations
2765 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2767 * genautomata.c (create_automata): Print message about creation of
2769 (generate): Remove printing meease about creation of
2772 2001-09-05 David S. Miller <davem@redhat.com>
2774 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2775 * config/sparc/linux64.h: Likewise.
2777 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
2779 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2780 schedule_block, sched_init, sched_finish): Add missed calls of
2781 use_dfa_pipeline_interface.
2783 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2786 * sched-vis.c (get_visual_tbl_length): Ditto.
2788 2001-08-27 Richard Henderson <rth@redhat.com>
2790 * genattr.c (main): Emit state_t even when not doing scheduling.
2792 2001-08-27 Richard Henderson <rth@redhat.com>
2794 * genautomata.c (expand_automata): Always create a description.
2796 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2798 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2799 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2800 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2803 * genattr.c (main): New variable num_insn_reservations. Increase
2804 it if there is DEFINE_INSN_RESERVATION. Output automaton based
2805 pipeline hazard recognizer interface.
2807 * genattrtab.h: New file.
2809 * genattrtab.c: Include genattrtab.h.
2810 (attr_printf, check_attr_test, make_internal_attr,
2811 make_numeric_value): Move protypes into genattrtab.h. Define them
2813 (num_dfa_decls): New global variable.
2814 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2815 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2816 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2817 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
2819 * genautomata.c: New file.
2821 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2823 * sched-int.h: (curr_state): Add the external definition for
2824 automaton pipeline interface.
2825 (haifa_insn_data): Add comments for members blockage and units.
2827 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2828 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2829 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2830 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2831 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2832 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2833 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2835 (TARGET_SCHED): Use the new macros.
2837 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2838 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2839 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2840 dfa_bubble): New members in gcc_target.sched.
2842 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2843 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2844 (insn_queue): Redefine it as pointer to array.
2845 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2847 (max_insn_queue_index_macro_value): New variable.
2848 (curr_state, dfa_state_size, ready_try): New varaibles for
2849 automaton interface.
2850 (ready_element, ready_remove, max_issue): New function prototypes
2851 for automaton interface.
2852 (choose_ready): New function prototype.
2853 (insn_unit, blockage_range): Add comments.
2854 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2855 FUNCTION_UNITS_SIZE == 0.
2856 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2857 actual_hazard, potential_hazard): Add comments.
2858 (insn_cost): Use cost -1 as undefined value. Remove
2859 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
2861 (ready_element, ready_remove): New functions for automaton
2863 (schedule_insn): Add new code for automaton pipeline interface.
2864 (queue_to_ready): Add new code for automaton pipeline interface.
2865 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2866 (debug_ready_list): Print newline when the queue is empty.
2867 (max_issue): New function for automaton pipeline interface.
2868 (choose_ready): New function.
2869 (schedule_block): Add new code for automaton pipeline interface.
2870 Print ready list before scheduling each insn.
2871 (sched_init): Add new code for automaton pipeline interface.
2872 Initiate insn cost by -1.
2873 (sched_finish): Free the current automaton state and finalize
2874 automaton pipeline interface.
2876 * sched-rgn.c: Include target.h.
2877 (init_ready_list, new_ready, debug_dependencies): Add new code for
2878 automaton pipeline interface.
2880 * sched-vis.c: Include target.h.
2881 (get_visual_tbl_length): Add code for automaton interface.
2882 (target_units, print_block_visualization): Add comments.
2884 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2885 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2886 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2887 (getruntime.o, genautomata.o): New entries.
2888 (genattrtab.o): Add new dependency file genattrtab.h.
2889 (genattrtab): Add new dependencies. Link it with `libm.a'.
2890 (getruntime.o, hashtab.o): New entries for canadian cross.
2892 * doc/md.texi: Description of automaton based model.
2894 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2896 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2897 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2898 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2899 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2900 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2901 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2902 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2904 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2905 MAX_DFA_ISSUE_RATE): New macro descriptions.
2907 * doc/contrib.texi: Add dfa based scheduler contribution.
2909 * doc/gcc.texi: Add more information about genattrtab.
2911 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2913 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2914 adjust_address_nv call.
2916 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2918 * doc/install.texi (Testing): Provide additional information, and
2919 a stronger encouragement, for running the testsuites.
2921 2002-04-29 DJ Delorie <dj@redhat.com>
2923 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2924 given in upper case.
2926 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2928 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2929 Solaris 2 <widec.h> if missing.
2930 * fixinc/fixincl.x: Regenerate.
2931 * fixinc/tests/base/widec.h: New file.
2933 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2935 * toplev.c (f_options): Add "profile" switch so that
2936 -fno-profile can be used to disable -p.
2938 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2940 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2942 * tree.c (build_common_tree_nodes_2): Likewise.
2943 * tree.h (enum tree_index): Likewise.
2944 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2946 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2948 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2949 (ix86_expand_builtin): Add support for SSE2 builtins.
2950 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2951 (VALID_SSE_REG_MODE): Use it.
2952 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2953 (enum ix86_builtins): Add SSE2 builtins.
2954 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2955 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2956 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2957 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2958 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2959 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2960 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2961 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2962 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2963 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2964 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2965 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2966 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2967 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2968 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2969 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2970 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2971 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2972 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2973 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2974 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2975 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2976 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2977 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2978 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2979 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2980 lfence_insn): New patterns.
2981 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2982 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2984 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2986 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2988 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2990 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2992 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2993 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2994 and CPU instead of cpu.
2996 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2998 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3000 (lang_independent_options): Add -fif-conversion, -fif-conversion2
3001 (rest_of_compilation): Do if conversion only when asked for.
3002 (parse_options_and_default_flags): Set new variables to 1 for -O1
3003 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3005 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3007 * i386.c (dbx64_register_map): Fix typo.
3009 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3011 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3012 real_one_half, real_bb_freq_max): New static variables.
3013 (debug_profile_bbauxs): Kill.
3014 (process_note_predictions): Kill unused variable.
3015 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3017 (propagate_freq): Use REAL_ARITHMETICS.
3018 (estimate_bb_frequencies): Likevise; init new static variables.
3019 * Makefile.in (predict.o): Add dependency on real.h
3021 2002-04-28 David S. Miller <davem@redhat.com>
3024 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3025 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
3026 several {reads,writes} instead.
3027 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3030 2002-04-27 David S. Miller <davem@redhat.com>
3033 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3036 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3037 including signal.h and sys/ucontext.h, not needed.
3039 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
3041 * varasm.c (output_constant_def): Correct test for not calling
3042 ENCODE_SECTION_INFO for INTEGER_CST.
3044 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
3046 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3047 keep most cases as function eval_token.
3048 (eval_token): New function.
3049 (_cpp_parse_expr): Read token here for improved diagnostics.
3050 Don't use op_as_text. Detect bad ':' here.
3051 (reduce): Don't detect bad ':' here.
3052 (op_as_text): Remove.
3053 * cpphash.h (_cpp_test_assertion): Change prototype.
3054 * cpplib.c (_cpp_test_assertion): Change prototype.
3056 2002-04-28 Richard Henderson <rth@redhat.com>
3059 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3060 (ggc_mark_rtx_children): New.
3062 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3065 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3066 after call peepholes for UltraSPARC.
3067 (call + jump 64-bit peepholes): Remove.
3069 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3072 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3073 result as temporary value.
3075 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3078 * toplev.c (rest_of_compilation): Only run regrename and copy
3079 propagation if optimizing.
3081 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3083 PR optimization/6475
3084 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3085 register of REGNO_DECL (i).
3086 * Makefile.in (reload1.o): Add $(TREE_H).
3088 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
3090 * cppexp.c (lex): Update to use state.skip_eval.
3091 (struct op): Remove prio and flags members.
3092 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3093 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3094 (LEFT_ASSOC): New macro.
3095 (optab): New table of operator priorities and flags.
3097 (_cpp_parse_expr): Clean up logic. Return bool. Use a
3098 malloc-ed parser stack.
3099 (reduce): New; reduce the operator stack.
3100 (_cpp_expand_op_stack): Expand the operator stack as necessary.
3101 * cpphash.h (struct op): Predeclare.
3102 (struct cpp_reader): New members op_stack, op_limit.
3103 (struct lexer_state): New member skip_eval.
3104 (_cpp_parse_expr): Update.
3105 (_cpp_expand_op_stack): New.
3106 * cpplib.c (do_if): Update.
3107 * cppinit.c (cpp_create_reader): Create op stack.
3108 (cpp_destroy): And destroy it.
3109 * cpplib.h (CPP_LAST_CPP_OP): Correct.
3110 (TTYPE_TABLE): Correct.
3112 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3115 * c-decl.c (duplicate_decls): Call merge_weak.
3116 * c-pragma.c (apply_pragma_weak): Warn about misuse.
3117 * output.h (merge_weak): Prototype merge_weak.
3118 * varasm.c (merge_weak): New function.
3119 (declare_weak): Make sure we don't give an error on VAR_DECLs.
3120 Mark RTL with SYMBOL_REF_WEAK.
3122 2002-04-27 Kurt Garloff <garloff@suse.de>
3124 * tree-inline.c (inlinable_function_p): Improve heuristics
3125 by using a smoother function to cut down allowable inlinable size.
3126 * param.def: Add parameters max-inline-insns-single,
3127 max-inline-slope, min-inline-insns that determine the exact
3128 shape of the above function.
3129 * param.h: Likewise.
3131 2002-04-26 Richard Henderson <rth@redhat.com>
3133 * c-parse.in (malloced_yyss, malloced_yyvs): New.
3134 (yyoverflow): Re-add. Set them.
3135 (free_parser_stacks): New.
3136 * c-common.h: Declare it.
3137 * c-lex.c (c_common_parse_file): Call it.
3139 2002-04-26 Richard Henderson <rth@redhat.com>
3141 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3142 for fallthru search.
3144 2002-04-26 Eric Christopher <echristo@redhat.com>
3146 PR optimization/3700
3147 * config/mips/mips.c (mips_issue_rate): Define. New function.
3148 (TARGET_SCHED_ISSUE_RATE): Use.
3150 2002-04-25 David S. Miller <davem@redhat.com>
3153 * reorg.c (optimize_skip): Do not allow exception causing
3154 instructions to be considered for delay slots.
3155 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3156 (relax_delay_slots): Do not try to consider exception causing
3157 instructions as redundant.
3159 2002-04-26 Richard Henderson <rth@redhat.com>
3162 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3164 2002-04-26 Mark Mitchell <mark@codesourcery.com>
3167 * config/i386/i386.md (untyped_call): Return the value in a float
3168 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3171 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
3173 * tree.c (tree_int_cst_lt): Compare constants whose types differ
3174 in unsigned-ness correctly.
3176 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3178 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3179 portable runtime model.
3181 2002-04-26 Richard Henderson <rth@redhat.com>
3183 * c-parse.in (yyoverflow): Revert.
3185 2002-04-26 David Edelsohn <edelsohn@gnu.org>
3186 Richard Henderson <rth@redhat.com>
3188 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3189 result as temporary value.
3191 2002-04-26 Richard Henderson <rth@redhat.com>
3194 * c-common.c (fix_string_type): Split out of ...
3195 (combine_strings): ... here. Take a varray, not a tree list.
3196 (c_expand_builtin_printf): Use fix_string_type.
3197 * c-common.h: Update decls.
3198 * c-parse.in (string): Remove. Update all uses to use STRING
3199 instead, and not call combine_strings.
3202 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3203 (build_asm_stmt): Likewise.
3204 * objc/objc-act.c (my_build_string): Use fix_string_type.
3205 (build_objc_string_object): Build varray for combine_strings.
3207 2002-04-26 Bo Thorsen <bo@suse.co.uk>
3209 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3212 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
3214 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3215 (HAVE_NO_R_OPERAND): Remove.
3216 (HAVE_VALUE): Remove.
3217 (op_to_prio): Update.
3218 (UNARY): Don't alter flags.
3219 (_cpp_parse_expr): want_value used to indicate whether
3220 a number or unary operator is expected next. Distinguish
3221 unary and binary +/-.
3222 (op_as_text): Update for unary operators.
3224 2002-04-25 Richard Henderson <rth@redhat.com>
3227 * c-parse.in (yyoverflow): New.
3229 2002-04-25 Richard Henderson <rth@redhat.com>
3232 * c-common.c (shorten_compare): Simplfy conditions leading to
3233 the generation of a warning.
3235 2002-04-25 Richard Henderson <rth@redhat.com>
3238 * expmed.c (extract_bit_field): Fall through to generic code rather
3239 than aborting on subreg special case.
3241 2002-04-25 David S. Miller <davem@redhat.com>
3243 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3244 for DECL being NULL.
3246 2002-04-25 Steve Christiansen <smc@us.ibm.com>
3248 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3250 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
3252 * c-decl.c (grokdeclarator): Remove outdated ??? note
3253 on invalid declaration of flexible array members.
3255 2002-04-25 Richard Henderson <rth@redhat.com>
3257 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3259 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3261 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3262 needed by the compiler, even if they are used as global regs.
3264 2002-04-25 Matt Hiller <hiller@redhat.com>
3266 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3268 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3269 of the corresponding functions.
3270 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3273 2002-04-25 Matt Hiller <hiller@redhat.com>
3275 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3277 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3278 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3279 registers, adjust comment accordingly.
3280 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3281 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3282 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3283 for coprocessor registers.
3284 (ADDITIONAL_REGISTER_NAMES): Include
3285 ALL_COP_ADDITIONAL_REGISTER_NAMES.
3287 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3288 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3289 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3290 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3291 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3293 (mips_char_to_class): Adjust comment to include coprocessor
3296 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3298 (mips_reg_names, mips_regno_to_class): Include coprocessor
3300 (mips_sw_reg_names): Ditto, make non-static.
3301 (mips_move_1word): Handle moves to and from coprocessor registers.
3302 (mips_move_2words): Handle moves to and from coprocessor
3304 (mips_class_max_nregs, mips_register_move_cost): Handle
3305 coprocessor register classes.
3306 (override_options): Initialize mips_char_to_class and
3307 mips_hard_regno_mode_ok properly for coprocessor registers.
3309 * config/mips/mips.md (movdi_internal, movdi_internal2,
3310 movsi_internal1, movsi_internal2): Add constraint-sets for
3311 coprocessor registers.
3312 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3313 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3315 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3316 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3318 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3319 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3321 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3322 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3325 * doc/tm.texi: Document feature.
3327 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3329 * integrate.c (function_attribute_inlinable_p): Simplify.
3330 Check the table pointer is not NULL.
3332 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
3334 * doc/c-tree.texi: Fix typo in introduction.
3336 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3338 * c-common.h (c_common_parse_file): Update.
3339 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3340 * c-lex.c (YYDEBUG): Get from c-lex.h.
3341 (c_common_parse_file): Update.
3342 * c-lex.h (YYDEBUG, yydebug): New.
3343 * c-parse.in (YYDEBUG): Get from c-lex.h.
3344 (c_set_yydebug): Remove.
3345 * c-tree.h (c_set_yydebug): Remove.
3346 * langhooks-def.h (lhd_do_nothing_i): New.
3347 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3348 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3349 * langhooks.c (lhd_do_nothing_i): New.
3350 (lhd_set_yydebug): Remove.
3351 * langhooks.h (struct lang_hooks): Update.
3352 * toplev.c (set_yydebug): New.
3353 (compile_file): Update call to parse_file hook.
3354 (decode_d_option): Update.
3356 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3358 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
3360 * loop.c (load_mems): Don't change the interface of called functions.
3362 * calls.c (expand_call): Take current_function_pretend_args_size
3363 into account when setting argblock for sibcalls.
3365 2002-04-24 Matt Hiller <hiller@redhat.com>
3367 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3370 * cpplex.c (skip_line_comment): Process comment one multibyte
3371 character at a time rather than one char at a time, if
3373 (parse_string): Process string one multibyte character at a time
3374 rather than one char at a time, if appropriate.
3375 * c-lex.c (lex_string): Lex and copy multibyte strings
3377 * cpplib.h (cppchar_t): Change to unsigned.
3379 2002-04-24 Richard Henderson <rth@redhat.com>
3382 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3385 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
3387 * sh.c (sh_va_arg): If argument was passed by reference,
3388 dereference the pointer.
3390 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3392 * sh.md (divsi3_i4_media): Use match_operand for input values
3393 rather than hard registers.
3394 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3395 unnecessarily through hard registers. Keep copies of pseudo
3396 registers outside of the libcall sequence.
3398 * sh.md (casesi_shift_media): Add modes.
3400 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3403 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3405 * attribs.c (c_common_attribute_table): Move table and handlers
3407 (format_attribute_table, lang_attribute_table,
3408 lang_attribute_common): Remove.
3409 (init_attributes): Replace NULL pointers with pointers to the
3411 (handle_packed_attribute, handle_nocommon_attribute,
3412 handle_common_attribute, handle_noreturn_attribute,
3413 handle_noinline_attribute, handle_always_inline_attribute,
3414 handle_used_attribute, handle_unused_attribute,
3415 handle_const_attribute, handle_transparent_union_attribute,
3416 handle_constructor_attribute, handle_destructor_attribute,
3417 handle_mode_attribute, handle_section_attribute,
3418 handle_aligned_attribute, handle_weak_attribute,
3419 handle_alias_attribute, handle_visibility_attribute,
3420 handle_no_instrument_function_attribute, handle_malloc_attribute,
3421 handle_no_limit_stack_attribute, handle_pure_attribute,
3422 handle_deprecated_attribute, handle_vector_size_attribute,
3423 vector_size_helper): Move to c-common.c.
3424 * c-common.c (c_common_attribute_table,
3425 handle_packed_attribute, handle_nocommon_attribute,
3426 handle_common_attribute, handle_noreturn_attribute,
3427 handle_noinline_attribute, handle_always_inline_attribute,
3428 handle_used_attribute, handle_unused_attribute,
3429 handle_const_attribute, handle_transparent_union_attribute,
3430 handle_constructor_attribute, handle_destructor_attribute,
3431 handle_mode_attribute, handle_section_attribute,
3432 handle_aligned_attribute, handle_weak_attribute,
3433 handle_alias_attribute, handle_visibility_attribute,
3434 handle_no_instrument_function_attribute, handle_malloc_attribute,
3435 handle_no_limit_stack_attribute, handle_pure_attribute,
3436 handle_deprecated_attribute, handle_vector_size_attribute,
3437 vector_size_helper): Move from attribs.c.
3438 * c-common.h (c_common_attribute_table,
3439 c_common_format_attribute_table): New.
3440 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3441 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3442 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3443 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3444 (LANG_HOOKS_INITIALIZER): Update.
3445 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3446 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3447 * target.h: Update comment.
3448 * tree.c (default_target_attribute_table): Remove.
3449 * tree.h (default_target_attribute_table, format_attribute_table,
3450 lang_attribute_table, lang_attribute_common): Remove.
3452 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3453 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3455 2002-04-24 Jason Merrill <jason@redhat.com>
3457 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3458 * dwarf2out.c (dwarf_attr_name): Support it.
3459 (gen_array_type_die): Emit it.
3460 (lookup_type_die): No special handling for VECTOR_TYPE.
3461 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3463 2002-04-24 Richard Henderson <rth@redhat.com>
3465 * config/mips/mips.md (movdi_usd): Renumber.
3467 2002-04-24 David S. Miller <davem@redhat.com>
3470 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3471 32-bit Sparc and current_function_returns_struct is true.
3473 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3475 * loop.c (canonicalize_condition): Use gen_int_mode.
3477 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
3479 * config/rs6000/altivec.h: Cleanup file. Add non individual
3501 (vec_vcmpequb): New.
3502 (vec_vcmpequh): New.
3503 (vec_vcmpequw): New.
3504 (vec_vcmpeqfp): New.
3505 (vec_vcmpgefp): New.
3506 (vec_vcmpgtub): New.
3507 (vec_vcmpgtsb): New.
3508 (vec_vcmpgtuh): New.
3509 (vec_vcmpgtsh): New.
3510 (vec_vcmpgtuw): New.
3511 (vec_vcmpgtsw): New.
3512 (vec_vcmpgtfp): New.
3513 (vec_vcmpgefp): New.
3518 (vec_vexptefp): New.
3523 (vec_lde): Add vector float variant.
3528 (vec_vmhaddshs): New.
3550 (vec_vmladduhm): New.
3551 (vec_vmhraddshs): New.
3553 (vec_vmsummbm): New.
3554 (vec_vmsumuhm): New.
3555 (vec_vmsumshm): New.
3556 (vec_vmsumuhs): New.
3557 (vec_vmsumshs): New.
3566 (vec_vnmsubfp): New.
3584 (vec_vrsqrtefp): New.
3595 (vec_vspltisb): New.
3596 (vec_vspltish): New.
3597 (vec_vspltisw): New.
3622 (vec_vsum4ubs): New.
3623 (vec_vsum4sbs): New.
3624 (vec_vsum4shs): New.
3625 (vec_vsum2sws): New.
3636 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
3639 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3640 added literals from substracted literals.
3641 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3642 (fold) [associate]: Preserve MINUS_EXPR if needed.
3644 2002-04-23 Zack Weinberg <zack@codesourcery.com>
3646 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3649 2002-04-23 Tom Tromey <tromey@redhat.com>
3651 * gcc.c: Added --resource. For PR java/6314.
3653 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3655 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3656 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3659 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3661 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3663 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3665 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3667 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3668 (ix86_expand_clrstr): Fix typo.
3669 * loop.c (gen_load_of_final_value): New.
3670 (loop_givs_rescan, strength_reduce, check_dbra_loop):
3673 2002-04-23 Roger Sayle <roger@eyesopen.com>
3675 * builtins.c (builtin_memset_gen_str): New function.
3676 (expand_builtin_memset): Optimize the case of constant length, but
3679 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
3681 * config/rs6000/altivec.h (vec_step): Remove extraneous
3683 (vec_ctu): Cast return.
3685 2002-04-23 Alan Modra <amodra@bigpond.net.au>
3688 * function.h: (struct function): Add profile_label_no field.
3689 (current_function_profile_label_no): Define.
3690 * function.c: (profile_label_no): New static var.
3691 (expand_function_start): Increment it, and copy to
3692 current_function_profile_label_no.
3693 * output.h (profile_label_no): Delete.
3694 * final.c (profile_label_no): Delete.
3695 (profile_function): Use current_function_profile_label_no.
3696 (final_end_function): Don't increment profile_label_no here.
3697 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3698 profile_label_no with current_function_profile_label_no.
3699 * config/pa/pa.c (current_function_number): Delete.
3700 (pa_output_function_prologue): Don't output profile label here.
3701 (hppa_profile_hook): Use label_no param rather than
3702 current_function_number.
3703 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3704 * config/pa/pa.h: .. here.
3705 (FUNCTION_PROFILER): Output profile label here.
3707 2002-04-22 Eric Christopher <echristo@redhat.com>
3709 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3710 patch of 2002-04-09 due to binutils issues.
3711 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3713 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3715 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3716 constraint to 'o' for m=r and r=m alternatives.
3717 ("*movv8hi_internal1"): Same.
3718 ("*movv16qi_internal1"): Same.
3719 ("*movv4sf_internal1"): Same.
3721 2002-04-22 Janis Johnson <janis187@us.ibm.com>
3723 * rtl.h (RTX_FLAG): New macro.
3724 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3725 * final.c (alter_subreg): Use macro to access rtx flag.
3726 * integrate.c (copy_rtx_and_substitute): Use new access macro.
3727 * print-rtl.c (print_rtx): Use new access macro.
3729 * cse.c (insert): Check rtx code before accessing flag.
3731 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3732 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3733 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3734 convert_const_symbol_ref, make_canonical, make_alternative_compare,
3735 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3736 simplify_test_exp, optimize_attrs, simplify_by_exploding,
3737 find_and_mark_used_attributes, unmark_used_attributes,
3738 add_values_to_cover, simplify_with_current_value,
3739 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3740 copy_rtx_unchanging, main): Use new access macros.
3742 2002-04-22 Tom Rix <trix@redhat.com>
3744 * expmed.c (init_expmed): Generate shifted constant once.
3746 2002-04-22 Zack Weinberg <zack@codesourcery.com>
3748 * c-lex.c (lex_charconst): Call convert to get constant in
3749 proper type; don't just smash the type field.
3752 * config.gcc: Add list of obsolete configurations. Disallow
3753 building these without --enable-obsolete.
3754 * doc/install.texi: Document --enable-obsolete and obsoletion
3755 policy. Mention obsoletion of individual targets in
3758 2002-04-22 Richard Henderson <rth@redhat.com>
3760 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3762 2002-04-22 Mark Mitchell <mark@codesourcery.com>
3765 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3766 (walk_fixup_memory_subreg): Likewise.
3767 (fixup_var_refs_insn): Adjust accordingly.
3768 (fixup_var_refs_1): Likewise.
3770 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
3772 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3773 LIBPATH_ARCH64_SPEC): Define.
3774 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3775 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3776 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3777 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3779 2002-04-22 Joel Sherrill <joel@OARcorp.com>
3781 * gthr-rtems.h: Correct prototypes to remove warnings.
3783 2002-04-22 Richard Henderson <rth@redhat.com>
3786 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3788 * gcse.c (free_insn_expr_list_list): New.
3789 (clear_modify_mem_tables): Use it. Fix bit set usage.
3790 (canon_list_insert): Use EXPR_LISTs for expressions.
3791 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3793 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
3795 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
3796 file change and include code to _cpp_pop_buffer.
3797 * cpphash.h (struct pending_option): Predeclare.
3798 (struct cpp_reader): New member next_include_file.
3799 (_cpp_pop_file_buffer): Update.
3800 (_cpp_push_next_buffer): Update, rename.
3801 * cppinit.c (cpp_destroy): Free include chain and pending here.
3802 (cpp_finish_options): Simplify.
3803 (_cpp_push_next_buffer): Rename and clean up.
3804 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3806 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3808 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3810 * config/rs6000/altivec.h (vec_xor): Add variant for both args
3811 being vector signed int.
3813 (vec_xor): Add variant for both args being vector signed char.
3814 Remove redundant variant.
3817 2002-04-21 David S. Miller <davem@redhat.com>
3819 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3820 compare mode in output RTL.
3822 2002-04-22 David Edelsohn <edelsohn@gnu.org>
3824 * config/rs6000/rs6000.c (rs6000_override_options): Correct
3825 style and formatting of previous patch.
3827 2002-04-22 Alan Modra <amodra@bigpond.net.au>
3829 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3830 flag_pic for ABI_AIX.
3832 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3834 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3835 * cppfiles.c (read_include_file): Similarly.
3836 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3837 uxstrdup ustrchr, ufputs): Similarly.
3838 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3839 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3840 cpp_ideq, parse_identifier, parse_number): Similarly.
3841 * cpplib.c (struct directive, dequote_string, D, run_directive,
3842 cpp_push_buffer): Similarly.
3843 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3844 _cpp_create_definition, check_trad_stringification,
3845 cpp_macro_definition): Similarly.
3847 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3849 * cppmacro.c (funlike_invocation_p): Don't step back
3852 2002-04-21 David Edelsohn <edelsohn@gnu.org>
3854 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3857 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
3859 * doc/invoke.texi: Remove Chill references.
3860 * doc/gcc.texi: Update last modified date.
3862 2002-04-20 Kazu Hirata <kazu@hxi.com>
3864 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3865 push and pop. Replace add.l with add.w.
3867 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3869 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3870 multiply instructions for H8/300H case.
3872 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3874 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3875 Bum three instructions from each routine.
3877 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3879 * Makefile.in: Update.
3880 * decl.c (push_c_function_context, pop_c_function_context,
3881 mark_c_function_context): Rename for consistency.
3882 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3883 * c-tree.h (push_c_function_context, pop_c_function_context,
3884 mark_c_function_context): Rename for consistency.
3885 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3886 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3887 * function.c (init_lang_status, save_lang_status,
3888 restore_lang_status, mark_lang_status, free_lang_status):
3889 Move to langhooks.h.
3890 (push_function_context_to, pop_function_context_from,
3891 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3893 * function.h (init_lang_status, save_lang_status,
3894 restore_lang_status, mark_lang_status, free_lang_status):
3895 Move to langhooks.h.
3896 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3897 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3898 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3899 LANG_HOOKS_FUNCTION_INITIALIZER): New.
3900 (LANG_HOOKS_INITIALIZER): Update.
3901 (lhd_do_nothing_f): New.
3902 * langhooks.h (struct lang_hooks_for_functions): New.
3903 (struct lang_hooks): New hooks.
3904 * langhooks.c (lhd_do_nothing_f): New.
3906 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3907 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3909 2002-04-19 David S. Miller <davem@redhat.com>
3911 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3912 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3914 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3916 PR optimization/3756
3917 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3918 x = ((int) y < 0) ? cst1 : cst2.
3920 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3923 * function.c: Reapply patch for c/6358.
3924 (expand_function_end): Copy decl_rtl's mode, not
3925 current_function_return_rtx mode.
3927 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3929 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3932 2002-04-19 Tom Tromey <tromey@redhat.com>
3934 * doc/install.texi (Specific): Update status of Solaris 2.8.
3937 2002-04-19 Andreas Schwab <schwab@suse.de>
3939 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3940 (PUT_REAL): Restore old definition.
3942 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3943 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3945 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3946 binutils 2.11.2 and higher generate smaller binaries than Sun's
3949 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3952 * toplev.c (rest_of_compilation): Do not defer functions for which
3953 TREE_SYMBOL_REFERENCED has already been set.
3955 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3957 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3960 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3962 * builtins.c: Include langhooks.h.
3963 (lang_type_promotes_to): Remove.
3964 (expand_builtin_va_arg): Use new hook.
3965 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3966 (simple_type_promotes_to): Move to c-typeck.c.
3967 * c-common.h (simple_type_promotes_to): Remove.
3968 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3969 * c-format.c: Include langhooks.h.
3970 (check_format_types): Update.
3971 * c-tree.h (c_type_promotes_to): New.
3972 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3973 (type_lists_compatible_p): Update.
3974 * langhooks-def.h (lhd_type_promotes_to): New.
3975 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3976 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3977 * langhooks.c (lhd_type_promotes_to): New.
3978 * langhooks.h (struct lang_hooks_for_types): New hook.
3979 * tree.h (lang_type_promotes_to): Remove.
3981 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3983 2002-04-18 Richard Henderson <rth@redhat.com>
3985 * function.c: Revert patch for c/6358.
3987 2002-04-18 Richard Henderson <rth@redhat.com>
3989 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3990 blocks. Handle multiple references to the TRAP block. Handle
3991 non-adjacent THEN and OTHER blocks.
3993 2002-04-18 Richard Henderson <rth@redhat.com>
3995 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3996 crash with no type for by-mode libcalls.
3998 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4000 2002-04-18 Bob Wilson <bob.wilson@acm.org>
4002 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4003 __xtensa_nonlocal_goto): Use a syscall instructions to flush
4004 the register windows.
4006 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4008 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4009 appropriate. Document need for extended precision even when
4010 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
4011 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
4012 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
4013 instead of relying on later syntax error when REAL_WIDTH > 5.
4014 * real.c: Define NE based only on whether or not we have a
4015 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4016 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
4017 define GET_REAL and PUT_REAL as simple memcpy operations; no
4018 need to byteswap or round.
4019 Use #error instead of #ifdef-ing out the entire file, for
4020 prompt error detection.
4022 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4024 2002-04-18 David S. Miller <davem@redhat.com>
4026 * config/sparc/sparc.h (BRANCH_COST): Define.
4028 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4031 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
4033 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4034 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4035 propagate_block calls after relaxation loop using new variable
4036 stabilized_prop_flags.
4038 2002-04-18 Richard Henderson <rth@redhat.com>
4040 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4041 (ia64_va_arg): Expect variable sized types by reference.
4042 * config/ia64/ia64-protos.h: Update.
4043 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4044 ia64_function_arg_pass_by_reference.
4046 2002-04-18 Richard Henderson <rth@redhat.com>
4048 * ifcvt.c: Include except.h.
4049 (block_has_only_trap): Break out from find_cond_trap.
4050 (find_cond_trap): Use it. Always delete the trap block.
4051 (merge_if_block): Allow then block null. Be less simplistic about
4052 what insns can end a block.
4053 * Makefile.in (ifcvt.o): Depend on except.h.
4055 * config/ia64/ia64.md (trap, conditional_trap): New.
4057 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4060 * function.c (assign_parms): Assign hard current_function_return_rtx
4062 (expand_function_end): ...not here.
4064 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4066 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4067 * c-tree.h (c_incomplete_type_error): New.
4068 * c-typeck.c (require_complete_type, build_component_ref): Update.
4069 (incomplete_type_error): Rename.
4070 * langhooks-def.h (lhd_incomplete_type_error): New.
4071 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4072 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4073 * langhooks.c (lhd_incomplete_type_error): New.
4074 * langhooks.h (struct lang_hooks_for_types): New hook.
4075 * tree.c (size_in_bytes): Use new hook.
4076 * tree.h (incomplete_type_error): Remove.
4078 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4080 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4082 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4083 TARGET_FLOAT_FORMAT blocks.
4085 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4087 * doc/install.texi (Downloading the source): Do not mention Chill
4088 any longer, but mention Ada.
4089 (Configuration): Do not mention Chill any longer.
4091 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
4093 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4095 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
4097 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4100 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4102 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4103 instead of unsigned_type.
4105 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4107 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4108 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4111 2002-04-18 Bernd Schmidt <bernds@redhat.com>
4113 * attribs.c (vector_type_node_list): New static variable.
4114 (handle_vector_size_attribute): Use it to avoid generating a
4115 new type node each time we are called.
4117 * combine.c (subst): Avoid trying to make a vector mode subreg of
4118 an integer constant.
4119 (gen_lowpart_for_combine): Likewise.
4121 2002-04-18 Roger Sayle <roger@eyesopen.com>
4122 Jakub Jelinek <jakub@redhat.com>
4124 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4125 for integer constant c (if x has unsigned type or sign bit is not
4126 set in c). This folds the zero/sign extension into the bit-wise and
4129 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4132 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4135 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
4137 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4139 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
4141 * gcc.c (read_specs): Detect and fail if an attempt is made to
4142 rename a spec string to an already existing string.
4144 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4146 * config/s390/s390.c (legitimize_pic_address): Do not generate
4147 illegal address constant without CONST.
4149 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4151 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4152 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4154 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4156 PR optimization/6305
4157 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4158 to make sure previous reloads are taken into account. Generate
4159 better code if one operand is an in-range immediate constant.
4161 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
4163 * doc/install.texi (Building): libgcj requires GNU make.
4165 2002-04-17 Jakub Jelinek <jakub@redhat.com>
4168 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4169 even if hard quad and register is not floating.
4170 (movtf reg<-mem split): Disallow splitting if hard quad and
4171 register is floating.
4172 (movtf mem<-reg split): Likewise.
4173 * config/sparc/sparc.c (fp_register_operand): New predicate.
4174 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4176 2002-04-17 Zack Weinberg <zack@codesourcery.com>
4178 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4179 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4180 (unprotoize.o): Ditto. Build from protoize.c. Define
4181 UNPROTOIZE on command line.
4182 * protoize.c: Include cppdefault.h. Delete include_defaults.
4183 (in_system_include_dir): Use cpp_include_defaults (defined in
4185 * unprotoize.c: Delete file.
4187 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
4189 * config/rs6000/altivec.h (vec_ld): Add array variants.
4193 2002-04-17 Alan Matsuoka <alanm@redhat.com>
4194 Aldy Hernandez <aldyh@redhat.com>
4196 * config/rs6000/altivec.h: Define __ALTIVEC__.
4203 Add parentheses to all macro arguments.
4205 2002-04-16 Richard Henderson <rth@redhat.com>
4208 * except.c (remove_eh_handler): Insert inner regions at beginning
4209 of sibling chain. Refactor expressions.
4211 2002-04-16 Richard Henderson <rth@redhat.com>
4213 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4214 * config/sparc/sol2-gas-bi.h: New file.
4215 * config.gcc (sparc*-solaris): Add it as needed.
4216 * configure.in (AS_SPARC64_FLAG): Remove check.
4217 * config.in, configure: Regenerate.
4219 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4221 2002-04-16 Richard Henderson <rth@redhat.com>
4223 * config/mips/mips.c (override_options): Don't override N32 for
4227 * config/mips/mips.md (can_delay): Split out of existing define_delays.
4228 (HILO_delay): Set can_delay false.
4230 2002-04-16 Dale Johannesen <dalej@apple.com>
4232 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4233 instruction addresses.
4234 (rs6000_output_function_epilogue): Likewise.
4236 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
4238 * c-parse.in (poplevel, compstmt_start,
4239 compstmt_primary_start): Add ending ';', in accordance
4242 2002-04-16 Richard Henderson <rth@redhat.com>
4244 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4245 Adjust tm_file order to get TARGET_DEFAULT set properly.
4246 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4247 * doc/install.texi (sparc-solaris): Update.
4249 2002-04-16 Dale Johannesen <dalej@apple.com>
4251 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4252 comparison operands do not match each other or if modes of
4253 conditions do not match result.
4255 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
4258 * config/s390/s390.md (mulsidi3): Set both subregs of the
4261 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
4263 * config/rs6000/altivec.h (vec_addc): Type check.
4265 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4268 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4270 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4272 2002-04-15 Richard Henderson <rth@redhat.com>
4274 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4275 call_really_used_regs too.
4277 2002-04-15 Richard Henderson <rth@redhat.com>
4279 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4281 2002-04-15 David S. Miller <davem@redhat.com>
4283 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4286 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4289 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4290 CONST_VECTOR is { 0, ... 0 }.
4292 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
4294 * doc/install.texi (Installing GCC: Configuration): Clarify
4295 the only supported ways to configure gcc.
4297 2002-04-15 Roland McGrath <roland@frob.com>
4299 * config.gcc (alpha*-*-gnu*): New target configuration.
4300 * config/alpha/gnu.h: New file for it.
4301 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4303 2002-04-16 Mark Mitchell <mark@codesourcery.com>
4305 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4306 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4307 * tree.h (expand_start_stmt_expr): Update prototype.
4308 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4309 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4310 on the STMT_EXPR created for the inline function.
4312 2002-04-15 Richard Henderson <rth@redhat.com>
4314 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4315 config/i386/linux-aout.h, config/i386/linux-oldld.h,
4316 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4317 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4318 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4319 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4320 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4321 Define __gnu_linux__, not gnu_linux.
4322 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4324 2002-04-15 Mark Mitchell <mark@codesourcery.com>
4326 Remove Chill front end.
4327 * gcc.c (default_compilers): Remove Chill entries.
4328 * ch: Remove directory.
4329 * doc/frontends.texi: Remove information about Chill.
4330 * doc/sourcebuild.texi: Likewise.
4331 * doc/standards.texi: Likewise.
4333 2002-04-15 Douglas B Rupp <rupp@gnat.com>
4335 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4336 (LONGLONG_STANDALONE): Define.
4338 2002-04-15 David S. Miller <davem@redhat.com>
4340 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4341 Call emit_library_call with LCT_NORMAL.
4342 (sparc_initialize_trampoline): Use LCT_foo instead of
4343 magic constant in emit_library_call invocations.
4344 (sparc64_initialize_trampoline): Likewise.
4345 (sparc_profile_hook): Likewise.
4346 * config/sparc/sparc.md: Likewise.
4348 * config/sparc/sparc.c (sparc_extra_constraint_check):
4349 Fix type of argument 'c'.
4350 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4353 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4355 * diagnostic.h (output_buffer_state): Redefine.
4356 (output_format_decoder): New macro.
4357 (output_prefixing_rule): Likewise.
4358 (output_line_cutoff): Likewise.
4359 (diagnostic_format_decoder): Adjust.
4360 (diagnostic_prefixing_rule): Likewise.
4361 (diagnostic_line_cutoff): Likewise.
4362 (diagnostic_state): Likewise.
4363 (diagnostic_kind_count): Likewise.
4364 (diagnostic_buffer): Now a macro.
4366 * diagnostic.c (diagnostic_buffer): Remove definition.
4367 (output_is_line_wrapping): Adjust.
4368 (set_real_maximum_length): Likewise.
4369 (output_set_maximum_length): Likewise.
4370 (init_output_buffer): Likewise.
4371 (lhd_print_error_function): Likewise.
4372 (output_do_verbatim): Likewise.
4374 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
4376 * cpperror.c (print_location): Don't print include chain
4378 (cpp_begin_message): Update to use DL_ macros.
4379 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4380 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4381 cpp_notice, cpp_notice_from_errno): Remove.
4382 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4385 * cppexp.c (CPP_ICE): Remove.
4386 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4387 lex, integer_overflow, _cpp_parse_expr): Update.
4388 * cppfiles.c (read_include_file, find_include_file,
4389 handle_missing_header, _cpp_read_file, remap_filename): Update.
4390 * cpphash.h (enum error_type): Remove.
4391 (_cpp_begin_message): Update.
4392 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4393 cpp_handle_option, cpp_post_options): Update.
4394 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4395 skip_whitespace, parse_identifier, parse_slow, parse_string,
4396 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4397 cpp_interpret_charconst): Update.
4398 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4399 lex_macro_node, do_undef, glue_header_name, parse_include,
4400 do_include_common, read_flag, do_line, do_linemarker, do_ident,
4401 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4402 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4403 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4404 _cpp_pop_buffer, do_diagnostic): Update.
4405 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4406 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4407 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4408 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4409 cpp_notice, cpp_notice_from_errno): Remove.
4410 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4413 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4414 collect_args, enter_macro_context, save_parameter, parse_params,
4415 _cpp_create_definition, check_trad_stringification,
4416 cpp_macro_definition): Update.
4417 * cppmain.c (cpp_preprocess_file): Update.
4418 * fix-header.c (read_scan_file): Update.
4420 2002-04-14 Andreas Schwab <schwab@suse.de>
4422 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4424 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4426 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4428 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4430 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4433 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
4435 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4437 2002-04-13 Joel Sherrill <joel@OARcorp.com>
4439 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4440 sparc-elf and sparc-rtems targets.
4442 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4444 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4445 defined, and __gnu_hurd__ wherever __GNU__ is defined.
4446 * arm/linux-elf.h: Likewise.
4447 * cris/aout.h: Likewise.
4448 * cris/linux.h: Likewise.
4449 * i370/linux.h: Likewise.
4450 * i386/gnu.h: Likewise.
4451 * i386/linux-aout.h: Likewise.
4452 * i386/linux-oldld.h: Likewise.
4453 * i386/linux.h: Likewise.
4454 * i386/linux64.h: Likewise.
4455 * ia64/linux.h: Likewise.
4456 * m68k/linux-aout.h: Likewise.
4457 * m68k/linux.h: Likewise.
4458 * mips/linux.h: Likewise.
4459 * pa/pa-linux.h: Likewise.
4460 * pj/linux.h: Likewise.
4461 * rs6000/sysv4.h: Likewise.
4462 * s390/linux.h: Likewise.
4463 * sh/linux.h: Likewise.
4464 * sparc/linux-aout.h: Likewise.
4465 * sparc/linux.h: Likewise.
4466 * sparc/linux64.h: Likewise.
4467 * xtensa/linux.h: Likewise.
4469 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
4471 * stmt.c (check_unique_operand_names): Expect operand names to
4472 be strings rather than identifiers. Use simple_cst_equal to
4474 (resolve_operand_name_1): Make same identifier to string change here.
4475 * c-parse.in (asm_operand): Convert a named operand into a string.
4476 * cp/parse.y (asm_operand): Likewise.
4478 2002-04-13 Andreas Schwab <schwab@suse.de>
4480 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4482 2002-04-12 Mark Mitchell <mark@codesourcery.com>
4484 Revert these changes:
4486 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4489 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4491 2002-04-12 Richard Henderson <rth@redhat.com>
4493 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4494 (sparc*-*-solaris): Clean up header files.
4495 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4496 and plan on generating 64-bit code.
4497 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4498 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4499 * config/sparc/sol2-sld-64.h: Rename ...
4500 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
4501 for AS_SPARC64_FLAG not defined.
4502 * config/sparc/sol2-gld-bi.h: New.
4503 * config/sparc/sol2-sld.h: Remove.
4504 * config/sparc/sol26-sld.h: New.
4505 * config/sparc/sol2.h: Tidy comments.
4506 * doc/install.texi: Document sparc-solaris configury changes.
4508 2002-04-12 Richard Henderson <rth@redhat.com>
4510 * recog.c (offsettable_address_p): Match the logic in adjust_address.
4512 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4513 in 64-bit mode only. Use only for 32-bit or MEDLOW.
4515 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4517 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4519 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
4521 * pa.c (pa_can_combine_p): Call extract_insn before calling
4524 2002-04-12 Douglas B Rupp <rupp@gnat.com>
4526 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4527 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4528 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4529 (CPP_PREDEFINES): Handle __declspec.
4530 * config/i386/t-interix (USER_H): Remove.
4532 2002-04-12 DJ Delorie <dj@redhat.com>
4534 * integrate.c (compare_blocks): Make comparisons safe for when
4535 sizeof(int) < sizeof(char *).
4536 (find_block): Likewise.
4538 2002-04-12 Jan Hubicka <jh@suse.cz>
4539 David Edelsohn <edelsohn@gnu.org>
4541 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4543 (symbol_ref_operand): New.
4544 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4545 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4547 2002-04-12 Andreas Schwab <schwab@suse.de>
4549 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4550 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4551 overrides the definition in config/svr4.h.
4553 2002-04-12 Eric Norum <eric.norum@usask.ca>
4555 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4556 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4557 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4558 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4559 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4560 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4561 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4562 definitions to config/rtems.h and make the targets more similar.
4564 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4566 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4567 POINTERS_EXTEND_UNSIGNED.
4568 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4569 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4571 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4574 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
4576 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4577 depends on TARGET_SHMEDIA, not TARGET_SH5.
4579 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
4581 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4582 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4584 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4586 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4589 2002-04-12 Andreas Schwab <schwab@suse.de>
4591 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4593 2002-04-12 Richard Henderson <rth@redhat.com>
4596 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4598 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4599 modes spanning multiple hard regs.
4601 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4603 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4605 * pa.c (pa_output_function_prologue): Don't accumulate the total
4606 number of code bytes when using TARGET_64BIT, or gas, SOM and not
4607 the portable runtime.
4608 (output_deferred_plabels): Handle 64bit plabels.
4609 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4610 generating pic code using the GAS assembler for object formats that
4611 are not SOM (ie., ELF32 and ELF64).
4612 (output_millicode_call): Check attribute type if attribute length is 28.
4613 Likewise use $PIC_pcrel$0. Only call get_attr_length and
4614 dbr_sequence_length once.
4615 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4616 dbr_sequence_length once.
4617 * pa.h (TARGET_SOM): Define if not defined.
4618 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4619 with GAS and not SOM.
4620 (jump, call_internal_reg, call_value_internal_reg): Likewise.
4621 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
4623 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4625 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4626 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4627 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4628 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4629 elfos.h and dbxelf.h values are fine now.
4630 * config/i386/freebsd.h, config/alpha/freebsd.h
4631 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4633 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4635 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4636 or set Acpu or Amachine. Reformat.
4637 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4639 (LINK_SPEC): Do not need to undef.
4640 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4641 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4642 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4644 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4645 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4646 (LINK_SPEC): Do not need to undef.
4647 (DONT_USE_BUILTIN_SETJMP): Do not define.
4648 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4649 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
4650 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4651 Remove trailing spaces.
4652 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4653 __ELF__, or set Acpu or Amachine. Reformat.
4654 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4657 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4659 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4660 all other *-*-freebsd* targets.
4662 2002-04-11 Richard Henderson <rth@redhat.com>
4664 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4666 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4668 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4669 Include {cpu}/{cpu}.h thru tm_file.
4670 (alpha*-*-linux*ecoff): Remove target.
4671 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4672 (LINK_SPEC): Remove, is not OS independent.
4673 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4674 (LINK_SPEC): Do not need to #undef any longer.
4675 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4677 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4679 (LINK_SPEC): Moved here from alpha/elf.h.
4680 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4682 * config/alpha/linux-ecoff.h: Remove.
4683 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4684 (CPP_SPEC): Define _POSIX_SOURCE as needed.
4685 (CPP_SUBTARGET_SPEC): Do not define.
4686 (LINK_SPEC): Do not need to #undef any longer.
4687 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4688 * config/alpha/vms.h: Likewise.
4690 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4692 * doc/extend.texi: Remove old claim that typedefs cannot have
4693 an alignment attribute.
4695 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4697 PR optimization/6177
4698 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4699 bitpos is 0 and bitsize CONCAT size.
4701 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4704 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4706 2002-04-10 David O'Brien <obrien@FreeBSD.org>
4708 * config/alpha/freebsd.h: Minor reformatting.
4709 (CPP_SPEC): Define ELF and add cpp_subtarget.
4710 (ASM_SPEC): No longer needed.
4712 2002-04-11 Richard Henderson <rth@redhat.com>
4714 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4715 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
4716 (dimode mem/zero splitter): New.
4718 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
4720 * config/cris/cris.c (cris_override_options): Tweak error message
4721 for PIC not implemented.
4723 * config/cris/cris.h: Tweak comments related to parameter-passing.
4725 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4727 2002-04-10 Richard Henderson <rth@redhat.com>
4729 * except.c (add_ehl_entry): Allow duplicates after landing pad
4732 2002-04-10 David Edelsohn <edelsohn@gnu.org>
4734 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4736 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
4738 * c-decl.c (c_init_decl_processing): Move generation of
4739 decls for g77_integer_type_node and friends from here ...
4740 * c-common.c (c_common_nodes_and_builtins): ... to here.
4742 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
4744 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4745 is only used as frame pointer when frame_pointer_needed is true.
4747 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
4750 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4751 for the fact that the pool entry uses two words.
4752 (movdf_hard_insn): Similarly. Also, ADR instruction can span
4754 (movdf_soft_insn): Similarly.
4755 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4756 for the fact that the pool entry uses three words.
4758 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
4760 * config/mips/mips.c (mips_va_arg): When using the struct version
4761 of the EABI va_list, allow arguments in the register save area to
4762 take up less room than a stack argument.
4764 2002-04-10 Richard Henderson <rth@redhat.com>
4766 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4767 if EXPAND_INITIALIZER.
4769 2002-04-09 Richard Henderson <rth@redhat.com>
4771 * config/alpha/alpha.md (movdi_er_maybe_g): New.
4772 * config/alpha/alpha.c (alpha_expand_mov): Use it.
4774 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4776 PR optimization/6233
4777 * rtlanal.c (pure_call_p): New function.
4778 * rtl.h (pure_call_p): Declare.
4779 * loop.c (prescan_loop): Use it to set has_nonconst_call.
4780 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4782 2002-04-09 Eric Christopher <echristo@redhat.com>
4784 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4785 information to .comm directive.
4787 2002-04-09 Richard Henderson <rth@redhat.com>
4790 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4792 2002-04-09 Richard Henderson <rth@redhat.com>
4794 * basic-block.h (flow_delete_block_noexpunge): Declare.
4795 (expunge_block_nocompact): Declare.
4796 * cfg.c (expunge_block_nocompact): Split out from ...
4797 (expunge_block): ... here.
4798 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4799 (flow_delete_block_noexpunge): Split out from ...
4800 (flow_delete_block): ... here.
4801 * cfgcleanup.c (delete_unreachable_blocks): Compact while
4802 removing dead blocks.
4803 * except.c (exception_handler_labels): Remove.
4804 (exception_handler_label_map): New.
4805 (struct eh_region): Add aka member.
4806 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4807 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4808 (for_each_eh_label, for_each_eh_label_1): New.
4809 (init_eh): Register exception_handler_label_map.
4810 (free_eh_status): Use free_region.
4811 (find_exception_handler_labels): Use the map, not the list.
4812 (remove_exception_handler_label): Likewise.
4813 (maybe_remove_eh_handler): Likewise.
4814 (remove_eh_handler): Use the region aka bitmap.
4815 * except.h (exception_handler_labels): Remove.
4816 (for_each_eh_label): Declare.
4817 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4818 * loop.c (invalidate_loops_containing_label): New.
4819 (find_and_verify_loops): Use it. Use for_each_eh_label.
4820 * sched-rgn.c (is_cfg_nonregular): Use
4821 current_function_has_exception_handlers.
4823 2002-04-09 Richard Henderson <rth@redhat.com>
4825 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4826 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4827 Do not return changed status.
4828 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4829 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4830 New functions that do return changed status.
4831 * sbitmap.h: Update decls.
4832 * gcse.c, lcm.c: Use _cg functions as needed.
4834 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4836 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4837 (sh64-*-elf*, sh-*-rtemself*): Likewise.
4838 * config/sh/embed_bb.c: New file.
4839 * config/sh/embed-elf.h: New file.
4840 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4841 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
4842 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4844 (SUBTARGET_CPP_PTR_SPEC): Don't define.
4845 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4846 Add subtarget_asm_endian_spec.
4847 (ASM_SPEC): Use subtarget_asm_endian_spec.
4848 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4849 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4850 (WCHAR_UNSIGNED): Define.
4851 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4852 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4853 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4855 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4856 (sh_adjust_cost): Likewise.
4857 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4859 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4860 (WCHAR_TYPE_SIZE): Likewise.
4861 (ASM_SPEC): Use subtarget_asm_endian_spec.
4862 (SH_ELF_WCHAR_TYPE): #undef/ #define.
4863 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4864 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4865 (MAX_WCHAR_TYPE_SIZE): Don't #define .
4866 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4867 (USER_LABEL_PREFIX): Don't #undef /#define .
4868 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4869 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4870 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4871 (ASM_SPEC): Likewise.
4872 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4873 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4874 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4875 (LIB2FUNCS_EXTRA): Define.
4876 * t-sh64 (LIB2FUNCS_EXTRA): Define.
4877 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4878 (LIB1ASMFUNCS_CACHE): Define.
4879 (LIB2FUNCS_EXTRA): Redefine empty.
4881 2002-04-08 Richard Henderson <rth@redhat.com>
4883 * reorg.c (get_branch_condition): Use reversed_comparison_code.
4885 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4887 * config/m68hc11/larith.asm (__map_data_section): Fix condition
4888 and optimize for size.
4889 (__do_global_ctors): Fix pointer comparison.
4890 (__do_global_dtors): Likewise.
4892 2002-04-09 David S. Miller <davem@redhat.com>
4894 * config/sparc/sparc.c (sparc_extra_constraint_check): New
4895 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
4896 allow reloading pseudos.
4897 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4898 * config/sparc/sparc-protos.h: Declare it.
4900 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4901 unsigned comparison warning.
4902 (output_restore_regs): Mark leaf_function as unused.
4904 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4906 * expr.c (is_aligning_offset): New function.
4907 (expand_expr, case COMPONENT_EXPR): Call it.
4909 2002-04-08 David S. Miller <davem@redhat.com>
4912 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4914 Make init_priority work on Sparc when using GNU ld.
4915 * config/sparc/linux.h, config/sparc/linux64.h,
4916 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4917 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4918 * config/sparc/sol2-gld.h: New file to do the same.
4919 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4920 sparc/sol2-gld.h to tm_file.
4922 PR optimization/4328
4923 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4924 * doc/md.texi: Document it.
4925 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4926 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4927 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4928 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4929 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4931 2002-04-08 Andreas Jaeger <aj@suse.de>
4933 * stmt.c (expand_asm_operands): Revert last patch from Richard
4936 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4938 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4939 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4941 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4943 * doc/contrib.texi (Contributors): Add David O'Brien.
4945 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4947 * configure.in (auto-build.h): Use target_alias and build_alias
4948 when running configure.
4949 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4950 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4951 * configure: Regenerate.
4953 2002-04-07 David S. Miller <davem@redhat.com>
4955 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4957 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4960 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4961 generating 32-bit pic code.
4963 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4965 * cppinit.c (cpp_create_reader): Initialize
4966 discard_comments_in_macro_exp.
4967 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4968 (cpp_handle_option): Handle "-CC" option.
4969 * cpplex.c (save_comment): If saving a C++ comment in
4970 a directive, convert it to a C comment.
4971 (_cpp_lex_direct): Pass second comment start character to
4972 save_comment to indicate comment type.
4973 * cpplib.c (_cpp_handle_directive): If processing
4974 a "#define" directive and discard_comments_in_macro_exp
4975 is false, re-enable saving of comments.
4976 (lex_macro_node): If discard_comments_in_macro_exp is false,
4977 discard any comments before the macro identifier.
4978 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4980 * cppmacro.c (cpp_get_token): If expanding a macro while
4981 processing a directive, discard any comments we might encounter.
4982 (parse_params): If discard_comments_in_macro_exp is false,
4983 ignore comments in the macro parameter list.
4984 * gcc.c (cpp_unique_options): Add "-CC" option.
4985 (option_map): Map "--comments-in-macros" to "-CC".
4986 * doc/cppopts.texi: Document "-CC" option.
4987 * f/lang-specs.h: Add "-CC" option.
4988 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4989 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4990 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4991 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4992 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4993 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4995 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4998 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5000 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5003 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5006 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5007 RTX_UNCHANGING_P for the functions arguments when a tail call
5010 2002-04-06 Jason Merrill <jason@redhat.com>
5012 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5013 (parse_options_and_default_flags): Set them appropriately.
5014 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5016 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
5018 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5021 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5024 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5025 types come in by-reference. Fix typo in comment.
5027 2002-04-05 David S. Miller <davem@redhat.com>
5029 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5030 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5031 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5032 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5034 2002-04-05 David S. Miller <davem@redhat.com>
5036 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5037 are not going to emit return instructions, emit at least a nop
5038 for the sake of sane backtraces.
5040 2002-04-05 Richard Henderson <rth@redhat.com>
5042 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5044 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
5046 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5048 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
5050 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5051 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5052 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5054 2002-04-05 Andreas Schwab <schwab@suse.de>
5056 * c-convert.c: Include c-common.h.
5057 * Makefile.in (c-convert.o): Updated.
5059 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5061 * mklibgcc.in: Use separate libgcc.map for each multilib.
5062 * Makefile.in (distclean): Don't remove libgcc.map here.
5064 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5066 * Makefile.in (s-mlib): Handle --disable-multilib by separate
5067 genmultilib invocation.
5069 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
5071 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5072 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
5073 to num_gprs for symmetry.
5074 * config/mips/mips.c: Adjust accordingly.
5076 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
5078 * c-common.c (truthvalue_conversion): Rename, update.
5079 * c-common.h (c_common_truthvalue_conversion): New.
5080 * c-convert.c (convert): Update.
5081 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5082 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5083 * c-typeck.c (build_binary_op, build_unary_op,
5084 build_conditional_expr): Update.
5085 * fold-const.c (constant_boolean_node, fold): Use langhook.
5086 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5087 * langhooks.h (struct lang_hooks): New hook.
5088 * stmt.c (expand_decl_cleanup): Use langhook.
5089 * tree.h (truthvalue_conversion): Remove.
5091 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5093 2002-04-05 Alan Modra <amodra@bigpond.net.au>
5095 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5096 Add rules to make null object file.
5098 2002-04-04 Jim Blandy <jimb@redhat.com>
5100 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5101 macro formal parameter names.
5103 2002-04-04 David S. Miller <davem@redhat.com>
5105 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5107 2002-04-04 Richard Henderson <rth@redhat.com>
5110 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5111 Support copies into and out of memory. Don't accept allows_reg
5112 and allows_mem as gospel.
5114 2002-04-04 Richard Henderson <rth@redhat.com>
5117 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5118 (write_dependence_p): Likewise.
5120 2002-04-04 Richard Henderson <rth@redhat.com>
5122 * predict.c (estimate_bb_frequencies): Do frequency calculation
5123 with a volatile temporary.
5125 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
5127 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5129 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5132 * final.c (final_start_function): Don't bump profile_label_no here...
5133 (final_end_function): ...but here.
5135 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5137 * config/sparc/sparc.md (pic): New attribute.
5138 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5140 (split after do_builtin_setjmp_setup): New.
5142 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5145 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5148 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5150 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5151 UNITS_PER_WORD for zero sized aggregates.
5153 2002-04-03 David S. Miller <davem@redhat.com>
5155 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5156 one-character spec for this, just use %(link_gcc_c_sequence).
5158 2002-04-03 David S. Miller <davem@redhat.com>
5160 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5163 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5165 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5166 (DWARF_FRAME_RETURN_COLUMN): Move.
5167 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5168 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5169 * pa.c (except.h, predict.h): Include.
5171 (store_reg_modify, set_reg_plus_d): Revise prototypes.
5172 (output_ascii): Add cast.
5173 (store_reg_modify): Revise to add frame notes.
5174 (set_reg_plus_d): Likewise.
5175 (compute_frame_size): Include space for eh data registers in frame if
5176 the current function calls eh_return.
5177 (hppa_expand_prologue): Ensure register %r2 is saved if the current
5178 function calls eh_return. Save eh data registers if the current
5179 function calls eh_return. Fix code to add frame notes. Emit
5180 blockage to prevent insns with frame notes being scheduled in the
5181 delay slot of calls.
5182 (hppa_expand_epilogue): Restore eh data registers and do final stack
5183 adjustment if the current function calls eh_return. Don't add frame
5185 (output_call): Revise for change in length of call insn. Don't do
5186 return pointer adjustment for an unconditional jump in the delay slot
5187 of a call when using frame notes.
5188 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5189 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5190 (ARG_POINTER_CFA_OFFSET): Define.
5191 * pa.md (return_external_pic): New pattern.
5192 (prologue): Correct formatting. Use return_external_pic if current
5193 function calls eh_return.
5194 (call_internal_symref, call_value_internal_symref,
5195 sibcall_internal_symref, sibcall_value_internal_symref): Change default
5196 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5198 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5200 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5201 list of targets to check using "nop" insn.
5202 * configure: Rebuilt.
5204 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5206 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5208 2002-04-03 David S. Miller <davem@redhat.com>
5210 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5211 library sequence passed to the linker.
5212 (LINK_COMMAND_SPEC): Use it.
5213 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5214 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5215 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5217 2002-04-03 Jason Merrill <jason@redhat.com>
5219 * except.c (struct eh_status): Remove protect_list.
5220 (begin_protect_partials, end_protect_partials): Remove.
5221 (add_partial_entry): Remove.
5222 * except.h: Remove prototypes.
5224 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5225 expand_decl_cleanup_eh.
5228 * tree.h (CLEANUP_EH_ONLY): New macro.
5229 * stmt.c (expand_decl_cleanup_eh): New fn.
5230 (expand_cleanups): Check CLEANUP_EH_ONLY.
5231 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5232 Use expand_decl_cleanup_eh.
5233 (expand_stmt): Adjust.
5234 * c-common.h: Adjust prototype.
5236 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
5238 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5239 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5240 (cris_target_asm_function_epilogue): Ditto.
5241 (cris_initial_frame_pointer_offset): Ditto.
5242 (cris_simple_epilogue): Ditto.
5243 (cris_expand_builtin_va_arg): Variable-size types come in
5246 2002-04-03 David S. Miller <davem@redhat.com>
5248 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5250 (set_fast_math): Correct 'fsr' type.
5252 2002-04-03 Richard Henderson <rth@redhat.com>
5255 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5256 * toplev.c (check_global_declarations): Use it.
5257 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5258 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5259 (LANG_HOOKS_DECLS): Add it.
5260 * langhooks.c (lhd_warn_unused_global_decl): New.
5261 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5262 * c-objc-common.c (c_warn_unused_global_decl): New.
5263 * c-tree.h (c_warn_unused_global_decl): Declare.
5264 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5266 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
5268 * langhooks-def.h (lhd_set_decl_assembler_name,
5269 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5270 (LANG_HOOKS_INITIALIZER): Update.
5271 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5272 * langhooks.h (struct lang_hooks): New hook.
5273 * tree.c (set_decl_assembler_name): Move to langhooks.c.
5274 (lang_set_decl_assembler_name): Remove.
5275 (init_obstacks): Don't set hook.
5276 (decl_assembler_name): New function.
5277 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5278 (decl_assembler_name): New.
5279 (lang_set_decl_assembler_name): Remove.
5281 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5283 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5284 works properly with .hidden symbols.
5285 * configure: Rebuilt.
5286 * config.in: Rebuilt.
5287 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5288 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5289 properly with .hidden symbols.
5291 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5294 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5297 2002-04-03 Richard Henderson <rth@redhat.com>
5300 * sched-rgn.c (sets_likely_spilled): New.
5301 (sets_likely_spilled_1): New.
5302 (add_branch_dependences): Use it.
5304 2002-04-02 Richard Henderson <rth@redhat.com>
5307 * loop.h (LOOP_FIRST_PASS): New.
5308 * loop.c (strength_reduce): Mind it when deciding to unroll.
5309 * toplev.c (rest_of_compilation): Set it.
5311 2002-04-02 David S. Miller <davem@redhat.com>
5313 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5314 mems_ok_for_ldd_peep when the order of the loads being examined
5316 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5317 existing comment to increase comprehension of this situation.
5319 2002-04-02 Zack Weinberg <zack@codesourcery.com>
5321 * config/sh/sh.md: Don't use union real_extract.
5323 2002-04-02 Richard Henderson <rth@redhat.com>
5325 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5327 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5329 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5330 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5331 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5332 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5333 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5334 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5335 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5336 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5337 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5338 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5339 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5340 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5341 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5342 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5343 Include as many configury headers via tm_file as possible. This
5344 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5345 * config/openbsd-oldgas.h: New file.
5346 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5347 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5348 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5349 config/i386/i386-coff.h, config/i386/i386-interix.h,
5350 config/i386/iscdbx.h, config/i386/linux-aout.h,
5351 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5352 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5353 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5354 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5355 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5356 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5357 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5358 config/i386/vxi386.h: Do not directly include configury headers.
5359 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5360 Directly include configury headers that are no longer automatically
5361 included by the above headers.
5362 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5363 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5364 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5365 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5366 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5367 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5368 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5369 (TARGET_VERSION): Define.
5370 * config/i386/beos-elf.h, config/i386/freebsd.h,
5371 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5372 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5373 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5374 config/i386/sco5.h, config/i386/sysv4.h
5375 (TARGET_VERSION): Do not need to protect.
5376 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5377 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5378 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5379 config/i386/i386-interix.h, config/i386/linux-aout.h,
5380 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5381 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5382 (YES_UNDERSCORES): Do not define - not needed.
5383 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5384 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5385 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5386 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5387 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5388 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5389 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5390 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5392 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
5393 Richard Henderson <rth@redhat.com>
5396 * function.c (assign_temp): Accept either type or decl argument.
5397 Detect variables whose size is too large to fit into an integer.
5398 * stmt.c (expand_decl): Pass the decl, not the type.
5400 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5402 * protoize.c: Match include directory usage with cppdefault.c.
5404 2002-04-03 Jeffrey A Law (law@redhat.com)
5405 Hans-Peter Nilsson <hp@bitrange.com>
5407 * combine.c (simplify_comparison): Avoid narrowing a comparison
5408 with a paradoxical subreg when doing so would drop signficant bits.
5410 2002-04-02 Steve Ellcey <sje@cup.hp.com>
5412 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5413 if POINTERS_EXTEND_UNSIGNED is defined.
5415 2002-04-02 Richard Henderson <rth@redhat.com>
5418 * local-alloc.c (contains_replace_regs): LO_SUM may contain
5421 2002-04-02 Richard Henderson <rth@redhat.com>
5423 * doc/standards.texi: Document required freestanding libc entry points.
5425 2002-04-02 Alan Modra <amodra@bigpond.net.au>
5427 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5428 associated splitter. Remove MQ constraint.
5429 (ctrdi_internal4): Correct CCmode clobber.
5431 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5433 * milli64.S ($$dyncall): New function.
5434 * t-linux (LIB1ASMFUNCS): Revise module list.
5435 (LIB1ASMSRC): Use pa/milli64.S.
5437 2002-04-02 Richard Henderson <rth@redhat.com>
5439 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5440 rename solaris_sys_varargs_h.
5442 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5444 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5445 the same mode as its component.
5447 2002-04-02 Richard Henderson <rth@redhat.com>
5450 * final.c (this_is_asm_operands): Export.
5451 * output.h (this_is_asm_operands): Declare.
5452 * config/i386/i386.c (print_operand): Error odd asm operands.
5454 2002-04-02 Richard Henderson <rth@redhat.com>
5457 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5459 2002-04-01 Richard Henderson <rth@redhat.com>
5462 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5463 * fixinc/fixincl.x: Rebuild.
5465 2002-04-01 Richard Henderson <rth@redhat.com>
5467 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5468 (atomic_alloc, atomic_free): New.
5469 (SIZE, MASK_FOR, PTR_IN): New.
5470 (emergency_reg_state, emergency_reg_state_free): New.
5471 (emergency_labeled_state, emergency_labeled_state_free): New.
5472 (reg_state_alloced, labeled_state_alloced): New.
5473 (alloc_reg_state, free_reg_state): New.
5474 (alloc_label_state, free_label_state, free_label_states): New.
5475 (push, pop, dup_state_stack, free_state_stack): Use them.
5476 (desc_label_state): Likewise.
5477 (uw_frame_state_for): Free label states and state stack.
5478 (uw_update_reg_address): Eliminate warnings.
5480 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
5482 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5483 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5485 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5487 * c-decl.c (grokdeclarator): Update.
5488 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5489 * c-tree.h (c_mark_addressable): New.
5490 * c-typeck.c (default_function_array_conversion, build_unary_op,
5491 build_array_ref, convert_for_assignment): Update.
5492 (mark_addressable): Rename.
5493 * calls.c (try_to_integrate, expand_call): Use langhook.
5494 * expr.c (expand_expr): Use langhook.
5495 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5496 * langhooks.h (struct lang_hooks): New hook.
5497 * stmt.c (expand_asm_operands): Use langhook.
5498 * tree.h (mark_addressable): Remove.
5500 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5502 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5504 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5507 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5509 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5510 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5512 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5514 * c-common.c (unsigned_conversion_warning, convert_and_check,
5515 unsigned_type, signed_type, shorten_compare,
5516 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5517 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5518 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5520 * c-decl.c (grokdeclarator): Update.
5521 * c-format.c (check_format_types): Update.
5522 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5523 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5524 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5525 * convert.c (convert_to_integer): Use new hooks.
5526 * expmed.c (make_tree): Use new hooks.
5527 * expr.c (store_expr): Use new hooks.
5528 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5529 all_ones_mask_p, unextend, fold): Use new hooks.
5530 * langhooks.h (struct lang_hooks_for_types): New hooks.
5531 * tree.h (signed_or_unsigned_type, signed_type,
5532 unsigned_type): Remove.
5534 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5535 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5537 2002-03-31 Richard Henderson <rth@redhat.com>
5539 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5540 (desc_frgr_mem): Fix reference to f16-f31.
5542 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5544 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5545 RTVEC_ELT): Const-ify.
5546 * varray.h (VARRAY_CHECK): Const-ify.
5547 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5548 ggc_mark_rtvec, ggc_mark): Const-ify.
5550 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5552 * diagnostic.c: Include langhooks-def.h.
5553 * Makefile.in (diagnostic.o): Update.
5555 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5557 * c-common.c (c_unsafe_for_reeval): Rename.
5558 * c-common.h (c_unsafe_for_reeval): Rename.
5559 * c-decl.c (finish_incomplete_decl): Rename.
5560 (c_init_decl_processing): Don't set langhook.
5561 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5562 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5563 * c-objc-common.c (c_objc_common_init): Don't set langhook.
5564 * c-tree.h (finish_incomplete_decl): Rename.
5565 * langhooks-def.h (lhd_unsafe_for_reeval): New.
5566 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5567 (LANG_HOOKS_INITIALIZER): Update.
5568 * langhooks.c (lhd_unsafe_For_reeval): New.
5569 * langhooks.h (struct langhooks): New hooks.
5570 * toplev.c (incomplete_decl_finalize_hook): Remove.
5571 (wrapup_global_declarations): Update.
5572 * tree.c (lang_unsafe_for_reeval): Remove.
5573 (unsafe_for_reeval): Update.
5574 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5577 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5578 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5580 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5582 * diagnostic.c (print_error_function): Remove.
5583 (default_print_error_function): Rename.
5584 (report_error_function): Update.
5585 * diagnostic.h (print_error_function): Remove.
5586 (default_print_error_function): Remove.
5587 * langhooks-def.h (struct diagnostic_context): Predeclare.
5588 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5589 (LANG_HOOKS_INITIALIZER): Update.
5590 * langhooks.h (struct diagnostic context): Predeclare.
5591 (struct lang_hooks): New hook.
5593 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5595 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5596 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5598 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5599 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5600 of PIC_OFFSET_TABLE_REGNUM thruout.
5601 * config/rs6000/rs6000.md: Likewise.
5602 * config/rs6000/darwin.h: Likewise.
5604 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5606 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5607 unsigned HOST_WIDE_INT, not unsigned int.
5609 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5611 PR middle-end/6096, middle-end/6098, middle-end/6099
5612 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5614 (fill_slots_from_thread): Likewise.
5616 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5618 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5619 floating fields in float regs.
5620 (function_arg_record_value_2): Likewise.
5622 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5624 * config/mmix/mmix.md (define_constants): Remove misleading
5625 FIXME. Add MMIX_fp_rO_OFFSET.
5626 ("nonlocal_goto_receiver"): Don't have stack-frame address of
5627 saved rO as part of the pattern. Remove FIXME.
5628 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
5629 here, at output-time.
5631 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5634 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5636 (output_v9branch): Likewise.
5638 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5640 * gcc.c: Revert previous patch for now.
5641 * config/i386/djgpp.h: Likewise.
5643 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5645 * config/mmix/crti.asm (_init): Register _fini with atexit.
5646 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5648 2002-03-31 Richard Henderson <rth@redhat.com>
5651 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5652 (ASM_OUTPUT_DEF_FROM_DECLS): New.
5654 2002-03-31 Richard Henderson <rth@redhat.com>
5656 * libgcc2.c (__bb_exit_func): Make static.
5658 * config/alpha/alpha.md (trap): New.
5660 2002-03-31 Richard Henderson <rth@redhat.com>
5662 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5663 promoted argument types; build trap.
5664 (expand_builtin_trap): New.
5665 (expand_builtin): Use it.
5666 * stmt.c (expand_nl_goto_receivers): Likewise.
5667 * expr.h (expand_builtin_trap): Declare.
5668 * libfuncs.h (LTI_abort, abort_libfunc): New.
5669 * optabs.c (init_optabs): Init abort_libfunc.
5671 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5673 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5674 (LINK_COMMAND_SPEC): ... from here.
5675 (init_gcc_specs): Duplicate it here too, omitting
5676 shared_name in the second copy.
5677 (init_spec): Test for duplicate
5678 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5680 2002-03-30 David S. Miller <davem@redhat.com>
5682 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5683 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5685 2002-03-30 Roger Sayle <roger@eyesopen.com>
5686 Richard Henderson <rth@redhat.com>
5688 * regmove.c (combine_stack_adjustments_for_block): Avoid
5689 emitting a stack adjustment of zero bytes. Let delete_insn
5692 2002-03-30 Richard Henderson <rth@redhat.com>
5694 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5695 (sparc_emitting_epilogue): New.
5696 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5697 * config/sparc/sparc-protos.h: Update.
5698 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5699 (TARGET_SWITCHES): Update.
5700 * config/sparc/sparc.md (return): Remove.
5701 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5702 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5703 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5704 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5705 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5706 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5707 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5708 Remove MASK_EPILOGUE.
5709 * doc/invoke.texi: Update.
5711 2002-03-30 Daniel Berlin <dan@dberlin.org>
5713 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5714 CPP will start the file for us.
5716 2002-03-30 Richard Henderson <rth@redhat.com>
5719 * config/ia64/ia64.c (group_barrier_needed_p): Special case
5720 prologue_allocate_stack.
5721 (ia64_single_set): Use insn codes for recognition of special
5722 cases, not rtl matching.
5723 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5725 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
5727 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5729 2002-03-30 Richard Henderson <rth@redhat.com>
5732 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5733 or -fomit-frame-pointer with profiling.
5734 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5735 (FUNCTION_PROFILER): Do nothing.
5736 (PROFILE_HOOK): New.
5737 * config/sparc/sparc.c (sparc_override_options): Don't check
5738 code models for profiling.
5739 (sparc_function_profiler): Remove.
5740 (sparc_profile_hook): New.
5741 * config/sparc/sparc-protos.h: Update.
5743 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5745 PR optimization/6086
5746 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5747 of SUBREG of volatile MEM or because the MEM was mode dependent,
5748 return CLOBBER instead of unmodified SUBREG.
5750 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
5752 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5753 when not optimizing.
5755 * toplev.c (rest_of_compilation): Cann mark_constant_function
5756 only when optimizing.
5758 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5761 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5762 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5763 (try_optimize_cfg): clear all AUX fields.
5765 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5766 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5767 (ix86_address_cost): Be prepared for SUBREGed registers.
5768 (legitimate_address_p): Accept SUBREGed registers.
5770 2002-03-29 Richard Henderson <rth@redhat.com>
5773 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5775 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5777 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5778 for aggregate and TFmode types.
5780 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5782 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5784 2002-03-29 Richard Henderson <rth@redhat.com>
5787 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5788 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5790 2002-03-29 Richard Henderson <rth@redhat.com>
5793 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5794 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5795 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5796 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5798 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5800 2002-03-29 Dale Johannesen <dalej@apple.com>
5802 * loop.c (combine_movables): Do allow combination of pseudos.
5804 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
5806 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5807 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5808 No functional change except ...
5809 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
5810 * doc/install.texi (*-*-freebsd*): Document port configuration.
5812 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5814 * Makefile.in (convert.o, calls.o, expmed.o): Update.
5815 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5817 * builtin-types.def (BT_PTRMODE): Update.
5818 * c-common.c (type_for_size): Rename c_common_type_for_size.
5819 (type_for_mode): Similarly.
5820 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5822 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5823 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5824 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5826 * c-typeck.c (common_type, comptypes, default_conversion):
5828 * calls.c: Include langhooks.h.
5829 (emit_library_call_value_1): Use new hooks. Avoid redundant
5831 * convert.c: Include langhooks.h
5832 (convert_to_pointer, convert_to_integer): Use new hooks.
5833 * except.c (init_eh): Similarly.
5834 * expmed.c: Include langhooks.h.
5835 (expand_mult_add): Use new hooks.
5836 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5837 try_casesi): Similarly.
5838 * fold-const.c (optimize_bit_field_compare, make_range,
5839 decode_field_reference, fold_truthop, fold): Similarly.
5840 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5841 put_var_into_stack): Similarly.
5842 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5843 LANG_HOOKS_TYPE_FOR_SIZE): New.
5844 (LANG_HOOKS_TYPES_INITIALIZER): Update.
5845 * langhooks.h (lang_hooks_for_types): New hooks.
5846 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5847 * tree.c (get_unwidened, get_narrower): Similarly.
5848 * tree.h (type_for_mode, type_for_size): Remove.
5849 * varasm.c (force_const_mem): Use new hooks.
5850 * utils2.c (nonbinary_modular_operation): Update.
5852 * objc-act.c (handle_impent): Update.
5853 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5856 2002-03-29 Steve Ellcey <sje@cup.hp.com>
5858 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5859 * config/ia64/ia64.c (basereg_operand): New.
5860 * config/ia64/ia64-protos.h (basereg_operand): Declare.
5861 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5863 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5865 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5866 unwind information when frame_pointer_needed.
5867 (mmix_assemble_integer): Tweak wording in comment.
5869 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5871 * Makefile.in (except.o): Update.
5872 * except.c: Include langhooks.h.
5873 (init_eh): Use langhook.
5874 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5875 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5876 (LANG_HOOKS_INITIALIZER): Update.
5877 * langhooks.h (lang_hooks_for_types): New.
5878 (struct lang_hooks): Add it.
5879 * tree.c (make_lang_type_fn, make_lang_type): Remove.
5880 * tree.h (make_lang_type_fn, make_lang_type): Remove.
5882 * alpha/alpha.c: Include langhooks.h.
5883 (alpha_build_va_list): Use langhook.
5884 * d30v/d30v.c: Include langhooks.h.
5885 (d30v_build_va_list): Use langhook.
5886 * i386/i386.c: Include langhooks.h.
5887 (ix86_build_va_list): Use langhook.
5888 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5889 * s390/s390.c: Include langhooks.h.
5890 (s390_build_va_list): Use langhook.
5891 * stormy16/stormy16.c: Include langhooks.h.
5892 (stormy16_build_va_list): Use langhook.
5894 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5897 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5899 (length): Compute variable length for branches/calls/jumps here.
5900 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5901 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5902 define branch_type attribute.
5903 (divsi3_sp32): Maximum length is 6 not 7.
5904 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5905 call_address_untyped_struct_value_sp32,
5906 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5907 * config/sparc/sparc.c (empty_delay_slot): New function.
5908 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5909 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5911 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5913 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5914 nonzero_bits if not needed.
5915 (nonzero_bits) [XOR]: Likewise.
5916 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5917 reg_last_set_mode and mode are both MODE_INT, but not equal.
5918 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5919 in nonzero_bits_mode for MODE_INT modes.
5921 2002-03-28 Richard Henderson <rth@redhat.com>
5924 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5925 to GAS. Correct drift between alternatives.
5927 2002-03-28 Richard Henderson <rth@redhat.com>
5930 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5932 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5934 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5935 emulation to the linker.
5937 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5939 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5940 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5942 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5944 * combine.c (simplify_and_const_int): Make sure to apply mask
5945 when force_to_mode returns a constant integer. PR3311.
5947 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5949 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5951 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5953 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5954 and Objective-C Dialect Options.
5956 2002-03-28 Richard Henderson <rth@redhat.com>
5958 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5959 comparison should be done vs !=0 not >0 return code. Tidy cases.
5961 2002-03-28 Richard Henderson <rth@redhat.com>
5963 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5964 on to c_expand_body.
5965 * c-tree.h (finish_function): Update decl.
5966 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5968 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5970 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5972 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5974 * rtlanal.c: Include flags.h
5975 (may_trap_p): Do not mark FP operations if trapping
5976 if !flag_trapping_math
5977 * Makefile.in (rtlanal.o): Add dependency on flag.h
5978 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5980 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5982 * mips.md: Use dconst1, not 1.0, as first argument of
5983 REAL_VALUE_LDEXP. Don't use union real_extract.
5985 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5987 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5988 rather than $target. Heed program_prefix and
5989 program_transform_name. Search for gas in cross-compiler case too.
5990 "test -x" rather than "test -f".
5991 (gcc_cv_ld): Likewise.
5992 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5993 (gcc_cv_objdump): Likewise.
5994 * configure: Regenerate.
5996 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5998 * Makefile.in (attribs.o): Update.
5999 * attribs.c: Include langhooks.h.
6000 (decl_attributes): Use langhook.
6001 * c-decl.c (insert_default_attributes): Rename.
6002 * c-tree.h (c_insert_default_attributes): New.
6003 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6004 (LANG_HOOKS_INITIALIZER): Update.
6005 * langhooks.h (struct lang_hooks): New hook.
6006 * tree.h (insert_default_attributes): Remove.
6008 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6010 2002-03-27 Andreas Schwab <schwab@suse.de>
6012 * config/i386/i386.c (classify_argument): Also check for
6015 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6017 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6020 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
6022 * i960.md (ret): Set PC.
6023 (nonlocal_goto): Fix expander.
6024 * builtins.c (epxand_builin_longjmp): Check that we've emitted
6027 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
6029 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6032 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6034 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6035 assigning to BLOCK_FOR_INSN directly.
6037 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
6039 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6041 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6043 * c-common.c (c_expand_expr): Fix prototype.
6044 * c-common.h (c_expand_expr): Always declare, update.
6045 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6046 * c-objc-common.c (c_objc_common_init): No global hook.
6047 * expr.c (expand_expr): Use langhook.
6048 * expr.h (enum expand_modifier): Conditionally declare.
6049 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6050 (LANG_HOOKS_INITIALIZER): Update.
6051 * langhooks.c (lhd_expand_expr): New.
6052 * langhooks.h (struct lang_hooks): New hook.
6053 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6054 (lang_independent_init): Don't default hook.
6056 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6058 2002-03-27 Richard Henderson <rth@redhat.com>
6061 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6062 TARGET_CONST_GP. Simplify conditions.
6064 2002-03-27 Richard Henderson <rth@redhat.com>
6066 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6067 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6068 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6070 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
6072 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6073 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6074 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6075 Remove unnecessary masks.
6076 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6077 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6078 -mwindows, -mdll switches and their negations.
6080 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6082 * gcc-common.c (lang_mark_false_label_stack): Remove.
6083 * ggc.h (lang_mark_false_label_stack): Similarly.
6085 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
6087 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6089 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6090 or __rtems_ is defined.
6092 2002-03-26 Richard Henderson <rth@redhat.com>
6094 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6095 if a non-trivial load was emitted.
6096 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
6097 in high+extra+low case.
6099 2002-03-26 Richard Henderson <rth@redhat.com>
6101 * config.gcc (sparc*-solaris): Use float_format=sparc.
6103 2002-03-26 Richard Henderson <rth@redhat.com>
6105 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6106 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6107 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6108 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6109 (WINT_TYPE_SIZE): Fix at 32.
6111 2002-03-26 Richard Henderson <rth@redhat.com>
6113 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6114 until after eh landing pad generation.
6115 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6116 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6118 2002-03-26 Richard Henderson <rth@redhat.com>
6120 * expr.h (ADD_PARM_SIZE): One more convert for INC.
6122 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
6124 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
6125 and warning switches.
6126 (cc1_options): Likewise.
6128 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
6130 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6131 Restore more of the signal context. Set no_reg_stack_frame.
6132 * config/ia64/unwind-ia64.c (unw_state_record):
6133 Add no_reg_stack_frame, comments.
6134 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6135 (uw_update_context): Adjust bsp when unwinding from leaf,
6136 but not signal frame.
6138 2002-03-26 David Edelsohn <edelsohn@gnu.org>
6140 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6142 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6144 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6146 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6149 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6150 "Add a pool_range attribute", which was lost during the ARM/Thumb
6153 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6155 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6156 a register into the MAC16 accumulator.
6158 2002-03-26 Andrew Cagney <ac131313@redhat.com>
6160 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6161 (Warning Options): Document -Wswitch-enum.
6162 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
6164 (warn_switch_enum): Define variables.
6165 * flags.h (warn_switch_enum): Declare variables.
6166 * stmt.c (expand_end_case_type): When warn_switch_enum /
6167 -Wswitch-enum, perform switch checks.
6170 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6172 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6173 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6174 (reload_muladdsi_compare0_scratch): Delete.
6176 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
6178 * doc/install.texi (*-*-freebsd*): Update.
6180 2002-03-26 Richard Henderson <rth@redhat.com>
6182 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6183 (SUB_PARM_SIZE): Cast DEC to ssizetype.
6185 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6186 types from the normal argument frame.
6188 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6189 variable sized objects by reference.
6190 (sparc_va_arg): Receive them by reference too.
6192 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
6194 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6195 code to not restoring global registers.
6197 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
6199 * Makefile.in (ggc-common.o): Update.
6200 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6201 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6202 * c-tree.h (c_mark_tree): New.
6203 * ggc-common.c: Include langhooks.h.
6204 (gcc_mark_trees): Use new langhook.
6205 * ggc-callbacks.c: Delete file.
6206 * ggc.h (lang_mark_tree): Remove.
6207 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6208 (LANG_HOOKS_INITIALIZER): Update.
6209 * langhooks.h (struct lang_hooks): New hook.
6211 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6213 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6215 * doc/cpp.texi: Exclude entire Top node from printed manual.
6216 Move option index after directive index. Insert page breaks
6217 before GFDL and concept index. Index environment variables
6218 with command line options.
6219 * doc/cppenv.texi: Use @vtable for environment variable list.
6220 Add paragraph explaining semantics of empty elements in path
6221 variables. Exclude a cross-reference to Fishkill from the
6222 manpage. Remove an unnecessary cross-reference of the entry
6223 right above the referer. Don't use @anchor in text that goes
6225 * doc/cppopts.texi: Cross-reference the environment variables
6226 section, not the specific environment variable, for consistency.
6228 2002-03-25 Richard Henderson <rth@redhat.com>
6230 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6231 anywhere in the block. Don't refer to insns that have been
6232 removed from the chain. Iterate backward through the new insns.
6233 Don't refer to edges that have been removed.
6235 2002-03-26 Alan Modra <amodra@bigpond.net.au>
6237 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6238 test for overflow of constant.
6240 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
6243 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6244 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6245 these patterns on arm_archv4.
6247 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
6249 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6252 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6254 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
6255 float_handled, float_handler, float_signal, set_float_handler,
6256 and do_float_handler. Set handler for SIGFPE to crash_signal.
6257 * toplev.h: Don't prototype do_float_handler.
6259 * c-lex.c: Fold parse_float into lex_number. Make warning
6260 about portability of hex float constants more informative, and
6261 don't issue it on top of a syntax error.
6262 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6264 * real.h: Define REAL_VALUE_ABS here...
6265 * simplify-rtx.c: ... not here. Fold check_fold_consts,
6266 simplify_unary_real, simplify_binary_real, and
6267 simplify_binary_is2orm1 into their callers.
6268 * tree.c: Fold build_real_from_int_cst_1 into caller.
6270 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6272 * tsystem.h: Include float.h here...
6273 * libgcc2.c: ... not here.
6275 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
6277 Fixes for: PR bootstrap/3591, target/5676
6278 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6279 defined. Do not disable exceptions or rtti.
6280 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6281 mcore.h. Disable exceptions and rtti, since they are not
6284 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
6286 * c-decl.c (maybe_build_cleanup): Remove.
6287 * expr.c (expand_expr): Use langhook.
6288 * langhooks-def.h (lhd_return_null_tree,
6289 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6290 (LANGHOOKS_INITIALIZER): Update.
6291 * langhooks.c (lhd_return_null_tree): New.
6292 * langhooks.h (struct lang_hooks): New hook.
6293 * tree-inline.c (initialize_inlined_parameters): Use langhook.
6294 * tree.h (maybe_build_cleanup): Remove.
6296 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6298 * regrename.c (build_def_use): Move recog_memoized
6299 before extract_insn.
6301 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6304 * expr.c (emit_group_store): Handle storing into CONCAT.
6306 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6308 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6309 corresponding MATCH_DUP.
6311 2002-03-24 Richard Henderson <rth@redhat.com>
6313 * unroll.c (unroll_loop): Zero label_map.
6315 * gcse.c: Include except.h.
6316 * Makefile.in (gcse.o): Update.
6318 2002-03-24 Richard Henderson <rth@redhat.com>
6320 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6321 Do resolve_unique_section before shared data clause.
6323 2002-03-24 Richard Henderson <rth@redhat.com>
6325 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6327 2002-03-24 Richard Henderson <rth@redhat.com>
6329 * recog.c (peephole2_optimize): Split blocks when EH insns are
6330 generated in the middle of a block. Do global life update if
6333 2002-03-24 Richard Henderson <rth@redhat.com>
6335 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6337 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6340 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6341 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6342 (init_dependency_output): Don't make no_output decision here.
6344 2002-03-24 Andrew Cagney <ac131313@redhat.com>
6346 * stmt.c (check_for_full_enumeration_handling): Remove tests of
6347 warn_switch. Update description.
6348 (expand_end_case_type): Call check_for_full_enumeration_handling
6351 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6353 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6354 (m68hc11_split_move): Call it to see if the source and destination
6355 operands use the same direction auto inc/dec mode, otherwise make the
6356 source an offsetable memory operand and generate an add.
6358 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6360 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6361 register for operand 2.
6362 ("*subsi3_zero_extendqi"): Likewise.
6363 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6364 bits so that it is compatible with a pop.
6365 ("*andhi3_gen"): Likewise.
6366 ("xorhi3"): Likewise.
6368 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6370 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6372 (cpp_post_options): ... not here.
6374 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6375 Aldy Hernandez <aldyh@redhat.com>
6377 Removal of separate preprocessor cpp0.
6379 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6380 cpp0, install-common): Update.
6381 * c-common.c (flag_preprocess_only): New.
6382 (c_common_init): Preprocess for -E.
6383 * c-common.h (flag_preprocess_only): New.
6384 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6385 * c-objc-common.c (c_init_decl_processing): Exit quickly
6386 for NULL return from c_common_init.
6387 * cpplib.h (cpp_preprocess_file): New.
6388 * cppmain.c (main, general_init, pfile, progname): Remove.
6389 (do_preprocessing): Rename cpp_preprocess_file, don't call
6390 cpp_finish. Don't close stdout here.
6391 (setup_callbacks): Update prototype.
6392 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6394 * tradcpp.c (main): Ignore -quiet.
6396 * lang-specs.h (default_compilers): Preprocess with cc1obj.
6398 2002-03-24 Richard Henderson <rth@redhat.com>
6400 PR optimization/5742
6401 * machmode.def: Add inner mode field to complex modes.
6402 * config/mips/mips.c (mips_function_value): Always define. Add
6403 new argument to handle libcalls.
6404 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6405 (FUNCTION_VALUE): Likewise.
6406 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6407 * config/mips/mips-protos.h: Update.
6409 2002-03-23 Richard Henderson <rth@redhat.com>
6411 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6412 * config/sparc/sparc-protos.h: Update.
6413 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6415 2002-03-23 Richard Henderson <rth@redhat.com>
6417 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6418 _start or _init begins the text segment.
6420 2002-03-23 David Edelsohn <edelsohn@gnu.org>
6422 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
6423 not HOST_WIDEST_INT.
6424 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6426 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
6429 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6430 operand argument to output_return_instruction.
6431 * arm.c (arm_print_operand, case 'd'): If the operand is
6432 const_true_rtx then just return.
6433 (arm_print_operand, case 'D'): If the operand is const_true_rtx
6436 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6438 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6439 (Warning Options): Document -Wswitch-default.
6440 * toplev.c (W_options): Add -Wswitch-default. Update comment on
6442 (warn_switch_default): Define variable.
6443 (warn_switch): Update comment.
6444 * flags.h (warn_switch_default): Declare variable.
6445 (warn_switch): Update comment.
6446 * stmt.c (expand_end_case): Check for and, when
6447 warn_switch_no_default, warn of a missing default case.
6449 2002-03-23 Alan Modra <amodra@bigpond.net.au>
6451 * real.h (N): Special case 128 bit doubles.
6453 * combine.c (simplify_comparison): When widening modes, ignore
6454 sign extension on CONST_INTs.
6456 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6458 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6459 passed to adjust_address. Fix comment formatting.
6462 2002-03-22 Zack Weinberg <zack@codesourcery.com>
6464 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6465 Always make REAL_VALUE_TYPE a struct containing an array of
6466 HOST_WIDE_INT, not a double. Tidy up the code deciding how
6467 big it is. Don't declare or use union real_extract.
6469 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6470 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6471 (print_operand), config/arm/arm.c (output_move_double),
6472 config/arm/arm.md (consttable_4, consttable_8),
6473 config/romp/romp.c (output_fpops), config/s390/s390.h
6474 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6475 (xtensa_output_literal): Don't use union real_extract.
6477 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6478 (sfmode_constant_to_ulong), config/ns32k/merlin.h
6479 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6480 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6481 (PRINT_OPERAND): Don't use local version of union
6484 * config/convex/convex.c (check_float_value), config/vax/vax.c
6485 (vax_float_literal), config/m88k/m88k.md (divdf3),
6486 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6487 config/pdp11/pdp11.c (output_move_quad): Don't do host
6488 arithmetic on target floating point quantities.
6490 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6491 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6493 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6494 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6496 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6497 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6499 * print-rtl.c (print_rtx): Disable code which needs
6500 floating-point emulator.
6501 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6502 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6503 depending on HOST_FLOAT_FORMAT to be defined properly.
6505 * config/1750a/1750a.c (get_double, float_label): Delete.
6506 (print_operand): Delete huge commented-out chunk. Use
6507 REAL_VALUE_TO_DECIMAL.
6508 * config/1750a/1750a-protos.h: Delete prototypes of deleted
6510 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6512 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6513 Use REAL_VALUE_TO_DECIMAL as ELF version does.
6514 * config/m88k/m88k.c (real_power_of_2_operand,
6515 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6516 real_extract out of the union; run the input through
6517 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6518 from that into the union.
6519 * config/pdp11/pdp11.c (output_move_double): Rearrange
6520 parentheses to make automatic indenter happy.
6522 * doc/tm.texi (Cross-compilation): Rename node to "Floating
6523 Point" and rewrite to describe current situation. Also adjust
6524 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6526 * doc/rtl.texi: Adjust cross reference.
6528 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6530 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6531 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6532 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6533 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6534 prevent use of sp as a reload register.
6535 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6536 non_acc_reg_operand.
6537 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6538 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6539 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6540 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6542 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6544 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6545 * cpplex.c (unterminated): Delete.
6546 (parse_string): No string literal may extend over multiple
6547 lines. Suppress the error when preprocessing assembly.
6548 * cppmain.c (scan_translation_unit): Strings are single-line.
6550 * doc/cpp.texi: Update to match.
6552 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6554 PR optimization/5854
6555 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6557 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6558 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6559 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6560 const0 if scratch register was not allocated.
6561 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6562 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6564 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6565 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6566 with GEN_INT (...) everywhere. Remove constraints in define_split
6568 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6569 require scratch register for setting 0 into regs/non-pushable memory.
6571 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6573 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6574 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6576 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
6578 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
6579 * cppinit.c (cpp_create_reader): On by default.
6580 (cpp_handle_option): Handle -W[no-]endif-labels.
6581 (cpp_post_options): Also enable if -pedantic.
6582 * cpplib.c (do_else): Use it.
6583 (do_endif): Likewise.
6584 * doc/cppopts.texi: Document new option.
6585 * doc/invoke.texi: Document new option.
6587 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
6589 * config/i386/i386.c, config/i386/i386.md: Change all occurences
6590 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6592 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6594 * flow.c (calculate_global_regs_live): Clear aux fields of
6597 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6599 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6600 REG or MEM subregs, pass rtx * instead of rtx to it.
6601 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6602 rtx * instead of rtx to alter_subreg.
6603 * config/m32r/m32r.c (gen_split_move_double): Likewise.
6604 * config/pj/pj.c (pj_output_rval): Likewise.
6606 2002-03-22 Richard Henderson <rth@redhat.com>
6609 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6610 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6611 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6612 (ia64_expand_prologue): Look at int_regs, not words, for number
6613 of incomming int regs.
6615 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
6617 * expr.c (expand_expr): A RESULT_DECL is part of a call.
6619 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
6621 * toplev.c (flag_loop_optimize, flag_crossjumping):
6622 New static variables.
6623 (rest_of_compilation): Conditionalize crossjumping and
6625 (parse_options_and_default_flags): Default loop_optimize and
6627 (lang_independent_options): Add -fcrossjumping and -floop-optimize
6628 * invoke.texi (crossjumping, loop-optimize): Document.
6630 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6632 * real.c (eiisneg): Move outside #ifdef NANS.
6634 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
6636 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6637 frequencies match; avoid match on different loop depths.
6638 (try_crossjump_to_bb): Kill tests that no longer brings time
6640 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6642 (split_edge): Likewise.
6644 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6647 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6648 * cfgrtl.c: Include insn-config.h
6649 (split_block) Dirtify block in presence of conditional execution
6651 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6653 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6654 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6655 (function_arg): Constify CUMULATIVE_ARGS.
6656 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6657 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6658 (UNITS_PER_DOUBLE): New macro.
6659 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
6660 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
6661 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
6662 fp_regs and stack_words.
6663 (EABI_FLOAT_VARARGS_P): New macro.
6664 * config/mips/mips.c (struct mips_arg_info): New.
6665 (mips_arg_info): New function.
6666 (function_arg_advance): Use it. Add adjustment instructions here
6667 rather than in function_arg.
6668 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
6669 for VOIDmode at the beginning of the function.
6670 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
6671 (function_arg_pass_by_reference): Likewise.
6672 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6673 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6674 (mips_va_start): Likewise. Use the new stack_words field of
6675 CUMULATIVE_ARGS to set up overflow area. Reformat.
6676 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
6677 doubles and other types, aligning the overflow pointer for non-doubles
6678 too. Remove some code duplication. Replace hard-coded constants.
6680 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6682 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6683 (CLASS_UNITS): Undefine.
6684 (CLASS_MAX_NREGS): Use FP_INC.
6685 * config/mips/mips.c (compute_frame_size): Likewise.
6686 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6688 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6690 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6691 prototype, and handle lexing numbers and identifiers.
6692 (parse_identifier): Update to new form of parse_slow.
6693 (parse_number): Fast path only, use parse_slow otherwise.
6694 (_cpp_lex_direct): Update calls to parse_number.
6696 2002-03-21 DJ Delorie <dj@redhat.com>
6698 * bb-reorder.c (make_reorder_chain_1): Protect against
6699 when redundant edges are omitted.
6700 * predict.c (dump_prediction): Likewise.
6702 2002-03-21 Richard Henderson <rth@redhat.com>
6705 * fixinc/inclhack.def (solaris_stdio_tag): New.
6706 * fixinc/fixincl.x: Regenerate.
6708 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6711 * c-typeck.c (process_init_element): Flag non-static
6712 initialization of a flexible array member as illegal.
6714 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6716 * config/rs6000/t-linux64: New.
6717 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6718 t-ppccomm. Use t-rs6000 and t-linux64.
6719 (powerpc64-*-gnu* <tmake_file>): Likewise.
6720 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6721 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6722 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6724 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
6726 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6727 flag_really_no_inline instead of optimize == 0.
6729 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6731 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6733 * flags.h (flag_really_no_inline): New.
6735 * c-common.c (c_common_post_options): Initialize
6736 flag_really_no_inline.
6738 * toplev.c (flag_really_no_inline): New.
6740 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6742 * config/avr/avr.md (length): Fix length computation for
6743 conditional branches.
6745 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
6747 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6748 sdbout.o, profile.o): Update.
6749 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6751 * c-common.h (gettags): Move here from tree.h.
6752 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6753 insert_block, getdecls, kept_level_p, global_bindings_p): New.
6754 * dbxout.c (dbxout_init): Use getdecls langhook.
6755 * expr.c (expand_expr): Use insert_block langhook.
6756 * fold-const.c: Include langhooks.h.
6757 (fold_range_test, fold_binary_op_with_conditional_arg,
6758 fold): Use global_bindings_p langhook.
6759 * integrate.c (expand_inline_function): Use insert_block langhook.
6760 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6761 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6762 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6763 LANG_HOOKS_GETDECLS): New.
6764 (LANG_HOOKS_INITIALIZER): Update.
6765 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6767 * langhooks.h (struct lang_hooks_for_decls): New.
6768 (struct lang_hooks): Update.
6769 * profile.c: Include langhooks.h.
6770 (output_func_start_profiler): Use new langhooks.
6771 * sdbout.c: Include langhooks.h.
6772 (sdbout_init, sdbout_finish): Use getdecls langhook.
6773 * stmt.c: Include langhooks.h.
6774 (expand_fixup, fixup_gotos): Use new langhooks.
6775 * stor-layout.c: Include langhooks.h.
6776 (variable_size): Use global_bindings_p langhook.
6777 * toplev.c (compile_file): Use getdecls langhook.
6778 * tree-inline.c (remap_block): Use insert_block langhook.
6779 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6780 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6782 2002-03-21 Richard Henderson <rth@redhat.com>
6784 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6785 constants in .data when -fpic.
6787 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6789 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6792 2002-03-21 Tom Tromey <tromey@redhat.com>
6794 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
6796 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6798 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6800 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6802 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6803 Richard Henderson <rth@redhat.com>
6806 * c-common.c (c_expand_expr): Preserve result of a statement
6807 expression if needed.
6809 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6812 * genrecog.c (maybe_both_true_mode): Remove.
6813 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6814 * machmode.def (Pmode): Likewise.
6816 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
6818 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6819 (nonlocal_mentioned_p_1): New function.
6820 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6821 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6822 (mark_constant_function): Recognize pure functions.
6823 * rtl.h (global_reg_mentioned_p): New prototype.
6824 * rtlanal.c (global_reg_mentioned_p,
6825 global_reg_mentioned_p_1): New function.
6827 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6829 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6831 * fixinc/fixincl.x: Regenerate.
6833 2002-03-20 Jason Merrill <jason@redhat.com>
6835 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6837 2002-03-20 Michael Meissner <meissner@redhat.com>
6839 * doc/invoke.texi (Optimize Options): Document that -O2 sets
6842 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6844 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6845 ".literal_position" directive before the constant pool.
6847 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6849 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6850 Add Craig Rodrigues.
6851 Add Brad Lucier to testers.
6853 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6856 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6858 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6859 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6860 instead of insn_extract.
6862 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6865 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6867 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6868 stmt if some case has been output.
6870 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6873 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6874 movsfcc_1, movdfcc_1): Add %O2.
6875 * config/i386/i386.c (print_operand): Handle %ON.
6876 Print . before float condition codes in Sun as cmov syntax.
6877 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6878 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6881 2002-03-20 Philip Blundell <pb@nexus.co.uk>
6883 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6884 return instruction if PC was popped.
6886 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6888 * config/xtensa/xtensa.md: Remove unused type attributes.
6889 (adddi_carry, subddi_carry): Change type attribute to "multi".
6891 2002-03-19 Dale Johannesen <dalej@apple.com>
6893 PR optimization/5999, middle-end/5731
6894 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6895 multiplications by reciprocals.
6897 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
6899 * Makefile.in: Update.
6900 * c-common.c: Include langhooks.h.
6901 (inline_forbidden_p): Use new hook.
6902 * diagnostic.c: Include langhooks.h.
6903 (format_with_decl, announce_function,
6904 default_print_error_function): Use new hook.
6905 * dwarf2out.c (dwarf2_name): Use new hook.
6906 * function.c: Include langhooks.h.
6907 (init_function_start): Use new hook.
6908 * langhooks-def.h (lhd_decl_printable_name): New.
6909 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6910 (LANGHOOKS_INITIALIZER): Update.
6911 * langhooks.c (lhd_decl_printable_name): New.
6912 * langhooks.h (struct lang_hooks): New hook.
6913 * toplev.c (decl_name, decl_printable_name): Remove.
6914 (open_dump_file): Use new hook.
6915 (process_options): Remove old hook.
6916 * tree.h (decl_printable_name): Remove.
6918 * objc-act.c (objc_init): Remove old hook.
6919 (objc_printable_name): Export.
6920 * objc-act.h (objc_printable_name): New.
6921 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6923 2002-03-19 Jim Blandy <jimb@redhat.com>
6925 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6926 the start_source_file debug hook, not the current line number.
6928 2002-03-19 Richard Henderson <rth@redhat.com>
6930 * flow.c (EH_USES): Provide default.
6931 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6932 * doc/tm.texi (EH_USES): New.
6934 * config/ia64/ia64.c (ia64_eh_uses): New.
6935 * config/ia64/ia64-protos.h: Update.
6936 * config/ia64/ia64.h (EH_USES): New.
6938 2002-03-19 Richard Henderson <rth@redhat.com>
6940 * varasm.c (output_constant_def): Fix stupid typo.
6942 2002-03-19 Richard Henderson <rth@redhat.com>
6945 * except.c (current_function_has_exception_handlers): New.
6946 * except.h: Declare it.
6947 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6948 Combine tests that disable all sibcalls for the function.
6950 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6952 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6955 2002-03-19 Richard Henderson <rth@redhat.com>
6958 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6959 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6961 2002-03-19 Jim Blandy <jimb@redhat.com>
6963 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6964 name, even if the replacement list contains no tokens, as required
6967 2002-03-19 Jason Merrill <jason@redhat.com>
6969 * varasm.c (globalize_decl): Get the name from the RTL, not
6970 DECL_ASSEMBLER_NAME.
6972 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6974 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6976 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6977 subdi_carry): Define.
6979 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6981 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6982 about -fpic/-fPIC if extra_warnings set.
6984 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6986 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6987 TREE_STRING_POINTER.
6988 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6990 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6992 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6993 in favor of SP if FRAME_POINTER_REQUIRED is false.
6995 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6997 * emit-rtl.c (gen_int_mode): New function.
6998 * rtl.h: Prototype for it.
6999 * combine.c (make_extraction, simplify_comparison), expmed.c
7000 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7001 (convert_modes, store_field), optabs.c (expand_fix),
7002 simplify-rtx.c (neg_const_int, simplify_unary_real),
7004 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7005 Use it instead of GEN_INT (trunc_int_for_mode (...)).
7007 2002-03-19 Jakub Jelinek <jakub@redhat.com>
7010 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7011 convert_parm_for_inlining.
7012 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7014 * langhooks-def.h: Likewise.
7015 * objc/objc-lang.c: Likewise.
7016 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7018 * tree-inline.c (initialize_inlined_parameters):
7019 Call convert_parm_for_inlining lang hook if needed.
7020 * c-typeck.c (c_convert_parm_for_inlining): New function.
7021 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7023 2002-03-18 Mark Mitchell <mark@codesourcery.com>
7025 * calls.c (precompute_arguments): Do not assume that temporaries
7026 can be destroyed after expanding the argument.
7027 (expand_call): Likewise.
7029 2002-03-15 Eric Christopher <echristo@redhat.com>
7031 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7032 Fix register preference on last change.
7033 * config/mips/mips.c (mips_return_in_memory): New function.
7034 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7035 * config/mips/mips-protos.h: Declare.
7036 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7037 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7039 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
7041 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7043 (anddi3, iorsi3): Likewise.
7045 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7046 use %gprel for symbols that are going to be placed in linkonce
7049 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7050 RETURN_ADDRESS_POINTER_REGNUM to $ra.
7051 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7052 not needed. Disregard leaf_function_p().
7053 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7054 mips16 frame pointer.
7055 * config/mips/mips.md (store ra): Only to small SP offsets.
7056 2001-08-22 Graham Stott <grahams@redhat.com>
7057 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7058 return a REG rtx for the return address register.
7060 2002-03-18 Bob Wilson <bob.wilson@acm.org>
7062 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7063 constant-pool addresses as "mode-dependent".
7064 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7066 2002-03-18 Jakub Jelinek <jakub@redhat.com>
7069 * expr.c (emit_group_load): Use extract_bit_field if
7070 needed for CONCAT arguments.
7072 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
7075 * arm.md (tablejump): Make this a define_expand. For PIC add the
7076 offset to the base of the table.
7077 (thumb_tablejump): Matcher for Thumb tablejump insn.
7078 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7079 as the difference of two labels.
7080 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7081 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7083 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7084 * arm.c (get_jump_table_size): If the table is not in the text
7085 section, return zero.
7087 2002-03-18 Bernd Schmidt <bernds@redhat.com>
7089 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7091 (arm_reload_out_hi): Use gen_lowpart instead of
7092 gen_rtx_SUBREG to access QImode components.
7093 * config/arm/arm.md: Disable zero_extend split for QImode
7094 subregs in BIG_ENDIAN mode.
7095 (storehi_bigend): Match use of least significant byte.
7096 (storeinthi): Remove extraneous SUBREG.
7097 Add missing construction of operands[2].
7098 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7099 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7100 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7102 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
7104 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7107 2002-03-17 Richard Henderson <rth@redhat.com>
7109 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7112 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7114 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7115 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7117 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7119 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7121 * predict.c (estimate_bb_frequencies): Delete unused variables.
7123 2002-03-17 Richard Henderson <rth@redhat.com>
7125 * config/ia64/ia64.c (ia64_attribute_table): Move before
7126 targetm definition. Make static.
7128 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
7130 * c-common.h (yyparse, c_common_parse_file): New.
7131 * c-lang.c: Include c-common.h.
7132 (LANG_HOOKS_PARSE_FILE): Redefine.
7133 * c-lex.c: Include c-common.h.
7134 (yyparse): Rename c_common_parse_file. Call yyparse.
7135 * c-parse.in (yyparse): Remove macro.
7136 * c-tree.h (yyparse_1): Remove.
7137 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7138 (LANG_HOOKS_INITIALIZER): Update.
7139 * langhooks.h (struct lang_hoooks): New hook parse_file.
7140 * toplev.c (compile_file): Use parse_file hook.
7141 * tree.h (yyparse): Remove.
7142 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7144 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7146 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7147 float_truncate, not fix.
7148 ("*truncdfsf2_real"): Ditto.
7149 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7151 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7153 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
7155 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7156 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
7157 where appropriate. Make the second reference to
7158 leaf_function_p a function call, as intended. Reindented.
7160 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7161 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7163 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7164 add register to non-constant into sp.
7166 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7167 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7168 (mips16_gp_pseudo_rtx): Lose.
7169 (INIT_EXPANDERS): Deleted.
7170 * config/mips/mips.c (mips_init_machine_status): New.
7171 (mips_free_machine_status): New.
7172 (mips_mark_machine_status): New.
7173 (override_options): Set them.
7174 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7175 (struct machine_function): ... new. Replaced all references.
7176 (mips_add_gc_roots): Don't mark them.
7177 (embedded_pic_fnaddr_reg): New, extracted from...
7178 (embedded_pic_offset): ... here.
7179 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7182 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7184 * cppinit.c: Revert -MD removal.
7186 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7188 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7189 soft registers by default for 68HC12.
7190 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7191 when compiling with -fomit-frame-pointer.
7192 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7193 (expand_epilogue): Likewise.
7194 (m68hc11_gen_rotate): Use exg when rotating by 8.
7196 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7198 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7199 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7200 (splits): Remove unused add splits.
7201 ("*addhi3_68hc12"): Tune constraints.
7202 ("addhi_sp"): Try to use X instead of Y in all cases and if the
7203 constant fits in 8-bits and D is dead use abx/aby instructions.
7204 ("*addhi3"): Remove extern declaration of ix_reg.
7205 ("*subsi3"): Optimize and provide new split.
7206 ("subhi3"): Cleanup.
7207 ("*subhi3_sp"): Avoid saving X if we know it is dead.
7208 (arith splits): For 68hc12 save the address register on the stack
7209 and do the arithmetic operation with a pop.
7211 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7213 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7214 allocating QImode in address registers.
7215 ("*movqi_m68hc11"): Likewise.
7217 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
7219 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7221 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7223 * cppinit.c (print_help): Display -MD and -MMD.
7224 Don't display usage string. Update assertion syntax and
7226 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7227 (cpp_handle_option): Update.
7229 2002-03-15 Chris Demetriou <cgd@broadcom.com>
7231 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7232 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7233 and define it so that regardless of target CPU size,
7234 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7235 of "int" rather than "long."
7237 2002-03-15 Richard Henderson <rth@redhat.com>
7239 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7242 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7244 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7245 ("tstqi" split): Avoid using memory for tstqi on address register.
7246 (splits): Remove constraints.
7247 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7248 ("cmpdf", "cmpsf"): Remove since not used.
7249 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7250 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7252 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7254 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7255 ("neghi2"): Tighten constraints.
7256 ("one_cmplsi2"): Optimize and simplify split.
7257 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7259 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7261 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7262 and split of AND operation to clear the upper bits.
7263 ("*logicalsi3_zextqi"): Likewise.
7264 ("*logicallhi3_zexthi_ashift8"): Likewise.
7265 ("*logicalsi3_silshr16"): Likewise.
7266 ("logicalsi3_silshl16"): Likewise.
7267 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7269 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7271 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7272 (m68hc11_indirect_p): New function.
7273 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7274 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7276 (asm_print_register): Likewise.
7277 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7278 (m68hc11_indirect_p): Declare.
7279 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7280 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7281 (TARGET_SWITCHES): New option -mrelax.
7282 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7284 ("iorsi3", "xorsi3"): Likewise.
7285 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7286 ("*andhi3_mem"): New to handle destination in memory with bclr
7287 and a scratch register.
7288 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7289 ("*andhi3_const"): New when operand2 is constant.
7290 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7291 ("*andhi3_gen"): Cleanup of the old "andhi3".
7292 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7293 ("xorqi3"): Update constraints.
7295 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7297 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7298 for reg_equiv_memory_loc when the operand is a register that does
7299 not get a hard register (stack location).
7300 (tst_operand): After reload, accept all memory operand.
7301 (symbolic_memory_operand): Fix detection of symbolic references.
7302 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7303 accept symbols and any constant.
7305 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7307 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7308 note on the insn that sets the soft frame register.
7309 (must_parenthesize): ix and iy are also reserved names.
7310 (print_operand_address): One more place where parenthesis are required
7311 to avoid confusion with register names.
7312 (m68hc11_gen_movhi): Allow push of stack pointer.
7313 (m68hc11_check_z_replacement): Fix handling of parallel with a
7315 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7316 the replacement register is.
7317 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7318 and D8_REGS classes.
7319 (MODES_TIEABLE_P): All modes are tieable except QImode.
7321 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7323 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7324 (___subdi3): Likewise.
7325 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7326 (__map_data_section): Optimize 68hc11 case.
7328 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7330 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7331 than a shift to avoid adding a register with itself.
7332 (m68hc11_memory_move_cost): Take into account NO_REGS.
7333 (m68hc11_register_move_cost): Update and use memory move cost
7335 (m68hc11_address_cost): Make cost of valid offset not 0 so that
7336 it gives more opportunities to cse to optimize.
7337 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7338 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7340 2002-03-15 Mark Mitchell <mark@codesourcery.com>
7342 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7343 * c-common.def (CLEANUP_STMT): New tree node.
7344 * c-common.h (CLEANUP_DECL): New macro.
7345 (CLEANUP_EXPR): Likewise.
7346 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7347 * expr.c (expand_expr): Tidy.
7348 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7349 * tree-inline.c (initialize_inlined_parameters): Clean up
7350 new local variables.
7352 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7355 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7356 before movrXX only, use reg_overlap_mentioned_p.
7357 Only special case NE if just one insn can be generated.
7359 2002-03-15 Jason Merrill <jason@redhat.com>
7361 * varasm.c (assemble_variable): Call resolve_unique_section before
7362 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
7365 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7368 * arm.md (split pattern for thumb shiftable immediates): Add comment
7369 explaining non-obvious test.
7371 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7374 * arm.md (movaddr, movaddr_insn): Delete.
7376 2002-03-15 Jason Merrill <jason@redhat.com>
7378 * toplev.c (wrapup_global_declarations): Clarify variable handling.
7379 -fkeep-static-consts doesn't apply to comdats.
7381 2002-03-14 Richard Henderson <rth@redhat.com>
7383 * c-decl.c: Include c-pragma.h.
7384 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7385 (finish_function): Tidy.
7386 * c-pragma.c: Include c-common.h.
7387 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7388 (handle_pragma_weak): Use them.
7389 (init_pragma): Register pending_weaks.
7390 * c-pragma.h (maybe_apply_pragma_weak): Declare.
7391 * print-tree.c (print_node): Print DECL_WEAK.
7392 * varasm.c (mark_weak_decls): Remove.
7393 (remove_from_pending_weak_list): Remove.
7395 (asm_emit_uninitialised): Call globalize_decl for weak commons.
7396 (weak_decls): Make a tree_list.
7397 (declare_weak): Cons weak_decls directly.
7398 (globalize_decl): Remove weak_decls elements directly.
7399 (weak_finish): Simplify weak_decls walk. Don't weaken unused
7400 symbols. Don't pretend to handle aliases.
7401 (init_varasm_once): Update weak_decls registry.
7402 * Makefile.in: Update dependencies.
7404 2002-03-14 Richard Henderson <rth@redhat.com>
7407 * config/ia64/ia64.c: Include tm_p.h last.
7408 (gen_nop_type): Remove duplicate definition.
7409 (cycle_end_fill_slots): Set sched_data for second L slot.
7410 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7411 (nop_cycles_until): Fix typos.
7413 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7415 PR optimization/5891
7416 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7418 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7420 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7421 descriptors correctly.
7423 2002-03-14 Michael Meissner <meissner@redhat.com>
7425 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7426 100, allowing MAX_UNROLLED_INSNS to be overridden.
7428 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7431 * unroll.c (params.h): Include.
7432 (MAX_UNROLLED_INSNS): Delete, now in params.h.
7434 * doc/invoke.texi (--param max-unroll-insns): Document.
7436 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7438 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7440 * arm.md: Fix warnings about constraints in peepholes and splits.
7442 2002-03-14 Zack Weinberg <zack@codesourcery.com>
7444 * cpphash.h (struct lexer_state): Remove line_extension member.
7445 * cpplib.c (dequote_string, do_linemarker): New functions.
7446 (linemarker_dir): New data object.
7447 (DIRECTIVE_TABLE): No longer need to interpret #line in
7448 preprocessed source. Delete obsolete comment about return
7450 (end_directive, directive_diagnostics, _cpp_handle_directive):
7451 Don't muck with line_extension.
7452 (directive_diagnostics): No need to issue warnings for
7454 (_cpp_handle_directive): Issue warnings for linemarkers here,
7455 when appropriate. Dispatch linemarkers to do_linemarker, not
7457 (do_line): Code to handle linemarkers split out to do_linemarker.
7458 Convert escape sequences in filename argument, both places.
7460 * cppmacro.c (quote_string): Rename cpp_quote_string and
7461 export. All callers changed.
7462 * cpplib.h (cpp_quote_string): Prototype.
7463 * cppmain.c (print_line): Call cpp_quote_string on to_file
7466 * doc/cpp.texi: Document that escapes are now interpreted in
7467 #line and in linemarkers, and that non-printing characters are
7468 converted to octal escapes when linemarkers are generated.
7470 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
7472 * emit-rtl.c (try_split): Use delete_insns.
7473 * recog.c (split_all_insns): Fix terminating condition.
7475 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7476 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7479 * arm.c (arm_output_epilogue): Fix floating-point register save
7480 adjustment when using a frame pointer.
7482 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
7484 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7485 * config/mips/mips.c (compute_frame_size): Retrofit them here.
7486 (save_restore_insns, mips_expand_epilogue): And here.
7487 (build_mips16_call_stub): And here.
7488 (mips_function_value): Use the new macros to decide whether a single
7489 or complex float can be returned in floating-point registers. Return
7490 a parallel rtx in the complex case.
7492 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
7494 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7495 call after liveness analysis.
7497 * recog.c (split_insn): Use delete_insn_and_edges.
7499 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7500 instructions to have branch prediction notes.
7501 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7503 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
7505 * configure.in: Don't pass -Wno-long-long to a ADA compiler
7506 that doesn't support it.
7507 * configure: Regenerate.
7509 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7512 * config/sparc/sparc.md (normal_branch, inverted_branch,
7513 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7514 inverted_fp_branch): Adjust calls to output_cbranch.
7515 Set length attribute.
7516 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7517 output_v9branch. Set length attribute.
7518 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7520 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7521 (output_cbranch): Likewise. Handle far branches.
7522 (output_v9branch): Handle far branches.
7523 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7525 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7526 noov_compare64_op predicates.
7528 2002-03-13 Jason Merrill <jason@redhat.com>
7530 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7531 into the function and constify it.
7532 * gthr-dce.h, gthr-solaris.h: Likewise.
7534 2002-03-13 David Edelsohn <edelsohn@gnu.org>
7536 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7537 * config/rs6000/rs6000.c (rs6000_va_arg): Use
7538 std_expand_builtin_va_arg if not ABI_V4.
7540 2002-03-13 Jason Merrill <jason@redhat.com>
7542 * varasm.c (globalize_decl): New fn.
7543 (assemble_start_function): Use it.
7544 (asm_emit_uninitialized): Use it.
7545 (assemble_alias): Use it.
7546 (assemble_variable): Use it.
7548 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
7550 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7551 2002-03-12 internal visibility change.
7552 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7553 visibility into SYMBOL_REF_FLAG.
7555 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
7557 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7558 VOIDmode operand. Add compile-time optimization for constant results.
7560 2002-03-12 Jason Merrill <jason@redhat.com>
7562 * c-typeck.c (convert_for_assignment): Don't allow conversions
7563 between pointers and references. Only allow lvalues to convert to
7566 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
7568 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7569 before prologue, to avoid scheduling problems.
7571 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7573 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7574 (ELIMINABLE_REGS): Add sfp->sp.
7575 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7577 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7579 PR optimization/5892
7580 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7582 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7584 * loop.c (basic_induction_var): Don't call convert_modes if mode
7585 classes are different.
7587 2002-03-12 Richard Henderson <rth@redhat.com>
7589 PR optimization/5901
7590 * function.c (reposition_prologue_and_epilogue_notes): Position
7591 the markers after/before the last/first insn not deleted.
7593 2002-03-12 Richard Henderson <rth@redhat.com>
7595 PR optimization/5878
7596 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7597 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7598 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7600 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7601 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7602 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7604 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7605 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7606 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7607 also. Don't set it if not flag_pic.
7608 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7609 to be INVALID_REGNUM when not used.
7611 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
7613 * expmed.c (store_bit_field): Reset alias set for memory.
7614 (extract_bit_field): Same.
7616 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7618 * c-common.c (c_tree_code_type, c_tree_code_length,
7619 c_tree_code_name, add_c_tree_codes): Delete.
7620 * c-common.h (add_c_tree_codes): Delete.
7621 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7623 * c-objc-common.c (c_objc_common_init): Don't call
7624 add_c_tree_codes, instead set lang_unsafe_for_reeval.
7625 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7626 objc_tree_code_name, add_objc_tree_codes): Delete.
7627 (objc_init): Don't call add_objc_tree_codes.
7628 * objc/objc-lang.c (tree_code_type, tree_code_length,
7629 tree_code_name): Define.
7630 * toplev.c (lang_independent_init): Don't set
7631 tree_code_length[IDENTIFIER_NODE].
7632 * tree.c (tree_code_type, tree_code_length, tree_code_name):
7633 Delete definitions, moved to language front-ends.
7634 * tree.def (IDENTIFIER_NODE): Hardwire the length.
7635 * tree.h (tree_code_type, tree_code_length, tree_code_name):
7637 (tree_code_length): Change type to unsigned char.
7639 2002-03-12 Richard Henderson <rth@redhat.com>
7641 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7642 internal visibility change.
7644 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7646 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7647 validize_mem() instead of change_address to avoid clobbering
7650 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
7652 * c-lex.h (position_after_whitespace): Remove.
7654 2002-03-12 Jakub Jelinek <jakub@redhat.com>
7656 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7657 (lex_string): Use unsigned char pointers.
7659 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7661 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7662 is not a valid memory_operand.
7664 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7666 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7667 * config/xtensa/lib1funcs.asm: Fix copyright to include
7668 special case for libgcc files.
7669 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7670 (__divsi3): Likewise.
7671 (__umodsi3): Likewise.
7672 (__modsi3): Likewise.
7673 * config/xtensa/lib2funcs.S: Fix copyright to include
7674 special case for libgcc files.
7676 2002-03-12 Tom Rix <trix@redhat.com>
7678 * collect2.c (resolve_lib_name): Move outside of
7679 OBJECT_FORMAT_COFF ifdef.
7680 (ignore_library): Same.
7682 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7684 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7686 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7688 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7689 to function_section before writing out the constant pool.
7691 2002-03-12 David Edelsohn <edelsohn@gnu.org>
7693 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7695 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7697 2002-03-12 Alan Modra <amodra@bigpond.net.au>
7699 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7703 (cmpsi splitter): Likewise.
7704 (modsi3): Fail if <= 0.
7705 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7706 redundant test when HOST_BITS_PER_WIDE_INT != 32.
7707 (reg_or_sub_cint64_operand): Likewise.
7708 (num_insns_constant_wide): Optimize sign extension.
7709 (rs6000_legitimize_address): Likewise.
7711 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7713 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7714 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7716 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7718 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7719 address calculation.
7721 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7723 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7724 scratch register to DImode / TImode.
7725 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7726 register used does not overlap the target.
7728 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7730 * Makefile.in (debug.o): Depend on debug.h.
7731 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7732 * debug.c (do_nothing_debug_hooks): Likewise.
7733 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7734 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7735 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7736 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7737 * dwarfout.c (dwarf_debug_hooks): Likewise.
7738 * integrate.c (output_inline_function): Likewise.
7739 * objc/objc-act.c (synth_module_prologue): Likewise.
7740 * sdbout.c (sdb_debug_hooks): Likewise.
7741 * toplev.c (debug_hooks): Likewise.
7742 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7744 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7746 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7747 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7748 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7749 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7750 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7751 * defaults.h (POINTER_SIZE): Define.
7752 * doc/tm.texi (POINTER_SIZE): Document default.
7754 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7756 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7758 2002-03-11 Richard Henderson <rth@redhat.com>
7760 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7761 if rebuild_label_notes_after_reload.
7763 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
7765 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
7766 emit pic register load if "internal" visibility.
7767 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7768 (cris_expand_builtin_va_arg): Do all computations on trees.
7770 2002-03-11 Richard Henderson <rth@redhat.com>
7772 * rtlanal.c: Include recog.h.
7773 (keep_with_call_p): Fix thinko.
7774 * Makefile.in (rtlanal.o): Update dependencies.
7776 2002-03-11 Chris Meyer <cmeyer@gatan.com>
7778 * genflags.c (gen_insn): Use IS_VSPACE.
7779 * genoutput.c (output_insn_data): Likewise.
7780 (process_template): Likewise.
7782 2002-03-11 Richard Henderson <rth@redhat.com>
7784 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7786 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
7788 * Makefile.in: Update.
7789 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7790 Update documentation.
7791 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7792 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7794 2002-03-11 Zack Weinberg <zack@codesourcery.com>
7796 * Makefile.in: Give texi2pod its input file as a command line
7797 argument, not on stdin.
7799 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
7800 Daniel Berlin <dan@dberlin.org>
7802 C++ alias analysis improvement.
7803 * alias.c (record_component_aliases): Record aliases for base
7806 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7808 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7810 2002-03-11 Douglas B Rupp <rupp@gnat.com>
7812 * toplev.c (vms_fopen): Remove, not needed.
7814 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7816 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7818 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7819 for FP, already done later.
7821 * toplev.c (debug_args): Add entry for VMS_DEBUG.
7822 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7824 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
7826 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7827 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7828 LARGEST_EXPONENT_IS_NORMAL for the given mode.
7829 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7830 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7831 (ediv, emul, eldexp, esqrt): Likewise.
7832 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7833 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7834 (saturate): New function.
7835 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7836 (make_nan): Use a saturation value instead of a NaN if
7837 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
7838 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7839 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
7840 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
7841 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7842 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7843 !ROUND_TOWARDS_ZERO.
7844 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7845 (ROUND_TOWARDS_ZERO): Document.
7847 2002-03-11 Andreas Jaeger <aj@suse.de>
7849 * cfg.c (dump_flow_info): Remove unused variable.
7851 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
7853 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7854 computations on trees.
7856 2002-03-10 Richard Henderson <rth@redhat.com>
7859 * reload.c (copy_replacements_1): New.
7860 (copy_replacements): Use it to recurse through the rtx.
7862 2002-03-10 Richard Henderson <rth@redhat.com>
7864 * loop.c (strength_reduce): Compute number of iterations as
7865 unsigned HOST_WIDE_INT.
7867 2002-03-10 Richard Henderson <rth@redhat.com>
7869 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7870 to move away from the end of the block.
7872 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7874 PR preprocessor/5899
7875 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7877 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7879 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7881 * attribs.c (decl_attributes): Fix signed/unsigned warning.
7883 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
7885 * config/mmix/mmix.c: Improve comments.
7886 (mmix_target_asm_function_prologue): Drop variable
7887 empty_stack_frame. Don't allocate unused slot above fp.
7888 (mmix_target_asm_function_epilogue): Mirror prologue changes.
7889 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7890 brace in first column.
7891 (enum reg_class): Ditto.
7892 (FIRST_PARM_OFFSET): Now 0.
7893 (USER_LABEL_PREFIX): Remove #if 0:d definition.
7895 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7897 * combine.c (make_extraction): Fix error in last change.
7899 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7901 * c4x.c (c4x_fp_reglist): Const-ify.
7902 * cris.c (cris_print_operand): Likewise.
7903 * i386.c (ix86_va_arg): Likewise.
7904 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7905 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7906 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7907 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7908 * mcore.h (regno_reg_class): Likewise.
7909 * mips.c (gen_int_relational): Likewise.
7910 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7911 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7912 * pdp11.c (move_costs): Likewise.
7913 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7914 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7916 * s390.h (regclass_map): Likewise.
7917 * sh.c (shift_amounts): Likewise.
7918 * sh.md (rotlsi3): Likewise.
7920 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7922 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7923 (ne0+5): Use new clobber to generate proper shift pattern.
7924 Patch by Michael Matz <matz@kde.org>.
7926 2002-03-09 Andreas Schwab <schwab@suse.de>
7928 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7930 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7932 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7934 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7937 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7938 even for non-representable constants.
7940 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7942 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7943 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7944 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7945 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7946 (pop_function_context): Compute MAY_SHARE parameter for
7948 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7949 (gen_mem_addressof): Call fixup_var_refs with new parm.
7951 * combine.c (make_extraction): Don't make extension of CONST_INT.
7953 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7955 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7956 in o32 and o64 ABIs.
7957 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7958 but getting fixed-size structs passed in registers regardless of
7959 padding in o32 and o64 ABIs.
7961 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7962 offset before loading address of argument passed by transparent
7965 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7967 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7969 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7971 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7972 marker such that registers after it are saved.
7974 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7976 * sparc.c (arith_4096_operand): Fix error in last change.
7978 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7980 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7983 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7985 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7988 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7990 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7992 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7994 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7995 removed; fix return value.
7996 * combine.c (combine_instructions): Dirtify blocks where we failed to
7997 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7998 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8000 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8002 * gcse.c (insert_insn_end_bb): Fix typo in last change.
8004 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
8006 * recog.c (peephole2_optimize): Re-distribute EH edges.
8008 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
8010 * expr.c (expand_expr): Use unsave lang hook.
8011 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8012 (LANG_HOOKS_INITIALIZER): Update.
8013 * langhooks.h (struct lang_hooks): New hook unsave.
8014 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8015 (unsave_expr_1): Remove unused lang_unsave_expr_now.
8016 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
8017 (unsave_expr_now): Remove.
8018 * tree.h (unsave_expr_now, lang_unsave,
8019 lang_unsave_expr_now): Remove.
8022 2002-03-08 Andreas Jaeger <aj@suse.de>
8024 * flow.c (propagate_block_delete_insn): Remove unused variable.
8026 2002-03-08 Kazu Hirata <kazu@hxi.com>
8028 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8029 insn length for memory load/store.
8031 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
8033 * doc/install.texi (--with-libiconv-prefix): Document.
8035 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
8037 * doc/sourcebuild.texi: Fix typo.
8039 2002-03-08 Jakub Jelinek <jakub@redhat.com>
8042 * builtins.c (std_expand_builtin_va_arg): Do all computations on
8045 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8047 * rtl.c (copy_most_rtx): Move from here ...
8048 * emit-rtl.c (copy_most_rtx): ... to here.
8050 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8052 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8053 SUBTARGET_CPP_SIZE_SPEC.
8054 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8056 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8058 2002-03-07 Matt Hiller <hiller@redhat.com>
8060 * gensupport.c (first_dir_md_include): Renamed from include;
8061 change all references.
8062 (last_dir_md_include): Renamed from last_include; change all
8064 (init_md_reader): Unconditionally initialize base_dir whether or
8065 not filename is a relative path.
8067 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
8069 * config/fp-bit.c (_unord_f2): Compile it in even if
8070 US_SOFTWARE_GOFAST is enabled.
8072 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8073 NULL_RTX. Set all HFmode operations as NULL_RTX.
8074 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8075 NULL_RTX, try reversing the comparison and the operands.
8077 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8079 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8080 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8083 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
8085 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8087 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8089 * basic-block.h (fixup_abnormal_edges): Declare.
8090 * reload1.c (fixup_abnormal_edges): New function.
8091 * reg-stack.c (convert_regs): Use it.
8093 * gcse.c (insert_insn_end_bb): Handle trapping insns.
8095 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8097 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
8099 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8100 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8101 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8102 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8103 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8104 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8105 unless x and y could be infinite.
8106 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8107 Check that the common type of both arguments is a real, even for
8108 targets without unordered comparisons. Allow an integer argument
8109 to be compared against a real.
8110 (expand_tree_builtin): Use expand_unordered_cmp.
8111 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8112 * cse.c (fold_rtx): Likewise. Fix indentation.
8113 * fold-const.c (fold_real_zero_addition_p): New.
8114 (fold): Use it, and the new HONOR_... macros.
8115 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8116 * jump.c (reversed_comparison_code_parts): After searching for
8117 the true comparison mode, use HONOR_NANS to decide whether it
8118 can be safely reversed.
8119 (reverse_condition_maybe_unordered): Remove IEEE check.
8120 * simplify-rtx.c (simplify_binary_operation): Use the new macros
8121 to decide which simplifications are valid. Allow the following
8122 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8123 and (a - -b) to (a + b).
8124 (simplify_relational_operation): Use HONOR_NANS.
8125 * doc/tm.texi: Document the MODE_HAS_... macros.
8127 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8129 * combine.c (simplify_comparison): If simplifying a logical shift
8130 right and compare with constant, force the comparison to unsigned.
8132 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
8134 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8136 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8138 (alt_reg_names): Remove % for vrsave.
8140 2002-03-06 Richard Henderson <rth@redhat.com>
8142 PR optimization/5844
8143 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
8144 if used indicates we've already emitted one copy of an operand.
8145 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8146 (gen_split): Supply a non-null used.
8148 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8150 * reload1.c (reload): Unshare all rtl after reload is done.
8152 * simplify-rtx.c (simplify_plus_minus): Do not abort,
8153 but simply fail if the expression is too complex to simplify.
8154 (simplify_gen_binary): Handle simplify_plus_minus failures.
8156 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
8158 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8159 consistently call delete_trivially_dead_insns after CSE and GCSE;
8160 fix DFI_life dumping; do jump threading after liveness; do crossjumping
8161 after liveness2; update comment in last crossjumping.
8162 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8164 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
8166 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8167 after completing fast dead code elimination.
8169 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8172 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
8174 * version.c: Fix misplaced leading blanks on first line.
8176 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
8178 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8180 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
8182 * cfgcleanup.c (mentions_nonequal_regs): New function.
8183 (thread_jump): Use it.
8184 * toplev.c (rest_of_compilation): Run jump threading after
8187 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8189 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8192 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
8194 * predict.c (estimate_bb_frequencies): Do not reload the
8195 frequencies from notes.
8197 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
8199 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8200 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8202 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8203 delete_noop_moves): Return indeger.
8204 * flow.c (ndead): New variable.
8205 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8206 BB argument; update callers.
8207 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8208 (life_analysis): Do not call purge_all_dead_edges.
8209 (update_life_info): Return number of deleted insns; print statistics.
8210 (update_life_info_in_dirty_blocks): likewise.
8211 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8212 return number of insns deleted.
8214 * cse.c: Include timevar.h
8215 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8216 iterate until stabilizes; print statistics; return number of killed
8218 * Makefile.in: (cse.o): Add timevar.h dependency
8219 * rtl.h (delete_trivially_dead_insns): New.
8220 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8221 * toplev.c (rest_of_compilation): Update callers.
8223 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8224 (try_optimize_cfg): Do not update liveness.
8225 (cleanup-cfg): Loop until try_optimize_cfg and dead code
8226 removal stabilizes; use delete_trivially_dead_insns.
8228 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8230 2002-03-05 Zack Weinberg <zack@codesourcery.com>
8232 * cppmain.c (setup_callbacks): Disable #pragma and #ident
8233 callbacks when processing assembly language.
8235 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8237 * pa.h (ASM_FILE_END): Define.
8238 * som.h (ASM_FILE_END): Delete.
8240 * pa.c (function_arg): Don't pass floats in general registers in
8241 indirect calls if TARGET_ELF32.
8243 2002-03-05 Richard Henderson <rth@redhat.com>
8245 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8247 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
8249 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8251 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8253 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8254 -r command line. Don't hide any symbols if not building
8257 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
8259 * cfg.c (dump_flow_info): Warn about profile mismatches.
8260 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8261 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8263 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8265 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8266 wide volatile memory by parts.
8268 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8270 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8273 2002-03-05 Richard Henderson <rth@redhat.com>
8275 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8277 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8279 * toplev.c (documented_lang_options): Document more
8280 language-specific options.
8281 * doc/invoke.texi (Warning Options): Correct documentation for
8282 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8283 * c-decl.c (c_decode_option): Use a table to handle warning options.
8285 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
8287 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8288 parameter to mmix_encode_section_info.
8289 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8290 relocatably. Always produce ELF, not mmo if linking relocatably.
8291 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8292 first is non-zero, don't add symbol prefix.
8293 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8294 prototype accordingly.
8296 2002-03-04 Krister Walfridsson <cato@df.lth.se>
8298 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8300 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
8302 * configure.in: Increase required makeinfo version to 4.1.
8303 * configure: Regenerate.
8305 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8307 * .cvsignore: Remove *.info* and genrtl*; these files are generated
8310 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
8312 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8313 * doc/invoke.texi: Fix @math uses.
8315 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8317 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8320 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
8322 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8323 (powerpc-*-eabisimaltivec*): Same.
8325 * config/rs6000/t-ppcendian: New.
8327 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8329 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8330 nonimmediate_src_operand and nonimmediate_lsrc_operand to
8331 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8333 2002-03-03 Richard Henderson <rth@redhat.com>
8335 * toplev.c (rest_of_decl_compilation): Revert last two changes.
8337 2002-03-03 Zack Weinberg <zack@codesourcery.com>
8339 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8340 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8341 tree.c, config/m68k/m68k.c:
8342 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8343 REAL_ARITHMETIC blocks unconditional. Delete some further
8344 #ifdef blocks predicated on REAL_ARITHMETIC.
8345 * flags.h, toplev.c: Delete remaining references to
8348 * doc/invoke.texi: Remove documentation of -fpretend-float.
8349 * doc/tm.texi: Describe the various REAL_* macros as provided by
8350 real.h, not by the target configuration files.
8352 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8353 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8354 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8355 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8356 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8357 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8358 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8359 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8360 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8361 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8362 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8363 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8364 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8365 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8366 config/xtensa/xtensa.h:
8367 Do not define, undefine, or mention in comments any of
8368 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8369 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8370 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8371 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8372 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8373 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8374 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8375 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8376 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8378 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8380 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8381 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8382 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8383 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8384 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8385 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8387 * defaults.h (BITS_PER_WORD): Define.
8388 * doc/tm.texi (BITS_PER_WORD): Document default value.
8390 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8391 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8392 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8394 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8396 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8397 lieu of explicit sizeof/sizeof.
8398 * i386.c (override_options, ix86_init_mmx_sse_builtins,
8399 ix86_expand_builtin): Likewise.
8400 * mips.c (mips_add_gc_roots): Likewise.
8401 * mmix.c (mmix_output_condition): Likewise.
8402 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8403 altivec_init_builtins): Likewise.
8404 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8405 * cppexp.c (Nsuff, parse_number): Likewise.
8406 * cppinit.c (builtin_array_end): Likewise.
8407 * gcc.c (n_default_compilers, process_command): Likewise.
8408 * genpreds.c (output_predicate_decls): Likewise.
8409 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8410 * lcm.c (N_ENTITIES): Likewise.
8411 * stor-layout.c (set_sizetype): Likewise.
8413 2002-03-03 Richard Henderson <rth@redhat.com>
8415 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8416 for types or labels.
8418 2002-03-03 Richard Henderson <rth@redhat.com>
8420 * c-decl.c (start_decl): Initialized variables are not common.
8422 2002-03-02 Per Bothner <per@bothner.com>
8424 * gcc.c (option_map): Suport new --bootclasspath option.
8425 --CLASSPATH is now just an alias for --classpath.
8427 2002-03-02 Richard Henderson <rth@redhat.com>
8429 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8430 load if "internal" visibility.
8431 * doc/extend.texi: Document visibility meanings.
8433 2002-03-02 Richard Henderson <rth@redhat.com>
8435 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8436 to functions as well.
8438 2002-03-02 Richard Henderson <rth@redhat.com>
8440 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8441 (handle_visibility_attribute): Don't call assemble_visibility.
8442 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8443 without asmspec. Invoke assemble_alias when needed.
8444 * varasm.c (maybe_assemble_visibility): New.
8445 (assemble_start_function, assemble_variable, assemble_alias): Use it.
8447 2002-03-02 Richard Henderson <rth@redhat.com>
8449 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8450 invoke ENCODE_SECTION_INFO with first call flag.
8452 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8453 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8454 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8455 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8456 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8457 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8458 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8459 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8460 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8461 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8462 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8463 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8464 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8465 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8466 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8467 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8468 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8469 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8470 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8471 config/sh/sh.h, config/sparc/sparc.h,
8472 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8473 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8474 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8475 FIRST argument. As needed, examine it and do nothing.
8477 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8478 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8479 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8481 * config/arm/t-pe (pe.o): Add dependencies.
8483 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8485 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8486 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8487 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8488 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8489 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8490 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8491 * defaults.h (BITS_PER_UNIT): Define.
8492 * doc/tm.texi (BITS_PER_UNIT): Document default value.
8494 2002-03-02 Kazu Hirata <kazu@hxi.com>
8496 * config/h8300/h8300-protos.h: Add a prototype for
8497 compute_a_shift_length.
8498 * config/h8300/h8300.c (h8300_asm_insn_count): New.
8499 (compute_a_shift_length): Likewise.
8500 (h8300_adjust_insn_length): Do not adjust insn length of shift
8502 * config/h8300/h8300.md (anonymous shift patterns): Use
8503 compute_a_shift_length.
8505 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8507 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8510 * emit-rtl.c (offset_address): Call update_temp_slot_address.
8512 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8514 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8515 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8516 * flags.h (flag_zero_initialized_in_bss): Declare.
8517 * toplev.c (flag_zero_initialized_in_bss): New flag.
8518 (lang_independent_options): Add flag_zero_initialized_in_bss.
8519 * tree.c (initializer_zerop): New function.
8520 * tree.h (initializer_zerop): Declare.
8521 * varasm.c (assemble_variable): If we can emit bss, put zero
8522 initializers in the bss section.
8524 2002-03-02 Alan Modra <amodra@bigpond.net.au>
8526 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8527 like more than one symbol per .weak directive.
8529 2002-03-01 Richard Henderson <rth@redhat.com>
8531 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8532 adjust argument_pointer by pretend_args_size.
8533 (ia64_va_start): Adjust va_start address by -pretend_args_size.
8535 2002-03-01 Kazu Hirata <kazu@hxi.com>
8537 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8539 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
8541 * toplev.c (rest_of_compilation): Delete dead jumptables before
8543 * flow.c (delete_dead_jumptables): Make global.
8544 * rtl.h (delete_dead_jumptables): Declare.
8546 2002-03-01 David Edelsohn <edelsohn@gnu.org>
8548 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8549 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8550 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8552 2002-03-01 Kazu Hirata <kazu@hxi.com>
8554 * config/h8300/h8300-protos.h: Fix formatting.
8555 * config/h8300/h8300.c: Likewise.
8556 * config/h8300/h8300.h: Likewise.
8558 2002-03-01 Kazu Hirata <kazu@hxi.com>
8560 * config/h8300/h8300.c (print_operand): Support 16-bit
8562 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8564 2002-02-28 Richard Henderson <rth@redhat.com>
8566 * expmed.c (store_bit_field): Prevent generation of CONCATs;
8567 pun complex values as integers; use gen_lowpart instead of
8569 (extract_bit_field): Likewise.
8571 2002-03-01 Alan Modra <amodra@bigpond.net.au>
8572 David Edelsohn <edelsohn@gnu.org>
8574 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8575 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8576 (SUPPORTS_WEAK): Likewise.
8577 * output.h (add_weak): Add tree param.
8578 * varasm.c (add_weak): Likewise. Save decl.
8579 (struct weak_syms): Add decl field.
8580 (mark_weak_decls): New function.
8581 (init_varasm_once): ggc_add_root mark_weak_decls.
8582 (assemble_start_function): Use ASM_WEAKEN_DECL.
8583 (assemble_variable): Likewise.
8584 (assemble_alias): Likewise.
8585 (declare_weak): Pass decl to add_weak.
8586 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8587 (remove_from_pending_weak_list): Declare and define for
8589 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8590 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8591 * defaults.h (SUPPORTS_WEAK): Likewise.
8592 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8593 .weak for code sym. Do emit .size for descriptor sym.
8594 (ASM_DECLARE_FUNCTION_SIZE): Define.
8595 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8596 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
8597 .lglobl unless TARGET_XCOFF. Formatting fixes.
8598 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8600 (HANDLE_PRAGMA_WEAK): Remove.
8601 (ASM_WEAKEN_LABEL): Remove.
8602 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8604 2002-03-01 Jason Merrill <jason@redhat.com>
8606 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8607 (TARGET_EXPR_CLEANUP): New macro.
8609 2002-02-28 Steve Ellcey <sje@cup.hp.com>
8611 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8612 to take ptr_extend into account as third type of extension.
8613 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8614 fields used by SUBREG_PROMOTED_UNSIGNED_P.
8615 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8616 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8617 * calls.c (precompute_arguments): Use new macro.
8618 (expand_call): Ditto.
8619 * combine.c (nonzero_bits): Ditto.
8620 (record_promoted_value): Ditto.
8621 * expr.c (store_expr): Ditto.
8622 (expand_expr): Ditto.
8623 * function.c (assign_parms): Ditto.
8625 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
8627 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8628 override -shared and -shared-libgcc.
8630 2002-02-28 David O'Brien <obrien@FreeBSD.org>
8632 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8634 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
8637 2002-02-28 Richard Henderson <rth@redhat.com>
8639 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8640 4 cycle latency from MM producers.
8641 (ia64_internal_sched_reorder): Likewise with pipeline flush.
8643 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8645 * mklibgcc.in: Don't use GNU make extension.
8647 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8649 * c-parse.in (STATIC): New terminal.
8650 (scspec): New non-terminal. Update productions accordingly.
8651 (program): Remove bogus ifc / end ifc.
8652 (array_declarator): Simplify production using STATIC.
8654 2002-02-28 Jim Meyering <meyering@lucent.com>
8656 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8657 \a still means TARGET_BELL.
8659 2002-02-28 Richard Henderson <rth@redhat.com>
8661 * haifa-sched.c (sched_emit_insn): New.
8662 (schedule_block): Use last_scheduled_insn to track last insn.
8663 * sched-int.h (sched_emit_insn): Prototype.
8664 * config/ia64/ia64.c (last_issued): Remove.
8665 (ia64_variable_issue): Don't set it.
8666 (nop_cycles_until): Use sched_emit_insn.
8668 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
8670 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8673 2002-02-28 Kazu Hirata <kazu@hxi.com>
8675 * config/h8300/h8300.c: Fix formatting.
8676 * config/h8300/h8300.h: Likewise.
8678 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
8680 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8681 which may overwrite the high byte of the frame pointer.
8683 2002-02-28 Bo Thorsen <bo@suse.de>
8685 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8686 (STARTFILE_SPEC): Add 64 bit files.
8687 (ENDFILE_SPEC): Likewise.
8689 2002-02-28 Jason Merrill <jason@redhat.com>
8691 * c-decl.c (finish_function): Only warn about missing return
8692 statement with -Wreturn-type.
8694 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
8696 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8698 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8699 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8701 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
8703 * basic-block.h (BB_REACHABLE): Renumber.
8704 (BB_DIRTY, BB_NEW): New flags.
8705 (clear_bb_flags): Declare.
8706 (update_life_info_in_dirty_blocks): Declare.
8707 * cfg.c (clear_bb_flags): New function.
8708 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8709 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8710 reorder_insns, emit_insn_after): Mark block as dirty.
8711 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8712 (update_life_info_in_dirty_blocks): New function.
8713 * recog.c (apply_change_group): Dirtify block.
8715 * cse.c (cse_insn): Reorder emitting of jump insn to keep
8717 * gcse.c (delete_null_pointer_checks): Likewise.
8719 * toplev.c (dump_file_index): Move cse2 after bp,
8721 (dump_file_info): Similary.
8722 (rest_of_compilation): Avoid most of CFG rebuilds;
8723 do first if converision after null pointer checks, do cse2
8724 after branch prediction; avoid full liveness rebuild after
8725 initializing subregs.
8726 * invoke.texi (-d options): Document -du, renumber.
8728 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8729 (notice_new_block): Do not set BB_UPDATE_LIFE.
8730 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8731 merge_blocks_move_successor_nojumps, merge_blocks,
8732 try_crossjump_to_edge): Likewise.
8733 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8734 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8735 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8736 (merge_of_block): Do not use life_data_ok.
8737 (find_if_case_1): Do not use SET_UPDATE_LIFE.
8738 (if_convert): Use BB_DIRTY mechanizm to update life.
8739 * lcm.c (optimize_mode_switching): Update
8740 update_life_info_in_dirty_blocks
8742 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8744 * Makefile.in (integrate.o): Update.
8745 * c-decl.c (copy_lang_decl): Rename.
8746 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8747 * integrate.c: Include langhooks.h.
8748 (copy_decl_for_inlining): Update to use langhook.
8749 * langhooks-def.h (lhd_do_nothing_t,
8750 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8751 (LANG_HOOKS_INITIALIZER): Update.
8752 * langhooks.c (lhd_do_nothing_t): New.
8753 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8754 * tree.h (copy_lang_decl): Remove.
8756 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8758 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
8760 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8761 POST_DEC, and POST_MODIFY.
8763 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8765 * c-typeck.c (digest_init): Remove unused parameter; all
8768 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
8770 * expmed.c (expand_shift): Correctly test for low part of a
8773 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8775 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8776 insn UIDs with insn addresses.
8778 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8780 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8781 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8782 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8783 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8784 gcc.c, toplev.c: Delete code implementing -traditional mode.
8786 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8787 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8788 Document removal of -traditional mode for compilation, and
8789 remove documentation only relevant to that mode.
8791 * config/nextstep.h, config/ptx4.h, config/svr4.h,
8792 config/convex/convex.h, config/d30v/d30v.h,
8793 config/i386/dgux.h, config/i386/osf1elf.h,
8794 config/i386/osfelf.h, config/i386/osfrose.h,
8795 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8796 config/m68k/hp310.h, config/m88k/dgux.h,
8797 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8798 config/m88k/m88k.h, config/m88k/openbsd.h,
8799 config/mips/abi64.h, config/mips/osfrose.h,
8800 config/mips/svr4-5.h, config/mips/svr4-t.h,
8801 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8802 config/stormy16/stormy16.h: Remove all references to
8803 -traditional from target specs. Delete all mention of the
8804 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
8805 delete a couple of commented-out definitions of
8806 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8809 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8810 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8812 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8814 * mklibgcc.in: Don't use \n in a line subject to
8815 interpretation by echo.
8817 2002-02-27 Graham Stott <grahams@redhat.com>
8819 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8822 * loop.c (prescan_loop): Handle PARALLEL.
8824 * unroll.c (loop_iterations): Return 0 if the add_val for
8827 * final.c (output_operand_lossage): Constify PFX_STR.
8829 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8831 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
8833 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8834 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8836 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
8838 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8840 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
8842 * cpplex.c (_cpp_lex_token): Handle directives in macro
8844 * cpplib.c (_cpp_handle_directive): Save and restore state
8845 if parsing macro args when entering a directive.
8846 * cppmacro.c (collect_args): No need to handle directives
8848 (enter_macro_context, replace_args): Use the original macro
8849 definition in case it was redefined whilst collecting arguments.
8853 2002-02-26 David Edelsohn <edelsohn@gnu.org>
8855 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8856 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8857 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8859 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8860 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8861 (load_toc_v4_PIC_2): Same.
8863 2002-02-26 Alan Modra <amodra@bigpond.net.au>
8865 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8867 2002-02-26 Richard Henderson <rth@redhat.com>
8869 * config/alpha/alpha.md (ashldi_se): Re-enable.
8871 2002-02-26 Richard Henderson <rth@redhat.com>
8873 * config/alpha/alpha.c (alpha_encode_section_info): Examine
8874 MODULE_LOCAL_P; improve commentary.
8876 2002-02-26 Zack Weinberg <zack@codesourcery.com>
8878 * doc/cpp.texi: Clarify documentation of relationship between
8881 2002-02-26 Kazu Hirata <kazu@hxi.com>
8883 * config/h8300/h8300-protos.h: Update the prototype for
8884 compute_logical_op_length. Add the prototype for
8885 compute_logical_op_cc.
8886 * config/h8300/h8300.c (compute_logical_op_length): Figure out
8888 (compute_logical_op_cc): New.
8889 * config/h8300/h8300.md: Combine all the logical op patterns
8890 in HImode and SImode. Use compute_logical_op_cc.
8892 2002-02-26 Kelley Cook <kelleycook@comcast.net>
8894 * config/i386/i386.c (print_operand): Don't append ATT-style
8895 length suffixs to x87 opcodes when in Intel mode.
8897 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
8899 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8900 (init_emit_once): Update calls.
8901 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8902 (init_syntax_once): Prototype.
8904 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8906 * pa-linux.h (LIB_SPEC): Update definition.
8907 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8909 2002-02-26 Richard Henderson <rth@redhat.com>
8911 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8912 if we emitted a stop bit.
8914 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8916 * configure.in (libgcc_visibility): Substitute.
8917 * configure: Rebuilt.
8918 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8919 defined symbols .hidden.
8921 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8923 * attribs.c (c_common_attribute_table): Add visibility.
8924 (handle_visibility_attribute): New function.
8925 * varasm.c (assemble_visibility): New function.
8926 * output.h (assemble_visibility): Add prototype.
8927 * tree.h (MODULE_LOCAL_P): Define.
8928 * crtstuff.c (__dso_handle): Use visibility attribute.
8929 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8930 for MODULE_LOCAL_P symbols too.
8931 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8932 MODULE_LOCAL_P symbols the same way as local symbols.
8933 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8934 into .sdata/.sbss by the user.
8935 * doc/extend.texi (Function Attributes): Document visibility
8938 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8941 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8942 STRING_CST initializer spanning the whole variable without
8944 If expand_expr returned MEM, don't use it.
8946 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8948 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8949 generate a die for the lexical block.
8951 2002-02-26 Kazu Hirata <kazu@hxi.com>
8953 * config/h8300/h8300-protos.h: Add a prototype for
8954 compute_logical_op_length.
8955 * config/h8300/h8300.c (compute_logical_op_length): New.
8956 * config/h8300/h8300.md (anonymous logical patterns): Use
8957 compute_logical_op_length for length.
8959 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8961 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8963 (gen_type_die): Same.
8965 * attribs.c (handle_vector_size_attribute): Set debug information.
8967 2002-02-26 Daniel Egger <degger@fhm.edu>
8969 * config/rs6000/rs6000.md: Swap define_insn attributes to
8970 fix incorrect generation of merge high instructions instead
8973 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8975 * c-typeck.c (really_start_incremental_init): Use
8976 bitsize_zero_node for vectors.
8978 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8980 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8981 ("*set_vrsave_internal"): Same.
8983 2002-02-25 Richard Henderson <rth@redhat.com>
8985 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8986 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8988 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8991 * config/i386/i386.c (ix86_return_pops_args): Only pop
8992 fake structure return argument if it was passed on the stack.
8994 2002-02-25 Jason Merrill <jason@redhat.com>
8996 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8999 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9001 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9002 link with shared_name only.
9003 * doc/invoke.texi (Link Options): Document new behavior.
9005 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9007 * c-typeck.c (push_init_level): Handle vectors.
9009 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9011 * config/sparc/sparc.c (const64_high_operand): Zero-extend
9012 operands of SPARC_SETHI_P.
9013 (input_operand): Likewise.
9014 (sparc_emit_set_const32): Likewise.
9015 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9016 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9017 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
9018 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9019 (movdi_insn_sp64_vis): Likewise.
9020 (movdi split, movdf split): Use SETHI32.
9021 * doc/md.texi: Document SPARC constraints L, M and N.
9023 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9025 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9026 ("*set_vrsave_internal"): use mfspr for Darwin.
9028 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9029 gen_get_vrsave_internal.
9031 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9033 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9035 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
9037 * cpplex.c (cpp_interpret_charconst): Get signedness or
9038 otherwise of wide character constants correct.
9039 * cppexp.c (lex): Get signedness of wide charconsts correct.
9041 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9043 * optabs.c (widen_operand): Only call convert_modes for
9044 promoted SUBREG if signedness matches.
9045 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9047 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9049 * cpplib.c (glue_header_name): Use local buffer to build up
9052 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9054 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9056 2002-02-23 Kazu Hirata <kazu@hxi.com>
9058 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9059 H8/300[HS] separately.
9060 * config/h8300/h8300.md: Remove the early clobber constraint
9061 from bit field patterns.
9063 2002-02-23 Kazu Hirata <kazu@hxi.com>
9065 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9067 (mulhisi3): Likewise.
9068 (umulqisi3): Likewise.
9069 (umulhisi3): Likewise.
9071 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9073 * cppinit.c (output_deps): Correct test for stdout output.
9074 (init_dependency_output): Cure warning.
9076 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9078 * expr.c (store_expr): When converting expression to promoted
9079 equivalent type, allow using SUBREG_REG of TARGET as the target
9080 of the expansion of EXP.
9081 * loop.c (basic_induction_var, case SUBREG): Always look inside.
9082 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9083 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9084 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9085 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9087 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
9089 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9090 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9091 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9093 2002-02-23 Jakub Jelinek <jakub@redhat.com>
9095 PR optimization/5747
9096 * loop.c (scan_loop): Update reg info if move_movables created new
9099 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9101 * gcc.c (init_gcc_spec): Revert last change.
9103 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9105 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9106 gpc_reg_operand constraint.
9108 2002-02-23 Alan Modra <amodra@bigpond.net.au>
9110 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9111 Simplify comparison of `low'.
9112 (add_operand): Fix formatting.
9113 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9114 (mask_operand): Disallow mask to wrap in 64-bit mode.
9115 (rs6000_stack_info): Remove redundant test setting push_p.
9116 (output_toc): Fix formatting.
9117 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9118 cc_reg_not_cr0_operand constraint.
9119 (booldi3, boolcdi3 splitters): Same.
9121 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
9123 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9125 2002-02-22 David Edelsohn <edelsohn@gnu.org>
9127 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9128 gcc invoked with -shared-libgcc.
9130 2002-02-22 Jakub Jelinek <jakub@redhat.com>
9133 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9134 decl if any of elements was TREE_USED.
9136 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
9138 * config/sparc/sol2.h: Don't include sys/mman.h.
9139 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9140 (arith_4096_operand): Don't throw high bits away.
9141 (const64_operand): Take sign extension of CONST_INTs into account.
9142 (const64_high_operand, sparc_emit_set_const32): Likewise.
9143 (GEN_HIGHINT64): Likewise.
9144 (sparc_emit_set_const64_quick1): Likewise.
9145 (const64_is_2insns): Likewise.
9146 (print_operand): Use trunc_int_for_mode for sign extension.
9147 * config/sparc/sparc.h (SMALL_INT32): Likewise.
9148 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9149 chars. Assume CONST_INT is already properly sign-extended.
9150 (movdi split): Sign-extend each SImode part.
9151 (andsi3 split): Don't mask high bits off, so that result
9152 remains properly sign-extend.
9153 (iorsi3 split): Likewise.
9154 (xorsi3 split): Likewise.
9156 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
9158 * fold-const.c (fold): Fix typo in comments.
9160 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9162 * Makefile.in (langhooks.o): Update dependencies.
9164 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9166 * langhooks.c: Include flags.h.
9168 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
9170 * testsuite/gcc.dg/attr-alwaysinline.c: New.
9172 * c-common.c (c_common_post_options): Set inline trees by
9175 * doc/extend.texi (Function Attributes): Document always_inline
9177 Update documentation about inlining when not optimizing.
9179 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9181 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9182 unless DECL_ALWAYS_INLINE.
9184 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9185 unless DECL_ALWAYS_INLINE.
9186 (c_disregard_inline_limits): Disregard if always_inline set.
9188 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9189 Disregard if always_inline set.
9190 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9191 unless DECL_ALWAYS_INLINE.
9193 * attribs.c (handle_always_inline_attribute): New.
9194 (c_common_attribute_table): Add always_inline.
9196 * config/rs6000/altivec.h: Add prototypes for builtins
9197 requiring the always_inline attribute.
9199 2002-02-21 Eric Christopher <echristo@redhat.com>
9201 * expmed.c (store_bit_field): Try to simplify the subreg
9202 before generating a new one when when the mode size of
9203 value is less than maxmode.
9205 2002-02-21 Richard Henderson <rth@redhat.com>
9207 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9208 than gen_rtx_PLUS to form the sum.
9209 * explow.c (force_reg): Rearrange to not allocate new pseudo
9210 when force_operand returns a register.
9211 * expr.c (expand_assignment): Allow offset_rtx expansion to
9212 return a sum. Do not force addresses into registers.
9213 (expand_expr): Likewise.
9214 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9215 to canonicalize arithmetic that didn't simpify.
9216 (simplify_plus_minus): New argument force; update
9217 all callers. Don't split CONST unless we can do something with it,
9218 and wouldn't lose the constness of the operands.
9220 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9221 that we generated earlier.
9223 2002-02-21 Tom Tromey <tromey@redhat.com>
9225 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9226 (output_line_info): Use constant `1', with a long explanatory
9228 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9230 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
9232 * jump.c (redirect_jump): If old label has no UID, don't try to
9235 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
9237 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9238 If input is constant, do shifts at compile time.
9240 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
9242 * doc/extend.texi: Fix some more overfull hboxes.
9244 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9246 PR optimization/4994
9247 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9250 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9253 * expr.h (expand_and): Add mode argument.
9254 * expmed.c (expand_and): Add mode argument.
9255 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9256 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9257 * except.c (expand_builtin_extract_return_addr): Likewise.
9258 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9259 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9260 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9261 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9262 * config/c4x/c4x.md: Use GEN_INT (x) instead of
9263 gen_rtx (CONST_INT, VOIDmode, x).
9265 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9268 * stmt.c (warn_if_unused_value): Move side effects test once more.
9270 2002-02-20 Torbjorn Granlund <tege@swox.com>
9272 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9273 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9275 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
9277 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9278 SUBREG or ZERO_EXTEND.
9280 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
9282 * sh.h (current_function_anonymous_args): Remove.
9283 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9284 of current_function_varargs and current_function_stdarg is set.
9285 * sh.c (sh_expand_prologue): Check current_function_varargs /
9286 current_function_stdarg / TARGET_SH5 instead of
9287 current_function_anonymous_args.
9289 * sh64.h (TARGET_VERSION): Define.
9291 2002-02-20 David Edelsohn <edelsohn@gnu.org>
9293 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9294 VRSAVE_REGNO on TARGET_ALTIVEC.
9296 2002-02-20 Alan Modra <amodra@bigpond.net.au>
9298 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9299 bits of SImode const_int.
9300 (includes_rshift_p): Likewise.
9301 (print_operand): Call mask_operand and mask64_operand with correct
9303 (rs6000_output_function_epilogue): Pad traceback table to word.
9304 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9305 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9306 mask64_operand with correct mode.
9307 (FUNCTION_ARG_REGNO_P): Correct parentheses.
9309 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9312 * varasm.c (get_pool_constant_mark): New.
9313 * rtl.h (get_pool_constant_mark): Add prototype.
9314 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9315 be represented if it has not been output.
9317 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9319 * combine.c (do_SUBST): Sanity check substitutions of
9320 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9321 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9322 CONST_INT into its operand.
9323 (known_cond): Likewise, for ZERO_EXTEND.
9324 * simplify-rtx.c (simplify_unary_operation): Fix condition to
9325 allow for simplification of wide modes. Reject CONST_INTs in
9326 ZERO_EXTEND when their actual mode is not given.
9328 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9330 * c-decl.c (pushdecl): If no global declaration is found for an
9331 extern declaration in block scope, try a limbo one.
9333 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9336 * c-common.c (pointer_int_sum): Moved from...
9337 * c-typeck.c (pointer_int_sum): ...here.
9338 * c-common.h (pointer_int_sum): Add prototype.
9340 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9343 * c-decl.c (duplicate_decls): Return 0 if issued error about
9346 2002-02-20 Roger Sayle <roger@eyesopen.com>
9347 Jakub Jelinek <jakub@redhat.com>
9350 * tree.c (host_integerp): Ensure that the constant integer is
9351 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9352 when pos is zero or non-zero respectively. Clarify comment.
9353 * c-format.c (check_format_info_recurse): Fix host_integerp
9354 usage; the pos argument should be zero when assigning to a
9355 signed HOST_WIDE_INT.
9357 2002-02-20 Richard Henderson <rth@redhat.com>
9359 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9360 of the operand, rather than assuming TImode.
9361 (ix86_expand_binop_builtin): Cope with commutative patterns
9362 using nonimmediate_operand for both operands.
9363 (ix86_expand_timode_binop_builtin): Likewise.
9364 (ix86_expand_store_builtin): Validate operand 1.
9365 (ix86_expand_unop1_builtin): Likewise.
9367 2002-02-20 Philip Blundell <philb@gnu.org>
9370 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9372 2002-02-20 Richard Henderson <rth@redhat.com>
9375 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9377 2002-02-20 Tom Tromey <tromey@redhat.com>
9379 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9380 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9381 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9382 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9383 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9386 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9388 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9389 for (const_int 0) in X not just INTVAL.
9391 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
9393 * doc/extend.texi: Avoid or reduce overfull hboxes.
9395 2002-02-20 Diego Novillo <dnovillo@redhat.com>
9397 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9398 operations if the field does not start at a mode boundary.
9400 2001-02-20 Joel Sherrill <joel@OARcorp.com>
9402 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9403 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9404 Also done for -Acpu and -Amachine.
9406 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9408 * cppinit.c (init_dependency_output): Take deps output file
9409 from -o if none given with -MF. Suppress normal output.
9410 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9411 * doc/cpp.texi, doc/invoke.texi: Update.
9413 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9415 * toplev.c (output_quoted_string): Write unprintable
9416 characters with octal escapes.
9418 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9420 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9421 really_call_used[VRSAVE_REGNO] if not Altivec.
9423 2002-02-19 Alan Modra <amodra@bigpond.net.au>
9425 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9427 (constant_pool_expr_1): Fix formatting.
9428 (rs6000_legitimize_reload_address): Likewise.
9430 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9432 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9433 now that we have one.
9435 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9437 * tree.h (struct tree_common): Remove aux. Add unused_0 at
9438 end of first block of bitfields (which was only seven bits);
9439 rename dummy to unused_1; remove comment which is no longer true.
9441 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9443 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9445 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9448 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9452 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9453 arm_is_longcall_p rather than inspecting call-type cookie
9455 (call_value_insn) [TARGET_THUMB]: Likewise.
9457 2002-02-19 Graham Stott <grahams@redhat.com>
9459 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9461 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9463 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9464 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9465 (FP_SAVE_INLINE): Delete.
9467 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9468 * config/rs6000/eabi.asm: Remove ABI save restore routines.
9469 * config/rs6000/t-ppccomm: Build crtsavres.o.
9470 * config/rs6000/crtsavres.asm: New file.
9472 2002-02-19 Philip Blundell <philb@gnu.org>
9474 * config/arm/arm.c (use_return_insn): Don't reject interrupt
9476 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9477 (output_return_instruction): Allow interrupt functions to return with
9478 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
9479 (arm_expand_prologue): Subtract 4 before stacking LR in an
9482 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9484 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9485 decl, not just FUNCTION_DECL.
9486 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9487 (arm_assemble_integer): Likewise.
9488 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9491 2002-02-19 matthew green <mrg@eterna.com.au>
9493 * config.gcc (sparc-*-netbsdelf*): Enable target.
9494 (sparc64-*-netbsd*): New target.
9495 * config/sparc/netbsd-elf.h: New file.
9496 * config/sparc/t-netbsd64: New file.
9498 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9500 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9502 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
9504 * doc/invoke.texi: explicitly list the style guidelines that
9505 -Weffc++ checks for.
9507 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
9509 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9511 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
9514 * gcc.c (cpp_unique_options): Treat -o as indicating object file
9515 only if not -E. If -E, pass -o through to the preprocessor.
9517 2002-02-19 Kazu Hirata <kazu@hxi.com>
9519 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9520 register number with an appropriate macro.
9522 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9524 * doc/rtl.texi (Constants): Close @code tag.
9526 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
9528 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9529 ("mmx_uavgv4hi3"): Same.
9530 ("pmulhrwv4hi3"): Same.
9532 * tree-inline.c (walk_tree): Handle vectors.
9534 * c-common.c (constant_expression_warning): Handle vectors.
9535 (overflow_warning): Same.
9537 * sched-deps.c (sched_analyze_2): Handle vectors.
9539 * rtlanal.c (rtx_unstable_p): Handle vectors.
9540 (rtx_varies_p): Same.
9541 (count_occurrences): Same.
9542 (regs_set_between_p): Same.
9543 (modified_between_p): Same.
9544 (modified_in_p): Same.
9545 (volatile_insn_p): Same.
9546 (volatile_refs_p): Same.
9547 (side_effects_p): Same.
9549 (inequality_comparisons_p): Same.
9550 (replace_regs): Same.
9551 (computed_jump_p_1): Same.
9553 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9555 (inner_mode_array): New.
9556 (copy_rtx): Handle vectors.
9557 (copy_most_rtx): Same.
9558 (rtx_equal_p): Same.
9559 (get_mode_alignment): Adjust for vectors.
9561 * resource.c (mark_referenced_resources): Handle vectors.
9562 (mark_set_resources): Same.
9564 * reload1.c (eliminate_regs): Handle vectors.
9565 (elimination_effects): Same.
9566 (scan_paradoxical_subregs): Same.
9568 * reload.c (subst_reg_equivs): Handle vectors.
9570 * regrename.c (scan_rtx): Handle vectors.
9572 * regclass.c (reg_scan_mark_refs): Handle vectors.
9574 * recog.c (find_single_use_1): Handle vectors.
9576 * local-alloc.c (equiv_init_varies_p): Handle vectors.
9577 (contains_replace_regs): Same.
9578 (memref_referenced_p): Same.
9580 * integrate.c (copy_rtx_and_substitute): Handle vectors.
9581 (subst_constants): Same.
9583 * genattrtab.c (attr_copy_rtx): Handle vectors.
9584 (encode_units_mask): Same.
9585 (clear_struct_flag): Same.
9586 (count_sub_rtxs): Same.
9588 * gcse.c (want_to_gcse_p): Handle vectors.
9589 (oprs_unchanged_p): Same.
9590 (hash_expr_1): Same.
9591 (oprs_not_set_p): Same.
9592 (expr_killed_p): Same.
9593 (compute_transp): Same.
9594 (store_ops_ok): Same.
9596 * function.c (purge_addressof_1): Do not allow paradoxical subregs
9598 (fixup_var_refs_1): Same.
9599 (instantiate_virtual_regs_1): Same.
9601 * fold-const.c (operand_equal_p): Handle vectors.
9603 (rtl_expr_nonnegative_p): Same.
9605 * flow.c (mark_used_regs): Handle vectors.
9607 * df.c (df_uses_record): Handle vectors.
9609 * cselib.c (cselib_subst_to_values): Handle vectors.
9610 (cselib_mem_conflict_p): Same.
9613 * cse.c (canon_reg): Handle vectors.
9615 (cse_process_notes): Same.
9616 (count_reg_usage): Same.
9619 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9621 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9623 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9624 (gen_rtx): Handle CONST_VECTOR.
9625 (gen_const_vector_0): New.
9626 (copy_rtx_if_shared): CONST_VECTORs can be shared.
9627 (reset_used_flags): Same.
9628 (copy_insn_1): Same.
9629 (initializer_constant_valid_p): Handle VECTOR_CST.
9631 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9633 * doc/rtl.texi (Constants): Document const_vector.
9634 (CONST0_RTX): Update for vectors.
9635 (RTL sharing): Same.
9637 * print-tree.c (print_node): Add case for VECTOR_CST.
9639 * tree.h (TREE_VECTOR_CST_ELTS): New.
9640 (struct tree_vector): New.
9641 (union tree_node): Add vector node.
9642 (build_vector): Add prototype.
9644 * tree.def (VECTOR_CST): New.
9646 * tree.c (build_vector): New.
9648 * expmed.c (make_tree): Handle CONST_VECTOR.
9650 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9651 (CONST_VECTOR_ELT): New.
9652 (CONST_VECTOR_NUNITS): New.
9654 * machmode.h (GET_MODE_INNER): New.
9655 (DEF_MACHMODE): Accept 8th arg.
9657 * machmode.def: Add 8th argument for vector inner mode.
9658 Add inner vector modes for vectors.
9660 * rtl.def (VEC_CONST): Remove.
9661 (CONST_VECTOR): New.
9663 * expr.c (clear_storage): Allow vectors.
9664 (is_zeros_p): Handle VECTOR_CST.
9666 * varasm.c (output_constant_pool): Handle vectors.
9667 (rtx_const): Add veclo and vechi fields.
9668 (kind): Add RTX_VECTOR.
9669 (decode_rtx_const): Add case for vector.
9671 * config/rs6000/rs6000-protos.h: Add zero_constant.
9673 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9674 constants. Force easy vector constants into memory.
9675 (easy_vector_constant): New.
9676 (emit_easy_vector_constant): New.
9677 (rs6000_legitimize_reload_address): Do not generate bad reloads on
9680 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9682 ("altivec_lvxl"): Same.
9683 (altivec_lvebx): Same.
9684 (altivec_lvehx): Same.
9685 (altivec_lvewx): Same.
9686 ("*movv4si_const0"): New.
9687 ("*movv4sf_const0"): New.
9688 ("*movv8hi_const0"): New.
9689 ("*movv16qi_const0"): New.
9691 2002-02-18 Kazu Hirata <kazu@hxi.com>
9693 * config/h8300/h8300.c (notice_update_cc): Use
9696 2002-02-18 Kazu Hirata <kazu@hxi.com>
9698 * config/h8300/h8300.md (divmod patterns): Change the
9699 constraints for operands[1] to register_operand.
9701 2002-02-18 Kazu Hirata <kazu@hxi.com>
9703 * config/h8300/h8300-protos.h: Remove the prototype for
9705 * config/h8300/h8300.c (p_operand): Remove.
9706 * config/h8300/h8300.md: Replace p_operand with
9709 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9711 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9713 (output_return_instruction): Allow use of LDR to unstack
9714 return addresss even for interrupt handlers or when
9715 interworking. If compiling for ARMv5, use interworking-safe
9716 return instructions by default. Remove duplicated code and
9717 lengthy "strcat" sequences.
9719 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9721 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9722 (LINK_EH_SPEC): Define.
9723 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9725 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
9727 * config/s390/s390.c (s390_emit_prologue): Do not set the
9728 frame_related flag for call-clobbered registers.
9730 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
9732 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9733 (construct_container): Fix handling of SSE operands.
9734 (ix86_expand_builtin): Fix handling of 64bit pointers.
9735 (mmx_maskmovq_rex): New pattern.
9737 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
9739 * regrename.c (kill_set_value): Handle subregs properly.
9741 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
9743 * objc/objc-act.c (handle_impent): Remove leading '*'
9744 from objc_class_name.
9746 2002-02-17 Richard Henderson <rth@redhat.com>
9748 * config/alpha/alpha.c (some_small_symbolic_operand,
9749 some_small_symbolic_operand_1, split_small_symbolic_operand,
9750 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9751 Handle small SYMBOL_REFs anywhere, not just inside memories.
9752 * config/alpha/alpha-protos.h: Update.
9753 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9754 * config/alpha/alpha.md (small symbolic operand splitter): Update.
9756 2002-02-17 Roland McGrath <roland@frob.com>
9758 * config.gcc (powerpc-*-gnu-gnualtivec*,
9759 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9760 * config/rs6000/gnu.h: New file.
9761 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9762 Grok "gnu" in rs6000_abi_name.
9763 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9764 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9765 Grok -mcall-gnu analogous to -mcall-linux et al.
9766 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9767 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9768 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9770 2002-02-17 Jakub Jelinek <jakub@redhat.com>
9773 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9776 2002-02-17 Philipp Thomas <pthomas@suse.de>
9778 * config/cris/cris.h: Undefine STARTFILE_SPEC and
9779 ENDFILE_SPEC before (re)defining them.
9781 2002-02-17 Kazu Hirata <kazu@hxi.com>
9783 * config/h8300/h8300.c: Fix formatting.
9784 * config/h8300/h8300.h: Likewise.
9786 2002-02-17 Philipp Thomas <pthomas@suse.de>
9788 * doc/tm.texi: Explain why empty strings should not be
9789 marked for translation.
9791 2002-02-17 Philipp Thomas <pthomas@suse.de>
9793 * final.c (output_operand_lossage): Changed to accept
9794 printf style arguments. Change calls where necessary.
9795 * output.h (output_operand_lossage): Change declaration
9796 accordingly. Update copyright.
9797 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9798 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9799 Update copyright date where necessary.
9801 * config/i386/i386.c (print_operand): Likewise. Remove use of
9804 * config/cris/cris.c (cris_operand_lossage): Likewise.
9805 Rename parameter so that exgettext recognizes it as
9806 translatable message.
9807 (LOSE_AND_RETURN): Rename parameter to msgid.
9809 2002-02-17 Kazu Hirata <kazu@hxi.com>
9811 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9812 hard coded register number with an appropriate macro.
9813 (HARD_REGNO_MODE_OK): Likewise.
9814 (ARG_POINTER_REGNUM): Likewise.
9815 (STATIC_CHAIN_REGNUM): Likewise.
9816 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9817 * config/h8300/h8300.md (define_constants): Define more
9820 2002-02-17 Philipp Thomas <pthomas@suse.de>
9822 * config/i386/i386.h: Don't mark empty strings for translation.
9824 2002-02-16 H.J. Lu <hjl@gnu.org>
9826 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9828 2002-02-16 Zack Weinberg <zack@codesourcery.com>
9830 * cppinit.c (merge_include_chains): Check for brack being
9831 NULL before attempting to merge it with qtail.
9833 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9835 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9838 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9840 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9842 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9844 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9845 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9846 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9848 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9850 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9851 now only if !TARGET_FIX.
9852 (*movsi_nt_vms_fix): New pattern.
9854 2002-02-16 Douglas B Rupp <rupp@gnat.com>
9856 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9857 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9858 (alpha_sa_mask, alpha_sa_size): Reflect above change.
9859 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9860 (alpha_start_function, alpha_expand_epilogue): Likewise.
9861 (unicosmk_gen_dsib): Likewise.
9863 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9865 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9867 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
9869 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9870 check_and_change_labels, s390_final_chunkify): Delete.
9871 (s390_split_branches, s390_chunkify_pool): New functions.
9872 (s390_function_prologue): Call them.
9874 * config/s390/s390.h (S390_REL_MAX): Delete.
9875 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9877 * config/s390/s390.md (cjump, icjump, jump): Fix length
9878 attribute calculation.
9881 2002-02-15 David Edelsohn <edelsohn@gnu.org>
9883 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9884 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9886 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9888 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9889 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9890 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9892 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9894 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9896 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9898 * reload.c (find_dummy_reload): Check that an output register
9899 is valid for its mode.
9901 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
9903 * combine.c (known_cond): After replacing the REG of a SUBREG, try
9906 * function.c (assign_parms): Demote promoted argument passed by
9907 transparent reference.
9909 2001-02-14 Joel Sherrill <joel@OARcorp.com>
9911 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9912 -Acpu() and -Amachine() to eliminate warnings.
9914 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9916 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9918 2002-02-14 Kazu Hirata <kazu@hxi.com>
9920 * config/h8300/h8300-protos.h: Update the prototype for
9922 * config/h8300/h8300.c (const_costs): Treat SET as a little
9923 more expensive operation.
9924 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9925 reference to const_costs.
9927 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9929 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9931 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9934 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9935 use arguments from newtype.
9937 2002-02-13 Eric Christopher <echristo@redhat.com>
9939 * config/mips/mips.c (override_options): Add check for march/mipsX
9940 on the same command line. Fix error message in cpu processing.
9941 Remove architecture and ISA checks.
9943 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9945 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9947 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9949 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9951 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9953 ("*movv8hi_internal1"): Same.
9954 ("*movv16qi_internal1"): Same.
9955 ("*movv4sf_internal1"): Same.
9957 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9958 not push_reload for altivec modes.
9960 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9962 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9963 all RTEMS targets including removal of #includes from config/*/rtems*.h
9964 file and adding them to tm_file setting. Added xm_defines=POSIX to
9966 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9967 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9968 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9969 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9970 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9971 config/m68k/rtemself.h: Ditto.
9972 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9973 config/mips/rtems64.h: Ditto.
9974 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9975 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9977 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9978 config/sparc/rtemself.h: Ditto.
9979 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9980 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9981 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9983 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9984 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9985 target made more similar to i386-elf.
9986 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9987 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9988 be similar to config/m68k/t-m68kelf.
9989 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9991 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9993 * regmove.c (kill_value): Handle subregs.
9995 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9997 * i386.md (mul patterns): Allow memory operand to be first;
9998 add expanders where needed; fix constraints.
9999 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10000 Allow memory operand to be the first.
10002 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10005 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10008 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10011 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10013 PR optimization/5547:
10014 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10015 all valid IA-32 address modes involving non-scaled %ebx and
10016 GOT/GOTOFF as displacement.
10018 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
10020 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10021 after emitting ltorg insns.
10023 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10024 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10025 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10026 *abssf2): Fix "op_type" attribute.
10028 2002-02-13 Douglas B Rupp <rupp@gnat.com>
10030 * mkconfig.sh: Avoid using a subshell redirect.
10031 ($output.T): Change to $(output)T.
10032 (ENABLE_NLS): Remove unneeded undef.
10034 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10035 * config/alpha/x-vms (libsubdir): Define.
10037 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10038 register frame procedures. Optimize retrieving context.
10040 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10041 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10042 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10044 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10046 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10047 Make same change as for find_base_value.
10049 2002-02-13 Kazu Hirata <kazu@hxi.com>
10051 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10052 of QImode and SImode.
10054 2002-02-13 Kazu Hirata <kazu@hxi.com>
10056 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10057 length computation of movsi.
10058 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10060 2002-02-13 Kazu Hirata <kazu@hxi.com>
10062 * config/h8300/h8300.md (subqi3): Tighten the predicate for
10063 operands[2] to register_operand.
10065 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
10067 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10069 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
10071 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10072 for altivec_lvx* and altivec_stvx*.
10073 ("*movv4si_internal"): Add constraint for loading from GPRs.
10074 ("*movv8hi_internal1"): Same.
10075 ("*movv16qi_internal1"): Same.
10076 ("*movv4sf_internal1"): Same.
10078 * config/rs6000/rs6000.c (altivec_register_operand): New.
10080 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10081 altivec_register_operand.
10083 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
10085 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10088 2002-02-13 Stan Shebs <shebs@apple.com>
10090 * c-typeck.c (digest_init): Handle vectors.
10091 (really_start_incremental_init): Same.
10092 (pop_init_level): Same.
10093 (process_init_element): Same.
10095 * varasm.c (output_constant): Same.
10097 * expr.c (clear_storage): Same.
10098 (store_constructor): Same.
10100 2002-02-12 Eric Christopher <echristo@redhat.com>
10102 * explow.c (hard_function_value): Add comment explaining
10103 signed/unsigned comparison.
10105 2002-02-12 Jakub Jelinek <jakub@redhat.com>
10107 * jump.c (never_reached_warning): Add finish argument.
10108 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10109 real insn after end.
10110 * rtl.h (never_reached_warning): Adjust prototype.
10111 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10112 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10113 never_reached_warning.
10115 2002-02-12 Graham Stott <grahams@redhat.com>
10117 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10119 2002-02-12 Kazu Hirata <kazu@hxi.com>
10121 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10122 logical shifts on H8/300.
10123 (shift_alg_si): Improve several shifts on H8/300.
10124 (get_shift_alg): Likewise.
10126 2002-02-12 Graham Stott <grahams@redhat.com>
10128 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10130 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10132 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10133 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10135 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
10137 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10138 non-CONST_INT through default_assemble_integer.
10139 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10140 <case 8>: Abort for CONST_DOUBLE.
10142 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10144 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10146 * config/pa/pa-linux.h (LIB_SPEC): Delete.
10147 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10149 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
10151 * config/stormy16/stormy16.md (zero_extendqihi2): New.
10153 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
10155 * regrename.c (regrename_optimize): Don't accept a
10156 part-clobbered register if the replaced register is not part
10159 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10160 take padding into account when computing the argument value.
10162 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10164 * combine.c (try_combine): Apply substitutions in
10165 CALL_INSN_FUNCTION_USAGE too.
10167 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
10169 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10170 __builtin_altivec_abs*.
10173 * config/rs6000/rs6000.h (rs6000_builtins): Add
10174 ALTIVEC_BUILTIN_ABS*.
10176 * config/rs6000/altivec.h: Use const char for builtins expecting
10178 (vec_abs): New versions for C and C++.
10181 2002-02-10 Kazu Hirata <kazu@hxi.com>
10183 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10186 2002-02-10 Kazu Hirata <kazu@hxi.com>
10188 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10189 constant definition from h8300.md.
10190 (FRAME_POINTER_REGNUM): Likewise.
10191 * config/h8300/h8300.md (define_constants): Add FP_REG.
10193 2002-02-10 Kazu Hirata <kazu@hxi.com>
10195 * config/h8300/h8300.c (print_operand): Remove redundant code.
10197 2002-02-10 Kazu Hirata <kazu@hxi.com>
10199 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10200 * config/h8300/h8300.c (byte_reg): Make it static.
10202 2002-02-10 Richard Henderson <rth@redhat.com>
10205 * c-typeck.c (incomplete_type_error): Handle flexible array members.
10207 2002-02-10 Richard Henderson <rth@redhat.com>
10210 * tree.c (append_random_chars): Don't abort if main_input_filename
10213 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
10215 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10217 2002-02-10 Kazu Hirata <kazu@hxi.com>
10219 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10220 (pushhi1): Likewise.
10222 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
10224 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10225 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10227 2002-02-09 David O'Brien <obrien@FreeBSD.org>
10229 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10231 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
10233 2002-02-09 Kazu Hirata <kazu@hxi.com>
10235 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10236 a half of an SImode register on H8/300.
10238 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
10240 * i386.md (movdi_2): Add missing '!'.
10242 2002-02-09 Kazu Hirata <kazu@hxi.com>
10244 * config/h8300/h8300.h: Fix formatting. Remove commented-out
10247 2002-02-09 Kazu Hirata <kazu@hxi.com>
10249 * config/h8300/h8300.md (length): Correct the distance valid
10250 for the short branch.
10252 2002-02-09 Kazu Hirata <kazu@hxi.com>
10254 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10256 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10258 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10259 registers in SImode.
10260 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10263 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10266 Contribute sh64-elf.
10267 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10268 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10269 (sh_cannot_modify_jumps_p): New function.
10270 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10271 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10272 (sh_ms_bitfield_layout_p): New function.
10273 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
10274 Zack Weinberg <zack@codesourcery.com>
10275 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10276 expand_simple_binop instead of expand_binop.
10277 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
10278 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10279 use of .quad and .uaquad.
10280 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10281 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10282 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10283 * config/sh/sh.md (movdi_const, movdi_const_32bit,
10284 movdi_const_16bit): Make sure all CONSTs have modes.
10285 (sym2PIC): Ditto, but by adjusting all callers.
10286 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10287 if the prologue calls the SHmedia argument decoder or register
10289 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10290 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10291 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10292 (sh_expand_epilogue): Don't emit USE of return target register.
10293 (prepare_move_operands): Legitimize DImode PIC addresses.
10294 (sh_media_register_for_return): Skip tr0, used to initialize the
10296 (sh_expand_prologue): Remove explicit USE of return register.
10297 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
10298 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
10299 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10300 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10301 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10302 EXTRA_CONSTRAINT_T.
10303 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10304 (MOVI_SHORI_BASE_OPERAND_P): New.
10305 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10306 (EXTRA_CONSTRAINT_T): Define in terms of them.
10307 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10308 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10309 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10310 alternatives supporting TARGET_REGS.
10311 (UNSPEC_GOTPLT): New constant.
10312 (movdi split): Move incrementing of LABEL_NUSES...
10313 (movdi_const, movdi_const_32bit): Here. Use
10314 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10315 (movdi_const_16bit): New.
10316 (call, call_value) [flag_pic]: Use GOTPLT.
10317 (call_pop, call_value_pop): New expands.
10318 (call_pop_compact, call_pop_rettramp): New insns.
10319 (call_value_pop_compact, call_value_pop_rettramp): New insns.
10320 (sibcall) [flag_pic]: Use GOT.
10321 (builtint_setjmp_receiver): Remove bogus, unused expand.
10322 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10323 (*pt, *ptb, ptrel): New insns.
10324 (sym2GOT): Handle DImode GOT.
10325 (sym2GOTPLT, symGOTPLT2reg): New expands.
10326 (sym2PIC): New expand.
10327 (shcompact_return_tramp): Use GOTPLT to return trampoline.
10328 (shcompact_return_tramp_i): Use return register explicitly.
10329 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10330 disable flag_reorder_blocks.
10331 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10332 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10333 clobbers, for clarity.
10334 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10335 restoring of r0 in macl as MAYBE_DEAD.
10336 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
10337 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10338 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10339 alter_subreg all over.
10340 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10341 reload, instead of emitting instructions that would require
10343 (casesi_load_media): Add missing modes.
10344 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
10345 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10346 as used if the argument decoder is called.
10347 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10348 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10349 Pmode, then extend it to DImode if necessary.
10350 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10351 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10352 constants in FPU-enabled SHmedia, let them be loaded from memory.
10353 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10354 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10355 Adjust whitespace in assembly output templates.
10356 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10357 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10358 mode of if_then_else.
10359 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
10360 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10362 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
10363 Joern Rennecke <amylaar@redhat.com>
10364 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10365 (SUBTARGET_CPP_PTR_SPEC): New.
10366 (SUBTARGET_CPP_SPEC): Remove.
10367 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10368 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10369 Fix typo in previous checkin.
10370 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
10371 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10372 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
10373 Alexandre Oliva <aoliva@redhat.com>
10374 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10375 what single FP register can hold for SHmedia target.
10376 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10377 Alexandre Oliva <aoliva@redhat.com>
10378 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10379 Do not split into SUBREG.
10380 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
10381 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10382 and added new functions as specified in SH5 ABI r9.
10383 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
10384 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10386 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
10387 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10388 gen_consttable_4 and gen_consttable_8. Emit multiple labels
10389 and consttable_window_ends.
10390 2001-06-03 Graham Stott <grahams@redhat,com>
10391 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10392 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
10393 * config/sh/sh.c (print_operand): Handle floating-point pair,
10394 vector and matrix registers.
10395 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10396 vector modes into account.
10397 * config/sh/sh.md (movv2sf): Split move between registers into
10399 (movv4sf, movv16sf): Introduce insns that get split only after
10401 * config/sh/shmedia.h: Fix Copyright dates.
10402 * config/sh/ushmedia.h: Likewise. Move loop counter
10403 declarations into conditionals that uses them.
10404 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10406 * config/sh/sshmedia.h: Fix Copyright dates.
10407 (sh_media_PUTCFG): Fix constraints.
10408 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10409 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10410 ptrmemfunc_vbit_in_delta for SH5.
10411 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10412 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10413 * invoke.texi: Likewise.
10414 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10415 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10416 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10417 GCC_pop_shmedia_regs_nofpu): New global symbols.
10418 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10419 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10420 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10421 compact function with nonlocal labels.
10422 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10423 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10424 (initial_elimination_offset): Account for their stack space.
10425 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10426 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10427 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10428 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10429 least one of the operands to be a register.
10430 (movv2sf): Likewise. Renamed to movv2sf_i.
10431 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10432 prepare_move_operands() before emitting SHmedia insns.
10433 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
10434 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10435 Don't save nor initialize r12. Don't mis-align the stack.
10436 Pad the code with a nop.
10437 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
10439 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10440 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10441 [__SHMEDIA__]: Implement.
10442 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
10443 * config/sh/sh.md: Set latency of `pt' closer to reality.
10444 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10445 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10446 Set move, load and store type attributes.
10447 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10448 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10450 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10451 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10452 * config/sh/sh.c (sh_media_register_for_return): New function.
10453 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10454 branch-target register.
10455 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10456 * config/sh/sh.md (return_media_i): Use any call-clobbered
10457 branch-target register.
10458 (return_media): If r18 wasn't copied in the prologue, copy it
10460 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10461 Clear class FP0_REGS.
10462 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10464 2001-03-08 DJ Delorie <dj@redhat.com>
10465 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10466 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
10467 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10468 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
10469 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10470 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
10471 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10472 return value correctly for call_cookie.
10473 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10474 * config/sh/crt1.asm (start): Modified so as to call
10475 ___setup_argv_and_call_main.
10476 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
10477 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10479 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
10480 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10481 (STRIP_NAME_ENCODING): Use it.
10482 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
10483 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
10484 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10485 prepare_scc_operands().
10486 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10487 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10488 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
10489 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10490 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
10491 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10492 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10493 used in shcompact_incoming_args.
10494 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10496 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10498 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10499 Adjust accordingly.
10500 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10501 Simplify. Adjust. Add sanity check.
10502 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10504 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10506 (udivsi3, divsi3): Use them.
10507 (force_mode_for_call): New insn.
10508 (call, call_value, sibcall_value): Emit it before SHcompact
10510 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
10511 * config/sh/sh.md (call, call_value, sibcall): Make sure the
10512 call cookie is non-NULL before taking its value.
10513 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
10514 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10515 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
10516 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10518 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10519 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10520 temporary for stack adjusts. Use MACL and MACH to pass
10521 arguments to shcompact_incoming_args.
10522 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
10524 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10525 (nested_trampoline): Load static chain address into r1.
10526 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10527 2001-01-07 Alexandre Oliva <aoliva@redhat.com
10528 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10529 fp_arith_reg_operand().
10530 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
10531 * config/sh/sh.md (casesi): Sign-extend the first two operands,
10532 and use signed compares for them.
10533 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10534 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
10535 ones properly aligned.
10536 (find_barrier): Account for extra alignment needed for 8-byte wide
10538 (machine_dependent_reorg): Require a label for the second 4-byte
10539 constant after an 8-byte one.
10540 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10542 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10543 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10544 last_float when switching float modes.
10545 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10546 auto-increment for general-purpose registers.
10547 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10549 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10551 * config/sh/sh.c (sh_builtin_saveregs): Support using all
10552 registers for varargs.
10553 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
10554 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10555 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10556 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10557 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10558 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
10559 call_cookie accordingly.
10560 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10561 (SHCOMPACT_BYREF): Likewise.
10562 (SHCOMPACT_FORCE_ON_STACK): New macro.
10563 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10564 (sh_builtin_saveregs): Likewise.
10565 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10566 shcompact_incoming_args): Use new shift values. Support
10567 sequences of consecutive and non-consecutive pushes/pops.
10568 * config/sh/sh.md (return): Don't explicitly use PR_REG.
10569 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
10570 * config/sh/sh.h (TEXT_SECTION): Define.
10571 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10572 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10573 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10574 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10575 return values on FPU-enabled SHmedia.
10576 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10577 FPU-enabled SHmedia.
10578 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10579 value is returned in a non-FP reg and is not returned by
10581 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10583 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
10584 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10585 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10586 quad-aligned to be passed by callee-copy reference.
10587 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
10588 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10589 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10590 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
10591 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10592 copying low-numbered FP regs to r7 and r8.
10593 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10594 FP regs to general-purpose regs only if the copy was passed on the
10596 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10597 copying FP reg to r9.
10598 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10599 copy FP regs to general-purpose regs only in outgoing calls.
10600 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10601 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
10603 * config/sh/sh.h (struct sh_args): Document all fields.
10604 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10605 passed partially on the stack should not consider making
10607 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10608 stack_regs only for incoming calls. When passing FP args,
10609 make sure there are FP regs available before modifying
10611 (SHCOMPACT_BYREF): Pass double args in general-purpose
10612 registers by reference.
10613 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
10614 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10615 attempt to generate sibcalls if the caller got any arguments
10617 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10618 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10619 to 8-byte boundaries.
10620 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10621 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10622 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10623 stored in the stack.
10624 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10625 for the offsets to have the ISA bit set.
10626 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
10627 invocation. Use beq instead of bgt to mark end of sequence of
10629 (shcompact_incoming_args): Fix store of r2. Use beq instead of
10630 bgt to mark end of sequence of stores.
10631 * config/sh/sh.c (arith_operand): Don't check whether
10632 CONST_OK_FOR_J for now.
10633 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10634 instead of long for conversion.
10635 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
10636 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10637 before passing it to fprintf.
10638 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
10639 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10640 Call set_fpscr before reading/writing SR.
10641 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10643 * config/sh/lib1funcs.asm: Add `.align 2' directives before
10645 (FMOVD_WORKS): Define on SH5 with FPU.
10646 (set_fpscr): Define on SH5. Remove separate _fpscr_values
10648 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10650 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
10651 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10653 (ia_main_table): Ditto.
10654 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
10655 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10656 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10657 the definitions from sh.h.
10658 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10660 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10661 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10662 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10663 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
10664 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10665 Increment LABEL_NUSES.
10667 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10669 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10671 * config/sh/elf.h (SIZE_TYPE): Likewise.
10672 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10673 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10674 shcompact_incoming_args): Load switch table addresses using
10676 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10677 (NO_BUILTIN_SIZE_TYPE): Define.
10678 (SIZE_TYPE): Don't define.
10679 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10680 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10681 definition of __SH5__=32 for -m5-compact-nofpu.
10682 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10684 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
10685 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10686 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
10687 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10688 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10689 (INSN_LENGTH_ALIGNMENT): Likewise.
10690 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10691 * config/sh/sh.md (call, call_value, sibcall): Simplify
10692 copying of non-branch-target register.
10693 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10694 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
10695 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10696 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10697 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10698 floating-point values as structs.
10699 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10700 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10701 general-purpose register.
10702 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10703 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10704 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10705 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10706 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10707 (ENCODE_SECTION_INFO): Enclose variables and constants in
10709 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10710 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10711 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10712 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10713 only for LABEL_REFs. For SYMBOL_REFs, prepend
10714 SH_DATALABEL_ENCODING to the symbol name.
10715 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10717 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10718 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10720 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10721 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10722 (DATALABEL_REF_P): Don't require CONST.
10723 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10725 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
10726 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10728 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10729 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10730 Use shallow_copy_rtx and PUT_MODE to change the mode of
10731 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10732 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10733 on SHmedia using GENERAL_REGs.
10734 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10735 bltu_media_i): Fix reversion of conditions.
10736 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10737 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10738 * config/sh/sh.c (output_far_jump): Save r13 in macl.
10739 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
10740 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10741 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
10742 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10743 (GCC_nested_trampoline): Likewise.
10744 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10745 * config/sh/sh.c (gen_datalabel_ref): Define.
10746 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10747 (INITIALIZE_TRAMPOLINE): Likewise.
10748 (TRAMPOLINE_ADJUST_ADDRESS): Define.
10749 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10750 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10751 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10752 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10753 (ic_invalidate): Adjust for SH5.
10754 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10755 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10756 _nested_trampoline.
10757 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
10758 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10759 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10760 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10761 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10762 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10763 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10764 * config/sh/sh.c (target_reg_operand): Match only target-branch
10765 registers and pseudos that aren't virtual registers.
10766 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10767 Copy operands that don't match target_reg_operand to pseudos.
10768 (call_media, call_value_media, sibcall_media): Use
10769 target_reg_operand instead of target_operand.
10770 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
10771 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10772 * config/sh/sh.c (target_reg_operand): Match hardware registers
10773 other than branch-target registers.
10774 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10775 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10776 (fpscr_values) [SH5 == 32]: Define.
10777 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10778 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10779 Handle function addresses coming in SUBREGs.
10780 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
10781 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10782 shcompact_return_trampoline): Use datalabel where appropriate.
10783 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
10784 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10785 general-purpose register to copy one branch-target register to
10787 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10788 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10789 SYMBOL_REFs with VOIDmode.
10790 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10791 bltu_media_i): New insns.
10792 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10793 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10794 (INIT_CUMULATIVE_ARGS): Likewise.
10795 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
10796 * machmode.def (V16SFmode): New mode.
10797 * c-common.c (type_for_mode): Support V2SF and V16SF.
10798 * tree.c (build_common_tree_nodes_2): Likewise.
10799 * tree.h (tree_index): Likewise.
10800 * calls.c (emit_call_1): Take args_so_far. Adjust all
10801 callers. Introduce CALL_POPS_ARGS.
10802 * tm.texi (CALL_POPS_ARGS): Document.
10803 * config/sh/crt1.asm: Implement in SHmedia mode.
10804 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10805 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10806 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10807 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10808 Implement divsi and udivsi in SHmedia mode. Introduce
10809 SHcompact trampolines.
10810 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10812 (regno_reg_class): Rewrite.
10813 (fp_reg_names): Remove.
10814 (sh_register_names, sh_additional_register_names): New.
10815 (print_operand): Added `u'. Support SUBREGs in addresses.
10816 Add parentheses around shifted CONSTs.
10817 (output_file_start): Output .mode and .abi directives.
10818 (shiftcosts, addsubcosts, multcosts): Adjust.
10819 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
10820 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
10821 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
10822 bytes, not registers. Take into account the need for the
10823 SHcompact incoming args trampoline. Adjust all callers.
10824 (sh_expand_prologue): Take stack_regs into account. Call
10825 incoming args trampoline. Keep stack aligned as per SH5 ABI.
10826 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
10827 stack aligned as per SH5 ABI.
10828 (sh_builtin_saveregs): Support SH5 ABI.
10829 (sh_build_va_list, sh_va_start): Likewise.
10830 (initial_elimination_offset): Take alignment into account.
10831 Compute location of PR according to the SH5 stack frame.
10832 (arith_reg_operand): Reject branch-target registers.
10833 (shmedia_6bit_operand): New.
10834 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10835 (target_reg_operand): Match DImode only. Accept SUBREGs.
10836 (target_operand): New.
10837 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10838 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
10839 SIBCALL_REGS for SHmedia.
10840 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10841 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10842 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10843 (TARGET_SWITCHES): New SH5 flags.
10844 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
10845 VALID_REGISTER_P to disable unsupported registers.
10846 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10847 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10848 (FUNCTION_ARG_PADDING): Define.
10849 (FASTEST_ALIGNMENT): Adjust.
10850 (SH_REGISTER_NAMES_INITIALIZER): New.
10851 (sh_register_names): Declare.
10852 (DEBUG_REGISTER_NAMES): Define.
10853 (REGISTER_NAMES): Define based on sh_register_names.
10854 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10855 (sh_additional_register_names): Declare.
10856 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10857 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10858 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10859 (REGISTER_NATURAL_MODE): Define.
10860 (FIRST_PSEUDO_REGISTER): Adjust.
10861 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10862 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10863 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10864 (VECTOR_MODE_SUPPORTED_P): Define.
10865 (REG_CLASS_CONTENTS): Adjust.
10866 (SMALL_REGISTER_CLASSES): Adjust.
10867 (REG_ALLOC_ORDER): Adjust.
10868 (INDEX_REG_CLASS): Adjust.
10869 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10870 (CONST_OK_FOR_LETTER_P): Adjust.
10871 (PREFERRED_RELOAD_CLASS): Adjust.
10872 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10873 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10874 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10875 (FIRST_FP_PARM_REG): Adjust.
10876 (CALL_POPS_ARGS): Define.
10877 (FUNCTION_ARG_REGNO_P): Adjust.
10878 (struct sh_args): New fields.
10879 (GET_SH_ARG_CLASS): Adjust.
10880 (INIT_CUMULATIVE_ARGS): Adjust.
10881 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10882 (FUNCTION_ARG_ADVANCE): Adjust.
10883 (FUNCTION_ARG): Adjust.
10884 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10885 (FUNCTION_ARG_CALLEE_COPIES): Define.
10886 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10887 (STRICT_ARGUMENT_NAMING): Define.
10888 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10889 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10890 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10891 (SETUP_INCOMING_VARARGS): Adjust.
10892 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10893 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10894 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10895 (SUBREG_OK_FOR_INDEX_P): Adjust.
10896 (EXTRA_CONSTRAINT_S): Update.
10897 (EXTRA_CONSTRAINT_T): New.
10898 (EXTRA_CONSTRAINT): Adjust.
10899 (GO_IF_LEGITIMATE_INDEX): Adjust.
10900 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10901 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10902 (MOVE_MAX): Adjust.
10903 (MAX_MOVE_MAX): Define.
10905 (CONST_COSTS): Adjust.
10906 (REGISTER_MOVE_COST): Adjust.
10907 (BRANCH_COST): Adjust.
10908 (TEXT_SECTION_ASM_OP): Adjust.
10909 (DBX_REGISTER_NUMBER): Adjust.
10910 (ASM_OUTPUT_DOUBLE_INT): New.
10911 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10912 (PREDICATE_CODES): Adjust.
10913 (PROMOTE_MODE): Adjust.
10914 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10915 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10916 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10917 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10918 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10919 (TR0_REG, TR1_REG, TR2_REG): New.
10920 (XD0_REG): Renumber.
10921 (UNSPEC_COMPACT_ARGS): New.
10922 (type): Added pt and ptabs.
10923 (length): Default to 4 on SHmedia. Default pt length to 12
10924 and 20 on SHmedia32 and SHmedia64, respectively.
10925 (pt): New function unit.
10926 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10927 Add whitespace between operands of SHmedia instructions.
10929 (adddi3_media, addsi3_media): Adjust constraints.
10930 (subsi3) [SHmedia]: Force operand 1 into a register.
10931 (udivsi3_i1_media, udivsi3_i4_media): New.
10932 (udivsi3): Support SHmedia.
10933 (divsi3_i1_media, divsi3_i4_media): New.
10934 (divsi3): Support SHmedia.
10935 (anddi3, iordi3, xordi3): Adjust constraints.
10936 (zero_extendhidi2, zero_extendqidi2): New.
10937 (extendsidi2, extendhidi2, extendqidi2): New.
10938 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10939 (pop_e, pop_fpul, pop_4): Likewise.
10940 (movsi_media): Support FP and BT registers.
10941 (movsi_media_nofpu): New. Adjust splits to DImode.
10942 (lduw, ldub): Renamed to zero_extend* above.
10943 (movqi_media): Fix typo.
10944 (movdi_media): Support FP and BT registers.
10945 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10946 (movdi_const_32bit): New.
10947 (shori_media): Require immediate operand. Use `u' for output.
10948 (movdf_media, movsf_media): Simplified.
10949 (movdf_media_nofpu, movsf_media_nofpu): New.
10950 (movdf, movsf): Adjust
10951 (movv2sf, movv2sf, movv16sf): New.
10952 (beq_media, beq_media_i): Adjust constraints. Don't use
10953 scratch BT register.
10954 (bne_media, bne_media_i): Likewise.
10955 (bgt_media, bgt_media_i): Likewise.
10956 (bge_media, bge_media_i): Likewise.
10957 (bgtu_media, bgtu_media_i): Likewise.
10958 (bgeu_media, bgeu_media_i): Likewise.
10959 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10960 bunordered): Emit jump insn. Force operands to registers when
10962 (jump_media, jump): Simplify.
10963 (call_compact, call_compact_rettramp): New.
10964 (call_value_compact, call_value_compact_rettramp): New.
10965 (call_media, call_value_media): Simplify.
10966 (sibcall_compact, sibcall_media): New.
10967 (call, call_value): Adjust for SHmedia and SHcompact.
10968 (sibcall, sibcall_value, untyped_call): Likewise.
10969 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10970 (indirect_jump): Adjust for SHmedia.
10971 (casesi_jump_media): New.
10972 (nop): Re-enable for SHmedia.
10973 (call_site): Restrict to SH1.
10974 (casesi): Adjust for SHmedia.
10975 (casesi_shift_media, casesi_load_media): New.
10976 (return): Explicitly use PR register. Call return trampoline
10978 (return_i): Explicitly use PR register.
10979 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10980 (return_media): Adjust.
10981 (shcompact_incoming_args): New.
10982 (epilogue): Adjust.
10983 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10984 (movstrsi): Disable on SH5.
10985 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10986 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10987 (subsf3, subsf3_media): Likewise.
10988 (mulsf3, mulsf3_media, mac_media): Likewise.
10989 (divsf3, divsf3_media): Likewise.
10990 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10991 (floatsisf2, fux_truncsfsi2): Likewise.
10992 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10994 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10995 (cmpunsf_media, cmpsf): Likewise.
10996 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10997 (abssf2, abssf2_media): Likewise.
10998 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10999 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11000 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
11001 (floatsidf2, fix_truncdfsi2): Likewise.
11002 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
11004 (cmpeqdf_media, cmpgtdf_media): Likewise.
11005 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11006 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11007 (absdf2, absdf2_media): Likewise.
11008 (extendsfdf2, extendsfdf2_media): Likewise.
11009 (truncsfdf2, truncsfdf2_media): Likewise.
11010 * config/sh/sh64.h: New file.
11011 * config/sh/t-sh64: New file.
11012 * config/sh/shmedia.h: New file.
11013 * config/sh/ushmedia.h: New file.
11014 * config/sh/sshmedia.h: New file.
11015 * configure.in: Added sh64-*-elf.
11016 * configure: Rebuilt.
11017 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
11018 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11019 (reg_class_from_letter): Use `b' for TARGET_REGS.
11020 (print_operand): Support `%M', `%m', `AND' and
11021 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
11022 (andcosts): Adjust for SHmedia.
11023 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11025 (target_reg_operand): New function.
11026 * config/sh/sh-protos.h (target_reg_operand): Declare.
11027 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11028 FP registers on SH5.
11029 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11031 (TARGET_REGISTER_P): New macro.
11032 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11033 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11034 (EXTRA_CONSTRAINT_S): New macro.
11035 (EXTRA_CONSTRAINT): Adjust.
11036 (FLOAT_TYPE_SIZE): Define to 32.
11037 (Pmode): DImode on SHmedia.
11038 (CONST_COSTS): Adjust for SHmedia literals.
11039 (PREDICATE_CODES): Added target_reg_operand.
11040 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11041 * config/sh/sh.md: Remove all attrs from SHmedia insns.
11042 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11043 (cmpdi): Accept SHmedia.
11044 (movdicc_false, movdicc_true): New insns.
11045 (movdicc): New expand.
11046 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11048 (addsi3_media): Match `S' constraint.
11049 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11050 (negdi2): Expand for SHmedia.
11051 (one_cmpldi2): New expand.
11052 (zero_extendsidi2): Change from expand to insn.
11053 (extendsidi2): Add constraints.
11054 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
11055 LD/ST address. Fix SI immediate loading split.
11056 (movhi_media, movqi_media, lduw, ldub): New insns.
11057 (movhi, movqi): Accept SHmedia.
11058 (shori_media, movdi_media): Relax input constraints. Split
11059 symbolic constants.
11060 (movdf_media, movsf_media): New insn. New split to movdi.
11061 (movdf, movsf): Match on SHmedia.
11062 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11063 bgeu_media): New insns and splits. New insns with `_i' suffix.
11064 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11065 (bunordered): New expand.
11066 (jump_compact): Renamed from `jump'.
11067 (jump_media): New insn.
11068 (jump): New expand.
11069 (call_media, call_value_media): New insns.
11070 (call, call_value): Adjust.
11071 (indirect_jump_compact): Renamed from `indirect_jump'.
11072 (indirect_jump_media): New insn.
11073 (indirect_jump): New expand.
11074 (untyped_call, return): Accept SHmedia.
11075 (return_media): New insn.
11076 (prologue, epilogue, blockage): Accept SHmedia.
11077 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11078 (sunordered): New expand.
11079 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11080 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11081 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11082 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11083 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11084 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11085 abssf2_media): New insns.
11086 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11087 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11088 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11089 floatdidf2, floatsidf2_media, fix_truncdfdi2,
11090 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11091 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11092 absdf2_media): New insns.
11093 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11094 (extendsfdf2_media, truncdfsf2_media): New insns.
11095 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
11096 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11097 * config/sh/sh.h (CONST_OK_FOR_J): Document.
11098 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11099 * config/sh/sh.md (adddi3): New expand.
11100 (adddi3_media, adddi3z_media): New insns.
11101 (adddi3_compact): Renamed from adddi3.
11102 (addsi3_media): Use add.l r63 to add constant zero.
11103 (subdi3): New expand.
11104 (subdi3_media): New insn.
11105 (subdi3_compact): Renamed from subdi3.
11106 (mulsidi3): New expand.
11107 (mulsidi3_media): New insn.
11108 (mulsidi3_compact): Renamed from mulsidi3.
11109 (umulsidi3): New expand.
11110 (umulsidi3_media): New insn.
11111 (umulsidi3_compact): Renamed from umulsidi3.
11112 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11113 (ashlsi3, ashrsi3, lshrsi3): Use them.
11114 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11115 (ashldi3, ashrdi3, lshrdi3): Use them.
11116 (zero_extendsidi2): New expand.
11117 (extendsidi2): New insn.
11118 (movsi_media): New insn. Split to movdi to load constants.
11119 (movsi): Enable for shmedia.
11120 (movdi_media): New insn. Use shori_media to load wide constants.
11121 (short_media): New insn.
11122 (movdi): Enable for shmedia.
11123 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
11124 * config/sh/sh.h (CPP_SPEC): Added `m5'.
11125 (SUBTARGET_CPP_SPEC): Added `!m5'.
11126 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11127 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
11128 to all other SH variants.
11129 (TARGET_DEFAULT): Set to SH1_BIT.
11130 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11131 (BITS_PER_WORD): Raise to 64 on shmedia.
11132 (MAX_BITS_PER_WORD): Change to 64.
11133 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11134 (INT_TYPE_SIZE): Keep as 32.
11135 (UNITS_PER_WORD): Raise to 8 on shmedia.
11136 (MIN_UNITS_PER_WORD): Keep as 4.
11137 (POINTER_SIZE): Raise to 64 on shmedia.
11138 (CONST_OK_FOR_J): New macro.
11139 (CONST_OK_FOR_LETTER_P): Use it.
11140 (processor_type): Add PROCESSOR_SH5.
11141 * config/sh/sh.md: Conditionalize all expands, insns and
11142 splits to TARGET_SH1.
11144 (addsi3_compact): Renamed from...
11145 (addsi3): Now an expand.
11146 (addsi3_media, subsi3_media): New insns.
11147 (subsi3): Don't negate constants with SHmedia.
11149 * hooks.c: New file.
11150 * hooks.h: New file.
11151 * Makefile.in (HOOKS_H): New.
11152 (TARGET_DEF_H): Added $(HOOKS_H).
11153 (OBJS): Added hooks.o.
11154 (cfgcleanup.o, bb-reorder.o): Added target.h.
11155 (hooks.o): Added dependencies.
11156 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11157 (TARGET_INITIALIZER): this.
11158 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11159 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11160 * bb-reorder.c: Include target.h.
11161 (reorder_basic_blocks): Skip if cannot modify jumps.
11162 * cfgcleanup.c: Include target.h.
11163 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11165 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11167 * config/mips/mips.md (casesi_internal, casesi_internal_di):
11168 Protect jump delay slot instructions with .set noreorder and
11171 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11173 * config/mips/mips.md (casesi_internal_di): Calculate
11174 the index into the target offset table correctly.
11176 2002-02-08 Richard Henderson <rth@redhat.com>
11178 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11179 * final.c (output_addr_const): Accept and discard SUBREG.
11180 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11181 mark them unknown instead.
11182 (simplify_subtraction): Handle RTX_UNKNOWN.
11183 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11185 2002-02-08 David Edelsohn <edelsohn@gnu.org>
11187 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11189 2002-02-08 Richard Henderson <rth@redhat.com>
11191 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11193 2002-02-08 Andreas Jaeger <aj@suse.de>
11195 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11196 * config/i386/t-linux64: New file.
11198 2002-02-08 Jakub Jelinek <jakub@redhat.com>
11200 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11201 * c-parse.in (compstmt): Clear last_expr_type.
11203 2002-02-07 Richard Henderson <rth@redhat.com>
11205 * loop.c (strength_reduce): Sink final_value when not
11208 2002-02-07 David O'Brien <obrien@FreeBSD.org>
11210 * config/sparc/freebsd.h: Fix mismatched spec {.
11212 2002-02-07 Richard Henderson <rth@redhat.com>
11214 * cfgrtl.c: Include recog.h and insn-config.h.
11215 (keep_with_call_p): Fix general_operand invocation.
11216 * Makefile.in (cfgrtl.o): Update dependencies.
11218 2002-02-07 Kazu Hirata <kazu@hxi.com>
11220 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11221 comment. Accept HImode only if TARGET_H8300.
11223 2002-02-07 Eric Christopher <echristo@redhat.com>
11225 * config/mips/crtn.asm: Cleanup #ifdefs.
11227 2002-02-07 Eric Christopher <echristo@redhat.com>
11229 * config/mips/crti.asm: Add changes for mips16. mips16 uses
11230 register 7 as RA instead of $31.
11231 * config/mips/crtn.asm: Ditto.
11232 * config/mips/mips.c (mips_move_2words): Add case for
11233 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11234 (compute_frame_size): Fix typo.
11235 (save_restore_insns): Ditto. Make documentation about using
11236 register $7 as return register more precise.
11237 (mips_expand_epilogue): Fix comment. Add code to work around not
11238 being able to add to the stack pointer directly.
11239 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11240 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11243 2002-02-07 Tom Rix <trix@redhat.com>
11245 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11246 immediates in ldu and stdu DS opcode field.
11247 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11248 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11249 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11251 2002-02-07 Jeff Sturm <jsturm@one-point.com>
11253 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11254 offset for stack bias.
11256 2002-02-07 H.J. Lu <hjl@gnu.org>
11258 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11260 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
11262 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11264 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
11266 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11267 * i386.c (x86_order_regs_for_local_alloc): New global function.
11268 * i386.h (REG_ALLOC_ORDER): CLeanup.
11269 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11271 2002-02-07 Richard Henderson <rth@redhat.com>
11273 PR optimization/2463
11274 * alias.c (find_base_value): Recall base values for fixed hard regs.
11275 * loop.c (loop_regs_update): Don't use single_set on non-insns.
11277 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
11279 * config/mips/mips.md (define_delay) [mips16]: Adjust required
11282 2002-02-06 Richard Henderson <rth@redhat.com>
11285 * stmt.c (resolve_operand_name_1): Take more care with mixed
11286 named and unnamed operands.
11288 2002-02-06 Janis Johnson <janis187@us.ibm.com>
11289 Jan Hubicka <jh@suse.cz>
11291 * loop.c (remove_constant_addition): Avoid clobbering a shared
11294 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11296 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11297 * config/s390/t-linux64: New file.
11298 * config/s390/libgcc-glibc.ver: New file.
11300 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11302 * config/s390/linux64.h: Delete file.
11303 * config/s390/s390x.h: New file.
11304 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11305 as target header file.
11306 * config/s390/linux.h (TARGET_VERSION): Define depending on
11307 DEFAULT_TARGET_64BIT.
11308 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11309 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11310 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11311 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11312 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11313 (EXTRA_SPEC): New define.
11314 * config/s390/s390.h (TARGET_VERSION): Define depending on
11315 DEFAULT_TARGET_64BIT.
11316 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11318 2002-02-06 Jason Merrill <jason@redhat.com>
11320 * c-decl.c (finish_function): Warn about a non-void function with
11321 no return statement and no abnormal exit.
11322 (current_function_returns_abnormally): New variable.
11323 (start_function): Clear it.
11324 (struct c_language_function): Add returns_abnormally.
11325 (push_c_function_context): Save it.
11326 (pop_c_function_context): Restore it.
11327 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11328 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11329 an explicit return type.
11330 * c-tree.h: Declare current_function_returns_abnormally.
11331 (C_FUNCTION_IMPLICIT_INT): New macro.
11332 * c-typeck.c (build_function_call): Set it.
11333 (c_expand_return): Set current_function_returns_value even if the
11334 value is erroneous.
11336 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11339 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11340 unsafe for reevaluation.
11342 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11345 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11346 EXPR_STMT, but COMPOUND_STMT, recurse into it.
11348 2002-02-06 Richard Henderson <rth@redhat.com>
11350 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11351 be a general_operand. Dest for function value must be a pseudo.
11353 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11355 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11356 as SYMBOL_REFs from the constant pool.
11358 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
11360 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11361 passed by invisible reference.
11363 2002-02-05 Richard Henderson <rth@redhat.com>
11365 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11367 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
11369 Implement using "base addresses" in insn operands as default.
11370 * config/mmix/mmix.c (mmix_conditional_register_usage): if
11371 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11372 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11373 used to read the rtx value.
11374 (mmix_target_asm_function_epilogue): Fix spacing.
11375 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11376 (mmix_legitimate_address): Ditto.
11377 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11378 should be loaded with a GETA insn. Don't allocate needless extra
11379 char for nul termination and fix misleading comment.
11380 (mmix_print_operand_address): Handle constants if
11381 TARGET_BASE_ADDRESSES.
11382 (mmix_output_register_setting): Use base addressing if
11383 TARGET_BASE_ADDRESSES and the number of insns is 3.
11384 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11385 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11386 to use R as constraint, add LDA to match s.
11387 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11388 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11389 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11390 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11391 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11392 order with other fixed registers.
11393 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11394 other parameter/call-clobbered registers.
11395 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11396 -mbase-addresses, -mno-base-addresses.
11397 (MMIX Options): Ditto.
11399 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
11401 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11403 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
11405 * config/rs6000/altivec.h: Change elem to _S_elem.
11407 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11409 * config/netbsd.h (WCHAR_TYPE): Define.
11410 (WCHAR_TYPE_SIZE): Ditto.
11411 (WINT_TYPE): Ditto.
11412 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11413 (WCHAR_UNSIGNED): Ditto.
11414 (WCHAR_TYPE_SIZE): Ditto.
11415 (WINT_TYPE): Ditto.
11416 * config/arm/netbsd.h: Likewise.
11417 * config/i386/netbsd-elf.h: Likewise.
11418 * config/i386/netbsd.h: Likewise.
11419 * config/m68k/netbsd-elf.h: Likewise.
11420 * config/m68k/netbsd.h: Likewise.
11421 * config/ns32k/netbsd.h: Likewise.
11422 * config/sparc/netbsd.h: Likewise.
11423 * config/vax/netbsd.: Likewise.
11425 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11427 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11428 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
11429 (TARGET_INITIALIZER): this.
11430 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11431 (BITFIELD_NBYTES_LIMITED): Markup fix.
11432 * tree.h (default_ms_bitfield_layout_p): Declare.
11433 (record_layout_info): Added prev_field.
11434 * tree.c (default_ms_bitfield_layout_p): New fn.
11435 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11436 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11437 * stor-layout.c: Include target.h.
11438 (start_record_layout): Initialize prev_field.
11439 (place_field): Handle MS bit-field layout, and disregard
11440 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11441 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
11442 * Makefile.in (stor-layout.o): Adjust dependencies.
11444 2002-02-05 Jason Merrill <jason@redhat.com>
11446 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11448 2002-02-05 Andreas Jaeger <aj@suse.de>
11450 * crtstuff.c: Fix comments.
11452 2002-02-05 Richard Henderson <rth@redhat.com>
11455 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11456 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11459 * config/mips/mips.c (function_arg): Handle TImode.
11460 (function_arg_advance): Likewise.
11462 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11464 * config/rs6000/altivec.h (vec_step_help): Rename to
11467 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11469 * config/rs6000/altivec.h: Fix typos.
11471 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11473 * config/arm/netbsd.h: Correct a comment.
11475 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11477 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11478 building void typed builtins.
11480 * config/rs6000/altivec.h (vec_ld*): Fix typos.
11481 (vec_step): Implement for C++.
11483 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11485 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11487 2002-02-04 Richard Henderson <rth@redhat.com>
11489 * combine.c (nonzero_bits): Re-introduce special case for
11490 sp/fp/ap wrt REGNO_POINTER_ALIGN.
11492 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11494 * doc/extend.texi: Warn about unsupported usage of altivec
11497 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11498 (altivec_predicate_*): New.
11500 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11501 Add C++ version of vec_*() functions.
11503 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11504 (bdesc_2arg): Remove altivec predicates.
11505 (altivec_expand_builtin): Handle predicates.
11506 (altivec_init_builtins): Handle predicates.
11507 (altivec_expand_predicate_builtin): New.
11509 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11511 * pa.c (DO_FRAME_NOTES): Move forward.
11512 (store_reg): Revise handling of frame notes.
11513 (load_reg): Likewise.
11514 (set_reg_plus_d): Likewise.
11515 (hppa_expand_prologue): Likewise.
11516 (hppa_expand_epilogue): Likewise.
11518 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11520 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11522 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11524 PR c/4475, c++/3780:
11525 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11526 * c-common.h (SWITCH_TYPE): Define.
11527 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11528 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11529 Rename spareness variable to sparseness.
11530 (expand_end_case_type): Renamed from expand_end_case, use orig_type
11531 if non-NULL instead of TREE_TYPE (orig_index).
11532 * tree.h (expand_end_case_type): Renamed from expand_end_case.
11533 (expand_end_case): Define using expand_end_case_type.
11534 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11535 to expand_end_case_type.
11536 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11538 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11540 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11541 (BIGGEST_ALIGNMENT): Change to 128.
11543 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11545 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11547 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11549 * pa.md (call_internal_reg_64bit): Remove unused variable.
11551 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
11553 * config/arm/arm.h (machine_function): Add uses_anonymous_args
11555 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11556 * config/arm/arm.c (current_function_anonymous_args): Delete,
11557 replace uses with cfun->machine->uses_anonymous_args.
11558 (arm_reorg): Do not reset uses_anonymous_args.
11560 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11561 any geenral register.
11563 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
11565 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11568 2002-02-04 Richard Henderson <rth@redhat.com>
11570 * combine.c (force_to_mode): Remove STACK_BIAS code.
11571 (nonzero_bits): Likewise. Replace sp/fp special case with
11572 REGNO_POINTER_ALIGN.
11574 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11575 (HARD_FRAME_POINTER_REGNUM): New.
11576 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11577 (FIXED_REGS, CALL_USED_REGS): Update.
11578 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11579 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11580 (HARD_REGNO_NREGS): Update for SFP.
11581 (STACK_POINTER_OFFSET): Include bias here ...
11582 (FIRST_PARM_OFFSET): ... not here.
11583 (STACK_BIAS): Remove.
11584 (INIT_EXPANDERS): New.
11585 (STARTING_FRAME_OFFSET): Do not include bias.
11586 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11587 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11588 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11589 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11590 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11591 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11592 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11593 (MUST_SAVE_REGISTER): Likewise.
11594 (sparc_flat_function_prologue): Likewise.
11595 (sparc_flat_function_epilogue): Likewise.
11596 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11597 (sparc_init_modes): SFP is GENERAL_REGS.
11598 (sparc_builtin_saveregs): SFP does not have bias applied.
11600 2002-02-04 Richard Henderson <rth@redhat.com>
11602 * config/alpha/alpha.c (current_function_is_thunk): Don't check
11603 current_function_is_thunk.
11604 (alpha_sa_mask): Distinguish between current_function_is_thunk
11605 called from ASM_OUTPUT_MI_THUNK and not.
11606 (alpha_does_function_need_gp): Thunks always need gp.
11607 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11608 (alpha_output_mi_thunk_osf): New.
11609 * config/alpha/alpha-protos.h: Update.
11610 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11612 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
11614 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11615 function types, not when they're taken away.
11617 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
11619 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11620 CODE_LABEL and jump table when replacing a table jump with a
11623 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11625 * config/s390/s390-protos.h (legitimize_la_operand,
11626 s390_secondary_input_reload_class, s390_plus_operand,
11627 s390_expand_plus_operand): Add prototypes.
11629 config/s390/s390.c (s390_secondary_input_reload_class,
11630 s390_plus_operand, s390_expand_plus_operand): New functions.
11632 (struct s390_address): New member 'pointer'.
11633 (s390_decompose_address): Compute it.
11634 (legitimate_la_operand_p): Use it.
11635 (legitimize_la_operand): New function.
11636 (movti, movdi, movdf splitters): Call it.
11638 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11639 (PREDICATE_CODES): Add s390_plus_operand.
11641 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11642 (la_ccclobber): Allow GENERAL_REGS as output operand.
11644 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11645 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11646 (*la_64, *la_31, reload_indi, reload_insi): ... these.
11648 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11650 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11651 register names for regular asm () construct.
11653 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11655 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11658 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11660 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11663 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
11665 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11666 constant pool to be identical by string address and index.
11668 2002-02-04 Anthony Green <green@redhat.com>
11670 * output.h (SECTION_OVERRIDE): Define.
11671 * varasm.c (named_section): Obey SECTION_OVERRIDE.
11673 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11675 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11676 by existing arm*-*-netbsd* (a.out) target.
11677 (ns32k-*-netbsdelf*): Likewise.
11678 (sparc-*-netbsdelf*): Likewise.
11679 (vax-*-netbsdelf*): Likewise.
11681 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
11683 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11684 headers and libobjc headers.
11686 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
11688 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11689 (_mingw.h): Remove duplicate include.
11691 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11693 * config.gcc: Set cpu_type to m68k for 68010, as well.
11694 (m68010-*-netbsdelf*): New...
11695 (m68k*-*-netbsdelf*): ...targets.
11696 * config/m68k/netbsd-elf.h: New file.
11698 2002-02-02 Kazu Hirata <kazu@hxi.com>
11700 * config/h8300/h8300.c (hand_list): Move inside function_arg.
11702 2002-02-02 Kazu Hirata <kazu@hxi.com>
11704 * config/h8300/h8300.c (h8_push_ops): Move inside
11706 (h8_pop_ops): Likewise.
11707 (h8_move_ops): Likewise.
11709 2002-02-02 Kazu Hirata <kazu@hxi.com>
11711 * config/h8300/h8300.c (os_task): Make it static.
11712 (monitor): Likewise.
11713 (pragma_saveall): Likewise.
11715 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
11717 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11718 constant is a valid sign-extension for Pmode.
11720 2002-02-02 Kazu Hirata <kazu@hxi.com>
11722 * config/h8300/h8300.c: Fix formatting.
11724 2002-02-02 Kazu Hirata <kazu@hxi.com>
11726 * config/h8300/h8300.md: Fix formatting.
11728 2002-02-02 Kazu Hirata <kazu@hxi.com>
11730 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11731 predicates of operands[1]. Split the patterns for each
11734 2002-02-02 Kazu Hirata <kazu@hxi.com>
11736 * config/h8300/h8300.md (xor patterns): Tighten the predicates
11737 of operands[1] to register_operand.
11739 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11741 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11742 * cpphash.c (_cpp_init_hashtable): Similarly.
11743 * cppinit.c (cpp_create_reader): Default the signed_char flag.
11744 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11745 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11746 (cpp_handle_option): Handle the new options.
11747 * cpplex.c (cpp_interpret_charconst): Use new flag.
11748 * cpplib.h (struct cpp_options): New member signed_char.
11749 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11750 (cpp_options): Handle -fsigned-char and -funsigned-char.
11751 (static_specs): Remove signed_char_spec.
11752 (do_spec1): Don't handle %c.
11753 * system.h: Poison SIGNED_CHAR_SPEC.
11754 * tradcif.y (yylex): Use flag_signed_char.
11755 * tradcpp.h (flag_signed_char): New.
11756 * tradcpp.c (flag_signed_char): New.
11757 (main): Handle new command-line options.
11758 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11760 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11761 * avr/avr.h: Remove old comments.
11762 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11763 (CC1_SPEC): Pass -fsigned-char if -mic*.
11764 (SIGNED_CHAR_SPEC): Remove.
11766 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11768 2002-02-01 Eric Christopher <echristo@redhat.com>
11770 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11771 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11772 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11773 (ASM_OUTPUT_REG_POP): Ditto.
11775 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11777 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11780 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11782 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11784 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11787 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11790 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11792 * cfganal.c: Include tm_p.h.
11793 (keep_with_call_p): Fix the test that determines if a register holds
11794 the return value of a call.
11796 2002-02-01 DJ Delorie <dj@redhat.com>
11798 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11799 we are given conflicting registers, switch to the other one we
11800 had allocated for us.
11801 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11802 as TImode so we know when the "other" register is available.
11804 2002-02-01 David O'Brien <obrien@FreeBSD.org>
11806 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11809 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11811 * cfganal.c (keep_with_call_p): New function.
11812 (flow_call_edges_add): Prevent splitting a block between a call and
11813 a single-set instruction that should be kept in the same block.
11815 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
11817 * doc/install.texi (avr): Update outdated URL.
11819 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
11821 * config/stormy16/stormy16.md (pushqi): New.
11825 (movhi): Remove stack operands.
11827 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11828 nonimmediate_nonstack_operand.
11829 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11831 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11834 2002-01-31 Jason Merrill <jason@redhat.com>
11836 * Makefile.in (c-parse.c): Handle .output file.
11837 * objc/Make-lang.in (objc-parse.c): Likewise.
11839 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
11841 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11842 the -me[lb] option is given. Don't output the default flag
11845 2002-01-31 Zack Weinberg <zack@codesourcery.com>
11847 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11848 the primary source file; this has not been done yet.
11849 * c-decl.c (c_expand_body): Reset input_filename from
11850 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11852 2002-01-31 Kazu Hirata <kazu@hxi.com>
11854 * rtlanal.c (subreg_regno_offset): Do not use
11855 SUBREG_REGNO_OFFSET.
11856 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11857 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11859 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11861 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
11862 version rather than GNATS version in --version output.
11864 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
11866 * ifcvt.c (noce_process_if_block): Make a copy of the destination
11867 when copying back from a temporary.
11869 2002-01-30 Richard Henderson <rth@redhat.com>
11871 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11872 and new_dest are the same.
11874 2002-01-30 Richard Henderson <rth@redhat.com>
11877 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11878 * rtl.c (note_insn_name): Update.
11879 * emit-rtl.c (remove_unnecessary_notes): Kill it.
11880 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
11881 to perform loop rotation.
11882 (expand_exit_loop_top_cond): New.
11883 * tree.h (expand_exit_loop_top_cond): Declare it.
11884 * c-semantics.c (genrtl_while_stmt): Use it.
11885 (genrtl_for_stmt): Likewise.
11887 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
11889 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11890 arguments to 64-bit boundaries on 64-bit ABIs.
11892 2002-01-30 Steve Ellcey <sje@cup.hp.com>
11894 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11896 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11898 * c-decl.c (grokdeclarator): Handle type being a typedef for an
11901 2002-01-30 David O'Brien <obrien@FreeBSD.org>
11903 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11904 * config/sparc/sparc_bi.h: Remove file.
11905 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11907 2002-01-30 Richard Henderson <rth@redhat.com>
11909 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11911 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11913 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11915 2002-01-30 Jason Merrill <jason@redhat.com>
11917 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11918 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11919 (reg_save): Use DW_CFA_offset_extended_sf instead.
11921 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11923 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11925 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11928 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11930 * rs6000.md ("*call_value_local32"): Remove constraints.
11931 ("*call_value_local64"): Same.
11932 ("*call_value_indirect_nonlocal_aix32"): Same.
11933 ("*call_value_nonlocal_aix32"): Same.
11934 ("*call_value_indirect_nonlocal_aix64"): Same.
11935 ("*call_value_nonlocal_aix64"): Same.
11936 ("*call_value_nonlocal_sysv"): Same.
11938 2002-01-29 Richard Henderson <rth@redhat.com>
11940 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11942 2002-01-29 Richard Henderson <rth@redhat.com>
11944 * expr.c (force_operand): Ignore flag_pic for detecting pic
11946 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11947 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11948 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11949 instead of open-coded loop.
11950 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11951 be fixed when in use.
11953 2002-01-29 Richard Henderson <rth@redhat.com>
11955 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11956 * sched-rgn.c (propagate_deps): Update them.
11957 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11958 clobbers list when either gets too long.
11960 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11962 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11963 and INDEX_REGS the same as GENERAL_REGS.
11964 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11966 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11968 * tree.c (build_nonstandard_integer_type): Correct prototype.
11970 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11972 * config/s390/s390.md (movstrsico, movstrdix_64,
11973 movstrsix_31): Remove, replace by ...
11974 (movstrdi_short, movstrsi_short, movstrdi_long,
11975 movstrsi_long): ... these. New.
11976 (movstrdi, movstrsi): Adapt.
11978 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11979 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11980 Remove unnecessary CC clobber.
11981 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11982 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11984 (divmoddi4): Don't partially initialize TImode register.
11986 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11988 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11990 2002-01-29 Richard Henderson <rth@redhat.com>
11992 * flow.c (print_rtl_and_abort): Remove.
11993 (print_rtl_and_abort_fcn): Remove.
11994 (verify_local_live_at_start): Use dump_bb instead.
11995 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11996 (verify_wide_reg_1): Return 2 on mode test failure.
11998 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12000 PR c/3325, c/3326, c/2511, c/3347
12001 * c-decl.c (enum_decl_context): Remove BITFIELD.
12002 (grokdeclarator): Take bitfield width as an input.
12003 Ensure bitfields are given the correct type. Perform
12004 bitfield width validation with build_bitfield_integer_type
12005 rather than waiting for finish_struct.
12006 (grok_typename, grok_typename_in_parm_context, start_decl,
12007 push_parmdecl, grokfield, start_function): Update calls to
12009 (build_bitfield_integer_type): New function.
12010 (finish_struct): Move bitfield validation to grokdeclarator
12011 and build_bitfield_integer_type.
12012 * tree.c (build_nonstandard_integer_type): New function.
12013 * tree.h (build_nonstandard_integer_type): New prototype.
12015 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12017 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12020 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12021 don't ignore unrecognized -W* options.
12022 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12023 * cpplib.h (cpp_handle_option): Adjust prototype.
12024 * c-decl.c (c_decode_options): Pass 0 as last argument to
12028 * gcc.c (cpp_unique_options): Split from cpp_options.
12029 (cpp_options): Source cpp_unique_options.
12030 (default_compilers): Use cpp_unique_options instead of cpp_options
12031 when used together with cc1_options.
12032 (static_specs): Add cpp_unique_options.
12033 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12034 when used together with cc1_options.
12036 2002-01-29 Kazu Hirata <kazu@hxi.com>
12038 * config/h8300/h8300-protos.h: Update the prototype of
12040 * config/h8300/h8300.c (output_a_shift): Remove an unused
12041 argument 'insn'. Remove redundant code.
12042 * config/h8300/h8300.md: Adust to the new prototype of
12045 2002-01-29 Kazu Hirata <kazu@hxi.com>
12047 * config/h8300/h8300-protos.h: Update the prototypes of
12048 emit_a_rotate and expand_a_rotate.
12049 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12050 first argument to 'enum rtx_code'.
12051 (expand_a_rotate): Likewise.
12053 2002-01-28 Kazu Hirata <kazu@hxi.com>
12055 * config/h8300/h8300-protos.h: Update the prototype of
12057 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12059 * config/h8300/h8300.md: Adjust to the new prototype.
12061 2002-01-28 Kazu Hirata <kazu@hxi.com>
12063 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12066 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12068 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12069 is a fixed register before returning pic_offset_table_rtx.
12070 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12071 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12073 2002-01-28 Jason Merrill <jason@redhat.com>
12075 * dwarf2.h: Sync with src version.
12077 2002-01-28 Paul Koning <pkoning@equallogic.com>
12079 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12080 BT_FN_VOID_PTR_VAR.
12081 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12082 * doc/extend.texi (__builtin_prefetch): Update documentation:
12083 first argument is now const void ptr.
12085 2002-01-28 Kazu Hirata <kazu@hxi.com>
12087 * config/h8300/h8300-protos.h: Remove an unused prototype.
12089 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
12091 * toplev.c (lang_independent_init): Round up identifier size.
12093 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12095 * config.gcc: Revert previous change.
12097 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
12099 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12101 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12103 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12104 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
12105 other non-elf netbsd config frags.
12106 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12107 collect2 will does that.
12108 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12109 shared-lib frobbing will work.
12111 2002-01-28 Kazu Hirata <kazu@hxi.com>
12113 * config/h8300/h8300.h: Fix formatting.
12114 * config/h8300/h8300.md: Likewise.
12116 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
12118 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12119 the old, removed AAA_standards fix.
12120 * fixinc/fixincl.x: Rebuilt.
12122 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
12124 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12125 atexit call in crtbegin, hooked in after call to frame_dummy;
12126 register EH before registering __fini__start.
12128 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
12130 * config/rs6000/altivec.h: Remove spurious semicolons.
12132 2002-01-27 Kazu Hirata <kazu@hxi.com>
12134 * config/h8300/h8300.md: Replace dead bit extraction patterns
12135 with ones that work.
12137 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12139 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12140 if not STRICT_ALIGNMENT.
12141 * rtl.h (MEM_ALIGN): Likewise.
12143 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
12145 * doc/invoke.texi (-fdump-translation-unit): Revert this
12146 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
12148 2002-01-27 Kazu Hirata <kazu@hxi.com>
12150 * config/h8300/h8300.md (define_constants): New.
12151 (anonymous patterns) Use defined constants appropriately.
12153 2002-01-27 Kazu Hirata <kazu@hxi.com>
12155 * config/h8300/h8300.c (function_arg): Remove redundant code.
12157 2002-01-26 Richard Henderson <rth@redhat.com>
12159 * sched-deps.c (reg_pending_uses_head): New.
12160 (reg_pending_barrier): Rename from reg_pending_sets_all.
12161 (find_insn_list): Don't mark inline.
12162 (find_insn_mem_list): Remove.
12163 (add_dependence_list, add_dependence_list_and_free): New.
12164 (flush_pending_lists): Replace only_write param with separate
12165 for_read and for_write parameters. Update all callers. Use
12166 add_dependence_list_and_free.
12167 (sched_analyze_1): Do not add reg dependencies here; just set
12168 the pending bits. Use add_dependence_list.
12169 (sched_analyze_2): Likewise.
12170 (sched_analyze_insn): Replace schedule_barrier_found with
12171 reg_pending_barrier. Add all dependencies for pending reg
12172 uses, sets, and clobbers.
12173 (sched_analyze): Don't add reg dependencies for calls, just
12174 set pending bits. Use regs_invalidated_by_call. Treat
12175 sched_before_next_call as a normal list, not a fake insn.
12176 (init_deps): No funny init for sched_before_next_call.
12177 (free_deps): Free pending mems lists. Don't zero reg_last.
12178 (init_deps_global): Init reg_pending_uses.
12179 (finish_deps_global): Free it.
12180 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
12181 (find_insn_mem_list): Remove.
12182 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12183 (propagate_deps): Use them. Zero temp mem lists.
12185 2002-01-26 Richard Henderson <rth@redhat.com>
12187 * Makefile.in (CRTSTUFF_CFLAGS): New.
12188 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12189 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12190 crtstuff.c instead of alpha assembly version.
12191 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12192 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
12193 not FORCE_{INIT,FINI}_SECTION_ALIGN.
12194 (__do_global_dtors_aux): Mark used.
12195 (frame_dummy, __do_global_ctors_aux): Mark used.
12196 (fini_dummy, init_dummy): Remove.
12198 * config/alpha/crtbegin.asm: Remove file.
12199 * config/alpha/crtend.asm: Remove file.
12200 * config/alpha/t-crtbe: Remove file.
12201 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12202 (LINK_EH_SPEC): New.
12204 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12205 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
12206 calling constructors.
12207 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12209 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12210 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12211 CRT_END_INIT_DUMMY hack.
12212 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12213 FORCE_{INIT,FINI}_SECTION_ALIGN.
12215 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12216 FORCE_{INIT,FINI}_SECTION_ALIGN.
12218 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12219 invocation sequence.
12220 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12222 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12223 (FORCE_CODE_SECTION_ALIGN): New.
12225 2002-01-26 Richard Henderson <rth@redhat.com>
12227 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12229 2002-01-26 Richard Henderson <rth@redhat.com>
12231 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12232 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12234 2002-01-26 Kazu Hirata <kazu@hxi.com>
12236 * config/h8300/h8300.md: Remove bit extraction patterns that
12237 cannot be triggered.
12238 Restrict each bit extraction pattern to a variant on which the
12241 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
12243 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12245 2002-01-26 Kazu Hirata <kazu@hxi.com>
12247 * config/h8300/h8300.md: Remove bit test patterns that cannot
12249 Restrict each bit test pattern to a variant on which the
12252 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12254 * builtins.c (expand_builtin_strncat): Remove redundant check for
12257 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12259 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12261 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12264 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12266 * dbxout.c (dbxout_init): Use assemble_name rather than just
12267 stripping off the first character.
12268 (dbxout_source_file): Likewise.
12270 2002-01-25 DJ Delorie <dj@redhat.com>
12272 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12273 using rtx_equal_p, not by comparing pointers.
12275 2002-01-25 Steve Ellcey <sje@cup.hp.com>
12277 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12278 for PIC_OFFSET_TABLE_REGNUM.
12279 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12281 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12283 * config.gcc (x86_64-*-freebsd*): New target.
12284 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12286 (i[34567]86-*-freebsd*): Don't include svr4.h.
12287 * config/i386/freebsd64.h: New file.
12289 2002-01-25 Douglas B Rupp <rupp@gnat.com>
12291 * config/alpha/x-vms (version): Make static.
12293 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12294 in previous checkin.
12296 * Makefile.in (install-headers-cp): New target.
12297 * config.gcc (alpha-dec-*vms*): Install headers with
12300 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
12302 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12305 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12307 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12308 of compare_tree_int.
12309 (expand_builtin_strncat): Likewise.
12310 * c-decl.c (finish_struct): Use tree_low_cst.
12311 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12312 * tree.c (compare_tree_int): Likewise.
12314 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
12316 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12317 adjustments even if they are implemented by more than two insns.
12319 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
12321 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12322 * df.h (struct ref): Kill B.
12323 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12325 * basic-block.h (PROP_EQUAL_NOTES): New flag.
12326 * flow.c (propagate_one_insn): Use it.
12327 (mark_used_regs): Handle NIL.
12329 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12331 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12334 2002-01-25 David Edelsohn <edelsohn@gnu.org>
12336 * rs6000.md (prefetch): Make address V4SI mode so that the address
12337 is restricted to legitimate form for instruction.
12339 2002-01-25 Bob Wilson <bob.wilson@acm.org>
12341 * doc/install.texi (xtensa-*-elf): New target.
12342 (xtensa-*-linux*): New target.
12343 * doc/contrib.texi: Add myself.
12345 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
12347 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12348 purpose register to hold an SImode (or smaller) value.
12350 2002-01-25 Jakub Jelinek <jakub@redhat.com>
12352 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12354 * crtstuff.c: Likewise.
12356 2002-01-25 Kazu Hirata <kazu@hxi.com>
12358 * config/h8300/h8300.md (negation patterns): Tighten
12359 predicates to register_operand.
12361 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
12363 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12366 * builtins.c (expand_builtin_prefetch): Same.
12368 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12370 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12373 2002-01-24 Kazu Hirata <kazu@hxi.com>
12375 * config/h8300/h8300.c (print_operand): Remove support for
12376 operand character 'A'.
12377 * config/h8300/h8300.md (three anonymous patterns): Replace
12378 operand character 'A' with either 'T' or 'S'.
12380 2002-01-24 Kazu Hirata <kazu@hxi.com>
12382 * config/h8300/h8300.c (print_operand): Remove support for
12383 operand character 'U'.
12385 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
12387 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12389 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
12391 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12392 values to be assigned to the stack pointer.
12394 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12396 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12397 to const_double needs to be done right for big-endian systems.
12399 2002-01-24 Jason Merrill <jason@redhat.com>
12402 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12403 to can_throw_internal.
12405 2002-01-23 Richard Henderson <rth@redhat.com>
12407 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12408 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12410 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12412 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12413 (symGOT2reg): Use them, then set as GOT value as unchanging.
12414 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12415 as a temporary, if possible.
12416 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
12417 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12419 2002-01-23 Kazu Hirata <kazu@hxi.com>
12421 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12422 accept to accept 0x80 as operands[2].
12424 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12426 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12428 2002-01-23 Richard Henderson <rth@redhat.com>
12430 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12432 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
12434 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12435 (parmlist_or_identifiers_1): Verify that only a parmlist follows
12438 2002-01-23 Richard Henderson <rth@redhat.com>
12440 * expr.c (move_by_pieces_1): Extend size before negation.
12442 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12443 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12444 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12445 * config/m68k/t-m68kelf: Likewise.
12447 2002-01-23 Bob Wilson <bob.wilson@acm.org>
12449 * config/xtensa/elf.h: New file.
12450 * config/xtensa/lib1funcs.asm: New file.
12451 * config/xtensa/lib2funcs.S: New file.
12452 * config/xtensa/linux.h: New file.
12453 * config/xtensa/t-xtensa: New file.
12454 * config/xtensa/xtensa-config.h: New file.
12455 * config/xtensa/xtensa-protos.h: New file.
12456 * config/xtensa/xtensa.c: New file.
12457 * config/xtensa/xtensa.h: New file.
12458 * config/xtensa/xtensa.md: New file.
12459 * config.gcc (xtensa-*-elf*): New target.
12460 (xtensa-*-linux*): New target.
12461 * cse.c (canon_hash): Compare rtx pointers instead of register
12462 numbers. This is required for the Xtensa port.
12463 * integrate.c (copy_insn_list): Handle case where the static
12464 chain is in memory and the memory address has to be copied to
12466 * doc/invoke.texi (Option Summary): Add Xtensa options.
12467 (Xtensa Options): New node.
12468 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12470 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12472 * diagnostic.c (internal_error): Do ICE suppression only
12473 when ENABLE_CHECKING is not defined.
12475 * c-typeck.c (require_complete_type): Return error_mark_node
12476 if type is error_mark_node.
12478 2002-01-23 Janis Johnson <janis187@us.ibm.com>
12480 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12481 -Os and issue a warning.
12483 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12485 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12486 current (lack of) need for host configuration by hand.
12488 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12489 references. Documentation of some target macros moved from
12490 hostconfig.texi to tm.texi.
12492 2002-01-23 Will Cohen <wcohen@redhat.com>
12494 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12497 2002-01-23 Kazu Hirata <kazu@hxi.com>
12499 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12502 2002-01-23 Jason Merrill <jason@redhat.com>
12504 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12506 * function.c (assign_parms): Don't put args of inline functions
12507 into registers when not optimizing.
12509 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
12511 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12512 (prologue_use): New pattern.
12513 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12514 preference to gen_rtx_USE.
12515 (thumb_expand_prologue): Use gen_prologue_use in preference to
12517 (thumb_expand_epilogue): Use gen_prologue_use in preference to
12520 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
12522 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12524 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
12527 * doc/extend.texi: Correct documentation of __alignof__.
12529 2002-01-22 Zack Weinberg <zack@codesourcery.com>
12531 * params.h: Rename arguments of DEFPARAM so that it will be
12532 recognized as a translation keyword.
12534 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12536 * extend.texi: Document altivec functions.
12537 Fix N-bit adjectives in X86 builtin documentation.
12539 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12541 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12542 auto_inc_dec values.
12544 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
12546 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12548 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12550 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12552 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12554 2002-01-22 Richard Henderson <rth@redhat.com>
12556 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12557 copy_insn not copy_rtx.
12559 2002-01-23 Alan Modra <amodra@bigpond.net.au>
12561 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12562 "nonzero" as that might add "1" bits. Ensure "constop" is
12563 properly sign extened.
12564 (force_to_mode): Tweak for sign extended constop.
12566 2002-01-22 Richard Henderson <rth@redhat.com>
12568 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12569 for_each_rtx instead of assuming we're already looking at the MEM.
12570 (split_small_symbolic_mem_operand): Likewise.
12571 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12572 * config/alpha/alpha.md (small symbolic memory splitters): Update.
12574 2002-01-22 Richard Henderson <rth@redhat.com>
12576 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12577 sequence number for the literal.
12578 (divmoddi_internal_er): Likewise.
12580 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12583 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12584 in LIBICONV variable.
12585 * configure: Regenerated.
12587 2002-01-22 Krister Walfridsson <cato@df.lth.se>
12589 * dependence.c (build_def_use): Remove array_idx.
12591 * dwarfout.c (last_filename): Remove.
12592 (output_compile_unit_die): Remove last_filename.
12594 2002-01-22 Roger Sayle <roger@eyesopen.com>
12595 Richard Henderson <rth@redhat.com>
12598 * fold-const.c (fold): Optimize unsigned comparisons against
12599 UINT_MAX (and similar unsigned constants).
12601 2002-01-22 Janis Johnson <janis187@us.ibm.com>
12603 * Makefile.in (loop.o): Depend on OPTABS_H.
12604 * loop.c (emit_prefetch_instructions): Check the prefetch operand
12605 against the predicate.
12608 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12609 for the address operand.
12611 2002-01-22 Richard Henderson <rth@redhat.com>
12613 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12615 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12618 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12619 preprocessor flags.
12621 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
12623 * config.gcc (x86_64-*-netbsd*): New target.
12624 * config/i386/netbsd64.h: New file.
12626 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12628 * regrename.c (kill_value): Fix typo.
12630 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12632 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12634 * config/rs6000/rs6000.h: Same.
12636 * function.c (instantiate_virtual_regs): Remove
12637 STARTING_FRAME_PHASE.
12638 (assign_stack_local_1): Same.
12639 Calculate frame phase.
12641 2002-01-22 Nick Clifton <nickc@redhat.com>
12643 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12644 variable declaration to outer scope in order to simplify
12646 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12647 arm_hard_regno_mode_ok.
12648 * config/arm/arm-protos.h: Add a prototype for
12649 arm_hard_regno_mode_ok.
12650 * config/arm/arm.c (soft_df_operand): Remove now redundant
12651 check for DImode values using IP_REGNUM.
12652 (nonimmediate_soft_df_operand): Remove now redundant check for
12653 DImode values using IP_REGNUM.
12654 (arm_hard_regno_mode_ok): New function. New check: make sure
12655 that DImode values are not stored in IP_REGNUM.
12657 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12659 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12661 2002-01-22 Jason Merrill <jason@redhat.com>
12663 * c-semantics.c (genrtl_compound_stmt): Only check nesting
12664 consistency if this COMPOUND_STMT is scoped.
12666 2002-01-22 Kazu Hirata <kazu@hxi.com>
12668 * predict.c: Fix formatting.
12669 * print-tree.c: Likewise.
12670 * protoize.c: Likewise.
12671 * real.h: Likewise.
12673 * sbitmap.h: Likewise.
12674 * scan.c: Likewise.
12675 * sched-deps.c: Likewise.
12676 * sched-vis.c: Likewise.
12677 * sdbout.c: Likewise.
12678 * sibcall.c: Likewise.
12680 * ssa-ccp.c: Likewise.
12681 * ssa-dce.c: Likewise.
12682 * stmt.c: Likewise.
12683 * stor-layout.c: Likewise.
12684 * system.h: Likewise.
12686 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12688 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12689 if fits in bounds of base type.
12691 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12692 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12693 (add_bound_info, default): If can't find a context, make a
12695 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12697 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
12699 * c-typeck.c (parser_build_binary_op): If result from
12700 build_binary_op is ERROR_MARK just return error_mark_node without
12701 further processing.
12703 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
12705 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12706 Split a.out-specific bits into...
12707 * config/netbsd-aout.h: ...this.
12708 * config/netbsd-elf.h: New file.
12709 * config/alpha/netbsd-elf.h: Remove.
12710 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12711 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12712 (STARTFILE_SPEC): Remove redundant definition.
12713 (ENDFILE_SPEC): Likewise.
12714 (LINK_SPEC): Likewise.
12715 (CPP_SPEC): Likewise.
12716 (ASM_SPEC): Likewise.
12717 (LIB_SPEC): Likewise.
12718 (SWITCH_TAKES_ARG): Likewise.
12719 (TARGET_MEM_FUNCTIONS): Likewise.
12720 (CPP_PREDEFINES): Redefine.
12721 (ASM_FINAL_SPEC): Remove redefinition.
12722 (ASM_COMMENT_START): Redefine.
12723 (FUNCTION_PROFILER): Define.
12724 (TARGET_VERSION): Redefine.
12725 Comment and formatting cleanup.
12726 * config/i386/netbsd.h: Include <netbsd-aout.h>.
12727 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12728 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12729 big- or little-endian.
12730 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12731 * config.gcc (*-*-netbsd*): Add definitions common to all
12733 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12734 gnu_ld definitions. Add netbsd-elf.h to and remove
12735 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
12736 tmake_file, and don't lose previous tmake_file contents.
12737 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12738 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12739 gnu_ld definitions. Add netbsd-elf.h to tm_file.
12740 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12741 (mipsel-*-netbsd*): Rename this to...
12742 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
12743 mips/little.h to tm_file for mips*el-*.
12744 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12745 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12746 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12748 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12750 * pa-protos.h (reg_before_reload_operand): New function prototype.
12751 * pa.c (reg_before_reload_operand): New function implementation.
12752 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
12753 contraints to "*m".
12755 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12757 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12759 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12761 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12762 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12763 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12764 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12765 (ENDFILE_SPEC): Undefine.
12766 (STARTFILE_SPEC): Redefine for PA.
12768 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12770 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12772 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
12774 * config.gcc: Add entries to supported PowerPC --with-cpu
12777 2002-01-21 Jakub Jelinek <jakub@redhat.com>
12779 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12780 true for 64-bit mode only SSE registers in 32-bit mode.
12782 2002-01-21 Kazu Hirata <kazu@hxi.com>
12784 * unwind-dw2.c: Fix formatting.
12785 * unwind-dw2-fde.c: Likewise.
12786 * unwind-dw2-fde.h: Likewise.
12787 * unwind-pe.h: Likewise.
12788 * varasm.c: Likewise.
12789 * varray.h: Likewise.
12791 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
12793 Remove workaround for register stack overwrite bug in mmix.
12794 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12795 support for TARGET_REG_STACK_FILL_BUG.
12796 * config/mmix/mmix.h: Remove member has_call_without_parameters.
12797 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12799 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12800 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12801 -mno-reg-stack-fill-bug-workaround.
12802 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12803 machine member has_call_without_parameters.
12804 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12805 -mreg-stack-fill-bug-workaround and
12806 -mno-reg-stack-fill-bug-workaround.
12807 (MMIX Options): Ditto.
12809 2002-01-21 Kazu Hirata <kazu@hxi.com>
12811 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12813 Remove redundant code.
12815 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
12817 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12818 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12819 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12820 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12821 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12822 out target macro definitions and non-target-specific comments
12823 mostly taken from old versions of the manual.
12825 2002-01-20 Kazu Hirata <kazu@hxi.com>
12827 * config/h8300/h8300.h: Fix comment formatting.
12828 * config/ia64/aix.h: Likewise.
12829 * config/ia64/ia64-protos.h: Likewise.
12830 * config/ia64/ia64.c: Likewise.
12831 * config/ia64/ia64.h: Likewise.
12832 * config/ia64/ia64intrin.h: Likewise.
12833 * config/ia64/linux.h: Likewise.
12834 * config/ia64/unwind-aix.c: Likewise.
12835 * config/ia64/unwind-ia64.c: Likewise.
12837 2002-01-20 Kazu Hirata <kazu@hxi.com>
12839 * config/h8300/h8300.c: Revise comments about shift code.
12841 2002-01-20 Kazu Hirata <kazu@hxi.com>
12843 * config/h8300/h8300.c (function_arg): Update a comment.
12845 2002-01-20 Kazu Hirata <kazu@hxi.com>
12847 * config/h8300/h8300.md: Update the comments at the beginning
12850 2002-01-20 Kazu Hirata <kazu@hxi.com>
12852 * config/i370/i370.c: Fix comment formatting.
12853 * config/i370/i370.h: Likewise.
12854 * config/i370/i370.md: Likewise.
12855 * config/i370/linux.h: Likewise.
12857 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12859 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12861 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12862 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12863 in incomplete case.
12865 2002-01-20 Graham Stott <grahams@redhat.com>
12867 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12869 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
12871 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12873 2002-01-19 Tom Rix <trix@redhat.com>
12875 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12877 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
12879 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12881 * function.c (assign_stack_local_1): Adjust x_frame_offset with
12882 STARTING_FRAME_PHASE.
12883 (STARTING_FRAME_PHASE): New.
12884 (instantiate_virtual_regs): Check saneness of
12885 STARTING_FRAME_PHASE.
12887 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12889 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12891 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12893 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
12895 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12896 be used for bootstrapping GCC 3.0.
12898 2002-01-18 Kazu Hirata <kazu@hxi.com>
12900 * config/h8300/h8300.md: Fix an insn length.
12902 2002-01-18 Kazu Hirata <kazu@hxi.com>
12904 * bitmap.h: Fix comment formatting.
12905 * combine.c: Likewise.
12906 * cppfiles.c: Likewise.
12907 * c-pragma.h: Likewise.
12908 * c-typeck.c: Likewise.
12910 * dwarf2out.c: Likewise.
12911 * function.c: Likewise.
12913 * genattrtab.c: Likewise.
12914 * gthr-win32.h: Likewise.
12915 * haifa-sched.c: Likewise.
12916 * predict.c: Likewise.
12917 * rtlanal.c: Likewise.
12919 * unwind-dw2-fde.h: Likewise.
12920 * unwind-pe.h: Likewise.
12921 * vmsdbgout.c: Likewise.
12923 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12925 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12926 if type_required and passed decl.
12928 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12930 * config.gcc (cpu_type): Include altivec.h in powerpc
12934 * config/rs6000/altivec.h: New.
12936 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12938 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12939 handling information.
12940 * doc/trouble.texi (Interoperation): Add libstdc++ information
12942 (Misunderstandings): Add template instantiation and static template
12943 member information for AIX.
12945 2002-01-17 Jason Merrill <jason@redhat.com>
12947 * dbxout.c (dbxout_type): Support const and volatile.
12949 * except.c (add_partial_entry): Remove backwards compatibility code.
12950 (end_protect_partials): Likewise.
12952 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12954 * config/ia64/ia64.md (prologue_use): New.
12955 * config/ia64/ia64.c (ia64_expand_prologue): Use
12956 gen_prologue_use instead of gen_rtx_USE.
12957 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12958 as CODE_FOR_pred_rel_mutex.
12959 (ia64_sched_reorder2): Likewise.
12961 2002-01-16 Eric Christopher <echristo@redhat.com>
12963 * config/mips/r3900.h: Reformat.
12964 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12965 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12966 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12967 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12968 * config/mips/t-elf: Remove mips3 multilib.
12970 2002-01-16 H.J. Lu <hjl@gnu.org>
12972 * config/mips/linux.h: Include "mips/abi64.h".
12974 2002-01-16 H.J. Lu <hjl@gnu.org>
12976 * config/mips/t-linux: New.
12978 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12980 * config/mips/linux.h: Don't include "gofast.h".
12981 (INIT_SUBTARGET_OPTABS): Removed.
12983 2002-01-16 Kazu Hirata <kazu@hxi.com>
12985 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12987 * config/h8300/h8300.c: Likewise.
12988 * config/h8300/h8300.md: Likewise.
12990 2002-01-16 Kazu Hirata <kazu@hxi.com>
12992 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12993 spaces after an opcode name.
12994 (pushqi1_h8300hs): Likewise.
12995 (pushhi1_h8300hs): Likewise.
12997 2002-01-16 Kazu Hirata <kazu@hxi.com>
12999 * doc/extend.texi: Replace "option" with "attribute"
13002 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13004 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13005 (and:DI () (const_int -8)).
13006 (split_small_symbolic_mem_operand): Split
13007 (mem (and:DI () (const_int -8)).
13009 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13012 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13013 same way as TYPE_IMUL.
13014 (ultrasparc_sched_reorder): Likewise.
13015 * config/sparc/sparc.md (type): Add comment to update
13016 ultrasparc_sched_reorder when making changes.
13018 2002-01-16 Kazu Hirata <kazu@hxi.com>
13020 * doc/invoke.texi: Change the dump file name of block
13021 reordering pass from 28.bbro to 29.bbro.
13022 Mention -dk option.
13024 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
13026 * i386.md (minsf splitter): Fix pasto.
13028 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13030 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13031 to frame pointer initialisation instruction.
13032 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13033 initialisation instruction.
13034 (soft_df_operand): Do not accept the IP register.
13035 (nonimmediate_soft_df_operand): Do not accept the IP register.
13037 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13040 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13041 MASK_V8 being both set.
13043 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
13045 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13046 insn for GOT register; add REG_MAYBE_DEAD notes instead.
13047 config/s390/s390.md (call, call_value): Add GOT register to
13048 CALL_INSN_FUNCTION_USAGE where needed.
13049 (call_exp, call_value_exp): New.
13051 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13053 * config/arm/arm.c: General formatting tidy up.
13055 2002-01-16 Graham Stott <grahams@redhat.com>
13057 * calls.c (try_to_integrate): Use "(size_t)" intermediate
13058 cast and when casting an integer literal to "rtx" pointer.
13059 (expand_call): Likewise.
13060 * flow.c (try_pre_increment): Likewise.
13061 (find_use_as_address): Likewise.
13062 * integrate.c (expand_iline_function): Likewise.
13063 * regmove.c (try_auto_increment): Likewise.
13065 2002-01-16 Graham Stott <grahams@redhat.com>
13067 * sched-rgn.c (passed): Use sbitmap_free.
13068 (header): Likewise.
13070 (in_queue): Likewise.
13071 (in_stack): Likewise.
13073 2002-01-15 Eric Christopher <echristo@redhat.com>
13075 * flow.c (propagate_one_insn): Change to use fatal_insn.
13077 2002-01-15 Kazu Hirata <kazu@hxi.com>
13079 * expmed.c (extract_fixed_bit_field): Remove unused code.
13080 * system.h: Poison SLOW_ZERO_EXTEND.
13081 * doc/tm.texi: Remove.
13082 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13083 * config/arm/arm.h: Likewise.
13084 * config/avr/avr.h: Likewise.
13085 * config/clipper/clipper.h: Likewise.
13086 * config/convex/convex.h: Likewise.
13087 * config/d30v/d30v.h: Likewise.
13088 * config/dsp16xx/dsp16xx.h: Likewise.
13089 * config/elxsi/elxsi.h: Likewise.
13090 * config/fr30/fr30.h: Likewise.
13091 * config/h8300/h8300.h: Likewise.
13092 * config/i370/i370.h: Likewise.
13093 * config/i386/i386.h: Likewise.
13094 * config/m68k/m68k.h: Likewise.
13095 * config/mips/mips.h: Likewise.
13096 * config/ns32k/ns32k.h: Likewise.
13097 * config/pdp11/pdp11.h: Likewise.
13098 * config/pj/pj.h: Likewise.
13099 * config/s390/s390.h: Likewise.
13100 * config/sh/sh.h: Likewise.
13101 * config/stormy16/stormy16.h: Likewise.
13102 * config/v850/v850.h: Likewise.
13103 * config/vax/vax.h: Likewise.
13104 * config/we32k/we32k.h: Likewise.
13106 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13108 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13109 (altivec_lvsl): Change constraint to b.
13110 (altivec_lvsr): Same.
13111 (altivec_lvebx): Same.
13112 (altivec_lvehx): Same.
13113 (altivec_lvewx): Same.
13114 (altivec_lvxl): Same.
13115 (altivec_lvx): Same.
13116 (altivec_stvx): Add parallel.
13117 (altivec_stvxl): Same.
13118 (altivec_stvehx): Same.
13119 (altivec_stvebx): Same.
13120 (altivec_stvebx): Same.
13122 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13124 * config.gcc: Change altivec.h to altivec-defs.h.
13126 * config/rs6000/altivec.h: Delete.
13128 * config/rs6000/altivec-defs.h: Add.
13130 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
13132 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13135 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13136 less than or equal to eight bytes.
13138 * vax.md (andsi3): Remove constraints and change SET destination
13139 operand type to nonimmediate_operand.
13140 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
13141 when it is a CONST_INT.
13143 2002-01-15 Jason Merrill <jason@redhat.com>
13145 * c-common.def (FILE_STMT): New code.
13146 * c-common.c (statement_code_p): It's a statement.
13147 * c-common.h (stmt_tree_s): Add x_last_filename.
13148 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13149 (last_expr_filename): New macro.
13150 * c-semantics.c (begin_stmt_tree): Initialize it.
13151 (add_stmt): If the filename changed, also insert a
13153 (expand_stmt): Handle seeing one.
13155 2002-01-15 Eric Christopher <echristo@redhat.com>
13157 * flow.c (propagate_one_insn): Add error message and print out
13158 insn for debugging.
13160 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13162 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13163 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13164 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13165 TRAMPOLINE_ALIGNMENT.
13166 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
13168 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13169 PCC_BITFIELD_TYPE_MATTERS.
13170 * config/interix.h (STDC_VALUE): Remove. Use
13171 STDC_0_IN_SYSTEM_HEADERS.
13172 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13173 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13174 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13176 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
13178 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13179 not work on this platform currently.
13181 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13183 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13184 readonly_warning in _().
13186 2002-01-15 Douglas B Rupp <rupp@gnat.com>
13188 * gcc.c (delete_if_ordinary): Backout previous change.
13190 2002-01-15 Kazu Hirata <kazu@hxi.com>
13192 * config/h8300/h8300.c (print_operand): Remove support for
13193 unused operand characters.
13195 * read-rtl.c: Fix formatting.
13196 * real.c: Likewise.
13197 * recog.c: Likewise.
13198 * regclass.c: Likewise.
13199 * regmove.c: Likewise.
13200 * reg-stack.c: Likewise.
13201 * reload1.c: Likewise.
13202 * rtlanal.c: Likewise.
13204 2002-01-15 Kazu Hirata <kazu@hxi.com>
13206 * config/i386/i386.c: Fix formatting.
13208 2002-01-15 Jakub Jelinek <jakub@redhat.com>
13210 * c-typeck.c (process_init_element): Don't save_expr
13211 COMPOUND_LITERAL_EXPR if just its initializer will be used.
13213 2002-01-15 David Edelsohn <edelsohn@gnu.org>
13215 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13216 emit optional traceback table if optimize_size or TARGET_ELF.
13217 * config/rs6000/rs6000.md (prefetch): New.
13219 2002-01-15 Andreas Jaeger <aj@suse.de>
13221 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13223 2002-01-15 Kazu Hirata <kazu@hxi.com>
13225 * mips-tfile.c: Fix formatting.
13227 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
13229 * unroll.c (final_reg_note_copy): Fix previous commit.
13231 2002-01-14 Kazu Hirata <kazu@hxi.com>
13233 * config/h8300/h8300-protos.h: Remove the prototype for
13235 * config/h8300/h8300.c (eq_operator): Remove.
13237 2002-01-14 Richard Henderson <rth@redhat.com>
13239 * config/i386/i386.md (prefetch): Tidy.
13240 (prefetch_3dnow): Fix locality operand.
13242 2002-01-14 Richard Henderson <rth@redhat.com>
13244 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13245 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13247 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
13249 * reload1.c (reload_combine): Pass reg_sum replacement through
13250 copy_rtx in loop performing multiple changes.
13252 2002-01-14 Jakub Jelinek <jakub@redhat.com>
13254 * except.c (remove_unreachable_regions): New.
13255 (free_eh_status): Clear exception_handler_labels.
13256 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13257 (find_exception_handler_labels): Don't add the same label more than
13259 (remove_exception_handler_label): Don't die if
13260 find_exception_handler_labels hasn't been called for the current
13263 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
13265 * toplev.c (rest_of_compilation): Rebuild jump labels after
13268 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
13270 * doc/extend.texi: Move documentation of X86 built-in functions
13272 * doc/invoke.texi: From here.
13273 * doc/sourcebuild.texi: Document location of documentation for
13274 machine built-in functions.
13276 2002-01-13 Christopher Faylor <cgf@redhat.com>
13278 * cppfiles.c (TEST_THRESHOLD): New macro.
13279 (SHOULD_MMAP): Ditto.
13280 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13283 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
13285 * unroll.c (final_reg_note_copy): Properly handle
13287 (unroll_loops): Fix LOOP_CONDITION heuristics.
13289 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
13291 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13292 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13294 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
13296 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13299 2002-01-14 Tom Rix <trix@redhat.com>
13301 * config/rs6000/rs6000.md: Fix typo with sradi.
13303 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
13305 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13306 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13307 (clrstrdi, clrstrsi): Adapt callers.
13309 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13311 (movti splitter): Never use register 0 as base register.
13313 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13315 * combine.c (simplify_shift_const): Always generate new rtx
13316 for shift expression instead of reusing given expression.
13318 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13320 * config/alpha/alpha.c (alpha_expand_mov): Don't call
13321 alpha_legitimize_address unless mode is Pmode.
13323 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
13325 * doc/md.texi (Modifiers): Document the '*' constraint for the
13328 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13329 * doc/extend.texi (Function Attributes): 'interrupt' is valid
13332 2002-01-13 Richard Henderson <rth@redhat.com>
13334 * reload.c (find_reloads): Use a hard reg destination as reload reg
13335 for an input reload of the source.
13337 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13339 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13342 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
13344 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13345 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13347 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13349 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13351 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13353 2002-01-12 Tom Rix <trix@redhat.com>
13355 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13358 2002-01-12 Richard Henderson <rth@redhat.com>
13360 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13362 * doc/invoke.texi: Update Alpha options.
13364 * doc/invoke.texi: Update i386 built-in function lists.
13366 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
13368 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13369 referencing outside.
13371 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13373 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13374 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13375 offsets, and change line folding.
13376 * optabs.c (expand_binop): Remove warnings.
13377 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13379 2002-01-12 Graham Stott <grahams@redhat.com>
13381 * attribs.c (handle_deprecated_attribute): constify WHAT.
13382 * diagnostic.c (warn_deprecated_use): Add braces, fixes
13383 dangling else warning and constify WHAT.
13384 * except.h (struct function, struct inline_remap): Move
13385 struct tag forward defs before all prototypes.
13386 (duplicate_eh_regions): Whitespace.
13388 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
13390 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13391 MODE_BASE_REG_CLASS.
13392 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13394 2002-01-12 Richard Henderson <rth@redhat.com>
13396 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13397 (ix86_expand_vector_move): New.
13398 (bdesc_2arg): Remove andps, andnps, orps, xorps.
13399 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
13400 Remove old prefetch builtins. Special case the logicals removed above.
13401 (ix86_expand_builtin): Likewise.
13402 (safe_vector_operand): Use V4SFmode, not TImode.
13403 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
13404 (ix86_expand_timode_binop_builtin): New.
13405 * config/i386/i386-protos.h: Update.
13406 * config/i386/i386.h (enum ix86_builtins): Update.
13407 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13408 Use ix86_expand_vector_move in vector move expanders.
13409 (movti_internal, movti_rex64): Add xorps alternative.
13410 (sse_clrv4sf): Rename and adjust from sse_clrti.
13411 (prefetch): Don't work so hard.
13412 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13413 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13414 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13416 2002-01-11 Richard Henderson <rth@redhat.com>
13418 * config/i386/mmintrin.h: New file.
13419 * config/i386/xmmintrin.h: New file.
13420 * config.gcc (i?86-*-*): Add extra_headers.
13421 * simplify-rtx.c (simplify_unary_operation): Handle saturating
13423 (simplify_binary_operation): Handle saturating arithmetic codes.
13424 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13425 not the lowpart subreg.
13426 (ix86_expand_builtin): Return a TImode dummy register instead of 0
13428 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13430 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13432 * conflict.c (conflict_graph_compute): Free regsets when finished.
13433 * ssa.c (compute_coalesced_reg_partition): Likewise.
13435 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13437 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13438 every where we allocate a register.
13440 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13442 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13443 * lcm.c (compute_earliest, compute_farthest): Likewise.
13445 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13447 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13449 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13451 * doc/rtl.texi (Insns): Fix 2 typos.
13453 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
13455 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
13456 options. Use @table @gcctabopt for MMIX options. Add index
13457 entries for MMIX options. Start new paragraph with first
13458 heading of the machine-dependent options.
13460 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
13463 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13464 * combine.c (force_to_mode): Same.
13465 * reload1.c (clear_reload_reg_in_use): Same.
13467 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
13469 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13472 2002-01-11 Andreas Jaeger <aj@suse.de>,
13473 Brad Lucier <lucier@math.purdue.edu>
13475 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13478 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
13480 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13481 Protect with IN_LIBGCC.
13482 (LINK_EH_SPEC): Add required trailing space.
13484 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
13486 * c-tree.h: Move function declarations so that they are listed
13487 under the filename which contains them.
13488 (check_identifier, finish_decl_top_level,
13489 lookup_name_current_level_global, shadow_record_fields): Remove.
13491 2002-01-11 Andreas Jaeger <aj@suse.de>
13493 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13496 2002-01-10 Richard Henderson <rth@redhat.com>
13498 * config/alpha/alpha.c (print_operand): Add 'J'.
13499 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13500 new operand with the sequence number for the lituse. When splitting
13501 the insns, use gen_movdi_er_high_g and generate a sequence number.
13502 (gen_movdi_er_high_g): Print the sequence number if non-zero.
13504 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
13506 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13507 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13509 (altivec_expand_builtin): Same.
13510 (altivec_expand_stv_builtin): New.
13512 * config/rs6000/rs6000.h (rs6000_builtins): Same.
13514 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13515 ("altivec_lvehx"): New.
13516 ("altivec_lvewx"): New.
13517 ("altivec_lvxl"): New.
13518 ("altivec_lvx"): New.
13519 ("altivec_stvx"): New.
13520 ("altivec_stvebx"): New.
13521 ("altivec_stvehx"): New.
13522 ("altivec_stvewx"): New.
13523 ("altivec_stvxl"): New.
13525 2002-01-10 Richard Henderson <rth@redhat.com>
13527 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13528 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
13529 care not to delete instructions twice.
13531 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13533 * toplev.c: Don't declare environ (it's not used anywhere).
13534 * configure.in: Don't check for declaration of environ.
13535 * config/i386/xm-mingw32.h: Don't #define environ.
13536 * config.in, configure: Regenerate.
13538 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13540 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13541 * configure: Regenerate.
13543 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13544 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13545 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13547 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13548 LIMITS_H_TEST here, not in m68k/x-next.
13549 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13550 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13552 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13553 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13554 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
13556 * config/i386/x-djgpp: Renamed i386/t-djgpp.
13557 * config/m88k/x-dolph: Renamed m88k/t-dolph.
13558 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13559 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
13560 replacement of quadlib.asm with quadlib.c.
13562 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13563 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13564 config/rs6000/xm-beos.h: Delete file.
13566 * config.gcc: Update to match above changes.
13568 2002-01-10 Kazu Hirata <kazu@hxi.com>
13570 * config/h8300/h8300.h: Fix comment typos.
13571 * config/h8300/h8300.md: Likewise.
13572 * config/h8300/lib1funcs.asm: Likewise.
13574 2002-01-10 Dale Johannesen <dalej@apple.com>
13576 PR optimization/5269
13577 * unroll.c (precondition_loop_p): Make *increment be the correct
13578 sign when n_iterations known, to avoid confusing caller.
13580 2002-01-10 Kazu Hirata <kazu@hxi.com>
13582 * doc/extend.texi (deprecated): Fix a typo.
13584 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
13586 * basic-block.h (update_br_prob_note): Declare.
13587 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13588 (try_forward_edges): Care negative frequencies and update note.
13589 (outgoing_edges_match): Tweek conditional merging heuristics.
13590 (try_crossjump_to_edge): use update_br_prob_note.
13591 * cfglayout.c (fixup_reorder_chain): Likewise.
13592 * cfrtl.c (update_br_prob_note): New.
13593 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13595 * i386.c (ix86_decompose_address): Return -1 if address contains
13597 (legitimate_address_p): Require ix86_decompose_address to return 1.
13599 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13600 (cprop_insn): Likewise.
13602 2002-01-10 Kazu Hirata <kazu@hxi.com>
13604 * toplev.c: Fix formatting.
13605 * tree.c: Likewise.
13606 * tree-dump.c: Likewise.
13607 * unroll.c: Likewise.
13608 * unwind-dw2.c: Likewise.
13609 * unwind-dw2-fde.c: Likewise.
13610 * unwind-dw2-fde-glibc.c: Likewise.
13611 * unwind-sjlj.c: Likewise.
13613 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13615 * doc/invoke.texi: Document PDP-11 options.
13617 2002-01-10 Kazu Hirata <kazu@hxi.com>
13619 * config/h8300/h8300.h: Fix formatting.
13621 2002-01-10 Ira Ruben <ira@apple.com>
13623 Add __attribute__ ((deprecated)).
13624 * extend.texi: Document __attribute__ ((deprecated)).
13625 * invoke.texi: Document -Wno-deprecated-declarations.
13626 * testsuite/g++.dg/other/deprecated.C: New C++ test.
13627 * testsuite/gcc.dg/deprecated.c: New C test.
13628 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13629 (c_common_attribute_table): Add "deprecated" entry.
13630 (handle_deprecated_attribute): New function.
13631 * c-decl.c (deprecated_states): New enum.
13632 deprecated_state: State of "deprecated" handling.
13633 (start_decl): Set deprecated_state based on attributes.
13634 (grokdeclarator): Test for deprecated uses, propagate attribute.
13635 * c-typeck.c (build_component_ref): Test for deprecated fields.
13636 (build_external_ref): Test for deprecated primaries.
13637 * diagnostic.c (warn_deprecated_use) New function to issue
13638 warnings about __attribute__ ((depricated)) references.
13639 * flags.h (warn_deprecated_decl): Extern declared for
13640 -W[no-]deprecated-declarations option.
13641 * print-tree.c (print_node): Show deprecated flag status.
13642 * toplev.c (warn_deprecated_decl): Defined.
13643 (W_options): Added "deprecated-declaration".
13644 * toplev.h (warn_deprecated_use): Extern declared.
13645 * tree.h (struct tree_common): Define deprecated_flag.
13646 (TREE_DEPRECATED): New macro to access flag.
13647 * cp/call.c (build_call): Test for deprecated calls.
13648 * cp/class.c (add_implicitly_declared_members): Set global
13649 flag to tell grokdeclarator to not issue deprecated warnings.
13650 * cp/cp-tree.h: Add extern for adding_implicit_members.
13651 * cp/decl.c (deprecated_states): New enum.
13652 (start_decl): Set deprecated_state based on attributes.
13653 (grokdeclarator): Test for deprecated uses, propagate attribute.
13654 * cp/lex.c (do_identifier): Test for deprecated primaries.
13655 * cp/typeck.c (build_component_ref): Test for deprecated fields.
13657 2002-01-10 Ira Ruben <ira@apple.com>
13659 Fix to assign attributes to inline member functions.
13660 * cp/decl.c (start_method): Handle attrlist.
13662 2002-01-10 Kazu Hirata <kazu@hxi.com>
13664 * combine.c (expand_field_assignment): Use subreg_lsb().
13666 2002-01-10 David Edelsohn <edelsohn@gnu.org>
13668 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13669 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13670 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13671 Recurse for any operand of AND as long as constant is non-zero.
13673 2002-01-10 Kazu Hirata <kazu@hxi.com>
13675 * config/h8300/h8300.md: Remove constraints from expanders.
13677 2002-01-10 Kazu Hirata <kazu@hxi.com>
13679 * varasm.c: Fix formatting.
13680 * varray.c: Likewise.
13681 * vmsdbgout.c: Likewise.
13682 * xcoffout.c: Likewise.
13684 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
13686 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13687 update edge probabilities to match.
13689 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13691 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13693 * doc/languages.texi, doc/sourcebuild.texi: New files.
13694 * doc/configfiles.texi: Make a subsubsection. Update.
13695 * doc/configterms.texi: Add @node. Remove warning that this isn't
13696 instructions for building GCC.
13697 * doc/makefile.texi: Make a subsection.
13698 * doc/gccint.texi: Update.
13700 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
13702 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13704 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
13706 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13708 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
13710 * optabs.c (expand_fix): Look for wider integer modes first.
13712 * i386.md (mov?f): Avoid the fake const double trick for medium
13714 (min?f*/max?f*): Prohibit memory operands for i387 variant.
13715 (fop_df_4): Disable for SSE compilation.
13717 2002-01-10 Graham Stott <grahams@redhat.com>
13719 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13720 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13722 2002-01-10 Richard Henderson <rth@redhat.com>
13724 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13726 2002-01-10 Richard Henderson <rth@redhat.com>
13728 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13729 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
13731 2002-01-10 Kazu Hirata <kazu@hxi.com>
13733 * combine.c (can_combine_p): Fix a comment typo.
13735 2002-01-09 Zack Weinberg <zack@codesourcery.com>
13737 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13738 empty list correctly. Change loop index $t to $f for
13739 consistency with rest of Makefile.
13741 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
13743 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13744 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13746 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13747 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13748 (altivec_init_builtins): Same.
13749 (altivec_expand_unop_builtin): Return NULL_RTX on error.
13750 (altivec_expand_binop_builtin): Same.
13751 (altivec_expand_ternop_builtin): Same.
13754 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13755 ("altivec_vctuxs"): Fix typo.
13756 ("altivec_vnmsubfp"): Same.
13757 ("altivec_dssall"): New.
13758 ("altivec_mfvscr"): New.
13759 ("altivec_dss"): New.
13760 ("altivec_lvsl"): New.
13761 ("altivec_lvsr"): New.
13762 ("altivec_dstt"): New.
13763 ("altivec_dstst"): New.
13764 ("altivec_dststt"): New.
13765 ("altivec_dst"): New.
13767 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13768 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13770 2002-01-09 Richard Henderson <rth@redhat.com>
13772 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13774 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
13776 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13778 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13780 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13782 2002-01-09 Kazu Hirata <kazu@hxi.com>
13784 * read-rtl.c: Fix formatting.
13785 * real.c: Likewise.
13786 * regclass.c: Likewise.
13787 * regrename.c: Likewise.
13788 * reg-stack.c: Likewise.
13789 * reload1.c: Likewise.
13790 * reload.c: Likewise.
13793 2002-01-09 Kazu Hirata <kazu@hxi.com>
13795 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13796 to extract items in the expr_list chain.
13798 2002-01-09 Richard Henderson <rth@redhat.com>
13800 * config/vax/vax.c (vax_rtx_cost): Never abort.
13802 * config/vax/vax.h (REAL_ARITHMETIC): Define.
13804 2002-01-09 Jan Hubicka <jh@suse.cz>
13806 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13808 2002-01-09 Richard Henderson <rth@redhat.com>
13810 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13811 Unify code from various alternatives.
13813 2002-01-09 Richard Henderson <rth@redhat.com>
13815 * regrename.c (copy_value): Ignore the copy if the source register
13816 is present in the value chain with a narrower mode.
13818 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13820 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13821 for the c4x target. Also improve layout.
13823 2002-01-09 Richard Henderson <rth@redhat.com>
13825 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13826 * config/m32r/m32r.md (and ior xor splitters): Swap operands
13827 to match insn patterns.
13829 2002-01-09 Richard Henderson <rth@redhat.com>
13831 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13832 (copyprop_hardreg_forward_1): Likewise.
13834 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
13836 * pa.md (decrement_and_branch_until_zero): Change predicate for
13837 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13839 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13841 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13842 gets undefined. For Darwin.
13844 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13846 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13848 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13850 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13852 2002-01-08 Richard Henderson <rth@redhat.com>
13854 * regrename.c (copy_value): Ignore overlapping copies.
13856 2002-01-08 Richard Henderson <rth@redhat.com>
13858 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13859 as needed to avoid shared structure.
13861 2002-01-08 Kazu Hirata <kazu@hxi.com>
13863 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13866 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13868 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13869 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13870 documentation of obsolete macros.
13871 * system.h: Poison these macros.
13872 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13873 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13874 config/c4x/c4x.h, config/clipper/clipper.h,
13875 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13876 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13877 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13878 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13879 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13880 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13881 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13882 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13883 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13884 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13885 config/sparc/sparc.h, config/stormy16/stormy16.h,
13886 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13887 definitions and commented out definitions of obsolete macros.
13888 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13889 of MAX_INT_TYPE_SIZE.
13891 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13893 * config/s390/s390.c (s390_preferred_reload_class): Never
13894 return ADDR_REGS if it isn't a subset of the given class.
13895 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13896 FP_REGS, but all superclasses as well.
13898 * config/s390/s390.c (s390_function_profiler): Fix thinko.
13900 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13901 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13902 must not be a const_int.
13904 2002-01-08 Richard Henderson <rth@redhat.com>
13906 * Makefile.in (toplev.o): Depend on options.h.
13907 (gcc.o): Depend on specs.h.
13909 2002-01-08 Jakub Jelinek <jakub@redhat.com>
13911 * expr.c (store_expr): Convert VOIDmode constants back to target's
13914 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13916 * doc/invoke.texi: Markup gcc as @command. Refer to
13917 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13918 of http://gcc.gnu.org/thanks.html.
13920 2002-01-08 Dale Johannesen <dalej@apple.com>
13922 * config/rs6000/rs6000.md: Add missing int register
13923 target case to movdf_low.
13925 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13927 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13928 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13929 (cppinit.o): Depend on except.h.
13930 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13931 s-specs): New rules.
13933 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13934 Don't create specs.h/options.h/gencheck.h here. Remove
13935 unnecessary variable settings from last argument of AC_OUTPUT.
13936 * config.in, configure: Regenerate.
13937 * intl.c: Hardcode package name as "gcc".
13939 * cppinit.c: Include except.h.
13940 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13942 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13943 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13944 (!)USING_SJLJ_EXCEPTIONS.
13945 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13947 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13949 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13950 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13951 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13952 documentation of obsolete macros.
13953 * system.h: Poison these macros.
13954 * config/d30v/d30v.h, config/ns32k/encore.h,
13955 config/stormy16/stormy16.h: Remove definitions and commented out
13956 definitions of obsolete macros.
13958 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13960 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13961 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13964 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13966 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13967 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13968 to insn adjusting stack/frame pointer.
13969 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13970 accept operands that cause the insn to be non-splittable.
13972 2002-01-08 Graham Stott <grahams@redhat.com>
13974 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13975 (C_TYPE_FIELDS_VOLATILE): Likewise.
13976 (C_TYPE_BEING_DEFINED): Likewise.
13977 (C_IS_RESERVED_WORD): Likewise.
13978 (C_TYPE_VARIABLE_SIZE): Likewise.
13979 (C_DECL_VARIABLE_SIZE): Likewise.
13980 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13981 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13982 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13984 (C_DECL_ANTICIPATED): Likewise.
13985 (c_build_type_variant): Add parenthesis.
13987 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13989 * gcc.c (option_map): Remove --version.
13990 (process_command): Handle -fversion following the GNU Coding
13991 Standards. Partially addresses PR other/704.
13993 2002-01-08 Graham Stott <grahams@redhat.com>
13995 * combine.c (combine_instructions): Fix typo.
13997 2002-01-08 Graham Stott <grahams@redhat.com>
13999 * debug.h: Use "tree" and "rtx" throughout.
14001 * debug.c: Likewise.
14003 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
14005 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14006 constant pool, use the pool's version of the symbol instead.
14008 2002-01-07 Richard Henderson <rth@redhat.com>
14010 * regrename.c (find_oldest_value_reg): Ignore the value chain if
14011 the original register was copied in a mode with a fewer number of
14012 hard registers than the desired mode.
14013 (copyprop_hardreg_forward_1): Likewise.
14014 (debug_value_data): Fix loop test.
14015 * toplev.c (parse_options_and_default_flags): Reenable
14016 -fcprop-registers at -O1.
14018 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14020 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14021 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14023 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14026 * config/rs6000/rs6000.md: Add altivec predicate patterns.
14028 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14030 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14031 (pa_output_function_prologue): Output local label at the beginning of
14032 the prologue when profiling.
14033 (hppa_profile_hook): Use the local label rather than the function label.
14034 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14036 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14038 * config/rs6000/rs6000.c (print_operand): Remove extra space.
14039 (altivec_expand_unop_builtin): Fix thinko.
14040 (altivec_expand_binop_builtin): Same.
14041 (altivec_expand_ternop_builtin): Same.
14042 (altivec_expand_builtin): Same.
14044 2002-01-07 Richard Henderson <rth@redhat.com>
14046 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14048 2002-01-07 Jason Merrill <jason@redhat.com>
14050 * unwind-dw2.c (execute_cfa_program): Use < again.
14052 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14054 * predict.c (combine_predictions_for_insn): Avoid division by zero.
14056 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14058 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14059 Don't allow -1 - x -> ~x simplifications in the first pass.
14061 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14063 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14065 (altivec_expand_binop_builtin): Same.
14066 (altivec_expand_unop_builtin): Same.
14067 (print_operand): Fix typo.
14068 (bdesc_1arg): Add vupk* variants.
14070 * rs6000.h (rs6000_builtins): Add vupk* enums.
14072 * rs6000.md: Add altivec_vupk* variants.
14074 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
14076 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14077 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14078 and last update dates.
14080 2002-01-07 Janis Johnson <janis187@us.ibm.com>
14082 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14084 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
14086 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14087 * config/avr/avr.h (CPP_SPEC): Likewise.
14088 (LINK_SPEC): Likewise.
14089 (CRT_BINUTILS_SPECS): Likewise.
14090 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14091 * doc/invoke.texi (AVR Options): Document them.
14093 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
14095 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14098 2002-01-07 Graham Stott <grahams@redhat.com>
14100 * config/i386/i386.h: Update copyright date.
14101 (HALF_PIC_PTR): Add parenthesis.
14102 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14103 (CONSTANT_ALIGNMENT): Add parenthesis.
14104 (DATA_ALIGNMENT): Likewise.
14105 (LOCAL_ALIGNMENT): Likewise.
14106 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14107 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14108 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14109 (HARD_REGNO_NREGS): Add paranethesis.
14110 (VALID_SSE_REG_MODE): Whitespace.
14111 (VALID_MMX_REG_MODE): Whitespace.
14112 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14113 (ix86_hard_regno_mode_ok): Add parenthesis.
14114 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14115 (RETURN_IN_MEMORY): Whitespace.
14116 (N_REG_CLASSES): Add parenthesis.
14117 (INTEGER_CLASS_P): Add parenthesis and wrap.
14118 (FLOAT_CLASS_P): Likewise.
14119 (SSE_CLASS_P): Likewise.
14120 (MMX_CLASS_P): Likewise.
14121 (MAYBE_INTEGER_CLASS_P): Likewise.
14122 (MAYBE_FLOAT_CLASS_P): Likewise.
14123 (MAYBE_SSE_CLASS_P): Likewise.
14124 (MAYBE_MMX_CLASS_P): Likewise.
14125 (Q_CLASS_P): Likewise.
14126 (GENERAL_REGNO_P): Uppercase macro parameter.
14127 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14128 (FP_REGNO_P): Likewise.
14129 (ANY_FP_REGNO_P): Uppercase macro parameter.
14130 (SSE_REGNO_P): Likewise.
14131 (SSE_REGNO): Likewise.
14132 (SSE_REG_P): Likewise.
14133 (SSE_FLOAT_MODE_P): Likewise.
14134 (MMX_REGNO_P): Likewise.
14135 (MMX_REG_P):Likewise.
14136 (STACK_REG_P): Likewise.
14137 (NON_STACK_REG_P): Likewise.
14138 (STACK_TOP_P): Likewise.
14139 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14140 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14141 (SECONDARY_MEMORY_NEEDED): Likewise.
14142 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14143 (MD_ASM_CLOBBERS): Whitespace and wrap.
14144 (MUST_PASS_IN_STACK): Whitespace and wrap.
14145 (RETURN_POPS_ARGS): Add parenthesis.
14146 (INIT_CUMULATIVE_ARGS): Likewise.
14147 (FUNCTION_ARG): Likewise.
14148 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14149 (SETUP_INCOMING_VARARGS): Likewise.
14150 (BUILD_VA_LIST_TYPE): Add parenthesis.
14151 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14153 (EXPAND_BUILTIN_VA_ARG): Likewise.
14154 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14155 (INITIALIZE_TRAMPOLINE): Add parenthesis.
14156 (INITIAL_ELIMINATION_OFFSET): Likewise.
14157 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14158 (REGNO_OK_FOR_BASE_P): Likewise.
14159 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14160 (REGNO_OK_FOR_DIREG_P): Likewise.
14161 (REG_OK_FOR_INDEX_P): Whitespace.
14162 (REG_OK_FOR_BASE_P): Whitespace.
14163 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14165 (FIND_BASE_TERM): Fix typo.
14166 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
14167 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14168 (SYMBOLIC_CONST; Whitespace.
14169 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
14170 (ENCODE_SECTION_INFO): Whitespace.
14171 (FINALIZE_PIC): Remove do { ... } while (0).
14172 (PROMOTE_MODE): Wrap in do { ... } while (0).
14173 (CONST_COSTS): Whitespace.
14174 (RTX_COSTS): Add paramethesis, whitespace and wrap.
14175 (REGISTER_MOVE_COST): Add parenthesis.
14176 (MEMORY_MOVE_COST): Likewise.
14177 (EXTRA_CC_MODES): Whitespace.
14178 (SELECT_CC_MODE): Add parenthesis and whitespace.
14179 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14180 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14181 (ASM_OUTPUT_LABEL): Add paramethesis.
14182 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14183 (ASM_OUTPUT_REG_POP): Likewise.
14184 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14185 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14187 * config/i386/i386.c: Update copyright.
14188 (CHECK_STACK_LIMIT): Add parenthesis.
14189 (AT_BP): Uppercase macro parameter.
14190 (x86_64_int_parameter_registers): Constify.
14191 (x86_64_int_return_registers): Likewise.
14192 (ix86_compare_op0): Use rtx.
14193 (construct_container): Constify INTREG parameter.
14194 (function_arg): Use rtx.
14196 * diagnostic.h: Update copyright date.
14197 (output_buffer_state): Add parenthesis.
14198 (output_buffer_format_args): Likewise.
14200 * combine.c (combine_instructions): Replace XEXP (links, 0)
14203 2002-01-06 H.J. Lu <hjl@gnu.org>
14205 * cfgcleanup.c (thread_jump): Fix 2 typos.
14207 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
14209 * config.gcc: Add support for --enable-altivec.
14211 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14213 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14215 2002-01-06 Jakub Jelinek <jakub@redhat.com>
14217 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14218 __objc_class_name_*.
14220 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14222 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14224 2002-01-06 Richard Henderson <rth@redhat.com>
14226 * reorg.c (emit_delay_sequence): Remove death notes, not merely
14227 nop them out. Increment label reference count for REG_LABEL.
14228 (fill_slots_from_thread): Frob label reference count around
14229 delete_related_insns.
14231 2002-01-05 Richard Henderson <rth@redhat.com>
14233 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14236 2002-01-05 Richard Henderson <rth@redhat.com>
14238 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14239 * integrate.c (output_inline_function): Likewise.
14240 * toplev.c (rest_of_compilation): Do it here instead. Move call
14241 to remove_unnecessary_notes after emitting abstract instance.
14242 Force an emitted nested function to have its parent emited as well.
14243 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14245 (rtl_for_decl_location): Do not look at reload data structures
14246 before reload has run.
14248 2002-01-05 Kazu Hirata <kazu@hxi.com>
14250 * cse.c: Fix formatting.
14251 * dwarf2asm.c: Likewise.
14252 * dwarf2out.c: Likewise.
14253 * explow.c: Likewise.
14254 * expmed.c: Likewise.
14255 * function.c: Likewise.
14256 * gcov.c: Likewise.
14257 * gencheck.c: Likewise.
14258 * genrecog.c: Likewise.
14259 * ggc-common.c: Likewise.
14260 * ggc-page.c: Likewise.
14261 * global.c: Likewise.
14263 2002-01-05 Kazu Hirata <kazu@hxi.com>
14265 * combine.c: Fix formatting.
14267 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
14270 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14272 2002-01-05 David Edelsohn <edelsohn@gnu.org>
14274 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14275 as 1 for __powerpc64__ as well.
14277 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14279 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14282 2002-01-05 Daniel Berlin <dan@dberlin.org>
14284 * lcm.c: Revert change, due to performance regression it causes on
14285 SPEC because it's slightly more conservative (sigh, I hate
14288 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
14290 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14292 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
14294 * doc/cppinternals.texi: Update.
14296 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
14298 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14299 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14301 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
14302 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14303 kludge for pre-october-14th mmix versions to handle new-found bug
14304 with PUSHJ/PUSHGO and the register stack.
14305 * config/mmix/mmix.h (struct machine_function): Rename member
14306 has_call_value_without_parameters to has_call_without_parameters.
14307 All referers changed.
14308 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14309 TARGET_MASK_BRANCH_PREDICT): New macros.
14310 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14311 -mno-reg-stack-fill-bug-workaround.
14312 * config/mmix/mmix.md ("call"): Set struct machine member
14313 has_call_without_parameters.
14315 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
14317 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14319 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
14321 * cfgcleanup.c: Include tm_p.h
14322 (mark_effect): Fix handling of hard register; fix handling of SET
14324 2002-01-04 Kazu Hirata <kazu@hxi.com>
14326 * config/h8300/h8300.md (anonymous patterns): Check that
14327 operands are registers before using REGNO on them.
14329 2002-01-03 Roland McGrath <roland@frob.com>
14331 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14333 2002-01-04 Jakub Jelinek <jakub@redhat.com>
14335 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14336 * c-common.h (genrtl_expr_stmt_value): Likewise.
14337 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14338 (expand_expr_stmt_value): Add maybe_last argument.
14339 Don't warn about statement with no effect if it is the last statement
14340 in expression statement.
14341 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14342 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14343 expand_expr_stmt_value.
14344 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14345 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14346 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14347 as maybe_last to expand_expr_stmt_value.
14349 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
14351 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14352 be passed in, do not build it.
14353 (c_begin_if_stmt): New function.
14354 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14355 * c-common.h (c_expand_start_cond): Update prototype.
14356 (c_begin_if_stmt): Prototype new function.
14357 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14358 * c-parse.in (if_prefix): Use c_begin_if_stmt,
14359 c_begin_while_stmt and c_finish_while_stmt_cond.
14361 2002-01-04 William Cohen <wcohen@redhat.com>
14363 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14364 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14365 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14366 * config/pa/som.h (ASM_FILE_START): Likewise.
14368 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
14370 * lcm.c: Include df.h.
14371 Add available_transfer_function prototype.
14372 (compute_available): Rework to use iterative dataflow framework.
14373 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14374 with bb_info in df.h
14375 (available_transfer_function): New function.
14377 * Makefile.in (lcm.o): add df.h to dependencies.
14379 2002-01-04 Richard Henderson <rth@redhat.com>
14381 * config/alpha/alpha.c (some_operand): Accept HIGH.
14382 (input_operand): Likewise; accept simple references to globals.
14383 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14384 (alpha_const_double_ok_for_letter_p): Likewise.
14385 (alpha_extra_constraint): Likewise.
14386 (alpha_preferred_reload_class): Likewise. Do not force
14387 symbolic constants to memory.
14388 (alpha_legitimate_address_p): Accept simple references
14389 to small_symbolic_operand.
14390 (alpha_legitimize_address): New arg scratch. Be prepared to be
14391 called when no_new_pseudos. Emit simple symbolic references.
14392 Split integers into low, high, and rest.
14393 (alpha_expand_mov): Use alpha_legitimize_address.
14394 (some_small_symbolic_mem_operand): New.
14395 (split_small_symbolic_mem_operand): New.
14396 * config/alpha/alpha-protos.h: Update.
14397 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14398 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14399 (EXTRA_CONSTRAINT): Likewise.
14400 (PREFERRED_RELOAD_CLASS): Likewise.
14401 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14402 (PREDICATE_CODES): Update.
14403 * config/alpha/alpha.md: New post-reload splitters to convert
14404 simplfied symbolic operands to the form that references $29.
14405 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14406 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14408 2002-01-03 Richard Henderson <rth@redhat.com>
14410 * local-alloc.c (function_invariant_p): Update commentary.
14412 2002-01-04 H.J. Lu <hjl@gnu.org>
14414 * toplev.c (rest_of_compilation): Fix a typo when calling
14417 2002-01-03 Kazu Hirata <kazu@hxi.com>
14419 * c-common.c: Fix formatting.
14420 * diagnostic.c: Likewise.
14421 * doloop.c: Likewise.
14422 * dwarf2out.c: Likewise.
14424 2002-01-03 Kazu Hirata <kazu@hxi.com>
14426 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14427 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14429 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14431 * cpperror.c: Update comments and copyright.
14432 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14433 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14435 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14437 * collect2.c (main): Use strcmp when testing for "-shared".
14439 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14441 * cppmacro.c: Don't include intl.h. Update comments.
14442 (new_number_token): Allocate enough buffer for 64-bit unsigned
14443 integers; update prototype.
14444 * cppmain.c: Update comments.
14446 2002-01-03 William Cohen <wcohen@redhat.com>
14448 * function.h (struct function): Add profile.
14449 (current_function_profile): New.
14450 doc/extend.texi: Update documentation.
14451 * final.c (final_start_function): Use current_function_profile
14452 instead of profile_flag.
14453 (profile_after_prologue): Likewise.
14454 * function.c (expand_function_start): Likewise.
14455 (expand_function_start): Likewise.
14456 * config/alpha/alpha.c (direct_call_operand):
14457 (alpha_does_function_need_gp): Likewise.
14458 (alpha_expand_prologue): Likewise.
14459 * config/arm/arm.c (arm_expand_prologue): Likewise.
14460 thumb_expand_prologue: Likewise.
14461 * config/d30v/d30v.c (d30v_stack_info): Likewise.
14462 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14463 (fr30_expand_prologue): Likewise.
14464 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14465 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14466 * config/i386/i386.h (FINALIZE_PIC): Likewise.
14467 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14468 * config/i960/i960.c (i960_output_function_prologue): Likewise.
14469 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14470 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14471 (m32r_expand_prologue): Likewise.
14472 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14473 (m88k_expand_prologue): Likewise.
14474 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14475 * config/mips/mips.c (compute_frame_size): Likewise.
14476 (mips_expand_prologue): Likewise.
14477 (mips_can_use_return_insn): Likewise.
14478 * config/pa/elf.h (ASM_FILE_START): Likewise.
14479 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14480 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14481 * config/pa/som.h (ASM_FILE_START): Likewise.
14482 * config/romp/romp.c (romp_using_r14): Likewise.
14483 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14484 (rs6000_stack_info): Likewise.
14485 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14486 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14487 * config/v850/v850.c (compute_register_save_size): Likewise.
14489 2002-01-03 Jakub Jelinek <jakub@redhat.com>
14491 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14492 gen_lowpart_common fails, use gen_lowpart_SUBREG.
14494 2002-01-03 Turly O'Connor <turly@apple.com>
14496 * darwin.c (machopic_output_possible_stub_label): Don't generate
14497 stub routines for pseudo-stubs which we've just defined.
14499 2002-01-03 Kazu Hirata <kazu@hxi.com>
14501 * builtins.c: Fix formatting.
14502 * c-typeck.c: Likewise.
14503 * combine.c: Likewise.
14504 * expr.c: Likewise.
14505 * loop.c: Likewise.
14507 2002-01-03 Andreas Schwab <schwab@suse.de>
14509 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14510 and return true if _cpp_push_next_buffer pushed a new include
14512 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14513 _cpp_pop_file_buffer did not push a new file.
14514 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14516 2002-01-02 Eric Christopher <echristo@redhat.com>
14518 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14519 FIND_REG_INC_NOTE call. Update copyright.
14520 * loop.c (canonicalize_condition): Ditto.
14521 * reorg.c (delete_scheduled_jump): Ditto.
14523 2002-01-03 Kazu Hirata <kazu@hxi.com>
14525 * gcse.c: Fix formatting.
14527 2002-01-03 Graham Stott <grahams@redhat.com>
14529 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14530 forward defs for struct tags rtx_def, union_tree, rtvec_def
14531 also output corresponding typedefs for rtx, tree, and rtvec.
14533 * system.h: Move forward defs for struct tags rtx_def, union_tree,
14534 rtvec_def along with corresponding typedefs for rtx, tree, and
14535 rtvec to config.h, hconfig.h, tconfig.h.
14537 2002-01-03 Graham Stott <grahams@redhat.com>
14539 * tree.h: Update copyright date.
14540 (IS_EXPR_CODE_CLASS): Add parenthesis.
14541 (TREE_SET_CODE): Add whitespace.
14542 (TREE_CHECK): Add parenthesis.
14543 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14544 (CST_OR_CONSTRUCTOR_CHECK):
14545 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14546 (TREE_SYMBOL_REFERENCED): Whitespace.
14547 (INT_CST_LT): Likewise.
14548 (INT_CST_LT_UNSIGNED): Likewise.
14549 (tree_real_cst): Unwrap comment.
14550 (tree_string): Likewise.
14551 (tree_complex): Likewise.
14552 (IDENTIFIER_POINTER): correct cast.
14553 (SAVE_EXPR_CONTEXT): Whitespace.
14554 (EXPR_WFL_FILENAME_NODE): Likewise.
14555 (EXPR_WFL_FILENAME): Remove parenthesis.
14556 (DECL_ORIGIN): Add parenthesis.
14557 (DECL_FROM_INLINE): Use NULL_TREE.
14558 (build_int_2): Whitespace.
14559 (build_type_variant): Add parenthesis.
14561 * gcc/jcf-parse.c: Update copyright date.
14562 (yyparse): Constify resource_filename.
14564 2002-01-03 Graham Stott <grahams@redhat.com>
14566 * rtl.h: Update copyright date.
14567 (RTL_CHECK1): Wrap long line.
14568 (RTL_CHECK2): Likewise.
14569 (RTL_CHECKC1): Wrap long line and whitespace.
14570 (RTL_CHECKC2): Likewise.
14571 (XWINT): Whitespace.
14577 (XBITMAP): Likewise.
14579 (XBBDEF): Likewise.
14581 (X0WINT): Likewise.
14583 (X0UINT): Likewise.
14587 (X0MODE): Likewise.
14588 (X0BITMAP): Likewise.
14589 (X0TREE): Likewise.
14590 (X0BBDEF): Likewise.
14591 (X0ADVFLAGS): Likewise.
14592 (X0CSELIB): Likewise.
14593 (X0MEMATTR): Likewise.
14594 (XCWINT): Likewise.
14596 (XCUINT): Likewise.
14600 (XCMODE): Likewise.
14601 (XCBITMAP): Likewise.
14602 (XCTREE): Likewise.
14603 (XCBBDEF): Likewise.
14604 (XCADVFLAGS): Likewise.
14605 (XCCSELIB): Likewise.
14606 (XC2EXP): Likewise.
14607 (INSN_UID): Likewise.
14608 (PREV_INSN): Likewise.
14609 (PATTERN): Likewise.
14610 (INSN_CODE): Likewise.
14611 (PUT_REG_NOTE_KIND): Likewise.
14612 (CODE_LABEL_NUMBER): Likewise.
14613 (NOTE_SOURCE_FILE): Likewise.
14614 (NOTE_BLOCK): Likewise.
14615 (NOTE_EH_HANDLER): Likewise.
14616 (NOTE_RANGE_INFO): Likewise.
14617 (NOTE_LIVE_INFO): Likewise.
14618 (NOTE_BASIC_BLOCK): Likewise.
14619 (NOTE_EXPECTED_VALUE): Likewise.
14620 (NOTE_LINE_NUMBER): Likewise.
14621 (LABEL_NAME): Likewise.
14622 (LABEL_NUSES): Likewise.
14623 (LABEL_ALTERNATE_NAME): Likewise.
14624 (ADDRESSOF_DECL): Likewise.
14625 (JUMP_LABEL): Likewise.
14626 (LABEL_NEXTREF): Likewise.
14628 (ORIGINAL_REGNO: Likewise.
14629 (HARD_REGISTER_NUM_P): Add parenthesis.
14630 (SUBREG_REG): Whitespace.
14631 (SUBREG_BYTE): Likewise.
14632 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14633 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14634 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14635 (ASM_OPERANDS_INPUT_VEC): Likewise.
14636 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14637 (ASM_OPERANDS_INPUT): Likewise.
14638 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14639 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14640 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14641 (ASM_OPERANDS_INPUT_MODE): Likewise.
14642 (ASM_OPERANDS_SOURCE_FILE): Likewise.
14643 (ASM_OPERANDS_SOURCE_LINE): Likewise.
14644 (MEM_SET_IN_STRUCT_P): Minor reformat.
14645 (TRAP_CONDITION): Whitespace.
14646 (TRAP_CODE): Likewise.
14647 (COND_EXEC_TEST): Likewise.
14648 (COND_EXEC_CODE): Likewise.
14649 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14650 (PHI_NODE_P): Add parenthesis.
14651 (plus_constant): Whitespace and add parenthesis.
14653 2002-01-03 Kazu Hirata <kazu@hxi.com>
14655 * config/avr/avr.c: Fix comment typos.
14656 * config/c4x/c4x.md: Likewise.
14657 * config/dsp16xx/dsp16xx.h: Likewise.
14658 * config/dsp16xx/dsp16xx.md: Likewise.
14659 * config/i386/i386.md: Likewise.
14660 * config/ia64/ia64.c: Likewise.
14661 * config/m32r/m32r.h: Likewise.
14662 * config/m68hc11/m68hc11.md: Likewise.
14663 * config/mmix/mmix.c: Likewise.
14664 * config/mn10200/mn10200.c: Likewise.
14665 * config/romp/romp.c: Likewise.
14666 * config/sh/sh.c: Likewise.
14667 * config/stormy16/stormy16.c: Likewise.
14668 * config/stormy16/stormy16.h: Likewise.
14669 * config/stormy16/stormy16.md: Likewise.
14671 2002-01-03 Graham Stott <grahams@redhat.com>
14673 * loop.h: Update copyright date.
14674 (LOOP_MOVABLES): Fix typo.
14675 (LOOP_REGS): Likewise.
14676 (LOOP_IVS): Likewise.
14678 2002-01-03 Graham Stott <grahams@redhat.com>
14680 * cppinit.c: Update copyright date.
14681 Don't include output.h
14682 * Makefile.in: Update copyright date.
14685 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
14688 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14689 (-pthread) Add to RS/6000 options.
14691 2002-01-02 Kazu Hirata <kazu@hxi.com>
14693 * except.c: Fix comment typos.
14694 * loop.c: Likewise.
14695 * varasm.c: Likewise.
14696 * doc/tm.texi: Fix a typo.
14698 2002-01-02 Jakub Jelinek <jakub@redhat.com>
14700 * c-typeck.c (output_init_element): Allow initializing static storage
14701 duration objects with compound literals.
14703 2002-01-02 Richard Henderson <rth@redhat.com>
14705 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14708 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14710 * gcc.c (default_compilers): Const-ify.
14711 * mips-tdump.c (stab_names): Likewise.
14712 * mips-tfile.c (map_coff_types, map_coff_storage,
14713 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14714 pseudo_ops_t, pseudo_ops): Likewise.
14715 * protoize.c (default_include): Likewise
14717 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14718 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14719 Add array size in declaration.
14720 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14721 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14722 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14723 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14724 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14725 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14726 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14727 emtens, make_nan): Const-ify.
14728 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14729 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14731 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
14733 * config.gcc (ia64-*-*): Set extra_headers.
14734 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
14735 * config/alpha/t-osf: Remove.
14736 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14738 2002-01-02 David Edelsohn <edelsohn@gnu.org>
14740 * config/rs6000/t-aix43: Revert previous change.
14742 2002-01-02 Jason Merrill <jason@redhat.com>
14744 * c-decl.c (c_expand_body): Call outlining_inline_function when
14745 emitting an inline function out of line.
14747 2002-01-02 Richard Henderson <rth@redhat.com>
14749 * dwarf2out.c (limbo_die_node): Add created_for member.
14750 (new_die): New argument created_for. Update all callers.
14751 (mark_limbo_die_list): New.
14752 (dwarf2out_init): Register limbo_die_list as a root.
14753 (dwarf2out_finish): Force insert limbo dies into their function
14756 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
14759 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14761 2002-01-02 Kazu Hirata <kazu@hxi.com>
14763 * config/h8300/fixunssfsi.c: Update copyright.
14766 * config/h8300/h8300.c: Update copyright.
14767 Eliminate warnings.
14769 2002-01-02 Kazu Hirata <kazu@hxi.com>
14771 * config/romp/romp.c: Fix comment formatting.
14772 * config/romp/romp.h: Likewise.
14773 * config/romp/romp.md: Likewise.
14774 * config/s390/s390.c: Likewise.
14775 * config/stormy16/stormy16.c: Likewise.
14776 * config/stormy16/stormy16.h: Likewise.
14778 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
14780 * c-common.h (genrtl_expr_stmt_value): Declare.
14781 * c-semantics.c (genrtl_goto_stmt): Redirect to...
14782 (genrtl_goto_stmt_value): ... this new function. Pass new
14783 argument down to expand_expr_stmt_value, taking
14784 TREE_ADDRESSABLE into account.
14785 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14786 STMT_EXPR as addressable, i.e., one whose result we want.
14787 * expr.c (expand_expr): Don't save expression statement value
14788 of labeled_blocks or loop_exprs.
14789 * stmt.c (expand_expr_stmt): Redirect to...
14790 (expand_expr_stmt_value): ... this new function. Use new
14791 argument to tell whether to save expression value.
14792 (expand_end_stmt_expr): Reset last_expr_type and
14793 last_expr_value if we don't have either.
14794 * tree-inline.c (declare_return_variable): Mark its use
14795 statement as addressable.
14796 * tree.h: Document new use of TREE_ADDRESSABLE.
14797 (expand_expr_stmt_value): Declare.
14799 2002-01-01 Tom Rix <trix@redhat.com>
14801 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14802 rs6000_emit_allocate_stack.
14804 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
14806 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14807 ${srcdir}/ginclude/ to every entry in extra_headers.
14808 * configure: Regenerate.
14809 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14810 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14811 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14812 * ginclude/proto.h: Rename to config/convex/proto.h.
14814 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14816 * attribs.c (handle_vector_size_attribute): Use host_integerp
14817 and tree_int_cst; remove warnings.
14818 * caller-save.c (insert_restore): Add cast to get rid of warning.
14819 (insert_save): Likewise.
14820 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14821 * regmove.c (find_matches): Add temporary var to kill a warning.
14823 2002-01-01 Douglas B Rupp <rupp@gnat.com>
14825 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14826 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14827 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14828 (vms-dwarf2eh.o): Add Makefile rule.
14829 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14830 * config/alpha/vms-dwarf2eh.asm: New file.
14832 * gcc.c (delete_if_ordinary): Delete all versions.
14834 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
14836 * config/mmix/mmix.md: Update FIXME to not mention
14838 (MMIX_rJ_REGNUM): New define_constants constant.
14839 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14840 "*movdicc_real"): Adjust contraints formatting.
14841 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14842 for branch prediction.
14843 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14845 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14846 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14847 number. Delete related FIXMEs.
14848 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14849 from number to MMIX_rJ_REGNUM.
14850 (TARGET_MASK_BRANCH_PREDICT): New.
14851 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14852 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
14853 value. Add -mbranch-predict and -mno-branch-predict.
14854 (TARGET_VERSION): Drop date.
14855 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14856 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14857 for finding out global symbols.
14858 (mmix_asm_output_labelref): Revert condition for global symbol.
14859 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14860 (mmix_print_operand_punct_valid_p): A '+' is valid.
14862 See ChangeLog.6 for earlier changes.