]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments.
[gcc.git] / gcc / ChangeLog
CommitLineData
da6eec72
RH
12002-10-15 Richard Henderson <rth@redhat.com>
2
3 * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
4 as arguments. Bound DIGITS by the available buffer size.
5 (real_to_hexadecimal): Likewise.
6 * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
7 (REAL_VALUE_TO_DECIMAL): Remove.
8 * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
9 sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
10 config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
11 config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
12 config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
13 config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
14 config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
15 use real_to_decimal directly, and with the proper arguments.
16 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
17
c15c18c5
JW
182002-10-15 Jim Wilson <wilson@redhat.com>
19
20 * reload1.c (merge_assigned_reloads): After converting overlapping
21 reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
22
23 * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
24
74f6d071
JH
25Tue Oct 15 22:08:35 CEST 2002 Jan Hubicka <jh@suse.cz>
26
27 * expr.c (do_tablejump): Fix typo in my previous commit.
28
a2ee89d8
RS
292002-10-15 Richard Sandiford <rsandifo@redhat.com>
30
31 * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
32
aee4e0db
UW
332002-10-15 Ulrich Weigand <uweigand@de.ibm.com>
34
35 * config/s390/s390.c (s390_split_branches): Add return
36 value. Add parameters TEMP_REG and TEMP_USED. Use unspec 104.
37
38 (find_base_register_in_addr): New function.
39 (find_base_register_ref): New function.
40 (replace_base_register_ref): New function.
41
42 (struct constant_pool): Add members pool_insn, insns, and anchor.
43 Remove member last_insn.
44 (s390_start_pool): Initialize them.
45 (s390_end_pool): Emit pool placeholder insn.
46 (s390_add_pool_insn): New function.
47 (s390_find_pool): Use insns bitmap instead of addresses.
48 (s390_dump_pool): Replace placeholder insn. Emit anchor.
49 Replace unspec 104 by local-pool-relative references.
50 (s390_output_constant_pool): Output anchor label if required.
51 (s390_output_symbolic_const): Handle unspec 104 and 105.
52 (s390_add_pool): Remove, replace by ...
53 (s390_add_constant, s390_find_constant): ... these new functions.
54 (s390_add_anchor): New function.
55
56 (s390_chunkify_pool): Delete, replace by ...
57 (s390_chunkify_start, s390_chunkify_finish,
58 s390_chunkify_cancel): ... these new functions.
59 (s390_optimize_prolog): Add parameter TEMP_REGNO.
60 Recompute register live data for special registers.
61 (s390_fixup_clobbered_return_reg): New function.
62 (s390_machine_dependent_reorg): Rewrite to use new
63 s390_chunkify_... routines.
64
65 config/s390/s390.md ("reload_base"): Rename to ...
66 ("reload_base_31"): ... this.
67 ("reload_base_64"): New insn.
68 ("reload_base2"): Remove.
69 ("reload_anchor"): New insn.
70 ("pool"): New insn.
71
72 s390.c (s390_pool_overflow): Remove.
73 s390.h (s390_pool_overflow): Likewise.
74 s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
75
c034672a
R
76Tue Oct 15 16:51:04 2002 J"orn Rennecke <joern.rennecke@superh.com>
77
78 * sh.md (movv8qi_i+2): Don't split if source is -1.
79
b8db17af
JJ
802002-10-15 Janis Johnson <janis187@us.ibm.com>
81
82 * doc/install.texi: Formatting changes for conformance to HTML 4.01.
83
2d34c587
UW
842002-10-15 Ulrich Weigand <uweigand@de.ibm.com>
85
86 PR opt/7409
87 * loop.c (loop_regs_scan): Mark registers used for function
88 argument passing as MAY_NOT_OPTIMIZE.
89
1877be45
JH
90Mon Oct 14 20:33:12 CEST 2002 Jan Hubicka <jh@suse.cz>
91
92 * i386.md (movv2di_internal): New pattern.
93 (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
94 (movv2di): New expander.
95 * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
96
97 * i386.c (ix86_expand_timode_binop_builtin): Delete.
98 (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
99 (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
100 (ix86_expand_builtin): Likewise.
101 * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
102 sse_andti3,
103 sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
104 sse_andnti3,
105 sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
106 sse_orti3,
107 sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
108 sse_xorti3): Kill.
109 (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
110 sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
111 (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
112 *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
113 (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
114 *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
115
116 * xmmintrin.h (__m128i): Define as __v2di.
117
118 PR c/7344
119 * predict.c (can_predict_insn_p): New function.
120 (estimate_probability): Avoid unnecesary work.
121 (process_note_prediction): Likewise.
122 * toplev.c (rest_of_compilation): Account early branch prediction pass
123 as TV_BRANCH_PROB.
124
125 PR c++/6419
126 (expand_expr): Use DECL_RTL_SET_P.
127
dbf4f1a2
RS
1282002-10-14 Roger Sayle <roger@eyesopen.com>
129
130 * combine.c (simplify_set): Treat MODE_CC registers like cc0.
131
4f770e7b
RS
1322002-10-14 Roger Sayle <roger@eyesopen.com>
133 Zack Weinberg <zack@codesourcery.com>
134
135 * config/i386/i386.c (k6_cost): Correct typo.
136
a3b88570
MM
1372002-10-14 Mark Mitchell <mark@codesourcery.com>
138
139 PR optimization/6631
140 * alias.c (objects_must_conflict_p): Check honor_readonly when
141 examining TYPE_READONLY.
142 * function.c (assign_stack_temp_for_type): Likewise.
143
f5204e6c
FH
1442002-10-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
145
146 * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
147 Swap zero extension arguments.
148 (umaxhi3): Fix instruction class.
149 PR target/7211
150 (prefetch): Fix prefetch instructions.
151 PR target/7238
152 (pkwb): Fix output constraint.
153
40e6bc7e
AO
1542002-10-14 Alexandre Oliva <aoliva@redhat.com>
155
156 * config/mips/mips.c (print_operand): Increase buffer size for
157 real numbers.
158
f4e3e618
RH
1592002-10-14 Richard Henderson <rth@redhat.com>
160
161 PR opt/8165
162 * gcse.c (adjust_libcall_notes): Revert last change.
163 * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
164
3eb429b2
AH
1652002-10-14 Andrew Haley <aph@redhat.com>
166
167 * tree-inline.c (remap_block): All local class initialization
168 flags go in the outermost scope.
169 (expand_call_inline): Call java_inlining_map_static_initializers.
170 (expand_call_inline): Call java_inlining_merge_static_initializers.
171 * java/lang.c (merge_init_test_initialization): New.
172 (java_inlining_merge_static_initializers): New.
173 (inline_init_test_initialization): New.
174 (java_inlining_map_static_initializers): New.
175
176 * tree-inline.c (expand_call_inline): Convert retvar to expected
177 type.
178
34146b94
GS
1792002-10-14 Graham Stott <graham.stott@btinternet.com>
180
181 * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
182
3a840c93
AH
1832002-10-14 Aldy Hernandez <aldyh@redhat.com>
184
185 * stmt.c: Fix typo in comment.
186
7457a126
R
187Mon Oct 14 11:35:49 2002 J"orn Rennecke <joern.rennecke@superh.com>
188
189 * c-common.c (c_common_type_for_mode): Add V2HImode case.
190 * tree.c (build_common_tree_nodes_2): Initialize
191 unsigned_V2HI_type_node and V2HI_type_node.
192 * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
193 (unsigned_V2HI_type_node, V2HI_type_node): Define.
194
0d1c5774
JJ
1952002-10-14 Jakub Jelinek <jakub@redhat.com>
196
197 * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
198 Handle TARGET_64BIT.
199
adadd183
RS
2002002-10-14 Richard Sandiford <rsandifo@redhat.com>
201
202 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
203 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
204 (MULTILIB_DIRNAMES): Remove long32.
205 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
206 (MULTILIB_REDUNDANT_DIRS): Remove.
207
db36994b
RS
2082002-10-14 Richard Sandiford <rsandifo@redhat.com>
209
210 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
211 * gcc.c (driver_self_specs): New variable.
212 (do_self_spec): New function.
213 (main): Use it to process driver_self_specs.
214
11e5489b
RH
2152002-10-13 Richard Henderson <rth@redhat.com>
216
217 * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
218
4ca1256f
NB
2192002-10-12 Neil Booth <neil@daikokuya.co.uk>
220
221 PR preprocessor/7862
222 PR preprocessor/8190
223 * gcc.c (cpp_unique_options): Don't delete .d files.
224 Remove stray whitespace.
225
cf860dc2
NS
2262002-10-12 Naohiko Shimizu <pshimizu@fa2.so-net.ne.jp>
227
228 * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
229 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
230 * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
231 (pdp11_output_function_epilogue, output_ascii): Likewise.
232 (output_addr_const_pdp11): Likewise.
233 * pdp11.md (movdi): Use offsetable memory for floating store.
234 (lshrsi3, negsi2): Delete irrelevant comment.
235
5dd78e9a
GK
2362002-10-11 Geoffrey Keating <geoffk@apple.com>
237
238 * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
239 not the address of the REG.
240 (struct cse_reg_info): Make subreg_ticked unsigned.
241
8eb32f94
JJ
2422002-10-11 Janis Johnson <janis187@us.ibm.com>
243
244 * doc/compat.texi: Add info about C++ libraries.
245
e197b6fc
RH
2462002-10-11 Richard Henderson <rth@redhat.com>
247
248 PR opt/8165
249 * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
250
a0bed689
JDA
2512002-10-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
252
253 * cfganal.c (dfs_enumerate_from): Use PARAMS.
254 * genautomata.c (output_insn_code_cases): Likewise.
255 * real.c (real_format): Likewise.
256 * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
257 ensure value is promoted before doing subtraction.
258
db655634
JH
259Fri Oct 11 22:22:38 CEST 2002 Jan Hubicka <jh@suse.cz>
260
261 * calls.c (expand_call): Simplify noreturn call.
262
263 PR c/7344
264 * cfgbuild.c (make_edges): Create edge cache when we do have
265 large jumptable.
1877be45 266 * expr.c (do_tablejump): Note size of maximal jumptable.
db655634
JH
267 * function.c (prepare_function_start): Zero out size.
268 * function.h (function): Add max_jumptable_ents.
269
270 * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
271
750afc12
R
272Fri Oct 11 12:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
273
274 * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
275 register for mperm_w operation.
276
0488fa7c
JR
277Fri Oct 11 10:56:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
278
279 * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
280 an integer, use simplify_gen_subreg.
281
349e9f4b
AH
2822002-10-10 Aldy Hernandez <aldyh@redhat.com>
283
284 * extend.texi (Vector Extensions): Remove comment about single
285 element vectors.
286
7bdfd72e
KG
2872002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
288
289 * fold-const.c (size_htab_hash): Use htab_hash_pointer.
290 * function.c (insns_for_mem_hash): Likewise.
291 * varasm.c (STRHASH): Likewise.
292
46081bb3
SH
2932002-10-10 Stuart Hastings <stuart@apple.com>
294
295 * cse.c (struct cse_reg_info): Add subreg_ticked.
296 (SUBREG_TICKED): New.
297 (get_cse_reg_info): Initialize SUBREG_TICKED.
298 (mention_regs): Use it.
299 (invalidate): Set SUBREG_TICKED.
300 (invalidate_for_call): Likewise.
301 (addr_affects_sp_p): Likewise.
302
9785f1d9
JJ
3032002-10-10 Jakub Jelinek <jakub@redhat.com>
304
305 * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
306 into proper operand.
307
b6878188
DC
3082002-10-10 Denis Chertykov <denisc@overta.ru>
309
310 * config/ip2k/ip2k.c (function_epilogue): Optimize stack
311 deallocation.
312 * config/ip2k/libgcc.S: Combine routines used by function
313 epilogue.
314
f930bfd0
JW
3152002-10-10 Jim Wilson <wilson@redhat.com>
316
317 * cse.c (fold_rtx): Don't perform associative optimization for DIV and
318 UDIV.
319
5f5d5417
DE
3202002-10-10 David Edelsohn <edelsohn@gnu.org>
321
322 * config/rs6000/aix52.h: New file.
323 * config/rs6000/t-aix52: New File.
324 * config.gcc (rs6000-ibm-aix5.1.*): New entry.
325 (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
326
7eafc329
JH
327Thu Oct 10 19:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
328
329 PR target/5610
330 * invoke.texi (-msse-math): Kill
331 (-msse): Add note to mfpmath=sse.
332
b105d6da
JH
333Thu Oct 10 17:08:30 CEST 2002 Jan Hubicka <jh@suse.cz>
334
335 PR target/7723
336 * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
337
5febdf0d
NB
3382002-10-10 Neil Booth <neil@daikokuya.co.uk>
339
340 PR preprocessor/8179
341 * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
342 as cc1_options.
343 (default_compilers): Pass debug options when preprocessing
344 stdin.
345
7db40b5f
RH
3462002-10-06 Richard Henderson <rth@redhat.com>
347
348 * toplev.c (rest_of_compilation): Revert opt/2960 change.
349
95f79357
ZW
3502002-10-09 Zack Weinberg <zack@codesourcery.com>
351
352 PR c/7353
353 * c-decl.c (start_decl): Unconditionally issue error for
354 'typedef foo = bar'.
355 (finish_decl): Remove special case for TYPE_DECL with initializer.
356
357 * doc/extend.texi: Delete "Naming Types" section. Change all
358 cross-references to that section to refer to "Typeof" instead.
359 Add the useful safe-max()-macro example from "Naming Types" to
360 "Typeof", rewritten using that extension. Add some compatibility
361 notes to "Typeof."
362
44a5565d
KG
3632002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
364
365 * loop.c: Revert 2002-08-15 change.
366 (LOOP_REGNO_NREGS): Ensure type is int.
367
a2419b96
DE
3682002-10-09 David Edelsohn <edelsohn@gnu.org>
369
370 * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
371 which copies first FPR and clears second.
372 (extendsftf2): Same.
373 (floatditf2): Fix typo.
374 (floatsitf2): Same.
375 (fix_trunctfdi2): Same.
376 (fix_trunctfsi2): Same.
377
fb7e6024
KG
3782002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
379
380 * conflict.c (arc_hash): Change return type to hashval_t.
381 * cselib.c (get_value_hash): Likewise.
382 * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
383 state_hash, automata_list_hash): Likewise.
384 * read-rtl.c (def_hash): Likewise.
385 * tree.c (type_hash_hash): Likewise.
386
36f7e964
AH
3872002-10-08 Aldy Hernandez <aldyh@redhat.com>
388
389 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
390 prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
391
e3c62520
R
392Wed Oct 9 15:54:49 2002 J"orn Rennecke <joern.rennecke@superh.com>
393
394 * sh.md (ffssi2): Fix emitted code.
395
a3745024
UW
3962002-10-09 Ulrich Weigand <uweigand@de.ibm.com>
397
398 * cse.c (insn_live_p): Pass insn pattern, not full insn
399 to may_trap_p.
400
5cc67323
NB
4012002-10-09 Neil Booth <neil@daikokuya.co.uk>
402
403 * cppmacro.c (paste_tokens): Only allow / to paste with =.
404
f5264b52
DE
4052002-10-09 David Edelsohn <edelsohn@gnu.org>
406
407 * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
408 64-bit hosts.
409 (movtf_internal): Reference correct displacement for second value
410 in memory.
411 (movtf splitter): Correct generation of constants in 64-bit mode.
412
cef1c1ba
AM
4132002-10-09 Alan Modra <amodra@bigpond.net.au>
414
415 * libgcc2.c (__floatdisf): Properly cure double rounding.
416
8d15eebc
GDR
4172002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
418
419 * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
420 * doc/cpp.texi (Common Predefined Macros): Document.
421
87ec8de9
GDR
4222002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
423
424 PR doc/7484
425 * doc/invoke.texi (Option Summary): List
426 -Wmissing-declarations as a C only option.
427
fb7d9c35
JJ
4282002-10-08 Jakub Jelinek <jakub@redhat.com>
429
430 * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
431 mno-app-regs|mcmodel=medany.
432 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
433 (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
434 (CRTSTUFF_T_CFLAGS): Define.
435
11f3e4c7
RS
4362002-10-08 Roger Sayle <roger@eyesopen.com>
437
438 PR target/8087
439 * simplify-rtx.c (avoid_constant_pool_reference): Allow constant
440 pool references that are constructed using LO_SUM.
441
bf52f899
NS
4422002-10-08 Nathan Sidwell <nathan@codesourcery.com>
443
444 * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
445 -Wall.
446 * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
447 message.
448 * flags.h (warn_strict_aliasing): Declare.
449 * toplev.c (warn_strict_aliasing): Define.
450 (lang_independent_options): Add it.
451 * doc/invoke.texi (-Wstrict-aliasing): Document it.
452
36624850
ZW
4532002-10-08 Zack Weinberg <zack@codesourcery.com>
454
455 * system.h (GCCBUGURL): Delete.
456 * version.c (bug_report_url): New. Add commentary about
457 modifying both these strings in modified distributions.
458 * version.h: Declare bug_report_url.
459
460 * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
461 bug_report_url.
462
218145d6
NC
4632002-10-08 Nick Clifton <nickc@redhat.com>
464
465 * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
466 convert uint64_t into __ev64_opaque__.
467 (__ev_set_acc_s64): Likewise, but using signed types.
468
bb02f6ed
UW
4692002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
470
471 * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
472 ("*doloop_di_long"): Likewise.
473
4fdbcfb2
JH
474Tue Oct 8 16:50:10 CEST 2002 Jan Hubicka <jh@suse.cz>
475
476 * print-rtl.c (print_rtx): Increase buffer size for real numbers.
477
e80f2609
RS
4782002-10-08 Richard Sandiford <rsandifo@redhat.com>
479
480 * config/mips/mips.md (define_attr cpu): Add r4111.
481
36624850 4822002-10-08 Anthony Green <green@redhat.com>
4213a3b6 483
36624850 484 * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
4213a3b6 485
25009e02
MH
4862002-10-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
487
488 * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
489 for REAL_VALUE_TO_DECIMAL output.
490
fcce224d
DE
4912002-10-07 David Edelsohn <edelsohn@gnu.org>
492
493 * config/rs6000/rs6000.c (rs6000_override_options): Set
494 real_format_for_mode for IBM extended format, if enabled.
495 (easy_fp_constant): Add TFmode.
496 (rs6000_legitimize_address): Add TFmode.
497 (rs6000_legitimate_address): Same.
498 (function_arg_advance): TFmode uses two FPRs.
499 (rs6000_emit_prologue): Fix warning.
500 (rs6000_output_function_epilogue): Add TFmode.
501 (output_toc): Add TFmode.
502 * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
503 (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
504 * rs6000.md (movtf splitter): Load TFmode constant.
505
dad482e6 5062002-10-07 Dale Johannesen <dalej@apple.com>
fcce224d 507
dad482e6
DJ
508 * rtl.h: Add NOTE_PRECONDITIONED.
509 * unroll.c: Set it.
510 * loop.c: Set loop_info->preconditioned from it.
511 * doloop.c: Permit doloop treatment when loop_info->preconditoned.
512
de3beb7c
RH
5132002-10-07 Richard Henderson <rth@redhat.com>
514
515 * config/i960/i960.c (i960_setup_incoming_varargs): Create a
516 new rtx for comparing the argument pointer against zero.
517 (i960_va_start): Similarly.
518
87cb2a87
RH
5192002-10-07 Richard Henderson <rth@redhat.com>
520
521 * config/i960/i960.md (*): Use TFmode, not XFmode.
522 * config/i960/i960.c (*): Likewise.
523 (i960_arg_size_and_align): Remove XFmode alignment hack.
524 (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
525 * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
526 (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
527 (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
528
5ef38d2a
RH
5292002-10-07 Richard Henderson <rth@redhat.com>
530
531 * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
532 entry points; use void return value and argument list.
533
e7f9979a
NS
5342002-10-05 Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
535
536 * t-pdp11: Add MULTILIB support for msoft-float.
537 * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
538
539 * t-pdp11: Add LIB2FUNCS_EXTRA.
36624850 540 * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
e7f9979a
NS
541 add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
542 'fldd' to 'ldd', rename 'fstd' to 'std'.
543 (pdp11_output_function_epilogue): Likewise.
544 (output_move_quad): Make the comment gas compatible.
545 (output_ascii): Add preceding 0 to the octal constant.
546 (print_operand_address): Add pre_modify, post_modify.
547 (output_addr_const_pdp11): Add preceding 0 to the octal constant.
548 * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
36624850 549 with the indication of Paul Koning.
e7f9979a
NS
550 (PRINT_OPERAND): Fix floating constant.
551 * pdp11.md (movdi): Restrict matching pattern.
552 (movqi): Generalize the matching pattern.
553 (movdf): Restrict matching pattern.
554 (zero_extendqihi2): Change constant representation.
555 (floatsidf2): Fix wrong operands.
556 (addqi3): Fix wrong instruction name.
557 (subqi3): Fix wrong instruction name.
558 (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
559 (xorsi3): Fix wrong insn.
560 (one_cmplqi2): Add two operand pattern.
561 (lsrsi3): New.
562 (negsi2): New.
563 (call): Add register indirect case.
564 (mod): Fix wrong subreg.
565
4ef7870a 5662002-09-25 Eric Botcazou <ebotcazou@libertysurf.fr>
36624850 567 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4ef7870a
EB
568
569 PR c/7411
570 * expr.c (expand_expr) [PLUS]: Simplify after the operands
571 have been expanded in EXPAND_NORMAL mode.
572
a2900460
RH
5732002-10-06 Richard Henderson <rth@redhat.com>
574
575 * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
576
ff025ab9
RH
5772002-10-06 Richard Henderson <rth@redhat.com>
578
579 PR optimization/2960
580 * toplev.c (rest_of_compilation): Don't copy_loop_headers if
581 optimize_size.
582
48b80d93
AO
5832002-10-06 Alexandre Oliva <aoliva@redhat.com>
584
585 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
586 previously definitions.
587
7c7c549e
FCE
5882002-10-06 Frank Ch. Eigler <fche@redhat.com>
589
590 * cppinit.c (init_standard_includes, parse_option): Use strncmp.
591 * c-opts.c (find_opt): Similarly.
592
c49d2df6
JJ
5932002-10-05 Jakub Jelinek <jakub@redhat.com>
594
595 * gcc.c (set_multilib_dir): Don't access *end.
596 Use memcpy instead of strncpy. Don't write beyond malloced buffer.
597 (print_multilib_info): Don't show paths starting with ".:".
598 * genmultilib: Add new option, "yes" if multilibs are enabled.
599 Update comments. If multilibs not enabled, print .:${osdirout}
600 for each directory. If multilibs are enabled, always print
601 ${dirout}:${osdirout}, even if the two are the same.
602 * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
603 Pass all MULTILIB_* variables to genmultilib even if
604 --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
605
d758c1db
BK
6062002-10-04 Bruce Korb <bkorb@gnu.org>
607
608 * fixinc/inclhack.def(hpux11_abs): use format fix
609 * fixinc/fixincl.x: regenerate
610 * fixinc/tests/base/stdlib.h: accommodate new fix test
611
b3dc87c5
JH
612Sat Oct 5 19:42:45 CEST 2002 Jan Hubicka <jh@suse.cz>
613
614 * c-common.c (cb_register_builtins): Use really_no_inline.
615
f7a21c70
DE
6162002-10-04 David Edelsohn <edelsohn@gnu.org>
617
618 * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
619 copied instruction if the note is not loop invariant.
620
081d6fb9
LR
6212002-10-04 Loren J. Rittle <ljrittle@acm.org>
622
623 * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
624
c5d3d49b
SE
6252002-10-04 Steve Ellcey <sje@cup.hp.com>
626
627 * doc/invoke.texi (HPPA): Add -mlinker-opt, -mgnu-ld,
628 and -mhp-ld options to list of options. Add -mgnu-ld
629 and -mhp-ld option descriptions.
630
0fca111b
SE
6312002-10-04 Steve Ellcey <sje@cup.hp.com>
632
633 * fixinc/inclhack.def (hpux11_abs): New.
634 (stdio_va_list): change __va_list__ to __gnuc_va_list.
635 * fixinc/fixincl.x: Rebuild.
636
229b303a
RS
6372002-10-04 Roger Sayle <roger@eyesopen.com>
638
639 * config/i386/i386.h (processor_costs): Add new fields fadd,
640 fmul, fdiv, fabs, fchs and fsqrt to costs structure.
641 (RTX_COSTS): Use these fields to determine the RTX costs
642 of floating point addition/subtraction, multiplication,
643 division, fabs, negation and square root respectively.
644 * config/i386/i386.c (size_cost): Provide instruction sizes
645 for these new fields.
646 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
647 k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
648 counts for these new fields for all x86 processor variants.
649
481ed21a
KG
6502002-10-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
651
6017ba03
KG
652 * mips.c (mips_const_double_ok): Delete unused variable.
653
481ed21a
KG
654 * gengtype.c (rtx_next): Change type to int.
655
635f4680
AJ
6562002-10-04 Andreas Jaeger <aj@suse.de>
657
658 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
659
ee6ff319
RH
6602002-10-04 Richard Henderson <rth@redhat.com>
661
662 * real.h (SIGNIFICAND_BITS): Add one more word.
663 (CONST_DOUBLE_FORMAT): Accomodate 6 words.
664 * real.c (times_pten): New.
665 (real_to_decimal, real_from_string): Use it.
666 (sticky_rshift_significand): Use & to find modulus.
667 (rshift_significand, lshift_significand): Likewise.
668 (do_divide): Apply sticky bit after normalization.
669 (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
670
6d8dd940
AJ
6712002-10-03 Andreas Jaeger <aj@suse.de>
672
673 * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
674 to unsigned long, adjust printf format string.
675 (output_mangled_typename): Likewise.
676
191fe2bb
JT
6772002-10-03 Jason Thorpe <thorpej@wasabisystems.com>
678
679 * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
680 * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
681 (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
682 assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
683 (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
684 (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
685 * config/vax/elf.h (FUNCTION_PROFILER): Remove.
686 (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
687
6397d80b
MM
6882002-10-03 Mark Mitchell <mark@codesourcery.com>
689
690 * doc/invoke.texi (-Wabi): Document mangling bug.
691
69c75916
AM
6922002-10-04 Alan Modra <amodra@bigpond.net.au>
693
694 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
695 name for the tbtab label that depends on the function asm name.
696 Don't output tbtab label unless optional_tbtab.
697 (output_mi_thunk): Formatting.
698
adf2ac37
RH
6992002-10-03 Richard Henderson <rth@redhat.com>
700
701 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
702 * config/m68k/m68k.c (override_options): ... here.
703 * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
704 * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
705 * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
706 * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
707
a7519393
RH
7082002-10-03 Richard Henderson <rth@redhat.com>
709
710 * real.h (struct real_value): Use ENUM_BITFIELD.
711
41552736
RH
7122002-10-03 Richard Henderson <rth@redhat.com>
713
714 * config/i960/i960.md (call, call_value): Use emit_call_insn.
715
882affa8
SE
7162002-10-03 Steve Ellcey <sje@cup.hp.com>
717
718 * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
719
83eb95f9
SE
7202002-10-03 Steve Ellcey <sje@cup.hp.com>
721
722 * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
723 * config/pa/pa.h (MASK_GNU_LD): New.
724 (TARGET_GNU_LD): New.
6d8dd940 725 * config/pa/pa64-hpux.h (LINK_SPEC): Set based
83eb95f9
SE
726 on gnu-ld and MASK_GNU_LD.
727 (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
728
b72b1c29
JH
729Thu Oct 3 23:35:51 CEST 2002 Jan Hubicka <jh@suse.cz>
730
731 * i386.c (athlon_cost): Fix the move costs.
732
92b7a2a5
JH
733Thu Oct 3 23:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
734
735 * final.c (final): Use symbol name as function name for profiling.
736 * profile.c (get_exec_counts): Likewise.
737 (branch_prob): Likewise.
738
429489e5
JJ
7392002-10-03 Jakub Jelinek <jakub@redhat.com>
740
741 * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
742
5bbcd587
JJ
7432002-10-03 Jakub Jelinek <jakub@redhat.com>
744
745 * gcc.c (print_multi_os_directory): New variable.
746 (option_map): Support --print-multi-os-directory.
747 (struct prefix_list): Add os_multilib field.
748 (multilib_os_dir): New variable.
749 (static_specs): Add multilib_options.
750 (find_a_file): Add multilib argument. Search in GCC or OS multilib
751 subdirs if non-zero.
752 (read_specs, execute): Update callers.
753 (find_file): Likewise. Don't prefix name with multilib_dir, instead
754 pass 1 as multilib option.
755 (display_help): Include --print-multi-os-directory.
756 (add_prefix): Add os_multilib argument. Initialize pl->os_multilib.
757 (process_command): Update callers. Handle --print-multi-os-directory.
758 (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
759 set.
760 (main): Update find_a_file and add_prefix callers.
761 Handle print_multi_os_directory.
762 (struct mdswitchstr): New.
763 (mdswitches, n_mdswitches): New variables.
764 (used_arg): Add MULTILIB_DEFAULT switches too if they are not
765 present on the command line nor their mutually incompatible
766 switches.
767 (default_arg): Optimize.
768 (set_multilib_dir): Compute multilib_os_dir. Initialize mdswitches
769 array.
770 (print_multilib_info): Only print GCC multilib dir name, not OS
771 multilib dirname.
772 * genmultilib: Add osdirnames parameter. Output multilib_options
773 variable. If osdirnames is specified, output dirnames as
774 dirname:osdirname.
775 * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
776 and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
777 to compute libgcc_s soname and install path.
778 * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
779 SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
780 (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
781 argument.
782
783 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
784 (SHLIB_SLIBDIR_SUFFIXES): Remove.
785 * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
786 ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
787 (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
788 and -m64.
789 * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
790 (SHLIB_SLIBDIR_SUFFIXES): Remove.
791 * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
792 (STARTFILE_ARCH_SPEC): Remove.
793 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
794 (SHLIB_SLIBDIR_SUFFIXES): Remove.
795 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
796 * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
797 (SHLIB_SLIBDIR_SUFFIXES): Remove.
798
c07f146f
JH
799Thu Oct 3 21:42:20 CEST 2002 Jan Hubicka <jh@suse.cz>
800
801 * predict.c (choose_function_section): Avoid choice for linkonce functions.
802
4c9c9a3d
JH
803Thu Oct 3 15:15:00 CEST 2002 Jan Hubicka <jh@suse.cz>
804
805 * i386.md (lea to mul peep2): Fix condition.
6d8dd940 806
f50df1d5
JDA
8072002-10-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
808
809 * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
810 * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
811
d631b80a
RH
8122002-10-02 Richard Henderson <rth@redhat.com>
813
814 PR opt/7124
815 * config/i386/i386.c (ix86_register_move_cost): Increase cost
816 for secondary_memory_needed pairs.
817
854ef390
NN
8182002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
819
820 * doc/vms.texi: Blow away false include file section.
821
f963b5d9
RS
8222002-10-02 Roger Sayle <roger@eyesopen.com>
823
824 PR optimization/6627
825 * toplev.c (force_align_functions_log): New global variable.
826 * flags.h (force_align_functions_log): Add extern prototype.
827 * varasm.c (assemble_start_function): Use it to force minimum
828 function alignment.
829 * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
830 minimum function alignment to one byte.
831 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
832 the least significant bit of vtable member function pointers.
833 * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
834 here from cp/cp-tree.h.
835
200bcf7e
JH
836Wed Oct 2 17:01:36 CEST 2002 Jan Hubicka <jh@suse.cz>
837
838 * i386.c (print_operand_address): Use RIP addressing for offsetted
839 label refs too.
840
88d0be17
DM
8412002-09-30 David S. Miller <davem@redhat.com>
842
843 PR middle-end/7151
844 * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
845 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
846
f10aac29
RS
8472002-10-01 Roger Sayle <roger@eyesopen.com>
848
849 * unroll.c (loop_iterations): Revert 2002-09-08 change.
850
69bd00e6
RH
8512002-10-01 Richard Henderson <rth@redhat.com>
852
853 * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
854 (real_to_hexadecimal): Likewise.
855 * print-rtl.c (print_rtx): If we are linked with real.c, don't
856 dump the XWINT fields of a floating point CONST_DOUBLE.
857
3b5742ab
JT
8582002-10-01 Jason Thorpe <thorpej@wasabisystems.com>
859
860 * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
861
fd1e5d25
RH
8622002-10-01 Richard Henderson <rth@redhat.com>
863
864 * calls.c (precompute_register_parameters): Force non-legitimate
865 constants into pseudos.
866
78872ad9
NC
8672002-10-01 Nick Clifton <nickc@redhat.com>
868
869 * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
870 to assembler template.
871
3c655f42
RH
8722002-10-01 Richard Henderson <rth@redhat.com>
873
874 * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
875 for TLS debug info to !DECL_EXTERNAL.
876
ec20cffb 8772002-10-01 Matt Thomas <matt@3am-software.com>
ee6ff319 878 Jason Thorpe <thorpej@wasabisystems.com>
ec20cffb
JT
879
880 * config.gcc (vax-*-netbsdelf*): Enable configuration.
6d8dd940 881 * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
ec20cffb
JT
882 if not already defined.
883 * config/vax/elf.h: New file.
884 * config/vax/netbsd-elf.h: New file.
885 * config/vax/vax.c: Include "debug.h".
886 (vax_output_function_prologue): Add dwarf2 support. Use
887 MAIN_NAME_P when checking for VMS_TARGET stack adjust.
888 * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
889 'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
890 'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
891 (VAX_ISTREAM_SYNC): Remove.
892 (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
893 (JUMP_TABLES_IN_TEXT_SECTION): Define.
894 (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
895 (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
896 and assemble_name.
897 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
898 (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
899 (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
900 (INCOMING_RETURN_ADDR_RTX): Define.
901 * config/vax/vax.md (VUNSPEC_BLOCKAGE)
902 (VUNSPEC_SYNC_ISTREAM): Define.
903 (blockage): Use VUNSPEC_BLOCKAGE.
904 (sync_istream): New insn.
905
9062002-10-01 Richard Henderson <rth@redhat.com>
907
908 * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
909 (*call_value_pop, call, call_value): Add dwarf2 EH support.
910 (*call): New insn.
911
73a73768
NS
9122002-10-01 Nathan Sidwell <nathan@codesourcery.com>
913
914 PR c/8083
915 * c-typeck.c (build_c_cast): Warn about type punning which breaks
916 type based aliasing.
917
0645ba8f
MM
9182002-10-01 Mark Mitchell <mark@codesourcery.com>
919
920 * stor-layout.c (update_alignment_for_field): New function.
921 (place_union_field): Use it.
922 (place_field): Likewise.
6d8dd940 923
f7e466a3
NS
9242002-10-01 Nathan Sidwell <nathan@codesourcery.com>
925
73a73768 926 PR other/8077
f7e466a3
NS
927 * gcc.c (cc1_options): Add space on -auxbase-strip.
928
bc9ec51b
JW
9292002-10-01 Jim Wilson <wilson@redhat.com>
930
931 * config/v850/v850.h (EPILOGUE_USES): Define.
932
a646f6cc
AH
9332002-09-30 Andrew Haley <aph@redhat.com>
934
6d8dd940 935 * flow.c (insn_dead_p): When using non-call-exceptions, don't
a646f6cc
AH
936 eliminate insns that may trap.
937 * cse.c (insn_live_p): Likewise.
938
3f7967e3
RS
9392002-10-01 Richard Sandiford <rsandifo@redhat.com>
940
941 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
942 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
943 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
944 * config/mips/mips.md: Apply same renaming here.
945
41f9efba
RS
9462002-10-01 Richard Sandiford <rsandifo@redhat.com>
947
948 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
949 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
950 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
951 * config/mips/mips.md (define_attr cpu): Remove r4320.
952 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
953
366356d3
RS
9542002-10-01 Richard Sandiford <rsandifo@redhat.com>
955
956 * config/mips/mips.c (mips16_strings): New variable.
957 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
958 symbol in mips16_strings. Free the list.
959 (mips_encode_section_info): Keep track of local strings.
960
8ab907e8
RS
9612002-10-01 Richard Sandiford <rsandifo@redhat.com>
962
963 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
964 (sordered_df, sordered_sf): Remove.
965 * config/mips/mips.c (get_float_compare_codes): New fn.
966 (gen_int_relational, gen_conditional_move): Use it.
967
d12b8c85
RS
9682002-10-01 Richard Sandiford <rsandifo@redhat.com>
969
970 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
971 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
972 * config/mips/mips.c (fcc_register_operand): New function.
973 (mips_emit_fcc_reload): New function, extracted from reload_incc.
974 (override_options): Allow TFmode values in float registers
975 if ISA_HAS_8CC.
976 * cnfig/mips/mips.md (reload_incc): Change destination prediate
977 to fcc_register_operand. Remove misleading source constraint.
978 Use mips_emit_fcc_reload.
979 (reload_outcc): Duplicate reload_incc.
980
7e765675
UW
9812002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
982
983 * longlong.h: Partially synchronize with GMP-4.1 version:
984 Use i370 definitions also for s390.
985 Add generic definition of umul_ppmm in terms of smul_ppmm.
986 [s390] (umul_ppmm): Remove.
987 [s390] (smul_ppmm): Fix incorrect assembler constraints.
988 [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
989
89f6025d
BW
9902002-09-30 Bob Wilson <bob.wilson@acm.org>
991
992 * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
993 Add new RL_REGS register class.
994 (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
ee6ff319 995 Call xtensa_preferred_reload_class for both input and output reloads.
89f6025d
BW
996 * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
997 (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
998 instead of either AR_REGS or GR_REGS classes.
999 (xtensa_secondary_reload_class): Use new RL_REGS class.
1000 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
1001
7830ba7b
JDA
10022002-09-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1003
1004 * pa.c (hppa_encode_label): Don't drop '*' from function labels.
1005 (pa_strip_name_encoding): Strip '@' and '*', in that order.
1006 * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
1007 there is a '*' prefix in NAME.
1008
344b78b8
JH
1009Mon Sep 30 21:33:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1010
1011 * reload.c (push_reload): Handle subregs and secondary memory.
1012 * reload1.c (gen_reload): Likewise.
1013
1014 * jump.c (reg_or_subregno): New function.
1015 * rtl.h (reg_or_subregno): Declare
1016 * unroll.c (find_splittable_givs): Handle subregs.
1017
17bbb839
MM
10182002-09-30 Mark Mitchell <mark@codesourcery.com>
1019
1020 * store-layout.c (finish_record_layout): Add free_p parameter.
1021 (layout_type): Pass it.
1022 * tree.h (finish_record_layout): Update prototype.
92e89ef0 1023
48ddd46c
JH
1024Mon Sep 30 14:57:18 CEST 2002 Jan Hubicka <jh@suse.cz>
1025
1026 * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
1027
1028 * gcse.c (cprop_jump): Check that the register has not
1029 been modified
1030 (cprop_jump): Likewise.
1031
b93a0fe6
RE
10322002-09-30 Richard Earnshaw <rearnsha@arm.com>
1033
1034 * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
1035 (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
1036 that we have a SImode access, and only then if reload hasn't completed;
1037 for all other cases, use LO_REGS.
1038
98ee7e6c
RH
10392002-09-29 Richard Henderson <rth@redhat.com>
1040
1041 * real.c (real_from_string): Apply sign last. Tidy exponent handling.
1042
ccf7aef4
RH
10432002-09-29 Richard Henderson <rth@redhat.com>
1044
b5371c18 1045 PR c/8002
ccf7aef4
RH
1046 * combine.c (force_to_mode): Handle FLOAT_MODE destinations
1047 for CONST_INT.
1048
d454e75a
DE
10492002-09-29 David Edelsohn <edelsohn@gnu.org>
1050
1051 * real.h (ibm_extended_format): Declare.
1052 * real.c (encode_ibm_extended, decode_ibm_extended): New
1053 functions.
1054
89b06540
KG
10552002-09-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1056
1057 * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
1058
1059 * ia64.c (ia64_hpux_asm_file_end): Const-ify.
1060
6ca6193b
JDA
10612002-09-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
1062
1063 * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
1064
991b6592
KH
10652002-09-29 Kazu Hirata <kazu@cs.umass.edu>
1066
1067 * builtins.def: Fix comment formatting.
1068 * c-common.def: Likewise.
1069 * cfgcleanup.c: Likewise.
1070 * combine.c: Likewise.
1071 * gengtype.c: Likewise.
1072 * params.def: Likewise.
1073 * predict.def: Likewise.
1074 * rtl.def: Likewise.
1075 * stab.def: Likewise.
1076 * stor-layout.c: Likewise.
1077 * tree.def: Likewise.
1078 * config/darwin.c: Likewise.
1079 * config/darwin.h: Likewise.
1080 * config/dbxcoff.h: Likewise.
1081 * config/elfos.h: Likewise.
1082 * config/fp-bit.c: Likewise.
1083 * config/freebsd-spec.h: Likewise.
1084 * config/interix.h: Likewise.
1085 * config/libgloss.h: Likewise.
1086 * config/linux-aout.h: Likewise.
1087 * config/linux.h: Likewise.
1088 * config/lynx-ng.h: Likewise.
1089 * config/lynx.h: Likewise.
1090 * config/netbsd-aout.h: Likewise.
1091 * config/netbsd.h: Likewise.
1092 * config/netware.h: Likewise.
1093 * config/psos.h: Likewise.
1094 * config/ptx4.h: Likewise.
1095
43aa4e05
KH
10962002-09-28 Kazu Hirata <kazu@cs.umass.edu>
1097
1098 * ChangeLog.4: Fix typos.
1099 * ChangeLog.6: Likewise.
1100 * FSFChangeLog.10: Likewise.
1101 * genattrtab.c: Fix comment typos.
1102 * haifa-sched.c: Likewise.
1103 * real.c: Likewise.
1104 * tree.h: Likewise.
1105 * config/arm/arm.c: Likewise.
1106 * config/arm/crti.asm: Likewise.
1107 * config/arm/crtn.asm: Likewise.
1108 * config/frv/frv.c: Likewise.
1109 * config/frv/frv.md: Likewise.
1110 * config/h8300/h8300.md: Likewise.
1111 * config/i386/rtemself.h: Likewise.
1112 * config/ia64/unwind-ia64.c: Likewise.
1113 * config/ip2k/ip2k.h: Likewise.
1114 * config/m88k/m88k.c: Likewise.
1115 * config/m88k/m88k.md: Likewise.
1116 * config/mips/sr71k.md: Likewise.
1117 * config/mmix/mmix.c: Likewise.
1118 * config/rs6000/rs6000.c: Likewise.
1119 * config/sh/sh.md: Likewise.
1120
13e8651c
TR
11212002-09-26 Theodore A. Roth <troth@verinet.com>
1122
92e89ef0
ZW
1123 * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
1124 * config/avr/avr.md: Ditto.
13e8651c 1125
57147be1
ZW
11262002-09-27 Alexander N. Kabaev <ak03@gte.com>
1127
1128 PR preprocessor/8055
1129 * cppmacro.c (stringify_arg): Do not overflow the buffer
1130 with the terminating NUL when the argument to be stringified
1131 has no tokens.
1132
5d0f3df7
RH
11332002-09-27 Richard Henderson <rth@redhat.com>
1134
1135 * unroll.c (simplify_cmp_and_jump_insns): New.
1136 (unroll_loop): Use it. Use simplify_gen_foo+force_operand
1137 instead of expand_simple_foo.
1138
3dfda826
RH
11392002-09-27 Richard Henderson <rth@redhat.com>
1140
1141 PR optimization/7520
1142 * cfganal.c (flow_active_insn_p): New.
1143 (forwarder_block_p): Use it.
1144
23b8ba81
RH
11452002-09-27 Richard Henderson <rth@redhat.com>
1146
1147 * emit-rtl.c (active_insn_p): Revert last change.
1148
dce81a1a
JJ
11492002-09-27 Jakub Jelinek <jakub@redhat.com>
1150
1151 * doc/extend.texi (tls_model): Document.
1152 * varasm.c (decl_tls_model): New.
1153 * c-common.c (handle_tls_model_attribute): New.
1154 (c_common_attribute_table): Add tls_model.
1155 * config/alpha/alpha.c (alpha_encode_section_info): Use
1156 decl_tls_model.
1157 * flags.h (enum tls_model, flag_tls_default): Move...
1158 * tree.h (enum tls_model, flag_tls_default): ...here.
1159 (decl_tls_model): New prototype.
1160 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1161 * config/i386/i386.c (ix86_encode_section_info): Likewise.
1162 * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
1163 Allow !flag_pic.
1164
0e9e1e0a
KH
11652002-09-27 Kazu Hirata <kazu@cs.umass.edu>
1166
1167 * LANGUAGES: Follow spelling conventions.
1168 * rtl.def: Likewise.
1169 * sbitmap.c: Likewise.
1170 * sched-int.h: Likewise.
1171 * sched-rgn.c: Likewise.
1172 * sibcall.c: Likewise.
1173 * simplify-rtx.c: Likewise.
1174 * ssa.c: Likewise.
1175 * stab.def: Likewise.
1176 * stmt.c: Likewise.
1177 * stor-layout.c: Likewise.
1178 * target.h: Likewise.
1179 * timevar.c: Likewise.
1180 * toplev.c: Likewise.
1181 * tree-dump.c: Likewise.
1182 * tree-inline.c: Likewise.
1183 * tree.c: Likewise.
1184 * tree.def: Likewise.
1185 * tree.h: Likewise.
1186 * unroll.c: Likewise.
1187 * varasm.c: Likewise.
1188 * vmsdbgout.c: Likewise.
1189 * treelang/treelang.texi: Likewise.
1190 * treelang/treetree.c: Likewise.
1191
b9b575e6
KH
11922002-09-27 Kazu Hirata <kazu@cs.umass.edu>
1193
1194 * config/h8300/h8300.c (compute_saved_regs): Use a macro
1195 instead of a hard register number.
1196 (get_shift_alg): Use an enumerated type instead of numbers.
1197 (h8300_shift_needs_scratch_p): Likewise.
1198
99a32567
DM
11992002-09-26 David S. Miller <davem@redhat.com>
1200
1201 PR optimization/7335
1202 * calls.c (emit_library_call_value_1): Passing args by reference
1203 converts a CONST function into a PURE one.
1204
67cef334
DE
12052002-09-26 David Edelsohn <edelsohn@gnu.org>
1206
1207 * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
1208 text_section.
57147be1 1209 * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
67cef334
DE
1210 text section.
1211 * config/rs6000/rs6000.c (rs6000_override_options): Allow
1212 function-sections and data-sections functionality on AIX.
1213
12142002-09-26 David Edelsohn <edelsohn@gnu.org>
1215 Dale Johannesen <dalej@apple.com>
1216
1217 * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
1218 in RTL for sub-word loads from memory.
1219
c2310f51
RH
12202002-09-26 Richard Henderson <rth@redhat.com>
1221
1222 PR c/7160
1223 * sched-deps.c (sched_analyze_insn): Make clobber insns depend
1224 on call insns.
1225
7847d627
RH
12262002-09-26 Richard Henderson <rth@redhat.com>
1227
1228 * emit-rtl.c (const_double_htab_eq): Remove unused variable.
1229
cde0ce6e
CL
12302002-09-26 Chris Lattner <sabre@nondot.org>
1231
1232 * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
1233 handling undefined values.
1234
03a62672
RH
12352002-09-26 Richard Henderson <rth@redhat.com>
1236
5fd452e8 1237 PR opt/7520
03a62672
RH
1238 * emit-rtl.c (active_insn_p): Consider a clobber of the
1239 function return value to be active even after reload.
1240
b5a77fef
AM
12412002-09-27 Alan Modra <amodra@bigpond.net.au>
1242
1243 * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
1244 by absolute loop increment, not loop increment.
1245
40f03658
KH
12462002-09-26 Kazu Hirata <kazu@cs.umass.edu>
1247
1248 * c-common.h: Follow spelling conventions.
1249 * cpplex.c: Likewise.
1250 * cpplib.h: Likewise.
1251 * gthr-dce.h: Likewise.
1252 * gthr-posix.h: Likewise.
1253 * optabs.c: Likewise.
1254 * output.h: Likewise.
1255 * profile.c: Likewise.
1256 * protoize.c: Likewise.
1257 * ra-rewrite.c: Likewise.
1258 * real.c: Likewise.
1259 * recog.c: Likewise.
1260 * reg-stack.c: Likewise.
1261 * regclass.c: Likewise.
1262 * regmove.c: Likewise.
1263 * reload.c: Likewise.
1264 * reload.h: Likewise.
1265 * reload1.c: Likewise.
1266 * reorg.c: Likewise.
1267 * resource.c: Likewise.
1268 * rtl.h: Likewise.
1269 * rtlanal.c: Likewise.
1270
ee8a73d6
SE
12712002-09-26 Steve Ellcey <sje@cup.hp.com>
1272
1273 * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
1274 for symbol address.
1275
2eb2bbdc
EC
12762002-09-24 Eric Christopher <echristo@redhat.com>
1277
57147be1
ZW
1278 * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
1279 * config/mips/elf64.h: Ditto.
2eb2bbdc 1280
0ab38418
EC
12812002-09-24 Eric Christopher <echristo@redhat.com>
1282
57147be1 1283 * except.c (expand_builtin_extract_return_address): Handle case
0ab38418
EC
1284 where Pmode != ptr_mode.
1285
68bb91b1
SE
12862002-09-26 Steve Ellcey <sje@cup.hp.com>
1287
1288 * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
1289
5429802d
SE
12902002-09-26 Steve Ellcey <sje@cup.hp.com>
1291
1292 * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
1293
855c3a2e
IS
12942002-09-26 Igor Shevlyakov <igor@microunity.com>
1295
1296 * combine.c (simplify_set): Don't call to force_to_mode if size
1297 of integer type is larger than HOST_BITS_PER_WIDE_INT.
1298
2d556baf
JJ
12992002-09-26 Janis Johnson <janis187@us.ibm.com>
1300
1301 * Makefile.in (qmtest-g++): Fix file path.
1302
1717e19e
UW
13032002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1304
0ab38418 1305 * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
1717e19e
UW
1306 A + (-const) on RTX level, even for unsigned types.
1307
6cabe79e
UW
13082002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1309
1310 * reload.c (dup_replacements): New function.
1311 (find_reloads): Use it to duplicate replacements at the top level
1312 of match_dup operands.
1313
0855247a
MB
13142002-09-26 Miles Bader <miles@gnu.org>
1315
1316 * v850.md ("length"): Change default value to 4.
1317
6335b0aa
KH
13182002-09-26 Kazu Hirata <kazu@cs.umass.edu>
1319
1320 * ChangeLog.1: Follow spelling conventions.
1321 * ChangeLog.4: Likewise.
1322 * ChangeLog.6: Likewise.
1323 * FSFChangeLog.11: Likewise.
1324 * doc/cpp.texi: Likewise.
1325 * doc/invoke.texi: Likewise.
1326 * doc/tm.texi: Likewise.
1327
09818236
NC
13282002-09-26 Nick Clifton <nickc@redhat.com>
1329
1330 * config.gcc: Add x prefix to v850e case for handling
1331 --with-cpu=v850e.
1332
8a3996fd
DM
13332002-09-25 David S. Miller <davem@redhat.com>
1334
1335 PR target/7842
1336 * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
1337 extend.
1338
8580f7a0
RH
13392002-09-25 Richard Henderson <rth@redhat.com>
1340
1341 * emit-rtl.c (const_double_htab_eq): Distinguish integer and
1342 fp CONST_DOUBLE; use real_identical.
1343
956d9305
MM
13442002-09-25 Mark Mitchell <mark@codesourcery.com>
1345
1346 * doc/invoke.texi: Add more -Wabi examples.
1347
3ccbe819
RS
13482002-09-25 Richard Sandiford <rsandifo@redhat.com>
1349
1350 * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
1351
2106e42a
DC
13522002-09-24 Denis Chertykov <denisc@overta.ru>
1353
1354 * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
1355 cases of optimizing "add sp,w" to "inc sp".
1356
58e60158
AN
13572002-09-24 Adam Nemet <anemet@lnxw.com>
1358
57147be1
ZW
1359 * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
1360 epilogue for naked functions.
58e60158 1361
59be6073 13622002-09-24 Adam Nemet <anemet@lnxw.com>
57147be1 1363 Nick Clifton <nickc@redhat.com>
59be6073
AN
1364
1365 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
1366 (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
1367 is defined.
1368
100c7420
UW
13692002-09-24 Ulrich Weigand <uweigand@de.ibm.com>
1370
1371 * config/s390/s390.c (preferred_la_operand_p): New function.
1372 * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
1373 * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
1374 ("*la_64_cc", "*la_31_cc", splitters): ... these.
1375 ("*la_31"): Deactivate for TARGET_64BIT.
1376 ("*la_31_and", "*la_31_and_cc"): New.
1377
9fc63af5
KG
13782002-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1379
1380 * real.h (real_value): Make `exp' explicitly signed.
1381
43a88a8c
KH
13822002-09-24 Kazu Hirata <kazu@cs.umass.edu>
1383
1384 * config/elfos.h: Follow spelling conventions.
1385 * config/alpha/alpha.h: Likewise.
1386 * config/arc/arc.h: Likewise.
1387 * config/arm/arm.md: Likewise.
1388 * config/avr/avr.h: Likewise.
1389 * config/cris/cris.md: Likewise.
1390 * config/d30v/d30v.h: Likewise.
1391 * config/frv/frv.c: Likewise.
1392 * config/frv/frv.h: Likewise.
1393 * config/h8300/h8300.c: Likewise.
1394 * config/h8300/h8300.h: Likewise.
1395 * config/h8300/h8300.md: Likewise.
1396 * config/i386/cygwin.h: Likewise.
1397 * config/i386/i386.h: Likewise.
1398 * config/i386/sysv3.h: Likewise.
1399 * config/i960/i960.h: Likewise.
1400 * config/ia64/ia64.h: Likewise.
1401 * config/ia64/ia64.md: Likewise.
1402 * config/ip2k/ip2k.h: Likewise.
1403 * config/m32r/m32r.h: Likewise.
1404 * config/m68k/m68k.h: Likewise.
1405 * config/m88k/m88k.h: Likewise.
1406 * config/mcore/mcore.c: Likewise.
1407 * config/mcore/mcore.h: Likewise.
1408 * config/mcore/mcore.md: Likewise.
1409 * config/mips/mips.h: Likewise.
1410 * config/mmix/mmix.h: Likewise.
1411 * config/mmix/mmix.md: Likewise.
1412 * config/ns32k/netbsd.h: Likewise.
1413 * config/ns32k/ns32k.h: Likewise.
1414 * config/ns32k/ns32k.md: Likewise.
1415 * config/pa/pa.h: Likewise.
1416 * config/romp/romp.h: Likewise.
1417 * config/rs6000/rs6000.h: Likewise.
1418 * config/rs6000/rs6000.md: Likewise.
1419 * config/sparc/sparc.h: Likewise.
1420 * config/stormy16/stormy-abi: Likewise.
1421 * config/stormy16/stormy16.h: Likewise.
1422 * config/vax/vax.h: Likewise.
1423
b4f94ac1
ZW
14242002-09-23 Zack Weinberg <zack@codesourcery.com>
1425
1426 * version.c (version_string): Now const char[].
1427 * version.h: Update to match.
1428
9ef1b13a
RH
14292002-09-23 Richard Henderson <rth@redhat.com>
1430
1431 * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
1432 MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
1433 (TARGET_SWITCHES): Don't reference them.
1434 * config/i386/i386.c (override_options): Use target_flags_explicit
1435 to examine bits set by the user.
1436
ca9d6748 14372002-09-23 Dale Johannesen <dalej@apple.com>
9ef1b13a 1438
ca9d6748
DJ
1439 * dbxout.c (dbxout_parms): Set current_sym_code for params
1440 passed on stack by invisible reference.
1441
97d48e5a
RE
14422002-09-23 Richard Earnshaw <rearnsha@arm.com>
1443
1444 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
1445 at least one byte of space.
1446
46c83bce
MM
14472002-09-23 Mark Mitchell <mark@codesourcery.com>
1448
1449 * c-common.h (flag_abi_version): Fix typo in comment.
1450 * doc/invoke.texi (flag_abi_version): Document default value.
1451
acb5d088
HPN
14522002-09-23 Hans-Peter Nilsson <hp@axis.com>
1453
1454 * doc/extend.texi (Extended Asm): Clarify that overlap between
1455 asm-declared register variables used in an asm and the asm clobber
1456 list is not allowed.
1457 * stmt.c (decl_conflicts_with_clobbers_p): New function.
1458 (expand_asm_operands): Keep track of clobbered registers. Call
1459 decl_conflicts_with_clobbers_p for each input and output operand.
1460 If no conflicts found before, also do conflict sanity check when
1461 emitting clobbers.
1462
ddf0fc72
RH
14632002-09-23 Richard Henderson <rth@redhat.com>
1464
1465 * c-common.c (cpp_define_data_format): Remove.
1466 (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
1467 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
1468 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
1469 * doc/cpp.texi: Don't document them either.
1470 (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
1471 __LONG_LONG_MAX__): Document.
1472 (__TARGET_FLOAT_FORMAT__): Remove.
1473
a520ff95
RH
14742002-09-23 Richard Henderson <rth@redhat.com>
1475
1476 * real.c (do_multiply): Normalize U before addition.
1477
2d3e278d
MM
14782002-09-23 Mark Mitchell <mark@codesourcery.com>
1479
1480 * c-common.c (flag_abi_version): New variable.
1481 * c-common.h (flag_abi_version): Declare it.
1482 * c-opts.c (missing_arg): Add -fabi-version.
1483 (c_common_decode_option): Process -fabi-version.
1484 * doc/invoke.texi (-fabi-version): Document it.
1485 (-Wabi): Add information about bit-fields in unions.
b4f94ac1 1486
173b51b5
JT
14872002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
1488
1489 * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
1490 unless -fno-pic or -fno-PIC is specified.
1491
c219e1da
JDA
14922002-09-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1493
1494 * c-common.c (preprocessing_trad_p): Define.
1495 * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
1496 (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
1497 * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
1498 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
1499 * pa-linux.h (CPP_PREDEFINES): Delete.
1500 (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
1501 * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
1502 * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
1503 (TARGET_OS_CPP_BUILTINS): Define.
1504 * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
1505 (TARGET_SWITCHES): Reformat. Use N_() macro. Add SUBTARGET_SWITCHES.
1506 (SUBTARGET_SWITCHES): Provide default definition.
1507 (TARGET_OPTIONS): Reformat. Use N_() macro.
1508 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
1509 CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
1510 EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
1511 (TARGET_CPU_CPP_BUILTINS): Define.
1512 (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
1513 * doc/invoke.texi (msio, mwsio): Document new hppa options.
1514 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
1515 preprocessing_trad_p().
1516
65a824f6
JT
15172002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
1518
1519 * doc/install.texi: Document behavior of --with-headers and
1520 --with-libs when arguments are omitted.
1521
cc2902df
KH
15222002-09-22 Kazu Hirata <kazu@cs.umass.edu>
1523
1524 * dbxout.c: Follow spelling conventions.
1525 * defaults.h: Likewise.
1526 * df.c: Likewise.
1527 * diagnostic.h: Likewise.
1528 * doloop.c: Likewise.
1529 * dwarf2out.c: Likewise.
1530 * dwarfout.c: Likewise.
1531 * emit-rtl.c: Likewise.
1532 * except.c: Likewise.
1533 * explow.c: Likewise.
1534 * expmed.c: Likewise.
1535 * expr.c: Likewise.
1536 * expr.h: Likewise.
1537 * flags.h: Likewise.
1538 * flow.c: Likewise.
1539 * fold-const.c: Likewise.
1540 * function.c: Likewise.
1541 * function.h: Likewise.
1542 * gcc.c: Likewise.
1543 * gcov-io.h: Likewise.
1544 * gcov.c: Likewise.
1545 * gcse.c: Likewise.
1546 * genattrtab.c: Likewise.
1547 * genconfig.c: Likewise.
1548 * genrecog.c: Likewise.
1549 * ggc-page.c: Likewise.
1550 * ggc.h: Likewise.
1551 * global.c: Likewise.
1552 * gthr-win32.h: Likewise.
1553 * integrate.c: Likewise.
1554 * jump.c: Likewise.
1555 * langhooks.c: Likewise.
1556 * langhooks.h: Likewise.
1557 * line-map.h: Likewise.
1558 * local-alloc.c: Likewise.
1559 * longlong.h: Likewise.
1560 * loop.c: Likewise.
1561 * loop.h: Likewise.
1562
ef49d42e
JH
1563Tue Aug 27 22:26:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1564
1565 * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
1566
1567Tue Aug 27 20:07:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1568
1569 * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
1570 for -Os/TARGET_64BIT too.
1571
da7d8304
KH
15722002-09-21 Kazu Hirata <kazu@cs.umass.edu>
1573
1574 * ChangeLog: Follow spelling conventions.
1575 * ChangeLog.0: Likewise.
1576 * ChangeLog.1: Likewise.
1577 * ChangeLog.2: Likewise.
1578 * ChangeLog.3: Likewise.
1579 * ChangeLog.4: Likewise.
1580 * ChangeLog.5: Likewise.
1581 * ChangeLog.6: Likewise.
1582 * FSFChangeLog.10: Likewise.
1583 * FSFChangeLog.11: Likewise.
1584 * alias.c: Likewise.
1585 * basic-block.h: Likewise.
1586 * c-aux-info.c: Likewise.
1587 * c-common.c: Likewise.
1588 * c-common.h: Likewise.
1589 * c-decl.c: Likewise.
1590 * c-format.c: Likewise.
1591 * c-semantics.c: Likewise.
1592 * c-typeck.c: Likewise.
1593 * calls.c: Likewise.
1594 * cfganal.c: Likewise.
1595 * cfgloop.c: Likewise.
1596 * collect2.c: Likewise.
1597 * combine.c: Likewise.
1598 * conflict.c: Likewise.
1599 * cppexp.c: Likewise.
1600 * cppfiles.c: Likewise.
1601 * cpphash.h: Likewise.
1602 * cppinit.c: Likewise.
1603 * cpplex.c: Likewise.
1604 * cpplib.c: Likewise.
1605 * cpplib.h: Likewise.
1606 * cppmacro.c: Likewise.
1607 * cse.c: Likewise.
1608
330cc6c7
RE
16092002-09-21 Richard Earnshaw <rearnsha@arm.com>
1610
1611 * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
1612 LINK_SPEC.
1613 (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
1614 * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
1615 (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
1616
5b437e0f
RE
16172002-09-21 Richard Earnshaw <rearnsha@arm.com>
1618
9ee4fa29
RE
1619 PR opt/7930
1620 * cse.c (fold_rtx): Calculate old_cost before we fold each
5b437e0f
RE
1621 operand.
1622
2a15d344
RH
16232002-09-21 Richard Henderson <rth@redhat.com>
1624
1625 * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
1626 __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
1627 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
1628 __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
1629 __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
1630 * doc/cpp.texi: Don't document them.
1631
3fdacdf9
RH
16322002-09-21 Richard Henderson <rth@redhat.com>
1633
1634 * c-common.c (builtin_define_float_constants): Use real_format
1635 to get the floating-point parameters.
1636
3dc85dfb
RH
16372002-09-21 Richard Henderson <rth@redhat.com>
1638
1639 * real.c (struct real_format): Move to real.h.
1640 (real_format_for_mode): Rename from fmt_for_mode; update all users;
1641 initialize with ieee defaults.
1642 (real_to_target_fmt, real_from_target_fmt): New.
1643 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
1644 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
b4f94ac1 1645 ieee_quad_format, i370_single_format, i370_double_format,
3dc85dfb
RH
1646 c4x_single_format, c4x_extended_format): Rename from s/_format//.
1647 (ieee_quad_format): Fix emin.
1648 (format_for_size, init_real_once): Remove.
1649 * real.h (struct real_format): Move from real.c.
1650 (real_format_for_mode): Declare.
1651 (real_to_target_fmt, real_from_target_fmt): Declare.
1652 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
1653 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1654 ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
1655 i370_single_format, i370_double_format, c4x_single_format,
1656 c4x_extended_format): Declare.
1657 * toplev.c (do_compile): Don't call init_real_once.
1658
1659 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1660 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1661
1662 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
1663 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
1664 * config/alpha/alpha.c (override_options): Set real_format_for_mode
1665 for VAX, if enabled.
1666
1667 * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
1668 for C4X.
1669
1670 * config/i370/i370.h (OVERRIDE_OPTIONS): New.
1671 * config/i370/i370.c (override_options): New.
1672 * config/i370/i370-protos.h: Update.
1673
1674 * config/i386/i386.c (override_options): Set real_format_for_mode
1675 for Intel 80-bit extended.
1676 * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1677
1678 * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
1679 (OVERRIDE_OPTIONS): Move code...
1680 * config/i960/i960.c (i960_initialize): ... here. Set
1681 real_format_for_mode for Intel 80-bit extended.
1682
1683 * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
1684 for Intel 80-bit extended, if enabled.
1685
1686 * config/m68k/m68k.c (override_options): Set real_format_for_mode
b4f94ac1 1687 for Motorola 96-bit extended.
3dc85dfb
RH
1688
1689 * config/vax/vax.h (OVERRIDE_OPTIONS): New.
1690 * config/vax/vax.c (override_options): New.
1691 * config/vax/vax-protos.h: Update.
1692
42a6388c
AM
16932002-09-21 Alan Modra <amodra@bigpond.net.au>
1694
84d7dd4a
AM
1695 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
1696 #if TARGET_MACHO.
1697
42a6388c
AM
1698 * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
1699 insns. Supply missing clobber of scratch reg.
1700
a0ab749a
KH
17012002-09-20 Kazu Hirata <kazu@cs.umass.edu>
1702
1703 * config/m32r/m32r.c: Follow spelling conventions.
1704 * config/m32r/m32r.h: Likewise.
1705 * config/m32r/m32r.md: Likewise.
1706 * config/m68k/m68k.c: Likewise.
1707 * config/m88k/m88k.c: Likewise.
1708 * config/mcore/mcore.c: Likewise.
1709 * config/mips/mips.c: Likewise.
1710 * config/mips/mips.h: Likewise.
1711 * config/mmix/mmix.c: Likewise.
1712 * config/mn10200/mn10200.c: Likewise.
1713 * config/ns32k/ns32k.h: Likewise.
1714 * config/pa/pa.c: Likewise.
1715 * config/pa/pa64-linux.h: Likewise.
1716 * config/pdp11/pdp11.h: Likewise.
1717 * config/romp/romp.c: Likewise.
1718 * config/romp/romp.h: Likewise.
1719 * config/rs6000/eabi.asm: Likewise.
1720 * config/rs6000/linux64.h: Likewise.
1721 * config/rs6000/rs6000.c: Likewise.
1722 * config/rs6000/rs6000.h: Likewise.
1723 * config/rs6000/rs6000.md: Likewise.
1724 * config/rs6000/sysv4.h: Likewise.
1725 * config/rs6000/xcoff.h: Likewise.
1726
2f0da74c
JW
17272002-09-20 Jim Wilson <wilson@redhat.com>
1728
1729 * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
1730
dea73790
JJ
17312002-09-20 Jakub Jelinek <jakub@redhat.com>
1732
1733 * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
1734 * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
1735 UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
1736 (legitimate_address_p): Likewise.
1737 (legitimize_address): Use @gotntpoff and @indntpoff.
1738 (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
1739 (output_addr_const_extra): Likewise.
1740
a9b2f059
JW
17412002-09-20 Jim Wilson <wilson@redhat.com>
1742
1743 * combine.c (try_combine): When split an instruction pair, where the
1744 first has a sign_extend src, verify that the src and dest modes match.
1745
1f7422bd
RH
17462002-09-20 Richard Henderson <rth@redhat.com>
1747
1748 * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
1749 (override_options): Do not initialize them.
1750 (mips_const_double_ok): Allow no fp constants except zero,
1751 and not even that for mips16.
1752 (const_float_1_operand): Use dconst1.
1753 * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
1754 movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
6d8dd940 1755 Don't allow arbitrary constants; fix predicates and C constraint.
1f7422bd 1756
56941bf2
NB
17572002-09-20 Neil Booth <neil@daikokuya.co.uk>
1758
1759 * cppmacro.c: Don't warn about function-like macros without
27eba309 1760 '(' during pre-expansion.
56941bf2 1761
66a0dfeb
JW
17622002-09-20 Jim Wilson <wilson@redhat.com>
1763
1764 * config/v850/v850.c (current_function_anonymous_args): Delete.
1765 (expand_prologue): Use current_function_args_info.anonymous_args.
1766 (expand_epilogue): Delete use of current_function_anonymous_args.
1767 * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
1768 (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
1769 (current_function_anonymous_args): Delete extern declaration.
1770 (SETUP_INCOMING_VARARGS): Set anonymous_args field.
1771
97b23853
GK
17722002-09-20 Geoffrey Keating <geoffk@apple.com>
1773
f51eee6a
GK
1774 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
1775 to load_macho_picbase.
1776 * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
1777 (load_macho_picbase): Take the symbol to use as a parameter.
1778 (macho_correct_pic): New insn.
1779 (builtin_setjmp_reciever): On Darwin, restore the PIC register.
1780
97b23853
GK
1781 * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
1782 RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
1783 (CAN_ELIMINATE): Likewise.
1784 (INITIAL_ELIMINATION_OFFSET): Likewise.
1785 (TOC_REGISTER): Likewise.
1786
46b33600
RH
17872002-09-20 Richard Henderson <rth@redhat.com>
1788
1789 * real.c (real_hash): New.
1790 * real.h: Declare it.
1791 * cse.c (canon_hash): Use it.
1792 * cselib.c (hash_rtx): Likewise.
1793 * emit-rtl.c (const_double_htab_hash): Likewise.
1794 * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
1795 * varasm.c (struct rtx_const): Reduce vector size; separate
1796 integer and fp vectors.
1797 (HASHBITS): Remove.
1798 (const_hash_1): Rename from const_hash. Use real_hash. Do not
1799 take modulus MAX_HASH_TABLE.
1800 (const_hash): New. Do take modulus MAX_HASH_TABLE.
1801 (output_constant_def): Do not take modulus MAX_HASH_TABLE.
1802 (SYMHASH): Don't use HASHBITS.
1803 (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
1804 Fix CONST_VECTOR thinko wrt fp vectors. Fix kind comparison.
1805 (simplify_subtraction): Fix kind comparison.
1806 (const_hash_rtx): Return unsigned int. Don't use HASHBITS.
1807 Use a union to pun integer array.
1808 * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
1809 only hash two words of integral CONST_DOUBLE.
1810
40ad65d0
SE
18112002-09-20 Steve Ellcey <sje@cup.hp.com>
1812
1813 * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
1814 (STARTFILE_PREFIX_SPEC): New.
1815 (LINK_SPEC): Modify.
1816 (LIB_SPEC): Modify.
1817 (LIBGCC_SPEC): New.
1818
600f3392
JJ
18192002-09-20 Jakub Jelinek <jakub@redhat.com>
1820
1821 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1822 UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
1823
c1ff6200
JD
18242002-09-20 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1825
1826 * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
1827 Add clobber of the condition code register.
1828
60b78700
RH
18292002-09-20 Richard Henderson <rth@redhat.com>
1830
1831 * real.c (do_fix_trunc): Static.
1832 (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
1833 encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
1834 encode_i370_single, encode_i370_double, encode_c4x_single,
1835 encode_c4x_extended): Add default abort case.
1836
0ee6fdb5
RH
18372002-09-20 Richard Henderson <rth@redhat.com>
1838
1839 * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
1840 MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
1841 (struct realvaluetype): Remove.
1842 (REAL_VALUE_TYPE): Use struct real_value.
1843 (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
1844 (test_real_width): New.
1845 * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
1846 (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
1847 (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
1848 real_isneg, real_isnegzero, real_identical, exact_real_inverse,
1849 real_to_integer, real_to_integer2, real_to_decimal,
1850 real_to_hexadecimal, real_from_string, real_from_integer,
1851 real_inf, real_nan, real_2expN, real_convert, real_to_target,
1852 real_from_target): Likewise.
1853 * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
1854 * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
1855
66d93b5a
RH
18562002-09-20 Richard Henderson <rth@redhat.com>
1857
1858 * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
1859 IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
1860 * defaults.h: ... here.
1861 * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
1862 config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
1863 config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
1864 config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
1865
6ee3db61
HPN
18662002-09-20 Hans-Peter Nilsson <hp@bitrange.com>
1867
1868 * config/mmix/mmix.md ("negdf2"): Rewrite.
1869 ("*expanded_negdf2"): New.
1870
ff076520
JW
18712002-09-19 Jim Wilson <wilson@redhat.com>
1872
1873 * combine.c (simplify_set): When optimizing a subreg src with a
1874 cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
1875
307f767b
DJ
18762002-09-19 Dale Johannesen <dalej@apple.com>
1877 * combine.c (make_extraction): Don't create
1878 invalid subreg.
1879
cc7ab9b7
UW
18802002-09-19 Ulrich Weigand <uweigand@de.ibm.com>
1881
b4f94ac1 1882 * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
cc7ab9b7
UW
1883 and STRICT_LOW_PART within SET_DEST.
1884 * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
1885 splitters, replacing pre-reload splitters.
b4f94ac1 1886 ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
cc7ab9b7
UW
1887 "*zero_extendqihi2_31"): New insns.
1888 ("*zero_extendqihi2_64"): Do not clobber CC.
1889
b64ddb88
SE
18902002-09-19 Steve Ellcey <sje@cup.hp.com>
1891
1892 * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
1893 (DTORS_SECTION_ASM_OP): Ditto.
1894 (READONLY_DATA_SECTION_ASM_OP): Moved.
1895 (DATA_SECTION_ASM_OP): New.
1896 (SDATA_SECTION_ASM_OP): New.
1897 (BSS_SECTION_ASM_OP): New.
1898 (SBSS_SECTION_ASM_OP): New.
1899 (TEXT_SECTION_ASM_OP): New.
1900
9cd10576
KH
19012002-09-19 Kazu Hirata <kazu@cs.umass.edu>
1902
1903 * config/fp-bit.c: Follow spelling conventions.
1904 * config/d30v/d30v.c: Likewise.
1905 * config/d30v/d30v.h: Likewise.
1906 * config/fr30/fr30.c: Likewise.
1907 * config/fr30/fr30.h: Likewise.
1908 * config/fr30/fr30.md: Likewise.
1909 * config/frv/frv.c: Likewise.
1910 * config/frv/frv.h: Likewise.
1911 * config/h8300/h8300.c: Likewise.
1912 * config/h8300/lib1funcs.asm: Likewise.
1913 * config/i370/i370.c: Likewise.
1914 * config/i386/i386.h: Likewise.
1915 * config/i386/i386.md: Likewise.
1916 * config/i386/pentium.md: Likewise.
1917 * config/i386/winnt.c: Likewise.
1918 * config/i960/i960.c: Likewise.
1919 * config/ia64/ia64.h: Likewise.
1920 * config/ip2k/ip2k.c: Likewise.
1921 * config/ip2k/ip2k.h: Likewise.
1922 * config/ip2k/ip2k.md: Likewise.
1923 * config/ip2k/libgcc.S: Likewise.
1924
fff08fd8
SC
19252002-09-19 Stephen Clarke <stephen.clarke@superh.com>
1926
1927 * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
1928 (GOTOFF_P): Extend to allow gotoff plus constant.
1929
bf3d27e6
RH
19302002-09-18 Richard Henderson <rth@redhat.com>
1931
1932 * ifcvt.c (noce_process_if_block): Correctly detect X modified
b4f94ac1 1933 with INSN_B before COND_EARLIEST. Don't check A and B for
bf3d27e6
RH
1934 modification in condition range. Reorder INSN_B for A==B properly.
1935 (if_convert): Iterate until no matches for a block.
1936
1b1f20ca
RH
19372002-09-18 Richard Henderson <rth@redhat.com>
1938
1939 * calls.c (store_one_arg): Rename default_align to parm_align;
1940 always adjust parm_align for downward padding.
1941
724838b9
RH
19422002-09-18 Richard Henderson <rth@redhat.com>
1943
1944 * toplev.c (backend_init): Move init_real_once invocation ...
1945 (do_compile): ... here.
1946
2c67b7c6
RH
19472002-09-18 Richard Henderson <rth@redhat.com>
1948
1949 * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
1950 RTX_UNCHANGING_P markers for successful tail-recursive replacement.
1951
15769ca3
RH
19522002-09-18 Richard Henderson <rth@redhat.com>
1953
1954 * real.c (round_for_format): Collect sticky as unsigned long, not bool.
1955
678b7733
AM
19562002-09-19 Alan Modra <amodra@bigpond.net.au>
1957
1958 * config/rs6000/rs6000.md: (floatdisf2): Rename to
1959 floatdisf2_internal1.
1960 (floatdisf2): New define_expand.
1961 (floatdisf2_internal2): Likewise.
1962
c402b6bf
RH
19632002-09-18 Richard Henderson <rth@redhat.com>
1964
b4f94ac1 1965 * real.c (sticky_rshift_significand): Collect sticky as
c402b6bf
RH
1966 unsigned long, not bool.
1967
dea09b1b
UW
19682002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * config/s390/s390.c (s390_address_cost): New function.
1971 config/s390/s390-protos.h (s390_address_cost): Add prototype.
1972 config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
1973 (RTX_COST): Use COSTS_N_INSNS.
1974
e4850f36
DR
19752002-09-18 Douglas Rupp <rupp@gnat.com>
1976 Donn Terry <donnte@microsoft.com>
1977
1978 * stor-layout.c (place_field): Handle alignment of whole
1979 structures when MSVC compatible bitfields are involved.
1980 Change method of computing location of MS bitfields to
1981 be compatible with #pragma pack(n).
1982
1983 * tree.h (record_layout_info): Add new field
1984 remaining_in_alignment.
1985
1986 * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
43a88a8c 1987 (pragma pack): Add paragraph on MSVC bit-field packing.
e4850f36 1988
872e50d3
RE
19892002-09-18 Richard Earnshaw (reanrsha@arm.com)
1990
1991 PR optimization/7967
1992 * arm.md (ne_zeroextractsi): Add clobber of the condition code
1993 register.
1994
5e7a8ee0
KH
19952002-09-18 Kazu Hirata <kazu@cs.umass.edu>
1996
9cd10576 1997 * config/s390/s390.c: Follow spelling conventions.
5e7a8ee0
KH
1998 * config/sh/lib1funcs.asm: Likewise.
1999 * config/sh/sh.c: Likewise.
2000 * config/sh/sh.h: Likewise.
2001 * config/sparc/sparc.c: Likewise.
2002 * config/sparc/sparc.h: Likewise.
2003 * config/sparc/sparc.md: Likewise.
2004 * config/stormy16/stormy16.c: Likewise.
2005 * config/stormy16/stormy16.h: Likewise.
2006 * config/v850/v850.c: Likewise.
2007 * config/v850/v850.h: Likewise.
2008 * config/vax/vax.c: Likewise.
2009 * config/vax/vax.h: Likewise.
2010
00a892b8
NC
20112002-09-18 Nick Clifton <nickc@redhat.com>
2012
2013 * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
2014 * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
2015 * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
2016
bfb53001
ZW
20172002-09-17 Zack Weinberg <zack@codesourcery.com>
2018
2019 * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
2020 statement that the only translation is to en_UK.
2021
825dda42
KH
20222002-09-17 Kazu Hirata <kazu@cs.umass.edu>
2023
2024 * config/alpha/alpha.c: Follow spelling conventions.
2025 * config/alpha/alpha.h: Likewise.
2026 * config/alpha/alpha.md: Likewise.
2027 * config/arc/arc.h: Likewise.
2028 * config/arm/arm.c: Likewise.
2029 * config/arm/arm.h: Likewise.
2030 * config/arm/arm.md: Likewise.
2031 * config/arm/pe.c: Likewise.
2032 * config/arm/unknown-elf.h: Likewise.
2033 * config/avr/avr.c: Likewise.
2034 * config/avr/avr.h: Likewise.
2035 * config/c4x/c4x.c: Likewise.
2036 * config/cris/cris.c: Likewise.
2037 * config/cris/cris.h: Likewise.
2038
8e16ab99 20392002-09-17 Samuel Figueroa <figueroa@apple.com>
825dda42 2040
8e16ab99
SF
2041 * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
2042 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
2043 * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
2044
ac19be7e 20452002-09-17 Dale Johannesen <dalej@apple.com>
825dda42 2046
ac19be7e
DJ
2047 * cfgcleanup.c (try_forward_edges): Do not forward a
2048 branch to just after a loop exit before loop optimization;
2049 this interfered with doloop detection.
2050
f1acdf8b
NC
20512002-09-17 Nick Clifton <nickc@redhat.com>
2052
2053 * config/arm/arm.c (output_return_instruction): Do not
2054 writeback the stack pointer when it is being loaded.
2055 (arm_output_epilogue): Likewise.
2056
24491a09
KH
20572002-09-17 Kazu Hirata <kazu@cs.umass.edu>
2058
2059 * optabs.c (prepare_cmp_insn): Let emit_library_call_value
2060 generate a pseudo reg that receives the result of a libcall.
2061 (prepare_float_lib_cmp): Likewise.
2062
e6c247e0
SE
20632002-09-17 Steve Ellcey <sje@cup.hp.com>
2064
b4f94ac1 2065 * config/ia64/elf.h: Remove CPP_PREDEFINES.
e6c247e0 2066
1074d9d4
NP
2067Tue Sep 17 13:58:04 2002 Nicola Pero <n.pero@mi.flashnet.it>
2068
2069 Fix PR/7014 and related objc bugs:
2070 * c-typeck.c (comp_target_types): Added a reflexive argument.
2071 Pass it to ObjC when/if calling objc_comptypes(). Updated all
2072 callers to provide the appropriate reflexive argument.
2073 * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
2074 typechecking for all cases of comparisons and assignments,
2075 particularly the obscure and less common ones involving protocols.
2076
256e9fd2
NC
20772002-09-17 Nick Clifton <nickc@redhat.com>
2078
2079 * machmode.def (V1DImode): New mode. A single element vector.
2080 * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
2081 (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
2082 * tree.c (build_common_tree_nodes_2): Build
2083 unsigned_V1DI_type_node and V1D1_type_node.
2084 * c-common.c (c_common_type_for_mode): Return
2085 unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
2086 * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
2087
838c4534
NP
2088Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
2089
2090 * doc/objc.texi (Constant string objects): Extended documentation
2091 to make clear that the constant string class ivar layout is
2092 completely fixed.
b4f94ac1 2093
07532fad
RS
20942002-09-17 Roger Sayle <roger@eyesopen.com>
2095
2096 * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
2097 NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
2098
cb38fd88
RH
20992002-09-16 Richard Henderson <rth@redhat.com>
2100
2101 * expr.c (emit_block_move): Set memory block size as appropriate
2102 for the copy.
2103
bd055118
RH
21042002-09-16 Richard Henderson <rth@redhat.com>
2105
2106 PR fortran/3924
b4f94ac1 2107 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
bd055118 2108
8c317c5f
RH
21092002-09-16 Richard Henderson <rth@redhat.com>
2110
2111 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
2112 as well as OFFSET for BITPOS.
2113
3780101d
JG
21142002-09-16 Jeff Garzik <jgarzik@mandrakesoft.com>
2115
b4f94ac1
ZW
2116 * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
2117 * config/i386/i386.c (processor_alias_table): Add winchip-c6,
3780101d 2118 winchip2 and c3.
b4f94ac1 2119 * doc/invoke.texi: Mention new aliases.
3780101d 2120
9dff28ab
JDA
21212002-09-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2122
2123 * calls.c (store_one_arg): Set default alignment for BLKmode arguments
2124 to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
2125 downward.
2126 * function.c (pad_below): Always compile.
2127 (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
2128 alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
2129 Pad below when the argument is not in a register and the padding
2130 direction is downward.
2131
2132 * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
2133 (PAD_VARARGS_DOWN): Define.
2134 * pa.c (function_arg_padding): Revise padding directions to make them
2135 compatible with the 32 and 64-bit runtime architecture documentation.
2136 (hppa_va_arg): Add code to handle variable and size zero arguments
2137 passed by reference on TARGET_64BIT. Reformat.
2138 (function_arg): Use a PARALLEL for BLKmode and aggregates args on
2139 TARGET_64BIT. Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
2140 wide when !TARGET_64BIT. Move forward check for mode==VOIDmode.
2141 Add comments.
2142 * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
2143 (RETURN_IN_MEMORY): Return size zero types in memory.
2144 (FUNCTION_VALUE): Return TFmode in general registers.
2145 (MUST_PASS_IN_STACK): Define.
2146 (FUNCTION_ARG_BOUNDARY): Simplify.
2147 (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
2148 by reference.
2149 (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
2150
94313f35
RH
21512002-09-16 Richard Henderson <rth@redhat.com>
2152
2153 * real.c (do_fix_trunc): New.
2154 (real_arithmetic): Call it.
2155 * simplify-rtx.c (simplify_unary_operation): Handle FIX
2156 with a floating-point result mode.
2157
1472e41c
RH
21582002-09-16 Richard Henderson <rth@redhat.com>
2159
2160 * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
2161 (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
2162 * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
2163 (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
2164 * builtins.c (fold_builtin_nan): New.
2165 (fold_builtin): Call it.
2166 * real.c (real_nan): Parse a non-empty string.
2167 (round_for_format): Fix NaN significand truncation.
2168 * real.h (real_nan): Return bool.
2169 * doc/extend.texi: Document new builtins.
2170
f354b828
JM
21712002-09-16 Jason Merrill <jason@redhat.com>
2172 Danny Smith <dannysmith@users.sourceforge.net>
2173
2174 * config/i386/winnt.c (ix86_handle_dll_attribute): Set
2175 DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
2176 (i386_pe_mark_dllimport): Not here.
2177
85341ddd
NS
21782002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2179
2180 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
2181
045572c7
GK
21822002-09-16 Geoffrey Keating <geoffk@redhat.com>
2183
2184 * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
2185 warnings about unused operands when HOST_BITS_PER_WIDE_INT is
2186 < 64.
2187 (rs6000_emit_cmove): Use real_isinf not target_isinf.
2188
d57551c7
KH
21892002-09-16 Kazu Hirata <kazu@cs.umass.edu>
2190
2191 * calls.c (emit_library_call_value_1): Don't refer to
2192 hard_libcall_value.
2193 * optabs.c (prepare_float_lib_cmp): Likewise.
2194
36a5eadd
GK
21952002-09-16 Geoffrey Keating <geoffk@apple.com>
2196
2197 * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
2198 mangling.
2199
2200 The following changes are merged from pch-branch:
2201
2202 * doc/gty.texi (GTY Options): Document %a.
2203 * gengtype.c (do_scalar_typedef): New function.
2204 (process_gc_options): Handle `length' option.
2205 (set_gc_used_type): A pointer to an array of structures doesn't
2206 qualify as a pointer to a structure.
2207 (output_escaped_param): Add `%a' escape.
2208 (write_gc_structure_fields): Allow 'desc' on array of unions.
2209 (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
2210 do_scalar_typedef.
2211
2212 * gengtype.c (enum rtx_code): Make global.
2213 (rtx_format): Make global.
2214 (rtx_next): New.
2215 (gen_rtx_next): New.
2216 (write_rtx_next): New.
2217 (adjust_field_rtx_def): Skip fields marked by chain_next.
2218 (open_base_files): Delete redundant prototype.
2219 (write_enum_defn): New.
2220 (output_mangled_typename): Correct abort call.
2221 (write_gc_marker_routine_for_structure): Handle chain_next and
2222 chain_prev options.
2223 (finish_root_table): Don't output redundant \n.
2224 (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
2225 * c-tree.h (union lang_tree_node): Add chain_next option.
2226
2227 * gengtype.h (NUM_PARAM): New definition.
2228 (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
2229 * gengtype.c (find_param_structure): New.
2230 (adjust_field_type): Handle param<n>_is option.
2231 (process_gc_options): Detect use_params option. Update callers.
2232 (set_gc_used_type): Add 'param' parameter, update callers. Handle
2233 'use_params' option.
2234 (open_base_files): Add splay-tree.h to list of files included.
2235 (output_mangled_typename): New.
2236 (write_gc_structure_fields): Update 'param' parameter to support
2237 multiple parameters. Change name mangling. Allow parameterized
2238 fields to have an apparent scalar type. Handle param<n>_is options,
2239 use_param option.
2240 (write_gc_marker_routine_for_structure): Update for change to name
2241 mangling. Better guess the output file for parameterized types.
2242 (write_gc_types): Update for change to name mangling.
2243 (write_gc_root): Update for change to name mangling. Handle (ignore)
2244 param<n>_is options.
2245 * doc/gty.texi (GTY Options): Add description of param<n>_is
2246 options, use_params option.
2247 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
2248 * gengtype-lex.l: Produce token for param<n>_is.
2249 * gengtype-yacc.y: Parse param<n>_is.
2250
2251 * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
2252
2253 * rtl.c: Update comment describing rtx_format.
2254 * rtl.h (union rtunion): Separate definition and typedef.
2255 (struct rtx_def): Use gengtype to mark.
2256 * Makefile.in (gengtype.o): Also depend on rtl.def.
2257 * ggc.h (ggc_mark_rtx_children): Delete prototype.
2258 (ggc_mark_rtx): Change to alias of gengtype-generated routine.
2259 * ggc-common.c (ggc_mark_rtx_children): Delete.
2260 (ggc_mark_rtx_children_1): Delete.
2261 (gt_ggc_m_rtx_def): Delete.
2262 * gengtype.c (adjust_field_rtx_def): New.
2263 (adjust_field_type): Call adjust_field_rtx_def.
2264 (write_gc_structure_fields): Add 'default' case to switch if none
2265 is specified; remove unused code.
2266
2267 * tree.h (struct tree_exp): Update for change to meaning
2268 of special.
2269 * gengtype.c (adjust_field_tree_exp): New function.
2270 (adjust_field_type): Handle `tree_exp' special here.
2271 (write_gc_structure_fields): Don't handle `tree_exp' special here.
2272 Handle new `dot' option.
2273
2274 * gengtype.h: Make `info' a pointer-to-const.
2275 * gengtype-yacc.y (yacc_ids): Use xasprintf.
2276
2277 * gengtype.c (write_gc_structure_fields): Remove implementation
2278 of `always' option, add `default' option.
2279 * doc/gty.texi (GTY Options): Remove documentation of `always',
2280 add `default'.
2281
a7f6d760
HPN
22822002-09-16 Hans-Peter Nilsson <hp@bitrange.com>
2283
2284 * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
2285
245ff137
KG
22862002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2287
7c3414b6
KG
2288 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
2289
245ff137
KG
2290 * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
2291 instead of the *-protos.h file directly.
2292 * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
2293 * darwin.c (machopic_output_stub): Move prototype ...
2294 * darwin-protos.h (machopic_output_stub): ... here.
2295 * rs6000-protos.h (machopic_output_stub): Don't declare.
2296
ac520ec9
RH
22972002-09-16 Richard Henderson <rth@redhat.com>
2298
2299 * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
2300
efdc7e19
RH
23012002-09-16 Richard Henderson <rth@redhat.com>
2302
2303 * real.c, real.h: Rewrite from scratch.
2304
2305 * Makefile.in (simplify-rtx.o): Depend on TREE_H.
2306 (paranoia): New target.
2307 * builtins.c (fold_builtin_inf): Use new real.h interface.
2308 * c-common.c (builtin_define_with_hex_fp_value): Likewise.
2309 * c-lex.c (interpret_float): Likewise.
2310 * emit-rtl.c (gen_lowpart_common): Likewise.
2311 * optabs.c (expand_float): Use real_2expN.
2312 * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
2313 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
2314 (FLOAT_WORDS_BIG_ENDIAN): New.
2315 * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
2316 directly to REAL_VALUE_NEGATIVE.
2317 * loop.c (canonicalize_condition): Likewise.
2318 * simplify-rtx.c: Include tree.h.
2319 (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
2320 with floating-point result modes.
2321 * toplev.c (backend_init): Call init_real_once.
2322
2323 * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
2324 * tree.c (build_real): Likewise.
2325 * config/alpha/alpha.c, config/vax/vax.c (float_strings,
2326 float_values, inited_float_values, check_float_value): Remove.
2327 * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
2328 config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
2329 * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
2330 (VAX_HALFWORD_ORDER): Remove.
2331
a41c6c53
UW
23322002-09-16 Ulrich Weigand <uweigand@de.ibm.com>
2333
2334 * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
2335 (s390_load_address): ... this new function.
2336 (s390_decompose_address): Allow the argument pointer and all
2337 virtual registers as 'pointer' registers.
2338 (s390_expand_plus_operand): Use s390_load_address.
2339 config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
2340 ("force_la_31"): New insn pattern.
2341 config/s390/s390-protos.h (legitimize_la_operand): Remove.
2342 (s390_load_address): Add prototype.
2343
2344 * config/s390/s390.c: Include "optabs.h".
2345 (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
b4f94ac1 2346 config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
a41c6c53
UW
2347 s390_expand_cmpstr): Add prototypes.
2348 config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
2349 ("movstrdi_short"): Rename to "movstr_short_64". Change predicates
2350 for operands 0 and 1 to "memory_operand". Add type attribute.
2351 ("movstrsi_short"): Rename to "movstr_short_31". Change predicates
2352 for operands 0 and 1 to "memory_operand". Add type attribute.
2353 ("movstrdi_long", "movstrsi_long"): Remove.
2354 ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
2355 ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
2356 ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
2357 ("clrstrsico"): Remove, replace by ...
2358 ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
2359 ("clrstrsi_64"): Rename to "clrstr_long_64".
2360 ("clrstrsi_31"): Rename to "clrstr_long_31".
2361 ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
2362 ("cmpstr_const"): Remove, replace by ...
2363 ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
2364 ("cmpstr_64"): Rename to "cmpstr_long_64".
2365 ("cmpstr_31"): Rename to "cmpstr_long_31".
2366
8d9afc4e
KH
23672002-09-16 Kazu Hirata <kazu@cs.umass.edu>
2368
2369 * ABOUT-NLS: Follow spelling conventions.
2370 * ChangeLog: Likewise.
2371 * ChangeLog.1: Likewise.
2372 * ChangeLog.2: Likewise.
2373 * ChangeLog.3: Likewise.
2374 * ChangeLog.4: Likewise.
2375 * ChangeLog.5: Likewise.
2376 * ChangeLog.6: Likewise.
2377 * FSFChangeLog.10: Likewise.
2378 * FSFChangeLog.11: Likewise.
2379 * c-common.c: Likewise.
2380 * c-lex.c: Likewise.
2381 * c-objc-common.c: Likewise.
2382 * cppexp.c: Likewise.
2383 * cppinit.c: Likewise.
2384 * cpplex.c: Likewise.
2385 * doloop.c: Likewise.
2386 * flow.c: Likewise.
2387 * function.c: Likewise.
2388 * integrate.c: Likewise.
2389 * loop.c: Likewise.
2390 * reg-stack.c: Likewise.
2391 * reload.h: Likewise.
2392 * ssa.c: Likewise.
2393
981f6289
KH
23942002-09-15 Kazu Hirata <kazu@cs.umass.edu>
2395
2396 * ChangeLog: Follow spelling conventions.
2397 * ChangeLog.0: Likewise.
2398 * ChangeLog.1: Likewise.
2399 * ChangeLog.2: Likewise.
2400 * ChangeLog.4: Likewise.
2401 * ChangeLog.6: Likewise.
2402 * config.gcc: Likewise.
2403 * dwarfout.c: Likewise.
2404 * reload1.c: Likewise.
2405 * simplify-rtx.c: Likewise.
2406 * unwind-sjlj.c: Likewise.
2407 * config/avr/avr.h: Likewise.
2408 * config/d30v/d30v.h: Likewise.
2409 * config/frv/frv.c: Likewise.
2410 * config/frv/frv.h: Likewise.
2411 * config/ip2k/ip2k.h: Likewise.
2412 * config/m88k/m88k-move.sh: Likewise.
2413 * config/stormy16/stormy16.c: Likewise.
2414 * config/stormy16/stormy16.h: Likewise.
2415 * doc/extend.texi: Likewise.
2416 * doc/interface.texi: Likewise.
2417 * doc/invoke.texi: Likewise.
2418 * doc/md.texi: Likewise.
2419 * doc/rtl.texi: Likewise.
2420 * doc/tm.texi: Likewise.
2421 * doc/trouble.texi: Likewise.
2422 * ginclude/float.h: Likewise.
2423 * treelang/treelang.texi: Likewise.
2424
8764eef7
KG
24252002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2426
bb6155b5
KG
2427 * i386-protos.h (i386_pe_dllexport_name_p,
2428 i386_pe_dllimport_name_p, i386_pe_unique_section,
2429 i386_pe_declare_function_type, i386_pe_record_external_function,
2430 i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
2431 prototype.
2432 * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
2433 * i386/t-interix (winnt.o): Likewise.
2434
8764eef7
KG
2435 * v850-protos.h (v850_output_addr_const_extra): Prototype.
2436
a24f7c1a
JT
24372002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
2438
2439 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
2440 MIPS ABI CPP macros.
2441 (TARGET_CPU_CPP_BUILTINS): Redefine.
2442 (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
2443 (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
2444
bd25febf
KG
24452002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2446
2447 * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2448
05713b80
KH
24492002-09-15 Kazu Hirata <kazu@cs.umass.edu>
2450
2451 * ChangeLog: Follow spelling conventions.
2452 * ChangeLog.0: Likewise.
2453 * ChangeLog.1: Likewise.
2454 * ChangeLog.2: Likewise.
2455 * ChangeLog.3: Likewise.
2456 * ChangeLog.4: Likewise.
2457 * ChangeLog.5: Likewise.
2458 * ChangeLog.6: Likewise.
2459 * FSFChangeLog.10: Likewise.
2460 * FSFChangeLog.11: Likewise.
2461 * c-common.c: Likewise.
2462 * c-common.h: Likewise.
2463 * c-format.c: Likewise.
2464 * c-opts.c: Likewise.
2465 * cpplib.c: Likewise.
2466 * langhooks.h: Likewise.
2467 * real.c: Likewise.
2468 * reg-stack.c: Likewise.
2469 * toplev.c: Likewise.
2470 * config/arm/arm.c: Likewise.
2471 * config/arm/arm.md: Likewise.
2472 * config/arm/linux-gas.h: Likewise.
2473 * config/arm/netbsd.h: Likewise.
2474 * config/c4x/c4x.c: Likewise.
2475 * config/c4x/c4x.h: Likewise.
2476 * config/c4x/c4x.md: Likewise.
2477 * config/c4x/libgcc.S: Likewise.
2478 * config/fr30/fr30.md: Likewise.
2479 * config/frv/frv.md: Likewise.
2480 * config/ia64/ia64.md: Likewise.
2481 * config/mips/mips.h: Likewise.
2482 * config/mn10300/mn10300.c: Likewise.
2483 * config/stormy16/stormy16.c: Likewise.
2484 * config/v850/v850.md: Likewise.
2485 * doc/extend.texi: Likewise.
2486 * doc/invoke.texi: Likewise.
2487 * doc/md.texi: Likewise.
2488
b0c2b2f9
JT
24892002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
2490
2491 * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
2492 library if -pthread is specified.
2493
a0494c05
JT
24942002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
2495
2496 * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
2497 for --enable-threads=yes and --enable-threads=posix.
2498
56149abc
KH
24992002-09-15 Kazu Hirata <kazu@cs.umass.edu>
2500
2501 * config/sparc/cypress.md: Replace Sparc with SPARC.
2502 * config/sparc/freebsd.h: Likewise.
2503 * config/sparc/gmon-sol2.c: Likewise.
2504 * config/sparc/hypersparc.md: Likewise.
2505 * config/sparc/lb1spc.asm: Likewise.
2506 * config/sparc/lb1spl.asm: Likewise.
2507 * config/sparc/linux.h: Likewise.
2508 * config/sparc/linux64.h: Likewise.
2509 * config/sparc/lynx.h: Likewise.
2510 * config/sparc/sol2.h: Likewise.
2511 * config/sparc/sparc-modes.def: Likewise.
2512 * config/sparc/sparc.c: Likewise.
2513 * config/sparc/sparc.h: Likewise.
2514 * config/sparc/sparc.md: Likewise.
2515 * config/sparc/sparclet.md: Likewise.
2516 * config/sparc/supersparc.md: Likewise.
2517 * config/sparc/sysv4.h: Likewise.
2518 * config/sparc/vxsim.h: Likewise.
2519 * config/sparc/vxsparc64.h: Likewise.
2520
3eaf7a3c
MM
25212002-09-14 Marek Michalkiewicz <marekm@amelek.gda.pl>
2522
2523 * config/avr/avr.c (output.h): Move after inclusion of tree.h.
2524
4912a07c
KH
25252002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2526
2527 * ChangeLog: Follow spelling conventions.
2528 * ChangeLog.0: Likewise.
2529 * ChangeLog.2: Likewise.
2530 * ChangeLog.3: Likewise.
2531 * ChangeLog.4: Likewise.
2532 * ChangeLog.5: Likewise.
2533 * ChangeLog.6: Likewise.
2534 * cppfiles.c: Likewise.
2535 * cppinit.c: Likewise.
2536 * cpplib.h: Likewise.
2537 * cse.c: Likewise.
2538 * debug.h: Likewise.
2539 * df.c: Likewise.
2540 * dominance.c: Likewise.
2541 * hashtable.c: Likewise.
2542 * hashtable.h: Likewise.
2543 * loop.c: Likewise.
2544 * config/arm/README-interworking: Likewise.
2545 * config/arm/arm.c: Likewise.
2546 * config/arm/arm.h: Likewise.
2547 * config/arm/arm.md: Likewise.
2548 * config/dsp16xx/dsp16xx.h: Likewise.
2549 * config/frv/frv.c: Likewise.
2550 * config/frv/frv.h: Likewise.
2551 * config/ip2k/ip2k.h: Likewise.
2552 * config/rs6000/rs6000.c: Likewise.
2553 * config/stormy16/stormy-abi: Likewise.
2554 * config/stormy16/stormy16.h: Likewise.
2555 * config/v850/v850.c: Likewise.
2556
3dc60fc7
KH
25572002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2558
2559 * loop.c: Fix a comment typo.
2560
a920aefe
KH
25612002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2562
2563 * config/fr30/fr30.h: Fix comment typos.
2564 * config/frv/frv.c: Likewise.
2565 * config/i386/xmmintrin.h: Likewise.
2566 * config/mips/mips.c: Likewise.
2567 * config/sh/sh.c: Likewise.
2568
88cad84b
KH
25692002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2570
2571 * haifa-sched.c: Follow spelling conventions.
2572 * regclass.c: Likewise.
2573 * regrename.c: Likewise.
2574 * config/fp-bit.c: Likewise.
2575 * config/frv/frv.h: Likewise.
2576 * config/m88k/m88k.c: Likewise.
2577 * config/mcore/mcore.c: Likewise.
2578 * config/rs6000/darwin.h: Likewise.
2579 * config/rs6000/gnu.h: Likewise.
2580 * config/rs6000/linux.h: Likewise.
2581 * config/rs6000/linux64.h: Likewise.
2582 * config/rs6000/rs6000.c: Likewise.
2583 * config/rs6000/rs6000.h: Likewise.
2584 * config/sh/sh.c: Likewise.
2585 * config/sparc/sparc.c: Likewise.
2586 * config/sparc/ultra1_2.md: Likewise.
2587
f197f1cf
SC
25882002-09-14 Stephane Carrez <stcarrez@nerim.fr>
2589
2590 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
2591 memory operand when source is 0 (K constraint).
2592 ("movsi_internal"): Likewise.
2593 ("movdf_internal"): Likewise.
2594 ("movsf_internal"): Likewise.
2595
b629ba0c
AM
25962002-09-14 Alan Modra <amodra@bigpond.net.au>
2597
2598 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
2599 targetm.binds_local_p to set SYMBOL_REF_FLAG.
2600 (rs6000_xcoff_encode_section_info): Likewise.
2601 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2602
2e485129
TR
26032002-09-10 Theodore A. Roth <troth@verinet.com>
2604
2605 * gcc/config/avr/avr.h: Set default options for C++ for avr.
2606
907aee69
RH
26072002-09-13 Richard Henderson <rth@redhat.com>
2608
2609 * Makefile.in (toplev.o): Depend on real.h.
2610 (print-rtl.o, varasm.o, ifcvt.o): Likewise.
2611
374b0b7d
AM
26122002-09-14 Alan Modra <amodra@bigpond.net.au>
2613
2614 * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
2615 * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
2616 * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
2617
690eed2c
NS
26182002-09-13 Nathan Sidwell <nathan@codesourcery.com>
2619
2620 * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
2621
32b4f6f4
SE
26222002-09-13 Steve Ellcey <sje@cup.hp.com>
2623
2624 * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
2625 ia64*-*-linux*): Set extra_parts.
2626 * config/ia64/t-aix (EXTRA_PARTS): Remove.
2627 * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
2628
3db11b5c
KH
26292002-09-13 Kazu Hirata <kazu@cs.umass.edu>
2630
2631 * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
2632 * config/h8300/h8300.c: Likewise.
2633 * config/h8300/h8300.h: Likewise.
2634 * config/h8300/h8300.md: Likewise.
2635 * doc/invoke.texi: Likewise.
2636
b6894857
KH
26372002-09-13 Kazu Hirata <kazu@cs.umass.edu>
2638
2639 * config/h8300/h8300.c (h8300_init_once): Fix formatting.
2640
d5909a79
RH
26412002-09-13 Richard Henderson <rth@redhat.com>
2642
2643 * config/alpha/alpha.md (attr type): Add callpal.
2644 (imb, trap, load_tp, set_tp): Use it.
2645 * config/alpha/ev4.md (ev4_callpal): New.
2646 * config/alpha/ev5.md (ev5_callpal): New.
2647 * config/alpha/ev6.md (ev6_ibr): Handle callpal.
2648 * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
2649 (alphaev5_insn_pipe): Likewise.
2650
e0073fa8
AJ
26512002-09-13 Andreas Jaeger <aj@suse.de>
2652
2653 * Makefile.in (print-rtl.o): Depend on CONFIG_H.
2654
1f298625
SE
26552002-09-13 Steve Ellcey <sje@cup.hp.com>
2656
2657 * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
2658 LIB2ADDEH): New, set to NULL.
2659 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
2660
1a7e1470
SE
26612002-09-13 Steve Ellcey <sje@cup.hp.com>
2662
2663 * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
2664 (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
2665 (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
2666 Add declarations.
2667 (_U_Qfneg): Remove.
2668
d56c04ce
DD
26692002-09-13 Dhananjay Deshpande <dhananjayd@kpit.com>
2670
2671 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
8d9afc4e
KH
2672 for H8/300, H8S aa:8 mode.
2673 (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
d56c04ce
DD
2674 * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
2675 for H8/300 aa:8 mode.
2676
4456530d
HP
26772002-09-13 Hartmut Penner <hpenner@de.ibm.com>
2678
2679 * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
2680 insns.
2681
4d2d910c
RH
26822002-09-12 Richard Henderson <rth@redhat.com>
2683
2684 * Makefile.in (HOST_PRINT): Use print-rtl1.o
2685 (print-rtl.o): Don't define GENERATOR_FILE.
2686 (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
2687 * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
2688 unless GENERATOR_FILE.
2689
7606e68f
SS
26902002-09-12 Stan Shebs <shebs@apple.com>
2691
6ab9a3f4
SS
2692 * config/darwin.h (USER_LABEL_PREFIX): Define here...
2693 * config/i386/darwin.h: ... instead of here.
2694
7606e68f
SS
2695 * target.h (struct gcc_target): New field
2696 terminate_dw2_eh_frame_info.
2697 * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
2698 (TARGET_INITIALIZER): Add it.
2699 * dwarf2out.c (output_call_frame_info): Use target hook.
2700 * dwarf2asm.c (dw2_asm_output_delta): Use macro
2701 ASM_OUTPUT_DWARF_DELTA if defined.
2702 * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
2703 (ASM_OUTPUT_DWARF_DELTA): Ditto.
2704 (ASM_OUTPUT_DWARF_OFFSET): Ditto.
2705 (ASM_OUTPUT_DWARF_PCREL): Ditto.
2706 * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
2707 (powerpc-*-darwin*): Ditto.
2708 * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
2709 to work correctly for Darwin.
2710 * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
2711 (STARTFILE_SPEC): Add crtbegin.o.
2712 (ENDFILE_SPEC): Define.
2713 (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
2714 (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
2715 (ASM_OUTPUT_DWARF_DELTA): Define.
2716 (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
2717 * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
2718
20b71b17
AM
27192002-09-13 Alan Modra <amodra@bigpond.net.au>
2720
2721 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
2722 nesting. Correct test for non-PowerPC64 ELF ABI_AIX.
2723 * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
2724
d48fd218
ZW
27252002-09-12 Zack Weinberg <zack@codesourcery.com>
2726
2727 * toplev.c: Move default definition of USER_LABEL_PREFIX...
2728 * defaults.h: ... here.
2729
92bc3c1a
RH
27302002-09-12 Richard Henderson <rth@redhat.com>
2731
2732 * vax.c: Include tree.h earlier.
2733
3f64e543
SS
27342002-09-12 Stan Shebs <shebs@apple.com>
2735
2736 * config/darwin.c (machopic_finish): Remove #if 0 chunks.
2737 (machopic_operand_p): Ditto.
2738
52bd31bb
KH
27392002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2740
2741 * config/arm/arm.c (arm_compute_initial_elimination_offset):
2742 Fix a comment typo.
2743
387c9294
KH
27442002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2745
2746 * toplev.c (do_abort): Fix a comment typo.
2747
e34bb004
KH
27482002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2749
2750 * cselib.c: Fix comment formatting.
2751 * gengtype.c: Likewise.
2752
d0029ebd
KH
27532002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2754
2755 * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
2756 (udivmodhi4): Likewise.
2757
c3c637e3 27582002-09-12 Graham Stott <graham.stott@btinternet.com>
d48fd218 2759 Roger Sayle <roger@eyesopen.com>
c3c637e3
GS
2760
2761 * i386.c (any_fp_register_operand, fp_register_operand,
2762 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
2763 New predicate functions.
2764 * i386-protos.h: Add their prototypes.
2765 * i386.h: Add them to PREDICATE_CODES.
2766 * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
2767 "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
2768 "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
2769 "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
2770 "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
2771 "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
2772 "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
2773 "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
2774 "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
2775 "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
2776 "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
2777 Use these new predicates to simplify and correct the use of
2778 FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
2779
db4c55f6
JM
27802002-09-12 Jason Merrill <jason@redhat.com>
2781
236a2ac8
JM
2782 * diagnostic.c (output_add_identifier): New fn.
2783 * diagnostic.h: Declare it.
2784
db4c55f6
JM
2785 * calls.c (store_one_arg): Use size_in_bytes to determine the
2786 amount of space to push.
2787
13c0bc20
JJ
27882002-09-12 Jakub Jelinek <jakub@redhat.com>
2789
2790 * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
2791
0a3bdf9d
UW
27922002-09-12 Ulrich Weigand <uweigand@de.ibm.com>
2793
2794 * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
2795 * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
2796 (s390_select_ccmode): Likewise.
2797 (s390_branch_condition_mask): Likewise.
2798 (optimization_options): Do not set flag_branch_on_count.
2799 (s390_split_branches): Handle doloop branches.
2800 (s390_chunkify_pool): Likewise.
2801 * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
2802 ("doloop_end"): New expander.
2803 ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
2804 associated splitters): New.
2805
4f968d93
HP
28062002-09-11 Hartmut Penner <hpenner@de.ibm.com>
2807
2808 * fold-const.c (make_range): Only narrow to signed range if
2809 the signed range is smaller than the unsigned range.
2810
35aff10b
AM
28112002-09-12 Alan Modra <amodra@bigpond.net.au>
2812
2813 * emit-rtl.c (set_mem_size): New function.
2814 * expr.h (set_mem_size): Declare.
2815 * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
2816 (expand_block_move): Instead, use adjust_address and
2817 replace_equiv_address to generate proper aliasing info.
2818 Move common code out of conditionals. Localize vars.
2819
e0fbf849 28202002-09-09 Eric Botcazou <ebotcazou@libertysurf.fr>
d48fd218 2821
874f6a6d
EB
2822 * optabs.c (expand_binop): Minor cleanup.
2823 (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
2824
d1df930b
DN
28252002-09-11 Dan Nicolaescu <dann@ics.uci.edu>
2826
2827 * print-tree.c (print_node): Print the restrict qualifier.
2828
9026a957
JJ
28292002-09-11 Janis Johnson <janis187@us.ibm.com>
2830
2831 * doc/install.texi: Fix typos.
2832
3fd9d606
ZW
28332002-09-11 Zack Weinberg <zack@codesourcery.com>
2834
2835 * Makefile.in: Remove all references to s-under and underscore.c.
2836 * collect2.c, tlink.c: Change all uses of prepends_underscore
2837 to look directly at USER_LABEL_PREFIX.
2838
5b5198f7
DE
28392002-09-11 David Edelsohn <edelsohn@gnu.org>
2840
2841 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
2842 alignment to csect.
2843 (rs6000_xcoff_unique_section): Only set section name for public
2844 data.
2845 (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
2846 * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
2847 duplicate definition.
2848
77de9af2
JDA
28492002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
2850
2851 * pa.md (extzv): Check predicates before emitting extzv_32.
2852 (insv): Likewise.
2853
33b679d1
UW
28542002-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2855
2856 * config/s390/s390.h (MOVE_MAX): Define to correct value.
2857 (MAX_MOVE_MAX): Define.
2858 (MOVE_BY_PIECES_P): Define.
2859 (CLEAR_BY_PIECES_P): Define.
2860
bfae8040
DC
28612002-09-10 Denis Chertykov <denisc@overta.ru>
2862
2863 * config/avr/avr.md (movstrhi): Use right operands for conversion.
2864
7730c3ff
RE
28652002-09-10 Richard Earnshaw <rearnsha@arm.com>
2866
2867 PR c/7873
2868 * arm.md (insv): Use reg_or_int_operand for operand[3].
2869
5add3202
DE
28702002-09-10 David Edelsohn <edelsohn@gnu.org>
2871
2872 * rs6000.c (rs6000_assemble_visibility): Protect declaration
2873 inside macro. Correct function definition typo.
2874 (rs6000_xcoff_section_type_flags): New function.
2875 (TARGET_SECTION_TYPE_FLAGS): Remove definition.
2876 (rs6000_elf_section_type_flags): Call default_section_type_flags_1
2877 with appropriate PIC test.
2878 (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
2879 determine readonly.
2880 (rs6000_binds_local_p): Combine PIC flags.
2881 * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
2882 * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
2883
90389422
PB
28842002-09-09 Per Bothner <per@bothner.com>
2885
2886 * print-tree.c (print_node): In a STRING_CST, escape non-ascii
2887 characters, and only print TREE_STRING_LENGTH chars.
2888
686f3bf0
SE
28892002-09-09 Steve Ellcey <sje@cup.hp.com>
2890
2891 * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
2892 (ASM_FILE_END) New.
2893 * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
2894 * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
2895 * config/ia64/ia64.c (ia64_asm_output_external): Create list
2896 of external functions if TARGET_HPUX_LD is true.
2897 (ia64_hpux_add_extern_decl): New, routine to put names on
2898 list of external functions.
2899 (ia64_hpux_asm_file_end): Put out declarations for external
2900 functions if and only if they are used.
2901
0c263f4e
JDA
29022002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2903
2904 * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
2905 on TARGET_64BIT before pic register restore.
2906
e2a6476e
DE
29072002-09-09 David Edelsohn <edelsohn@gnu.org>
2908
2909 * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
2910 (TARGET_HAVE_TLS): New description.
2911
b73b1546
JJ
29122002-09-09 Janis Johnson <janis187@us.ibm.com>
2913
2914 * doc/extend.texi (Statement Exprs): Fix broken link.
2915
a9738643
DC
29162002-09-09 Denis Chertykov <denisc@overta.ru>
2917
2918 * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
2919 right conversion of operands[1].
2920
05b9aaaa
UW
29212002-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2922
2923 * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
2924 commutative. Use "nonimmediate_operand" instead of "register_operand"
2925 as predicate for operand 0. Move to after the "*tmXX_mem" insns.
2926
2927 ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
2928 as commutative.
2929
2930 ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
2931 mark as commutative. Use "nonimmediate_operand" instead of
2932 "register_operand" as predicate for operand 1.
2933
2934 ("movstrictsi"): Fix typo in insn name.
2935
7ec70495
JH
29362002-09-09 Jan Hubicka <jh@suse.cz>
2937
2938 * i386.c (index_register_operand): New.
2939 * i386.h (predicate_codes): Add new predicate.
2940 * i386.md (lea_general_*): Use index_regsiter_operand
2941 (ashift to lea splitter): Do not produce invalid leas
2942 (ashift to mov+ashift split): New.
2943
b2fc915b
NC
29442002-09-09 Nick Clifton <nickc@redhat.com>
2945
2946 * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
2947 Fix folding marks.
2948
0b0ad147 29492002-09-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
d48fd218 2950 J"orn Rennecke <joern.rennecke@superh.com>
0b0ad147
TM
2951
2952 * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
2953
2bcc50d0
AM
29542002-09-09 Alan Modra <amodra@bigpond.net.au>
2955
2956 * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
2957 (function_ok_for_sibcall): Use binds_local_p. Respect longcall
2958 attributes.
2959
c1b4f089
KG
29602002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2961
2962 * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
2963
b9203463
RH
29642002-09-08 Richard Henderson <rth@redhat.com>
2965
2966 * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
2967 (DW_OP_GNU_push_tls_address): New.
2968 (DW_OP_lo_user): Fix.
2969 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
2970 (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
2971 (size_of_loc_descr): Likewise.
2972 (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
2973 (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
2974 (loc_descriptor_from_tree): Handle TLS variables.
2975 (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
2976 (add_location_or_const_value_attribute): ... not here. Defer
2977 to loc_descriptor_from_tree for TLS variables.
2978
2979 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
2980 * config/i386/i386.c (i386_output_dwarf_dtprel): New.
2981 * config/i386/i386-protos.h: Update.
2982
7df98878
RS
29832002-09-08 Roger Sayle <roger@eyesopen.com>
2984
2985 PR optimization/6405
2986 * unroll.c (loop_iterations): last_loop_insn should be the previous
2987 non-note instruction before loop->end.
2988 * loop.c (strength_reduce): The conditional jump is the last
2989 non-note instruction before loop->end (as above).
2990
f40f4c8e
RS
29912002-09-08 Roger Sayle <roger@eyesopen.com>
2992
2993 * combine.c (try_combine): Handle the case that undobuf.other_insn
2994 has been turned into a return or unconditional jump, by inserting
2995 a BARRIER if necessary.
2996 (simplify_set): Test if a condition code setter has a constant
2997 comparison at compile time, if so convert this insn to a no-op move
2998 and update/simplify the condition code user (undobuf.other_insn).
2999
e2f97e26
KW
30002002-09-08 Krister Walfridsson <cato@df.lth.se>
3001
3002 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
3003 (CLEAR_INSN_CACHE): Define.
3004
4b7e68e7
KH
30052002-09-08 Kazu Hirata <kazu@cs.umass.edu>
3006
3007 * basic-block.h: Fix comment formatting.
3008 * c-common.c: Likewise.
3009 * c-common.h: Likewise.
3010 * c-lex.c: Likewise.
3011 * c-pretty-print.c: Likewise.
3012 * cfglayout.c: Likewise.
3013 * cfgloop.c: Likewise.
3014 * defaults.h: Likewise.
3015 * et-forest.c: Likewise.
3016 * explow.c: Likewise.
3017 * function.h: Likewise.
3018 * gcov.c: Likewise.
3019 * genattrtab.c: Likewise.
3020 * gengtype.c: Likewise.
3021 * ifcvt.c: Likewise.
3022 * libgcc2.c: Likewise.
3023 * loop.c: Likewise.
3024 * profile.c: Likewise.
3025 * ra-build.c: Likewise.
3026 * real.c: Likewise.
3027 * rtl.h: Likewise.
3028 * tracer.c: Likewise.
3029 * tree-inline.c: Likewise.
3030 * varasm.c: Likewise.
3031
2567406a
JH
30322002-09-08 Jan Hubicka <jh@suse.cz>
3033
3034 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
3035 handling.
3036
3037 * loop.c (loop_gics_reduce): Emit addition after.
3038
bd79540a
AM
30392002-09-08 Alan Modra <amodra@bigpond.net.au>
3040
3041 * varasm.c (default_assemble_visibility): Rename from
3042 assemble_visibility.
3043 * output.h: Here too.
3044 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
3045 * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
3046
32ff9c74
AM
30472002-09-08 Alan Modra <amodra@bigpond.net.au>
3048
3049 * reload.c (find_reloads <p constraint>): Pass operand_mode to
3050 find_reloads_address.
3051
6588987e
KH
30522002-09-08 Kazu Hirata <kazu@cs.umass.edu>
3053
3054 * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
3055 (anonymous pattern): Likewise.
3056
0100732e
SS
30572002-09-07 Scott Snyder <snyder@fnal.gov>
3058
3059 PR target/7374
3060 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
3061
77043c7c
RS
30622002-09-07 Roger Sayle <roger@eyesopen.com>
3063
3064 * basic-block.h (struct loop): Remove unused cont_dominator field.
3065
5dd78220
IS
30662002-09-07 Igor Shevlyakov <igor@microunity.com>
3067
d48fd218 3068 * varasm.c (decode_rtx_const): Don't check undefined field for
5dd78220
IS
3069 CONST_VECTOR.
3070
b96a3fa3
GN
30712002-09-07 Glen Nakamura <glen@imodulo.com>
3072
7fa86a10 3073 PR opt/7814
b96a3fa3
GN
3074 * sched-deps.c (sched_analyze_insn): Make sure to add insn
3075 to reg_last->sets after flushing the dependency lists to guarantee
3076 that subsequent clobbers will be dependent on it.
3077
ad9df12f 30782002-09-07 Igor Shevlyakov <igor@microunity.com>
2567406a 3079
ad9df12f
IS
3080 * combine.c (simplify_shift_const): Calculate rotate count
3081 correctly for vector operands.
3082
54c93c30
AE
30832002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de>
3084
3085 * c-typeck.c (c_tree_expr_nonnegative_p): New function.
3086 (build_binary_op): Call c_tree_expr_nonnegative_p rather than
2567406a 3087 tree_expr_nonnegative_p.
54c93c30
AE
3088 (build_conditional_expr): Likewise.
3089 * c-tree.h (c_tree_expr_nonnegative_p): Declare.
3090
36eea25f
RH
30912002-09-07 Richard Henderson <rth@redhat.com>
3092
3aa4cad7
RH
3093 * builtins.def (inf, inff, infl): Mark const.
3094 (huge_val, huge_valf, huge_vall): Likewise.
3095 (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
3096
36eea25f
RH
3097 * real.c (ereal_inf): Clear E before use.
3098
5c102b48
KH
30992002-09-07 Kazu Hirata <kazu@cs.umass.edu>
3100
3101 * config/h8300/h8300.md (udivmodqi4): Split the pattern into
3102 an expander and an anonymous pattern. Zero out the upper half
3103 of the dividend in the expander.
3104 (udivmodqi4): Likewise.
3105
8bd06267
KH
31062002-09-07 Kazu Hirata <kazu@cs.umass.edu>
3107
3108 * config/h8300/h8300.c: Fix formatting.
3109 * config/h8300/h8300.h: Likewise.
3110 * config/h8300/h8300.md: Likewise.
3111
39587bb9
ZD
31122002-09-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3113
3114 * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
3115 information.
3116
34146b94 31172002-09-07 Graham Stott <graham.stott@btinternet.com>
92d9256d
GS
3118
3119 * rtlanal.c (dead_or_set_regno_p): Fix typo.
3120
93638d7a
AM
31212002-09-07 Alan Modra <amodra@bigpond.net.au>
3122
fea76d82
AM
3123 * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3124
93638d7a
AM
3125 * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
3126 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
3127 (TARGET_ASM_OUT): Add the above here.
3128 * target.h (struct gcc_target): Add "visibility" field.
3129 * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
3130 * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
3131 (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
3132 (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
3133
370ce32a
ZL
31342002-09-06 Ziemowit Laski <zlaski@apple.com>
3135
3136 * c-lang.c (objc_is_id): New stub.
3137 * c-tree.h (objc_is_id): New forward declaration.
3138 * c-typeck.c (build_c_cast): Do not strip protocol
3139 qualifiers from 'id' type.
3140 * objc/objc-act.c (objc_comptypes): Correct handling
3141 of protocol qualifiers.
3142 (objc_is_id): New.
3143
942579db
JL
3144Fri Sep 6 13:10:08 2002 Jeffrey A Law (law@redhat.com)
3145
54c93c30 3146 * pentium.md (pentium-firstvboth): Fix typo.
942579db 3147
c4dfc70c
DD
31482002-09-06 Dhananjay Deshpande <dhananjayd@kpit.com>
3149
3150 * h8300.c (enum shift_alg): Move to earlier in h8300.c.
3151 (enum shift_type, enum h8_cpu): Likewise.
3152 (INL, ROT, LOP, SPC macros): Likewise.
3153 (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise. Lose
3154 const designator.
3155 (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
3156 space efficient algorithms when optimize for codesize.
3157
5873a4c1
NP
3158Fri Sep 6 16:35:32 2002 Nicola Pero <n.pero@mi.flashnet.it>
3159
3160 Fix PR/1727 and long-standing failing testcase
3161 objc/formal-protocol-6.m.
3162 * objc-act.c (build_protocol_expr): If compiling for the GNU
3163 runtime, create a list of Protocol statically allocated instances
3164 if it doesn't exist, then add the Protocol object to this same
3165 list.
3166 (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
3167 instead of TREE_CHAIN.
3168
e30d4c82
NP
3169Fri Sep 6 16:17:33 2002 Nicola Pero <n.pero@mi.flashnet.it>
3170
3171 * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
3172 10k. Fixed category dumping - print out category names with the
3173 proper syntax. Print '@end\n' and not '\n@end' at the end of the
3174 interface.
22d4398d 3175 (finish_objc): Fixed the -gen-decls option. It was printing out
e30d4c82
NP
3176 only the last class. Dump an interface declaration of all classes
3177 being compiled instead.
3178
fcd53748
JT
31792002-09-06 Jason Thorpe <thorpej@wasabisystems.com>
3180
2567406a
JH
3181 * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
3182 prototype.
fcd53748
JT
3183 * config/arm/arm.c (arm_gen_return_addr_mask): New function.
3184 * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
3185 if not APCS26 and not Thumb or ARMv4-or-higher. Use gen_int_mode
3186 rather than GEN_INT.
3187 * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
3188 (return_addr_mask, *check_arch2): New.
3189
96fd3851
UW
31902002-09-06 Ulrich Weigand <uweigand@de.ibm.com>
3191
2567406a 3192 * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
96fd3851 3193 "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
2567406a 3194 "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
96fd3851
UW
3195 "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
3196 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
2567406a 3197 "adddf3", "*adddf3", "*adddf3_ibm",
96fd3851
UW
3198 "addsf3", "*addsf3", "*addsf3_ibm",
3199 "muldi3", "mulsi3", "mulsidi3",
3200 "muldf3", "*muldf3", "*muldf3_ibm",
3201 "mulsf3", "*mulsf3", "*mulsf3_ibm",
3202 "*anddi3_cc", "*anddi3_cconly", "anddi3",
3203 "*andsi3_cc", "*andsi3_cconly", "andsi3",
3204 "*iordi3_cc", "*iordi3_cconly", "iordi3",
3205 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
3206 "*xordi3_cc", "*xordi3_cconly", "xordi3",
3207 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
3208 instead of "register_operand" as predicate for "%0" operand.
3209
22252625
JJ
32102002-09-06 Jakub Jelinek <jakub@redhat.com>
3211
3212 * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
3213 unconditionally when gcc_cv_as_flags64 checks are gone.
3214 * configure: Rebuilt.
3215
bc401279
AM
32162002-09-06 Alan Modra <amodra@bigpond.net.au>
3217
3218 * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
3219 2002-07-26 change. Comment.
3220
b3fbfc07
KG
32212002-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3222
3223 * frv.c (frv_unique_section, frv_select_section,
3224 frv_select_rtx_section): Delete.
3225 (frv_in_small_data_p): New.
3226 (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
3227 TARGET_ASM_SELECT_RTX_SECTION): Delete.
3228 (TARGET_IN_SMALL_DATA_P): Define.
3229
41e34bab
DJ
32302002-09-05 Dale Johannesen <dalej@apple.com>
3231
3232 * reload1.c (reload): Retain only those memory clobbers
3233 added for variable-array handling.
3234
dc0ba55a
JT
32352002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
3236
3237 * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
2567406a 3238 return-in-memory rules.
dc0ba55a
JT
3239 * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
3240
dd19d142
DE
32412002-09-05 David Edelsohn <edelsohn@gnu.org>
3242
3243 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
3244 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
3245
3717da94
JT
32462002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
3247
3248 * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
3249 not a compile-time constant for the non-IBM case.
3250 * config/arm/arm-protos.h (arm_float_words_big_endian): New
2567406a 3251 prototype.
3717da94 3252 * config/arm/arm.c (arm_float_words_big_endian): New function.
b5b620a4 3253 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
2567406a
JH
3254 if TARGET_VFP and not TARGET_HARD_FLOAT.
3255 (ARM_FLAG_VFP, TARGET_VFP): Define.
3717da94
JT
3256 (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
3257
225cee28
DE
32582002-09-05 David Edelsohn <edelsohn@gnu.org>
3259
3260 * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
3261 URLs. Fix AIX wording.
3262
c72bfda7
SS
32632002-09-05 Stan Shebs <shebs@apple.com>
3264
3265 * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
3266 -fPIC equivalent on Darwin.
3267
3578cf63
R
3268Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
3269
3270 * sh.c (sh_expand_builtin): Return early if encountering an
3271 error_mark for a type.
3272
7974fe63
UW
32732002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3274
3275 * config/s390/s390.c (s390_expand_plus_operand): Do not require
3276 double-word scratch register.
3277 config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
3278
2567406a 3279 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
7974fe63
UW
3280 "*cli"): Replace s_operand by memory_operand.
3281 ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
3282
f8cb5851
KH
32832002-09-05 Kazu Hirata <kazu@cs.umass.edu>
3284
3285 * config/h8300/h8300.c (asm_file_start): Add a missing
3286 semicolon.
3287
5fc0e5df
KW
32882002-09-04 Krister Walfridsson <cato@df.lth.se>
3289
3290 * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
3291 * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
3292 (ix86_output_addr_diff_elt) Likewise.
3293 (x86_output_mi_thunk) Likewise.
3294 * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
3295
f4b488fd
KG
32962002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3297
3298 * frv.c (frv_encode_section_info): Fix error in last change.
3299
0e5dbd9b
DE
33002002-09-04 David Edelsohn <edelsohn@gnu.org>
3301
3302 * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
3303 (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
3304 (TARGET_BINDS_LOCAL_P): Define.
3305 (rs6000_override_options): Save original flag_pic value.
3306 (rs6000_elf_select_section): Call default_elf_select_section_1.
3307 (rs6000_elf_unique_section): Call default_unique_section_1.
3308 (rs6000_elf_in_small_data_p): New function.
3309 (rs6000_xcoff_asm_named_section): Determine storage mapping class.
3310 (rs6000_xcoff_select_section): Update based on defaults.
3311 (rs6000_xcoff_unique_section): Set to basic name if not common.
3312 (rs6000_binds_local_p): New function.
3313 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
3314 targetm.have_srodata_section if SDATA_EABI.
3315 (TARGET_IN_SMALL_DATA_P): Define.
3316
f57f9cb8
DJ
33172002-09-04 Dale Johannesen <dalej@apple.com>
3318
3319 * varasm.c (struct rtx_const, decode_rtx_const):
3320 Make veclo and vechi fields not share storage.
3321
ed6cc1f5
R
3322Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
3323
3324 * loop.c (scan_loop): Don't mark separate insns out of a libcall
3325 for moving.
3326 (move_movables): Abort if we see the first insn of a libcall.
3327
ab5e2615
RH
33282002-09-04 Richard Henderson <rth@redhat.com>
3329
3330 * builtin-types.def (BT_FN_FLOAT): New.
3331 (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
3332 * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
3333 BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
3334 * builtins.c (fold_builtin_inf): New.
3335 (fold_builtin): Call it.
3336 * real.c (ereal_inf): New.
3337 * real.h: Declare it.
3338 * doc/extend.texi: Document new builtins.
3339
9beb7d20
RH
33402002-09-04 Richard Henderson <rth@redhat.com>
3341
3342 * cse.c (cse_insn): Avoid subreg games if the equivalence
3343 is already in the proper mode.
3344
29984e05
EB
33452002-09-04 Eric Botcazou <ebotcazou@multimania.com>
3346
3347 PR c/7102
3348 * optabs.c (expand_binop): Convert CONST_INTs in all cases.
3349
8d46398e
JDA
33502002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3351
3352 * pa.md (setccfp0, setccfp1): New patterns.
3353
14966b94
KG
33542002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3355
3356 * frv-protos.h (frv_init_builtins, frv_expand_builtin,
3357 frv_select_section, frv_select_rtx_section,
3358 frv_encode_section_info, frv_unique_section): Delete.
3359 * frv.c: Update for target hooks.
3360 * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
3361 SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
3362 EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
3363
c8bf1a1a
KG
33642002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3365
3366 * ip2k-protos.h (function_prologue, function_epilogue,
3367 encode_section_info): Update to match target hook specification.
3368 * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
3369 (function_prologue, function_epilogue, encode_section_info):
3370 Update to match target hook specification.
3371 * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
3372 ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
3373 (NOTICE_UPDATE_CC): Cast to void.
3374 * ip2k.md: Add defaults in switch statements.
3375
0484cb35
JJ
33762002-09-04 Janis Johnson <janis187@us.ibm.com>
3377
3378 * doc/trouble.texi (Interoperation): Update information about C++ ABI
3379 issues.
3380
3e62bd08
JT
33812002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3382
3383 * config/sparc/t-netbsd64: Disable multilib for now.
3384
275b6d80
DE
33852002-09-04 David Edelsohn <edelsohn@gnu.org>
3386
3387 * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
3388 * target.h (gcc_target): Add have_srodata_section member.
3389 * varasm.c (section_category): Add SECCAT_SRODATA.
3390 (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
3391 READONLY_SDATA_SECTION defined.
3392 (decl_readonly_section_1): True for SECCAT_SRODATA also.
3393 (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
3394 (default_unique_section_1): Likewise.
3395
015b1ad1
JDA
33962002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3397
3398 * expr.c (emit_group_load): Revise to allow splitting TCmode source
3399 into DImode pieces.
3400
3401 * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
3402 * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
3403 for floating-point register class.
3404 * pa.c (function_arg): Fix handling of modes wider than one word for
3405 TARGET_64BIT.
3406
b10f2187
R
3407Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
3408
3409 * combine.c (make_compound_operation): Don't generate zero / sign
3410 extensions in floating point modes.
3411
478c9e72
JJ
34122002-09-04 Janis Johnson <janis187@us.ibm.com>
3413
3414 * doc/c-tree.texi: Fix overfull hboxes.
3415 * doc/cppopts.texi: Ditto.
3416 * doc/extend.texi: Ditto.
3417 * doc/gty.texi: Ditto.
3418 * doc/invoke.texi: Ditto.
3419 * doc/makefile.texi: Ditto.
3420 * doc/rtl.texi: Ditto.
3421 * doc/standards.texi: Ditto.
3422 * doc/tm.texi: Ditto.
3423
77e8a0cc
RH
34242002-09-04 Richard Henderson <rth@redhat.com>
3425
3426 * c-common.c (builtin_define_with_hex_fp_value): New.
3427 (builtin_define_float_constants): Use it. Fix H_FLOAT mant_dig.
3428
a9c60612
JJ
34292002-09-04 Janis Johnson <janis187@us.ibm.com>
3430
3431 * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
3432 (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
3433 -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
3434 Warn that these options can break ABI compatibility.
3435
4b67a274
RH
34362002-09-04 Richard Henderson <rth@redhat.com>
3437
3438 * real.c (ereal_to_decimal): Add digits parameter.
3439 * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
3440 * c-pretty-print.c (pp_c_real_literal): Update call.
3441 * print-rtl.c (print_rtx): Likewise.
3442 * print-tree.c (print_node_brief, print_node): Likewise.
3443 * sched-vis.c (print_value): Likewise.
3444 * config/arc/arc.c (arc_print_operand): Likewise.
3445 * config/c4x/c4x.c (c4x_print_operand): Likewise.
3446 * config/i370/i370.h (PRINT_OPERAND): Likewise.
3447 * config/i386/i386.c (print_operand): Likewise.
3448 * config/i960/i960.c (i960_print_operand): Likewise.
3449 * config/ip2k/ip2k.c (asm_output_float): Likewise.
3450 * config/m32r/m32r.c (m32r_print_operand): Likewise.
3451 * config/m68hc11/m68hc11.c (print_operand): Likewise.
3452 * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
3453 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2567406a 3454 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
4b67a274
RH
3455 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
3456 * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
3457 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3458 * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
3459 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3460 * config/mips/mips.c (print_operand): Likewise.
3461 * config/ns32k/ns32k.c (print_operand): Likewise.
3462 * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
3463 * config/vax/vax.h (PRINT_OPERAND): Likewise.
3464 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
3465
01abf342
BW
34662002-09-04 Bob Wilson <bob.wilson@acm.org>
3467
3468 * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
3469 xtensa_multibss_section_type_flags.
3470 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
3471
cd42d3df
RH
34722002-09-04 Richard Henderson <rth@redhat.com>
3473
3474 * doc/install-old.texi: Don't mention enquire.
3475 * doc/sourcebuild.texi: Update float.h description.
3476
502e6d5a
R
3477Wed Sep 4 11:22:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
3478
3479 * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
3480
2cc9fb4c
DE
34812002-09-03 David Edelsohn <edelsohn@gnu.org>
3482
3483 * varasm.c (default_section_type_flags): Append _1 to name with
3484 shlib parameter. Use original name to call new function with
3485 implicit flag_pic.
3486 (decl_readonly_section): Likewise.
3487 (default_elf_select_section): Likewise.
3488 (default_unique_section): Likewise.
3489 (default_bind_local_p): Likewise.
3490 (categorize_decl_for_section): Add shlib parameter to use in place
3491 of implicit flag_pic.
3492 * output.h: Declare new functions with _1 and shlib argument.
3493
7c19f816
JJ
34942002-09-03 Janis Johnson <janis187@us.ibm.com>
3495
8c085f6f
JJ
3496 * doc/install.texi: Fix typos, formatting problems, and obvious
3497 overfull/underfull boxes.
3498
7c19f816
JJ
3499 * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
3500 * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
3501 include its file, compat.texi.
3502 * doc/compat.texi: New file with new chapter, Binary Compatibility.
3503
79ba5e3b
NB
35042002-09-03 Neil Booth <neil@daikokuya.co.uk>
3505
3506 Debian BTS Bug #157416
3507 * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
3508 * cpplib.c (destringize_and_run): Kludge around getting
3509 tokens from in-progress macros.
3510 (_cpp_do__Pragma): Simplify.
3511
57016b47
SE
35122002-09-03 Steve Ellcey <sje@cup.hp.com>
3513
3514 * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
3515 (CPP_CPU_SPEC): Remove.
3516 (TARGET_CPU_CPP_BUILTINS): New.
3517 * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
3518 (CPP_SPEC): Remove.
3519 (TARGET_OS_CPP_BUILTINS): New.
3520 * config/ia64/linux.h (CPP_PREDEFINES): Remove.
3521 (TARGET_OS_CPP_BUILTINS): New.
3522 * config/ia64/aix.h (CPP_SPEC): Move some stuff to
3523 TARGET_OS_CPP_BUILTINS.
3524 (CPP_PREDEFINES): Remove.
3525 (CPLUSPLUS_CPP_SPEC): Remove.
3526 (TARGET_OS_CPP_BUILTINS): New.
3527
d57a4b98
RH
35282002-09-03 Richard Henderson <rth@redhat.com>
3529
3530 * Makefile.in (USER_H): Add ginclude/float.h.
3531 (FLOAT_H): Remove.
3532 (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
3533 (mostlyclean): Don't remove float.h intermediate files.
3534 (distclean): Don't remove float.h.
3535 * config.gcc: Remove all float_format references.
3536 * configure.in (float_format, float_h_file): Remove.
3537
3538 * c-common.c: Include tree-inline.h.
3539 (builtin_define_with_int_value): New.
3540 (builtin_define_type_precision): Use it.
3541 (builtin_define_float_constants): New.
3542 (cb_register_builtins): Use it. Define __FLT_RADIX__ and
3543 __FLT_EVAL_METHOD__.
3544 * defaults.h (TARGET_FLT_EVAL_METHOD): New.
3545 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
3546 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
3547 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
3548 (TARGET_FLT_EVAL_METHOD): New.
3549
3550 * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
3551 config/float-i386.h, config/float-i64.h, config/float-m68k.h,
3552 config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
3553 * ginclude/float.h: New.
3554
527347f0
SS
35552002-09-03 Stan Shebs <shebs@apple.com>
3556
3557 * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
3558 (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
3559 (PREFERRED_DEBUGGING_TYPE): Ditto.
3560 (ASM_OUTPUT_IDENT): Remove empty definition.
3561
34c1864f
SE
35622002-09-03 Steve Ellcey <sje@cup.hp.com>
3563
3564 * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
3565 cxx_target.
3566 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
3567 handling routine for builtin pragma.
3568 * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
3569 Registered pragma handling routine.
3570 * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
3571 (ia64_hpux_add_pragma_builtin) New subroutine used by above.
3572 If builtin pragma seen for math routine and C89 conformance is
3573 requested use different math function in order to set errno.
3574 * t-ia64 (ia64-c.o): Add new rule for new file.
3575
9b7c75b9
UW
35762002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3577
3578 * config/s390/s390.md ("movti"): Add Q->Q alternative.
3579 ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
3580 "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
2567406a
JH
3581
3582 ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
9b7c75b9
UW
3583 "*movsf_ss"): Remove.
3584
710ba35f
JDA
35852002-09-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3586
3587 * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
3588 Delete macros.
3589
ff970081
AD
35902002-09-03 Arati Dikey <aratid@kpit.com>
3591
3592 * h8300.c (asm_file_start): Corrected optimization comment.
3593
b50d021d
SS
35942002-09-03 Stan Shebs <shebs@apple.com>
3595
3596 * c-lang.c (recognize_objc_keyword): Remove, no longer used.
3597 * c-tree.h (recognize_objc_keyword): Remove decl.
3598 * c-typeck.c (comp_target_types): Update a comment.
3599
b808c04c
UW
36002002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3601
3602 * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
3603 and register validity checks.
3604 (general_s_operand): Adapt to s390_decompose_address interface change.
3605 (q_constraint): Likewise.
3606 (s390_expand_plus_operand): Likewise.
3607 (legitimiate_address_p): Likewise.
3608 (legitimate_la_operand_p): Likewise.
3609 (legitimize_la_operand): Likewise.
3610 (print_operand_address): Likewise.
3611 (print_operand): Likewise.
3612
ee453219
NP
3613Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it>
3614
3615 PR objc/5956:
3616 * objc/objc-act.c (build_typed_selector_reference): Fix typo which
2567406a
JH
3617 was causing the new selector never to match the existing ones
3618 (Patch by Alexander Malmberg <alexander@malmberg.org>).
ee453219 3619
d82283d5
GS
36202002-09-03 Graham Stott <graham.stott@btinternet.com>
3621
3622 * config/i386/i386.md ("femms"): Add "memory" attr "none".
3623
36242002-09-03 Graham Stott <graham.stott@btinternet.com>
c7a009a2
GS
3625
3626 * expr.c (expand_expr): Remove extraneous comment and code.
3627
98c0d8d1
RH
36282002-08-31 Richard Henderson <rth@redhat.com>
3629
3630 * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
3631
a5f3f0ab
JDA
36322002-08-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3633
3634 * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
3635
38ec83b1
RH
36362002-08-30 Richard Henderson <rth@redhat.com>
3637
c9989d09 3638 PR opt/7515
38ec83b1
RH
3639 * c-objc-common.c: Include target.h.
3640 (c_cannot_inline_tree_fn): Don't auto-inline functions that
3641 don't bind locally. Factor setting DECL_UNINLINABLE.
3642 * Makefile.in (c-objc-common.o): Update.
3643
4c64396e
JJ
36442002-08-30 Janis Johnson <janis187@us.ibm.com>
3645
3646 * doc/install.texi (Configuration, Building): Fix a typo and
3647 some formatting directives.
3648
4226378a
PK
36492002-08-30 Paul Koning <pkoning@equallogic.com>
3650
3651 * doc/c-tree.texi (RDIV_EXPR): Fix typo.
3652 * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
3653 implemented" note.
3654 * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
3655 for alphabetic order.
3656 * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
3657 VAX_FLOAT_FORMAT. Remove reference to HOST_FLOAT_FORMAT.
3658 (VAX_HALFWORD_ORDER): Document.
3659 (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
3660 IEEE float format.
3661 (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
3662 (ASM_OUTPUT_LABEL_REF): Fix font.
3663 (CASE_VECTOR_SHORTEN_MODE): Ditto.
3664
b8074dbe
DC
36652002-08-30 Denis Chertykov <denisc@overta.ru>
3666
3667 * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
3668 stuff.
3669 (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
3670 CONST_DOUBLE constants.
2567406a 3671
55f49e3d
JT
36722002-08-30 Jason Thorpe <thorpej@wasabisystems.com>
3673
3674 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
3675 related defines to...
3676 (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
3677 * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
3678 as a no-op.
3679
e1944073
KW
36802002-08-30 Krister Walfridsson <cato@df.lth.se>
3681
3682 * config/arm/arm.c (arm_asm_output_labelref): New function.
3683 * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
3684 * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
3685
6e92b3a1
RB
36862002-08-29 Rodney Brown <rbrown64@csc.com.au>
3687
3688 * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
3689 memory exhausted" workarounds.
3690
9d533cb5
GDR
36912002-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3692
3693 * diagnostic.c (fancy_abort): Don't repeat "internal error".
3694 * toplev.c (crash_signal): Likewise.
3695
1f676100
NP
3696Fri Aug 30 00:33:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
3697
3698 * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
3699 * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
3700 Extended, updated documentation.
3701 (-Wundeclared-selector): Documented.
3702
23532de9
JT
37032002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
3704
3705 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
3706 the value 1. Do not undef before defining.
3707 * config/darwin.h: Likewise.
3708 * config/dbx.h: Likewise.
3709 * config/dbxcoff.h: Likewise.
3710 * config/dbxelf.h: Likewise.
3711 * config/elfos.h: Likewise.
3712 * config/interix.h: Likewise.
3713 * config/lynx-ng.h: Likewise.
3714 * config/lynx.h: Likewise.
3715 * config/netware.h: Likewise.
3716 * config/psos.h: Likewise.
3717 * config/svr3.h: Likewise.
3718 * config/alpha/alpha.h: Likewise.
3719 * config/alpha/elf.h: Likewise.
3720 * config/alpha/vms.h: Likewise.
3721 * config/arc/arc.h: Likewise.
3722 * config/arm/aout.h: Likewise.
3723 * config/arm/coff.h: Likewise.
3724 * config/c4x/c4x.h: Likewise.
3725 * config/h8300/h8300.h: Likewise.
3726 * config/i386/cygwin.h: Likewise.
3727 * config/i386/djgpp.h: Likewise.
3728 * config/i386/gas.h: Likewise.
3729 * config/i386/gstabs.h: Likewise.
3730 * config/i386/i386-coff.h: Likewise.
3731 * config/i386/i386-interix.h: Likewise.
3732 * config/i386/sco5.h: Likewise.
3733 * config/i386/svr3dbx.h: Likewise.
3734 * config/i386/sysv3.h: Likewise.
3735 * config/i386/win32.h: Likewise.
3736 * config/i386/x86-64.h: Likewise.
3737 * config/i960/i960.h: Likewise.
3738 * config/ia64/ia64.h: Likewise.
3739 * config/ip2k/ip2k.h: Likewise.
3740 * config/m32r/m32r.h: Likewise.
3741 * config/m68k/3b1.h: Likewise.
3742 * config/m68k/3b1g.h: Likewise.
3743 * config/m68k/ccur-GAS.h: Likewise.
3744 * config/m68k/coff.h: Likewise.
3745 * config/m68k/hp2bsd.h: Likewise.
3746 * config/m68k/hp310g.h: Likewise.
3747 * config/m68k/hp320g.h: Likewise.
3748 * config/m68k/hp3bsd.h: Likewise.
3749 * config/m68k/hp3bsd44.h: Likewise.
3750 * config/m68k/linux-aout.h: Likewise.
3751 * config/m68k/m68k-aout.h: Likewise.
3752 * config/m68k/mot3300.h: Likewise.
3753 * config/m68k/netbsd.h: Likewise.
3754 * config/m68k/openbsd.h: Likewise.
3755 * config/m68k/pbb.h: Likewise.
3756 * config/m68k/plexus.h: Likewise.
3757 * config/m68k/sun2.h: Likewise.
3758 * config/m68k/sun3.h: Likewise.
3759 * config/m68k/tower-as.h: Likewise.
3760 * config/m68k/vxm68k.h: Likewise.
3761 * config/m88k/aout-dbx.h: Likewise.
3762 * config/m88k/m88k-aout.h: Likewise.
3763 * config/mcore/mcore-elf.h: Likewise.
3764 * config/mcore/mcore-pe.h: Likewise.
3765 * config/mips/elf.h: Likewise.
3766 * config/mips/elf64.h: Likewise.
3767 * config/mips/iris5gas.h: Likewise.
3768 * config/mips/iris6.h: Likewise.
3769 * config/mips/mips.h: Likewise.
3770 * config/mips/sni-gas.h: Likewise.
3771 * config/mmix/mmix.h: Likewise.
3772 * config/ns32k/netbsd.h: Likewise.
3773 * config/pa/pa64-hpux.h: Likewise.
3774 * config/romp/romp.h: Likewise.
3775 * config/rs6000/sysv4.h: Likewise.
3776 * config/rs6000/xcoff.h: Likewise.
3777 * config/sh/coff.h: Likewise.
3778 * config/sh/elf.h: Likewise.
3779 * config/sparc/linux64.h: Likewise.
3780 * config/sparc/liteelf.h: Likewise.
3781 * config/sparc/netbsd.h: Likewise.
3782 * config/sparc/openbsd.h: Likewise.
3783 * config/sparc/pbd.h: Likewise.
3784 * config/sparc/sp64-elf.h: Likewise.
3785 * config/sparc/sp86x-elf.h: Likewise.
3786 * config/sparc/sparc.h: Likewise.
3787 * config/vax/vax.h: Likewise.
3788 * config/vax/vaxv.h: Likewise.
3789
5e98fba2
DD
37902002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
3791
3792 * h8300.c (shift_alg_hi): Various tweaks to improve performance
3793 of HImode shifts.
3794 (get_shift_alg): Corresponding changes.
3795
43852342
JDA
37962002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3797
3798 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
3799
44bb111a
RH
38002002-08-29 Richard Henderson <rth@redhat.com>
3801
3802 * expr.h (enum block_op_methods): New.
3803 (emit_block_move): Update prototype.
3804 * expr.c (block_move_libcall_safe_for_call_parm): New.
3805 (emit_block_move_via_loop): New.
3806 (emit_block_move): Use them. New argument METHOD.
3807 (emit_push_insn): Always respect the given alignment.
3808 (expand_assignment): Update call to emit_block_move.
3809 (store_expr, store_field, expand_expr): Likewise.
3810 * builtins.c (expand_builtin_apply): Likewise.
3811 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3812 * function.c (expand_function_end): Likewise.
3813 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
3814 * config/sparc/sparc.c (sparc_va_arg): Likewise.
3815 * calls.c (expand_call, emit_library_call_value_1): Likewise.
3816 (save_fixed_argument_area): Use emit_block_move with
3817 BLOCK_OP_CALL_PARM instead of move_by_pieces.
3818 (restore_fixed_argument_area): Likewise.
3819 (store_one_arg): Fix alignment parameter to emit_push_insn.
3820
08b3d104
JDA
38212002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3822
3823 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
3824
ce4e9970 38252002-08-29 Catherine Moore <clm@redhat.com>
8376061d
CM
3826
3827 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
3828 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
3829 (PREDICATE_CODES): Include new predicates.
3830 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
3831 (TARGET_SWITCHES): Add strict-align.
3832 (TARGET_STRICT_ALIGN): New.
2567406a 3833 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
8376061d
CM
3834 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3835 Define.
3836 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
3837 v850_muldi3.
3838 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
3839 L_callt_save_r2_r31, L_return_r2_r31,
3840 L_save_all_interrupt): Change addi to add.
3841 (L_save_interrupt, L_return_interrupt): Rework.
3842 (__return_r31): Correct .size directive.
3843 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
3844 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
3845 New routines.
3846 * config/v850/v850.c (expand_prologue): Call
3847 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
3848 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
3849 (reg_or_int9_operand): New predicate.
3850 (reg_or_const_operand): New routine.
3851 * config/v850/v850.md (return_interrupt): Changed from
3852 restore_interrupt.
3853 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
3854 (callt_save_interrupt): Change save sequence.
3855 (callt_return_interrupt): New.
3856 (save_interrupt): Don't use runtime function for LONG_CALLS
3857 and TARGET_PROLOG_FUNCTION.
3858 (save_all_interrupt): Likewise.
3859 (mulsi3): Use new predicate.
3860 (moviscc): Disallow some combination of constants.
3861 Fix define_split for sasf insns, so that it will not generate bad
3862 code if operand0 and operand5 are the same.
3863 * config/v850/v850-protos.h: Prototype new predicates.
3864
585e661a
GDR
38652002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
3866
3867 * c-common.c (builtin_define_type_precision): New function.
3868 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
3869 wchar_t is unsigned in C++.
3870 * doc/cpp.texi (Common Predefined Macros): Document
3871 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
3872 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
3873 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
3874
bd8f9aec
SP
38752002-08-28 Sylvain Pion <pion@cs.nyu.edu>
3876
3877 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
3878 section. Mention that it is enabled by -Wall.
3879 (-Wall): Mention that there can be language-specific warnings as well.
3880 (-Wctor-dtor-privacy): Mention that it is enabled by default.
3881 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
3882
58ab7171
R
3883Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
3884
3885 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
3886 if it is ever live.
3887
3888 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
3889 attribute for SHCOMPACT.
3890
3891 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
3892 appropriately.
3893 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
3894 by the ABI.
3895
3896 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
3897
27f4b67e
JT
38982002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
3899
3900 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
3901 "MASK_GAS|MASK_ABICALLS".
3902 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
3903 (TARGET_DEFAULT): Remove.
3904 (MACHINE_TYPE): Undefine before defining.
3905 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
3906
eca7f13c
MM
39072002-08-27 Mark Mitchell <mark@codesourcery.com>
3908
3909 * c-common.c (warn_abi): New variable.
3910 * c-common.h (warn_abi): Likewise.
3911 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
3912 (c_common_decode_option): Handle it.
7ee425e4 3913 * doc/invoke.texi: Document -Wabi.
2567406a 3914
ece4ce85
NP
3915Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
3916
3917 * c-common.c (warn_undeclared_selector): New variable.
3918 * c-common.h (warn_undeclared_selector): Idem.
3919 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
3920 to on when -Wundeclared-selector is found.
3921 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
3922 * objc/objc-act.c (build_selector_expr): If
3923 warn_undeclared_selector is set, check that the selector has
3924 already been defined, and emit a warning if not.
3925
b4378319 39262002-08-27 Nick Clifton <nickc@redhat.com>
54c93c30
AE
3927 Catherine Moore <clm@redhat.com>
3928 Jim Wilson <wilson@cygnus.com>
3929
3930 * config.gcc: Add v850e-*-* target.
3931 Add --with-cpu= support for v850.
3932 * config/v850/lib1funcs.asm: Add v850e callt functions.
3933 * config/v850/v850.h: Add support for v850e target.
3934 * config/v850/v850.c: Add functions to support v850e target.
3935 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
3936 * config/v850/v850.md: Add patterns for v850e instructions.
3937 * doc/invoke.texi: Document new v850e command line switches.
b4378319 3938
ef261fee
R
3939Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
3940 Aldy Hernandez <aldyh at redhat dot com>
3941
3942 * doc/tm.texi: Applied numerous fixes to the automaton based
3943 scheduler descrition.
3944
c60ee6f5
JH
3945Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
3946
3947 * i386.c (classify_argument): Handle variable sized objects.
3948
1985ef90
JH
3949Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
3950
3951 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
3952
7acc97e0
JH
3953Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3954
3955 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
3956
23327dae
JH
3957Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3958
3959 * i386.c (classify_argument): Properly compute word size of the analyzed object.
3960
c49439f1
R
3961Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
3962
3963 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
3964 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
3965 accordingly.
3966 (attribute insn_class): Provide default definitions based on type.
3967 Remove all insn-specific settings.
3968 (various function units): Remove old SH4 scheduling.
3969 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
3970 New attributes. Set them where appropriate.
3971 (cpu unit FS): Don't define / use.
3972 (F3, load_store): New cpu units.
3973 (F01): New reservation.
3974 (all insn_reservations): Make dependent on sh4 pipeline model.
3975 Fix latencies.
3976 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
3977 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
3978 (mt insn_reservation): Use type mt_group.
3979 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
3980 sh4_fload and sh4_store.
3981 (insn_reservation branch_zero and branch): Replace with sh4_branch.
3982 (insn_reservation branch_far): Replace with sh4_return.
3983 (insn_reservation return_from_exp): Rename to:
3984 (sh4_return_from_exp). Change to be just d_lock*5.
3985 (insn_reservation lds_to_pr): Rename to:
3986 (sh4_lds_to_pr). Change to be just d_lock*2.
3987 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
3988 d_lock*2.
3989 (insn_reservation prload_mem): Rename to:
3990 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
3991 (insn_reservation fpscr_store): Rename to:
3992 (fpscr_load). Change to d_lock,nothing,F1*3.
3993 (insn_reservation fpscr_store_mem): Rename to:
3994 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
3995 (insn_reservation multi): Change to
3996 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
3997 (insn_reservation fp_arith): Change to issue,F01,F2.
3998 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
3999 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
4000 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
4001 (insn_reservation fp_double_cmp): Change to
4002 d_lock,(d_lock+F01),F1+F2,F2.
4003 (insn_reservation dp_div): Change to
4004 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
4005 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
4006 (sh_adjust_cost, SHcompact): Differentiate between different
4007 kinds of dependencies. Drop factor of ten for superscalar.
4008 Use new instruction types. Add new exception rules.
4009
4010 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
4011
4012 * sh.md (mperm_w): Add DONE.
4013
f34fc46e
DE
40142002-08-27 David Edelsohn <edelsohn@gnu.org>
4015
4016 * longlong.h: Import current PowerPC defintion from GMP-4.1.
4017
4018 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
4019
4020 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
4021
dcb44500
R
4022Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4023
4024 * sh.h (MAX_FIXED_MODE_SIZE): Define.
4025
3ec07554
GDR
40262002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
4027
4028 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2567406a 4029 delimiter.
3ec07554 4030
35885eab
GDR
40312002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4032
4033 * c-common.c (cpp_define_data_format): New function.
4034 (cb_register_builtins): Call it.
4035
4036 * doc/cpp.texi (Common Predefined Macros): Document
4037 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
4038 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
4039 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
4040 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
4041 __TARGET_USES_VAX_H_FLOAT__.
4042
d632dee9
ZL
40432002-08-26 Ziemowit Laski <zlaski@apple.com>
4044
4045 * objc/objc-act.c (get_super_receiver): If inside a class method
4046 of a category, cast the receiver to 'id' before accessing the 'isa'
4047 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
4048
c3cc6b78
UW
40492002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
4050
2567406a 4051 * config/s390/s390-protos.h (s390_function_prologue,
c3cc6b78
UW
4052 s390_function_epilogue): Remove.
4053 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
4054 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4055
4056 config/s390/s390.c (s390_machine_dependent_recorg): New function.
4057 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
4058 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
4059 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
4060 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
4061
2567406a 4062 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
c3cc6b78
UW
4063 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
4064 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
4065 function is not a leaf function. Use save_gprs and restore_gprs.
4066 (s390_emit_epilogue): Likewise.
4067 (save_gprs, restore_gprs): New functions.
4068 (struct s390_frame): Remove return_reg_saved_p member.
4069 (save_fprs_p): Remove.
4070 (s390_optimize_prolog): New function.
4071 (s390_legitimate_reload_constant): Remove now unnecessary check.
4072
4073 (s390_function_count): Remove.
4074 (s390_output_symbolic_const): Replace s390_function_count by
4075 current_function_funcdef_no.
4076 (s390_output_constant_pool): Likewise.
4077
4078 (legitimize_pic_address): Use regs_ever_live to track PIC register
4079 instead of current_function_uses_pic_offset_table.
4080 (s390_emit_prologue): Likewise.
4081 config/s390/s390.md ("call", "call_value"): Likewise.
4082
3f662186
NB
40832002-08-26 Neil Booth <neil@daikokuya.co.uk>
4084
4085 * c-opts.c (find_opt): Don't complain about wrong languages
4086 here. Return exact matches even for wrong language.
4087 (c_common_decode_option): Complain about wrong languages
4088 here.
4089
b6128b8c
SH
40902002-08-24 Stuart Hastings <stuart@apple.com>
4091
4092 * function.h (struct function): Add flag
4093 all_throwers_are_sibcalls.
4094 * except.c (set_nothrow_function_flags): Replaces
4095 nothrow_function_p. Set new flag.
4096 * except.h (set_nothrow_function_flags): Replaces
4097 nothrow_function_p.
4098 * dwarf2out.c (struct dw_fde_struct): Add flag
4099 all_throwers_are_sibcalls.
4100 (output_call_frame_info): Test it.
4101 (dwarf2out_begin_prologue) Propagate it from cfun to
4102 dw_fde_struct.
4103 * toplev.c (rest_of_compilation): Update calls to
4104 nothrow_function_p.
4105
280cf02a
ZW
41062002-08-23 Zack Weinberg <zack@codesourcery.com>
4107
4108 * ggc-page.c (compute_inverse): Short circuit calculation for
4109 object sizes larger than half a page.
4110
c6664446
DE
41112002-08-23 David Edelsohn <edelsohn@gnu.org>
4112
4113 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
4114 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
4115 default.
4116 (rs6000_elf_unique_section): Likewise.
4117
da57d233
KG
41182002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4119
4120 * ns32k.c (ns32k_globalize_label): Delete.
4121 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
4122
56a7189a
AM
41232002-08-23 Alan Modra <amodra@bigpond.net.au>
4124
4125 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
4126 for loading delta with num_insns_constant_wide. Calculate
4127 delta_low, delta_high without using a conditional.
4128
d65b1d77
JM
41292002-08-22 Jason Merrill <jason@redhat.com>
4130
4131 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
4132 * c-common.def: Adjust.
4133 * c-dump.c (c_dump_tree): Adjust.
4134 * c-semantics.c (genrtl_return_stmt): Adjust.
4135 * c-pretty-print.c (pp_c_statement): Adjust.
4136 * tree-inline.c (copy_body_r): Adjust.
4137
8537ed68
ZW
41382002-08-22 Zack Weinberg <zack@codesourcery.com>
4139
4140 * ggc-page.c: Avoid division in ggc_set_mark.
4141 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
4142 compute_inverse): New.
4143 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
4144 (init_ggc): Initialize inverse_table.
4145
8567c70f
TT
41462002-08-22 Tom Tromey <tromey@redhat.com>
4147
4148 * doc/install.texi (Configuration): Document --datadir.
4149
fde59d4b
AO
41502002-08-22 Alexandre Oliva <aoliva@redhat.com>
4151
4152 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
4153
44ddc79a
HPN
41542002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
4155
4156 * gengtype-lex.l (ID): Allow underscore as first character.
4157
b275d088
DE
41582002-08-21 David Edelsohn <edelsohn@gnu.org>
4159
4160 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
4161 function.
4162 (rs6000_xcoff_asm_named_section): Rename.
4163 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
4164
57ce46bb
TT
41652002-08-21 Tom Tromey <tromey@redhat.com>
4166
4167 For PR java/6005 and PR java/7611:
4168 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
4169 (fold): Likewise.
4170 * langhooks.c (lhd_can_use_bit_fields_p): New function.
4171 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
4172 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
4173 (LANG_HOOKS_INITIALIZER): Use it.
4174 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
4175 field.
4176
27d30956
SS
41772002-08-21 Stan Shebs <shebs@apple.com>
4178
4179 * tree.c (finish_vector_type): Fix a typo in a comment.
4180 * Makefile.in: Fix "the the" stutters in comments.
4181 * genautomata.c: Ditto.
4182 * ifcvt.c: Ditto.
4183 * regrename.c: Ditto.
4184 * config/alpha/alpha.c: Ditto.
4185 * config/alpha/vms-crt0-64.c: Ditto.
4186 * config/alpha/vms-crt0.c: Ditto.
4187 * config/alpha/vms-psxcrt0-64.c: Ditto.
4188 * config/alpha/vms-psxcrt0.c: Ditto.
4189 * config/d30v/d30v.h: Ditto.
4190 * config/fr30/fr30.h: Ditto.
4191 * config/rs6000/rs6000.c: Ditto.
4192 * config/stormy16/stormy16.h: Ditto.
4193 * doc/md.texi: Ditto.
8537ed68 4194
d873d827
JDA
41952002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4196
4197 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
4198
b462d4ab
JM
41992002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
4200
4201 * c-decl.c (grokdeclarator): Make invalid combinations with long,
4202 short, signed or unsigned into hard errors. Fixes PR c/4319.
4203 Also make duplicate modifiers such as "short short" into hard
4204 errors.
4205
b65d23aa 42062002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
8537ed68 4207 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
b65d23aa
AP
4208
4209 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
4210 to the actual end. Add '@end table' and '@table @code'.
8537ed68 4211
3823f0b2
GK
42122002-08-20 Geoffrey Keating <geoffk@redhat.com>
4213
8d25d915
GK
4214 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
4215
3823f0b2
GK
4216 * unroll.c (biv_total_increment): Don't try to compute the total
4217 increment for FP BIVs.
4218
5eb99654
KG
42192002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4220
4221 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
4222 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
4223 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
4224 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
4225 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
4226 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
4227 (GLOBAL_ASM_OP): Define.
4228 * arm.c (aof_globalize_label): New function.
4229 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
4230 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
4231 * c4x.c (c4x_globalize_label): New function.
4232 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
4233 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
4234 (GLOBAL_ASM_OP): Define.
4235 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
4236 * darwin-protos.h (darwin_globalize_label): Declare.
4237 * darwin.c (darwin_globalize_label): New function.
4238 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
4239 (ASM_GLOBALIZE_LABEL): Delete.
4240 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
4241 * dsp16xx.c (asm_output_common): Use target hook.
4242 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
4243 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
4244 (GLOBAL_ASM_OP): Define.
4245 * i370.c (i370_globalize_label): New function.
4246 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
4247 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
4248 * i386.c (ix86_asm_file_end): Use target hook.
4249 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
4250 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
4251 * ia64.c (ia64_asm_output_external): Likewise.
4252 * ia64/sysv4.h: Update comment.
4253 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
4254 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4255 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
4256 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4257 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
4258 * mmix-protos.h (mmix_asm_globalize_label): Delete.
4259 * mmix.c (mmix_asm_globalize_label): Likewise.
4260 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
4261 (GLOBAL_ASM_OP): Define.
4262 * ns32k.c (ns32k_globalize_label): New function.
4263 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
4264 (ASM_GLOBALIZE_LABEL): Delete.
4265 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
4266 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
4267 * pa.c (pa_globalize_label): New function.
4268 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
4269 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
4270 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
4271 (GLOBAL_ASM_OP): Define.
4272 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
4273 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
4274 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
4275 (GLOBAL_ASM_OP): Define.
4276 * v850.c (v850_output_aligned_bss): Use target hook.
4277 * vax.c (vms_globalize_label): New function.
4278 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
4279 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
4280 (GLOBAL_ASM_OP): Define.
4281 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
4282 * doc/tm.texi: Update docs.
4283 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
4284 target hook.
4285 * final.c (output_alternate_entry_point): Likewise.
4286 * hooks.c (hook_FILEptr_constcharptr_void): New function.
4287 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
4288 * output.h (assemble_global): Delete.
4289 (default_globalize_label): Declare.
4290 * system.h (ASM_GLOBALIZE_LABEL): Poison.
4291 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
4292 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
4293 * target.h (gcc_target): Add globalize_label member.
4294 * varasm.c (asm_output_bss, asm_output_aligned_bss,
4295 globalize_decl): Use target hook.
4296 (assemble_global): Delete.
4297 (default_globalize_label): New function.
4298
f8f28a75
KG
42992002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4300
4301 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
4302
92b5aacd
DP
43032002-08-20 Devang Patel <dpatel@apple.com>
4304 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
8537ed68 4305
761c70aa
KG
43062002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4307
4308 * arc.c (output_shift): Use stdio instead of asm_fprintf.
4309 * arm.c (thumb_output_function_prologue): Likewise.
4310 * avr.c (print_operand): Likewise.
4311 * c4x.c (c4x_print_operand): Likewise.
4312 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
4313 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
4314 * cris.c (cris_target_asm_function_prologue,
4315 cris_asm_output_mi_thunk): Likewise.
4316 * h8300.c (print_operand): Likewise.
4317 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
4318 * ip2k.c (print_operand): Likewise. Fix format specifier.
4319 * m68hc11.c (asm_print_register, print_operand,
4320 print_operand_address): Use stdio instead of asm_fprintf.
4321 (print_operand_address): Fix format specifier.
4322 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
4323 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
4324 asm_fprintf.
4325 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4326 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4327 * m68k.c (m68k_output_function_prologue,
4328 m68k_output_function_epilogue, print_operand): Likewise.
4329 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
4330 Likewise. Fix format specifier.
4331 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
4332 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
4333 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
4334
5ce6f47b
EC
43352002-08-15 Eric Christopher <echristo@redhat.com>
4336 Jeff Knaggs <jknaggs@redhat.com>
4337
4338 * config.gcc (mipsisa64sr71k-elf): New target.
4339 * config/mips/sr71k.md: New file.
4340 * config/mips/mips.md: Use it.
4341 (rot*): Add sr71k specifics.
4342 * config/mips/t-sr71k: New file.
4343 * config/mips/mips.h (sr71k): New cpu.
4344 (TARGET_SR71K): Use it.
4345 (TUNE_SR71K): Ditto.
4346 (GENERATE_BRANCHLIKELY): Ditto.
4347 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
4348 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
4349 * config/mips/mips.c (sr71k): New cpu.
4350 (mips_use_dfa_pipeline_interface): Use.
4351
43522002-08-15 Eric Christopher <echristo@redhat.com>
8537ed68 4353 Richard Sandiford <rsandifo@redhat.com>
5ce6f47b
EC
4354 Aldy Hernandez <aldyh@redhat.com>
4355 Graham Stott <grahams@redhat.com>
4356 Michael Meissner <meissner@redhat.com>
4357 Gavin Romig-Koch <gavin@redhat.com>
4358 Ken Raeburn <raeburn@cygnus.com>
4359 Alexandre Oliva <aoliva@redhat.com>
4360
4361 * config.gcc (mips64vr-elf): New target.
4362 * config/mips/5400.md: New file.
4363 * config/mips/5500.md: Ditto.
4364 * config/mips/mips.md: Use them.
4365 (frsqrt): New.
4366 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
4367 cpus.
4368 (mips_issue_rate): Use them.
4369 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
4370 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
4371 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
4372 cpus.
4373 (TARGET_MIPSx): Use them.
4374 (TUNE_MIPSx): Ditto.
4375 (GETNATE_MULT3_SI): Ditto.
4376 (ISA_HAS_BRANCHLIKELY): Ditto.
4377 (ISA_HAS_CONDMOVE): Ditto.
4378 (ISA_HAS_NMADD_NMSUB): Ditto.
4379 (ISA_HAS_MULHI): New. Ditto.
4380 (ISA_HAS_MULS): Ditto.
4381 (ISA_HAS_MSAC): Ditto.
4382 (ISA_HAS_MACC): Ditto.
4383 (ISA_HAS_ROTR_SI): Ditto.
4384 (ISA_HAS_ROTR_DI): Ditto.
4385 (RTX_COSTS): Use.
4386
48209ce5
JDA
43872002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
4388
4389 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
4390 at head.
4391 (remove_dup_nonsys_dirs): New function.
4392 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
4393 (merge_include_chains): Remove non-system include directories from
4394 quote and bracket include chains when they duplicate equivalent system
4395 directories.
4396 * doc/cpp.texi (-I): Update.
8537ed68
ZW
4397 * doc/cppopts.texi (-I): Update.
4398 * doc/install.texi (--with-local-prefix): Further document usage of
48209ce5
JDA
4399 this option.
4400 * doc/invoke.texi (-I): Update.
4401
4ca79136
RH
44022002-08-20 Richard Henderson <rth@redhat.com>
4403
4404 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
4405 (emit_block_move): Split out subroutines.
4406 (emit_block_move_via_movstr): New.
4407 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
4408 (emit_block_move_libcall_fn): New. Construct function prototype for
4409 bcopy as well.
4410 (clear_storage): Split out subroutines.
4411 (clear_storage_via_clrstr): New.
4412 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
4413 (clear_storage_libcall_fn): New. Construct function prototype for
4414 bzero as well.
4415 (emit_push_insn): Use emit_block_move.
4416 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
4417 (store_constructor): Likewise.
4418
9f05cef3
ZL
44192002-08-19 Ziemowit Laski <zlaski@apple.com>
4420
4421 * objc/objc-act.c (building_objc_message_expr): Rename to
4422 current_objc_message_selector.
4423
1bd5981b
ZL
44242002-08-19 Ziemowit Laski <zlaski@apple.com>
4425
4426 * objc/objc-act.c (build_ivar_chain): Remove.
4427 (objc_copy_list): Likewise.
4428 (get_class_ivars): Inline call to removed build_ivar_chain
4429 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
4430 slot; use that slot (rather than CLASS_IVARS) when accessing
4431 ivars for base classes. Call copy_list and chainon instead of
4432 objc_copy_list.
4433 (build_private_template): Call get_class_ivars instead of
4434 build_ivar_chain.
4435 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
5ce6f47b 4436 (continue_class): Call get_class_ivars instead of
1bd5981b
ZL
4437 build_ivar_chain.
4438 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
4439 of DECL_BIT_FIELD (which may have been cleared).
4440 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
4441
2bf087c0
KG
44422002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4443
4444 * genautomata.c (output_translate_vect, output_state_ainsn_table,
4445 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
4446 in output file.
4447 (output_internal_min_issue_delay_func): Initialize variable in
4448 output file.
4449
3fcd079e
AO
44502002-08-19 Alexandre Oliva <aoliva@redhat.com>
4451
4452 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
4453 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
4454
71012d97
GK
44552002-08-19 Geoffrey Keating <geoffk@redhat.com>
4456 Steve Ellcey <sje@cup.hp.com>
4457
4458 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
4459 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
4460 * explow.c (trunc_int_for_mode): Abort when the mode is not
4461 a scaler integer mode.
4462 * combine.c (expand_compound_operation): Don't expand Vector
4463 or Complex modes into shifts.
4464 (expand_field_assignment): Don't do bitwise arithmatic and
4465 shifts on Vector or Complex modes.
4466 (simplify_comparison): Don't call trunc_int_for_mode
4467 for VOIDmode.
4468 * recog.c (general_operand): Likewise.
4469 (immediate_operand): Likewise.
4470 (nonmemory_operand): Likewise.
4471
af8cb5c5
DE
44722002-08-19 David Edelsohn <edelsohn@gnu.org>
4473
4474 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
4475 multi-instruction SImode constant. Add REG_EQUAL note.
4476 * config/rs6000/rs6000.md (movsi splitter): Use
5ce6f47b 4477 rs6000_emit_set_const.
af8cb5c5 4478
9bc146b3
KG
44792002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4480
4481 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
4482 the macro test controlling its use.
4483
66df2ac2
L
44842002-08-18 H.J. Lu (hjl@gnu.org)
4485
4486 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
4487 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
4488 gnu_ld=yes.
4489 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
4490 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
4491 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
4492 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
4493 here.
4494 (cris-*-linux*): Remove setting thread_file here.
4495
463f1b2b
NB
44962002-08-18 Neil Booth <neil@daikokuya.co.uk>
4497
4498 PR preprocessor/7602
4499 * cppinit.c (path_include): Treat the system environment
4500 variables as being cxx_aware.
4501
2984fe64
JM
45022002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
4503
4504 * c-decl.c (flexible_array_type_p): New function.
4505 (grokdeclarator, finish_struct): Use it.
4506 * doc/extend.texi: Document constraints on use of structures with
4507 flexible array members.
4508
fded6d78
RS
45092002-08-17 Richard Sandiford <rsandifo@redhat.com>
4510
4511 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
4512 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
4513 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
4514
8aa5074e
SS
45152002-08-16 Stan Shebs <shebs@apple.com>
4516
4517 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
4518 for ObjC with -fnext-runtime.
4519 * doc/cpp.texi: Document it.
4520
f97a5bda
JJ
45212002-08-16 Janis Johnson <janis187@us.ibm.com>
4522
4523 * doc/install.texi (Final installation): Replace links to individual
4524 build status pages with a link to a common page that lists them all.
4525
d3075b6c
SP
45262002-08-16 Sylvain Pion <pion@cs.nyu.edu>
4527
4528 * doc/invoke.texi: Fix typo.
4529
fdf68669
DE
45302002-08-16 David Edelsohn <edelsohn@gnu.org>
4531
4532 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
4533
45342002-08-16 Andrew Haley <aph@redhat.com>
d436bff8
AH
4535
4536 * tree-inline.c: Add includes for Java inliner.
4537 (remap_decl): Don't handle anonymous types for Java.
4538 (remap_block): Add handling for Java trees.
4539 (copy_scope_stmt): Conditionalize for non-Java use only.
4540 (copy_body_r): Handle Java trees. Add handling for
4541 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
4542 (initialize_inlined_parameters): Handle Java trees.
4543 (declare_return_variable): Likewise.
4544 (expand_call_inline): Handle Java trees.
4545 (walk_tree): Likewise.
4546 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
4547 (add_stmt_to_compound): New function.
4548
204250d2
RH
45492002-08-15 Richard Henderson <rth@redhat.com>
4550
4551 * Makefile.in (LOOSE_WARN): Remove -fno-common.
4552 (NOCOMMON_FLAG): New substitution point.
4553 (GCC_WARN_CFLAGS): Include it.
4554 * configure.in (ac_checking): Set nocommon_flag.
4555 (nocommon_flag): New substitution point.
4556
25587e40
AO
45572002-08-15 Alexandre Oliva <aoliva@redhat.com>
4558
4559 * c-tree.h (skip_evaluation): Move declaration...
4560 * c-common.h: ... here.
4561 * c-typeck.c (build_external_ref): Don't assemble_external nor
4562 mark a tree as used if skip_evaluation is set.
4563 * c-parse.in (typeof): New non-terminal to set skip_evaluation
4564 around TYPEOF.
4565 (typespec_nonreserved_nonattr): Use it.
4566
702ada3d
DR
45672002-08-15 Douglas B Rupp <rupp@gnat.com>
4568
4569 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
4570 (xcoff_debug_hooks): Update end_prologue.
4571 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
4572 * debug.h (end_prologue): Add file arg.
4573 (end_epilogue): Add line and file args.
4574 (dwarf2out_end_epilogue): Add line and file args.
4575 (vmsdbgout_after_prologue): Remove.
4576 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
4577 (dwarf2_debug_hooks): Update end_prologue.
4578 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
4579 (dwarfout_end_prologue): Add file arg.
4580 * final.c (vmsdbgout_after_prologue): Remove
4581 (final_end_function): Update end_epilogue call.
4582 (final_scan_insn): Update end_prologue call.
4583 * sdbout.c (sdbout_end_epilogue): Add line and file args.
4584 (sdbout_end_prologue): Add file arg.
4585 (sdb_debug_hooks): Update end_prologue.
4586 (sdb_begin_prologue): Update sdbout_end_prologue call.
4587 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
4588 vmsdbgout_end_function.
4589 (vmsdbgout_end_prologue): New function renamed from
4590 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
4591 (vmsdbgout_end_function): New function.
4592 (vmsdbgout_end_epilogue): Add line and file args. Call
4593 vmsdbgout_source_line.
4594 (write_pclines): Write only valid line numbers.
4595 (write_srccorr): Don't write source correlation records if 0 lines.
4596 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
4597
9ef30f83
SE
45982002-08-15 Steve Ellcey <sje@cup.hp.com>
4599
4600 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
4601 (_Unwind_Internal_Ptr): 32 bit version for use in
4602 read_encoded_value_with_base.
4603 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
4604 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
4605 right size.
4606
f7043461
KG
46072002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4608
4609 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
4610 signed/unsigned warnings.
4611
4612 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
4613 record_reg_classes): Likewise.
4614
4615 * reload.c (reload_inner_reg_of_subreg, push_reload,
4616 find_reloads_address_1): Likewise.
4617
b4d330e1
DE
46182002-08-15 David Edelsohn <edelsohn@gnu.org>
4619
4620 * rs6000.c (output_mi_thunk): Return to function section on
4621 TARGET_ELF.
4622
4623 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
4624
61f02ff5
UW
46252002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
4626
4627 * config/s390/s390.c (legitimize_address): Optimize loading
4628 of large displacements.
4629
1330f7d5
DR
46302002-08-14 Douglas B Rupp <rupp@gnat.com>
4631
4632 * config/alpha/alpha-protos.h: Update.
4633
4634 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
4635 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
4636 (alpha_linkage_symbol_p): New static function.
4637 (print_operand_address): Print linkage operand.
4638
4639 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
4640 variables.
4641 (reloc_kind): New enum.
4642 (struct alpha_funcs): New struct.
4643 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
4644
4645 (alpha_need_linkage): Rewrite.
4646 (alpha_use_linkage): New global function.
4647 (alpha_write_linkage): Rewrite and make static.
4648 (alpha_write_one_linkage): Rewrite
4649
4650 (alpha_start_function): Remove procedure descriptor output.
4651 (alpha_end_function): Write linkages at end of each function.
4652
4653 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
4654 (call_vms_1, call_value_vms_1): Rewrite.
4655
4656 * config/alpha/vms.h (ASM_FILE_END): Remove.
4657
d1f1cc6a
RH
46582002-08-14 Richard Henderson <rth@redhat.com>
4659
4660 * ggc-page.c (RTL_SIZE): New.
4661 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
4662 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
4663
23626154
RH
46642002-08-14 Richard Henderson <rth@redhat.com>
4665
4666 * calls.c: Include target.h.
4667 * Makefile.in (calls.o): Update.
4668
4669 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
4670 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
4671
fd350d24
RH
46722002-08-14 Richard Henderson <rth@redhat.com>
4673
4674 * Makefile.in (LOOSE_WARN): Add -fno-common.
4675 * c-common.h (constant_string_class_name): Add missing extern.
4676
182d89a3
NB
46772002-08-15 Neil Booth <neil@daikokuya.co.uk>
4678
4679 PR preprocessor/7358
4680 * c-opts.c (check_deps_environment_vars): Ignore main file
4681 for SUNPRO_DEPENDENCIES.
4682 * cppfiles.c (stack_include_file): Ignore main file if
4683 appropriate.
4684 * cpplib.h (struct cpp_options): New member in deps.
4685 * doc/cppenv.texi: Update.
4686
8bfb1467
NB
46872002-08-14 Neil Booth <neil@daikokuya.co.uk>
4688
4689 PR preprocessor/7526
4690 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
4691
41685063
NS
46922002-08-14 Nathan Sidwell <nathan@codesourcery.com>
4693
4694 * doc/invoke.texi (-a): Remove documentation.
4695 (-fprofile-arcs): Remove reference to -a, -ax options.
4696 * doc/gcov.texi (Gcov Data Files): Data might be merged.
4697
77893a23
GDR
46982002-08-14 Gabriel Dos Reis <gdr@nerim.net>
4699
4700 Fix PR/7566
4701 * c-semantics.c (genrtl_case_label): Don't (mis)use
5ce6f47b 4702 warning_with_decl.
77893a23 4703
260f91c2
DJ
47042002-08-14 Dale Johannesen <dalej@apple.com>
4705
8537ed68 4706 * explow.c (emit_stack_restore): Emit memory clobbers
260f91c2
DJ
4707 preceding the stack pop, to prevent the scheduler from
4708 moving refs to variable arrays below this pop.
4709 * reload1.c (reload): Preserve these clobbers for sched2.
4710 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
4711
cd79e210
NB
47122002-08-14 Neil Booth <neil@daikokuya.co.uk>
4713
4714 * c-opts.c (c_common_post_options): Correct test.
4715
3eb75a73
KG
47162002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4717
4718 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
4719 order in call to fprintf.
4720
be3a0ce2
RO
47212002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4722
4723 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
4724
ccfc6cc8
UW
47252002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
4726
5ce6f47b 4727 * reload.c (find_reloads): Handle constraint letters marked by
ccfc6cc8
UW
4728 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
4729 (alternative_allows_memconst): Likewise.
4730 * reload1.c (maybe_fix_stack_asms): Likewise.
5ce6f47b 4731 * recog.c (asm_operand_ok, preprocess_constraints,
ccfc6cc8
UW
4732 constrain_operands): Likewise.
4733 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
4734 * local-alloc.c (block_alloc, requires_inout): Likewise.
4735 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4736
4737 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
4738 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
4739 * doc/tm.texi: Document these two new target macros.
4740
4741 * config/s390/s390.c (s390_expand_plus_operand): Accept already
4742 valid operands.
4743 (q_constraint): New function.
4744 config/s390/s390-protos.h (q_constraint): Declare it.
4745 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
4746 (EXTRA_MEMORY_CONSTRAINT): New macro.
4747
4748 * config/s390/s390.md: Throughout the machine description,
4749 replace all instances of the constraint combinations 'Qo'
4750 or 'oQ' with simply 'Q'.
4751
d6ee9f6f
SC
47522002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4753
4754 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
4755 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
4756 (LIBGCC2_CFLAGS): Compile with -mrelax.
4757
8a0b86f5
SC
47582002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4759
4760 * doc/invoke.texi: Document -minmax for 68HC12.
4761
4762 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
4763 ("uminqi3"): Likewise.
4764 ("uminhi3", "umaxhi3"): Likewise.
4765
4766 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
4767 (TARGET_MIN_MAX): Define.
4768 (TARGET_SWITCHES): New option -minmax/-mnominmax.
4769
d6381f4e
SC
47702002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4771
4772 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
4773 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
4774
4775 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
4776 (ret, declare, farsym): New gas macros.
4777 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
4778 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
4779 and declare the symbol far when compiled with -mlong-calls.
5ce6f47b 4780 (__far_trampoline): New for 68HC12 trampoline code to invoke a
d6381f4e
SC
4781 far handler using jsr/bsr.
4782
4783 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
4784 (jsr): New macro to transform a 'jsr' into a 'call'.
4785
058edcdb
SC
47862002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4787
4788 * doc/invoke.texi: Document -mlong-calls for 68HC12.
4789
4790 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
4791 -mlong-calls is specified.
5ce6f47b 4792 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
058edcdb
SC
4793 assembler directives.
4794 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
4795 (TARGET_SWITCHES): Add -mlong-calls options.
4796 (current_function_far): Declare.
4797
4798 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
4799 into account the page register saved on the stack.
4800 (m68hc11_override_options): Take into account -mlong-calls option.
4801 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
4802
4803 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
4804 if the function is going to be in 68HC12 banked memory (-mlong-calls).
4805 ("*return_16bit"): Likewise.
4806 ("*return_void"): Likewise.
4807 ("call", "call_value"): Use call for a far function call.
4808
c79043f3
NB
48092002-08-14 Neil Booth <neil@daikokuya.co.uk>
4810
4811 * toplev.c (parse_options_and_default_flags): Don't call
4812 post_options here.
4813 (general_init): Initialize GC, pools and tree hash here,
4814 instead of lang_independent_init.
4815 (lang_independent_init): Rename backend_init.
4816 (do_compile): Call post_options hook; exit early if there
4817 have been errors after switch processing.
4818 (toplev_main): Update.
4819
6bf346d4
GDR
48202002-08-14 Gabriel Dos Reis <gdr@nerim.net>
4821
4822 * c-pretty-print.h: Guard against multiple inclusion.
4823 Robustify macros.
4824 (pp_c_attributes): Declare.
4825 * c-pretty-print.c (pp_c_attributes): New function.
4826
cbf2f479
KG
48272002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4828
4829 * m68k.c (m68k_output_function_prologue,
4830 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
4831 and NEWS/MOTOROLA.
4832 * genattrtab.c: Remove dpx2 comment.
4833 * libgcc2.c (__enable_execute_stack): Delete versions for
4834 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
4835 sony_news/SYSTYPE_BSD.
4836 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
4837 __gmicro__, __i860__, __NeXT__ and __pyr__.
4838 * rtl.h: Remove convex comment.
4839 * varasm.c: Likewise.
4840
d3969c34
KG
48412002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4842
4843 * c-opts.c (lang_flags): Const-ify.
4844 * ra-build.c (undef_table): Likewise.
4845 * ra.c (eliminables): Likewise.
4846
df89f8e7
GDR
48472002-08-14 Gabriel Dos Reis <gdr@nerim.net>
4848
4849 * tree.h: Guard against multiple inclusion.
4850
cf87d551
HPN
48512002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
4852
4853 * reload1.c (reload_cse_simplify): Before checking
4854 REG_FUNCTION_VALUE_P, check REG_P.
4855
a43c8986
GK
48562002-08-13 Geoffrey Keating <geoffk@redhat.com>
4857
4858 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
4859
29337351
NB
48602002-08-13 Neil Booth <neil@daikokuya.co.uk>
4861
4862 * c-opts.c (c_common_init_options): Extra braces needed.
4863
8202c8c4
R
4864Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4865
4866 * sh.c (sh_init_builtins): Add PARAMS to declaration.
4867 (sh_media_init_builtins, sh_expand_builtin): Likewise.
4868 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
4869 (sh_expand_binop_v2sf): Likewise.
4870 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
4871 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
4872 (sh_initialize_trampoline): Likewise.
4873
07893d4f
UW
48742002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4875
4876 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
4877 new condition code modes.
4878 s390.c (s390_match_ccmode_set): Handle those new CC modes.
4879 (s390_select_ccmode): Likewise.
4880 (s390_branch_condition_mask): Likewise.
4881
4882 * s390-protos.h (s390_tm_ccmode): Declare.
4883 s390.c (s390_tm_ccmode): New function.
4884 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
4885
4886 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
4887 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
4888 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
4889
4890 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
4891 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
4892 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
4893 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
4894 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
4895
4896 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
5ce6f47b 4897 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
07893d4f
UW
4898 "*cmpqi_ccs_0"): Remove, replace by ...
4899 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
5ce6f47b 4900 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
07893d4f
UW
4901 "*tstqi", "*tstqi_cconly"): ... these new patterns.
4902
4903 ("*cmpsidi_ccs"): Remove, replace by ...
4904 ("*cmpsi_ccs_sign"): ... this new pattern.
4905 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
4906
4907 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
4908 ("*cli"): ... this new pattern.
4909
4910 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
4911 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
4912 New patterns.
4913 ("adddi3_64"): Rename to "*adddi3_64".
4914 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
4915 ("adddi3"): Adapt expander.
4916
4917 ("*addsi3_cc"): Allow "general_operand" for operand 2.
5ce6f47b 4918 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
07893d4f
UW
4919 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
4920
4921 ("addhi3", "addqi3"): Remove, replace by ...
4922 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
4923
4924 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
4925 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
4926 ("subdi3"): Replace by insn and splitter "*subdi3_31".
4927 ("subdi3"): New expander.
4928
4929 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
4930
4931 ("subhi3", "subqi3"): Remove, replace by ...
4932 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
4933
4934 ("*muldi3_sign"): New pattern.
4935 ("muldi3"): Do not clobber CC.
4936 ("mulsi3"): Likewise.
4937 ("mulsi_6432"): Likewise.
4938
db62867b
DC
49392002-08-13 Denis Chertykov <denisc@overta.ru>
4940
4941 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
8537ed68 4942 which can change CC0.
db62867b 4943
8ba46434
R
4944Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
4945
4946 * gcse.c (adjust_libcall_notes): New function.
4947 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
4948
8733892f
NS
49492002-08-13 Nathan Sidwell <nathan@codesourcery.com>
4950
4951 * libgcc2.c (L_bb): Remove unneeded #includes.
4952 (__global_counters, __gthreads_active): Remove unused globals.
4953 (__bb_exit_func): Merge counts into files rather than appending.
4954 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
4955 (ALL_CFLAGS): ... to here.
4956
f4769721
DC
49572002-08-13 Denis Chertykov <denisc@overta.ru>
4958
4959 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
4960 (function_epilogue): Don't calculate function size.
4961 (ip2k_set_compare): Don't use lookup_const_double.
4962 (asm_file_start): Initialization of commands_in_file removed.
4963 (asm_file_end): Output of commands_in_file removed.
5ce6f47b 4964
f4769721
DC
4965 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
4966 __INT_MAX__.
4967
c31cddfd
NB
49682002-08-13 Neil Booth <neil@daikokuya.co.uk>
4969
4970 * c-opts.c (c_common_init_options): Check option array is
4971 sorted if checking enabled.
4972
f076f0ce
GDR
49732002-08-13 Gabriel Dos Reis <gdr@nerim.net>
4974
4975 * c-pretty-print.c: #include "c-tree.h".
4976 (pp_c_simple_type_specifier): Tweak.
4977 (pp_c_storage_class_specifier): New.
4978 (pp_c_function_specifier): Likewise.
4979 (pp_c_declaration_specifiers): Likewise.
4980 (pp_c_init_declarator): Likewise.
4981 (pp_c_declaration): Likewise.
4982 (pp_c_direct_declarator): Stub.
4983 (pp_c_declarator): Likewise.
4984 (pp_c_parameter_declaration): Likewise.
4985
f4ff5a69
NB
49862002-08-13 Neil Booth <neil@daikokuya.co.uk>
4987
4988 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
4989 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
4990 struct deferred_opt): New.
4991 (COMMAND_LINE_OPTIONS): Add -M*.
4992 (missing_arg): Update.
4993 (c_common_decode_option): Handle -M*.
4994 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
4995 don't call cpp_post_options.
4996 (c_common_finish, check_deps_environment_vars): Update.
4997 * cppfiles.c (stack_include_file, handle_missing_header): Update.
4998 * cpphash.h (CPP_PRINT_DEPS): Remove.
4999 * cppinit.c: Don't include version.h.
5000 (cpp_create_reader): Don't call deps_init. Initialize
5001 warn_long_long.
5002 (cpp_read_main_file): Init deps if necessary.
5003 (cpp_destroy): Conditionally free deps.
5004 (cpp_finish): Update.
5005 (no_tgt): Remove.
5006 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
5007 (cpp_post_options): Rename post_options.
5008 * cpplib.h (struct cpp_options): Remove some dependency options;
5009 move others to a new structure.
5010 (cpp_post_options): Remove.
5011 (cpp_finish): Comment.
5012 * fix-header.c (read_scan_file): Don't call cpp_post_options.
5013
34116c2a
HPN
50142002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
5015
5016 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
5017 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
5018 MMIX_rR_REGNUM as clobbered.
5019 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
5020
9b32718c
GDR
50212002-08-12 Gabriel Dos Reis <gdr@nerim.net>
5022
5023 * diagnostic.h (output_formatted_scalar): Rename from
5ce6f47b 5024 output_formatted_integer.
9b32718c
GDR
5025 * diagnostic.def: Add DK_DEBUG.
5026 * diagnostic.c (output_decimal): Adjust.
5027 (output_long_decimal): Likewise.
5028 (output_unsigned_decimal): Likewise.
5029 (output_octal): Likewise.
5030 (output_long_octal): Likewise.
5031 (output_hexadecimal): Likewise.
5032 (output_long_hexadecimal): Likewise.
5033 * c-pretty-print.c (pp_c_type_specifier): New function.
5034 (pp_c_specifier_qualifier_list): Likewise.
5035 (pp_c_abstract_declarator): Likewise.
5036 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
5037
032613df
DE
50382002-08-12 David Edelsohn <edelsohn@gnu.org>
5039
5040 * doc/trouble.texi (Disappointments): Add static constructor and
5041 destructor dependency information for AIX.
5042
a3737481
NB
50432002-08-12 Neil Booth <neil@daikokuya.co.uk>
5044
5045 * cpphash.h (struct printer): New from cppmain.c.
5046 (cpp_reader): New member.
5047 * cppmain.c (struct printer): Move to cpphash.h.
5048 (options, print): Remove.
5049 (account_for_newlines, print_line, maybe_print_line,
5050 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
5051 scan_translation_unit_trad, cb_line_change, cb_ident,
5052 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
5053 cb_def_pragma): Make reentrant.
5054
d71f7700
KG
50552002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5056
5057 * real.c (ieee_64): Always define.
5058 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
5059 (dec_h): Not used yet, hide it.
5060 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
5061 macro controlling use.
5062 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
5063
c16576e6
JH
5064Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5065
5066 * i386.md (tablejump): Sign extend the operand.
5067 * i386.c (classify_argument): Fix missed case from previous patch.
5068
460bd0e3
NB
50692002-08-12 Neil Booth <neil@daikokuya.co.uk>
5070
5071 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
5072 to c-copts.c.
5073 (warn_multichar): Die.
5074 (cb_register_builtins): Export.
5075 * c-common.h (warn_multichar, preprocess_file): Remove.
5076 (cb_register_builtins): New.
5077 * c-lang.c (c_init): Remove.
5078 (LANG_HOOKS_INIT): Use c_objc_common_init.
5079 * c-lex.c (init_c_lex): Don't canonicalize filename.
5080 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
5081 (preprocess_file): Make static. Update for cpplib.
5082 (c_common_decode_option): Remove warn_multichar. Use in_fname.
5083 (c_common_post_options): Set some cpp options here.
5084 (c_common_init): Move from c-common.c.
5085 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
5086 * cpplib.h (struct cpp_options): Remove in_fname.
5087 (cpp_preprocess_file): Update.
5088 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
5089
f3f268dd
KG
50902002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5091
5092 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
5093
f0201fba
KG
50942002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5095
5096 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
5097 backslash in comment preceeding macro definition.
5098 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
5099 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
5100 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
5101
e56fc090
HPN
51022002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
5103
5104 * expr.c (store_expr): In condition for checking if value is
5105 generated in TARGET, move call to expr_size last.
5106
76c3e73e
NB
51072002-08-11 Neil Booth <neil@daikokuya.co.uk>
5108
5109 * c-common.c (c_common_init): Call preprocess_file instead.
5110 (c_common_finish): Move to c-opts.c.
5111 * c-common.h (preprocess_file): new.
5112 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
5113 check_deps_environment_vars, c_common_finish): New.
5114 (c_common_decode_option): Update for out_fname and dependencies.
5115 * cppinit.c (init_dependency_output, output_deps): Remove.
5116 (cpp_destroy): Update prototype.
5117 (cpp_add_dependency_target): New.
5118 (cpp_read_main_file): Don't overlay a buffer.
5119 (cpp_finish): Take a deps output stream and write deps to it.
5120 Return the error count.
5121 (cpp_post_options): Don't canonicalize out_fname, or do anything
5122 with dependencies.
5123 * cpplib.h (struct cpp_options): Remove out_fname and
5124 preprocess_only.
5125 (cpp_add_dependency_target): New.
5126 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
5127 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
5128 set preprocess_only. Don't handle the output stream directly.
5129
e0c32c62
KG
51302002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5131
5132 * dsp16xx.c (print_operand): Fix format specifier.
5133 * dsp16xx.md: Avoid automatic aggregate initialization.
5134 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
5135 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
5136 integer constant modifier.
5137 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
5138 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
5139 guards.
5140 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
5141 * v850.c (v850_select_section): Mark parameter with
5142 ATTRIBUTE_UNUSED.
5143 * global.c (global_alloc): Const-ify.
5144 * ra-colorize.c (hardregset_to_string): Fix format specifier.
5145
7ae8cf75
KG
51462002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5147
5148 * darwin-c.c (darwin_pragma_options): Const-ify.
5149 * darwin.c (machopic_non_lazy_ptr_name,
5150 machopic_validate_stub_or_non_lazy_ptr): Likewise.
5151 (machopic_indirect_data_reference): Wrap variables in macros
5152 controlling their use.
5153 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
5154 (machopic_select_section): Use parentheses around && within ||.
5155 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
5156
8819cab5
KG
51572002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5158
5159 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
5160 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
5161 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
5162 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
5163 mdr_try_remove_redundant_insns, track_w_reload,
5164 mdr_try_wreg_elim): Make function static to match prototype.
5165 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
5166 parameter with ATTRIBUTE_UNUSED.
5167
ab2877a3
KG
51682002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5169
5170 * arc.c (arc_init): Don't use ISO C style function definitions.
5171 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
5172 arm_get_strip_length, arm_strip_name_encoding): Likewise.
5173 * avr.h (progmem_section): Likewise.
5174 * h8300.c h8300_asm_insn_count): Likewise.
5175 * m32r.c (init_idents): Likewise.
5176 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
5177 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
5178 * xtensa.c (xtensa_build_va_list): Likewise.
5179
08767a6f
NB
51802002-08-11 Neil Booth <neil@daikokuya.co.uk>
5181
5182 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
5183 * c-opts.c (parse_option): Rename find_opt.
5184 (set_std_c99): New function.
5185 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
5186 (missing_arg): Remove OPT_std_bad. Handle -o.
5187 (c_common_decode_option): Handle input and output file names,
5188 -o and -remap. Clean up -std= handling.
5189 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
5190 (cpp_handle_option): Similarly. Don't handle filenames.
5191
db01f480
JH
5192Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
5193
5194 * i386.c (classify_argument): Fix computing of field's offsets.
5195
a7701995
AJ
51962002-08-11 Andreas Jaeger <aj@suse.de>
5197
5198 PR target/7531:
5199 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
5200
2516f236
ZL
52012002-08-10 Ziemowit Laski <zlaski@apple.com>
5202
5203 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
5204 reference to clk_objective_c with flag_objc.
5205 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
5206 Likewise.
5207 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
5208
f749a36b
NB
52092002-08-10 Neil Booth <neil@daikokuya.co.uk>
5210
5211 * c-opts.c (set_std_cxx98, set_std_c89): New.
5212 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
5213 (c_common_decode_option): Handle new switches from cppinit.c.
5214 Add -std=gnu++98.
5215 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
5216 (no_arg, no_num): Remove.
5217 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
5218 switches apart from -lang-objc and lang-asm.
5219 (cpp_handle_option): Similarly.
5220 * cpplib.h (cpp_set_lang): New.
5221 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
5222 -std=gnu++98.
5223 * objc/lang-specs.h: Remove -ansi.
5224
77abb5d8
JH
5225Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
5226 Graham Stott
5227
5228 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
5229 errors.
5230
fac37dc4
KG
52312002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5232
d950dee3
KG
5233 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
5234 emit_jump_insn): Fix uninitialized variable.
5235 * gcov.c (init_line_info): Likewise.
5236 * genautomata.c (transform_3): Add braces around ambiguous
5237 else.
5238 * ifcvt.c (cond_exec_process_insns): Mark parameter with
5239 ATTRIBUTE_UNUSED.
5240 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
5241 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
5242 variable.
5243
fac37dc4
KG
5244 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
5245 warnings in output files.
5246
0f7866e7
ZL
52472002-08-09 Ziemowit Laski <zlaski@apple.com>
5248
5249 * c-common.c (flag_objc): New.
5250 * c-common.h (c_language_kind): Get rid of clk_objective_c
5251 enum value.
5252 (flag_objc): New extern declaration.
5253 * c-decl.c (implicitly_declare): Call objc_check_decl
5254 instead of maybe_objc_check_decl.
5255 (finish_decl): Likewise.
5256 (grokfield): Likewise.
5257 (finish_struct): Likewise.
5258 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
5259 (maybe_objc_comptypes): Rename to objc_comptypes.
a7701995 5260 (maybe_building_objc_message_expr): Rename to
0f7866e7
ZL
5261 objc_message_selector.
5262 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
5263 replace with flag_objc as needed.
5264 * c-opts.c (c_common_init_options): Likewise.
5265 (c_common_decode_option): Likewise.
5266 * c-parse.in (init_reswords): Likewise.
5267 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
5268 (maybe_objc_comptypes): Rename to objc_comptypes.
a7701995 5269 (maybe_building_objc_message_expr): Rename to
0f7866e7
ZL
5270 objc_message_selector.
5271 * c-typeck.c (comptypes): Call objc_comptypes instead of
5272 maybe_objc_comptypes, and/or objc_message_selector instead of
5273 maybe_building_objc_message_expr.
5274 (comp_target_types): Likewise.
5275 (convert_for_assignment): Likewise.
5276 (warn_for_assignment): Likewise.
5277 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
5278 independently of those for other languages.
5279 * objc/objc-act.c (maybe_objc_comptypes): Delete.
5280 (maybe_objc_check_decl): Delete.
a7701995 5281 (maybe_building_objc_message_expr): Rename to
0f7866e7
ZL
5282 objc_message_selector.
5283 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
5284 clk_objective_c; set flag_objc flag.
5285
c512fd7b
TM
52862002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5287
5288 * ifcvt.c (find_if_case_2): Test correct basic block for size.
5289
5e1bf043 52902002-08-09 Dale Johannesen <dalej@apple.com>
c512fd7b 5291
5e1bf043
DJ
5292 * config/rs6000/rs6000.md: Add sibcall patterns.
5293 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
5294 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
5295 Rewritten to handle sibcalls.
5296 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
5297 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
5298
2043c38e
NS
52992002-08-08 Nathan Sidwell <nathan@codesourcery.com>
5300
5301 * profile.c (da_file_name): New static var.
5302 (init_branch_prob): Initialize it.
5303 (end_branch_prob): Remove da file.
5304
5305 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
41685063 5306 * configure.in (coverage_flags): Default to nothing.
2043c38e
NS
5307 * configure: Rebuilt.
5308
4b7091eb
NB
53092002-08-09 Neil Booth <neil@daikokuya.co.uk>
5310
5311 * Makefile.in (c-opts.o): Update
5312 * c-opts.c: Include intl.h.
5313 (print_help): Move from cppinit.c. Remove unused options.
5314 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
5315 (missing_arg): Complain for switches without an argument.
5316 (c_common_decode_option): Reject missing joined arguments.
5317 Handle new switches from cppinit.c.
5318 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
5319 (cpp_handle_option): Similarly.
5320 (print_help): Moved to c-opts.c.
5321 * cpplib.h (struct cpp_options): Remove help_only.
5322 * gcc.c (cpp_unique_options): Remove -$.
5323 * doc/cppopts.texi: Undocument -h.
5324
9e20be0c
JJ
53252002-08-08 Jakub Jelinek <jakub@redhat.com>
5326
5327 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
5328 legitimate constant.
5329 (legitimate_pic_operand_p): Neither pic operand.
5330 (legitimate_address_p): But legitimate address.
5331 (get_thread_pointer): Generate MEM/u instead of CONST around
5332 UNSPEC_TP.
5333 (print_operand): Remove printing of UNSPEC_TP.
5334 (print_operand_address): And print it here.
5335
7b9be5c7 53362002-08-08 Devang Patel <dpatel@apple.com>
9e20be0c 5337
a7701995
AJ
5338 * objc/objc-act.c (build_selector_translation_table): Issue warning,
5339 when -Wselector is used,if method for which selector is being
7b9be5c7 5340 created does not exist.
a7701995 5341
5615d8fd
SC
53422002-08-08 Stephen Clarke <stephen.clarke@superh.com>
5343
5344 * config/sh/sh.c (prepare_move_operands): Only call
5345 target_reg_operand if TARGET_SHMEDIA.
a7701995 5346
3b85fe5f
JJ
53472002-08-08 Jakub Jelinek <jakub@redhat.com>
5348
5349 * config/rs6000/rs6000.h, config/rs6000/aix.h,
5350 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
5351 two patches.
5352 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
5353
e10c79fe
LB
53542002-08-08 Lars Brinkhoff <lars@nocrew.org>
5355 Richard Henderson <rth@redhat.com>
5356
5357 * emit-rtl.c (gen_rtx_REG): After reload, only return
5358 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
5359
aa2a83dc
JJ
53602002-08-08 Jakub Jelinek <jakub@redhat.com>
5361
5362 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
5363 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
5364 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
5365 macro.
5366
aeaf4d25
AN
53672002-08-08 Adam Nemet <anemet@lnxw.com>
5368
5369 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
5370 register.
5371 (thumb_expand_prologue): Likewise.
5372 (thumb_output_function_prologue): Likewise.
5373 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
5374 the additional push of the PIC register.
5375
22aa533e
NS
53762002-08-08 Nathan Sidwell <nathan@codesourcery.com>
5377
5378 * configure.in (enable_coverage): New enable switch.
5379 * configure: Rebuilt.
5380 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
5381 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
5382 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
5383 (mostlyclean): Remove coverage files.
5384 * doc/install.texi: Document enable_coverage.
5385
5386 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
5387 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
5388 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
5389 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
5390 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
5391 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
5392 files.
a7701995 5393
18bdccaa
NB
53942002-08-08 Neil Booth <neil@daikokuya.co.uk>
5395
5396 * c-opts.c (cpp_opts): New.
5397 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
5398 (c_common_decode_options): Handle cpplib switches.
5399 (c_common_init_options): Set cpp_opts.
5400 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
5401 (cpp_handle_option): Similarly.
5402
774b5662
DE
54032002-08-08 David Edelsohn <edelsohn@gnu.org>
5404
5405 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
5406 (TARGET_ALTIVEC_ABI): Same.
5407 (TARGET_ALTIVEC_VRSAVE): Same.
5408
5409 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
5410 icode not CODE_FOR_nothing. Change switch to if.
5411
957e9e48
AM
54122002-08-08 Alan Modra <amodra@bigpond.net.au>
5413
5414 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
5415
daf06049
JJ
54162002-08-08 Jakub Jelinek <jakub@redhat.com>
5417
5418 * stor-layout.c (place_union_field): For bitfields if
5419 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
5420 TYPE_USER_ALIGN.
5421
043d39a6
JDA
54222002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5423
5424 * pa.c (struct deferred_plabel): Constify name field.
5425
34bb92e3
NB
54262002-08-07 Neil Booth <neil@daikokuya.co.uk>
5427
5428 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
5429
3ec5d64d
JDA
54302002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5431
5432 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
5433 local_prefix are the same.
5434 * configure: Rebuilt.
5435
ad9335eb
JJ
54362002-08-07 Jakub Jelinek <jakub@redhat.com>
5437 Richard Henderson <rth@redhat.com>
5438
5439 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
5440 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
5441 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
5442 (place_field): Likewise.
5443 * config/i386/i386.c (x86_field_alignment): Don't check
5444 DECL_USER_ALIGN here.
5445 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
5446 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
5447 prototype.
5448 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
5449 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
5450 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
5451 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
5452 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
5453 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
5454
0b6f2917
NB
54552002-08-07 Neil Booth <neil@daikokuya.co.uk>
5456
5457 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
5458 * c-common.c: Don't include tree-inline.h.
5459 (c_common_init_options, c_common_post_options): Move to c-opts.c.
5460 * c-common.h (c_common_decode_option): New.
5461 * c-decl.c (c_decode_option): Remove.
5462 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
5463 * c-opts.c: New file.
5464 * c-tree.h (c_decode_option): Remove.
5465 * doc/passes.texi: Update.
5466 * objc/objc-act.c (objc_decode_option): Remove.
5467 * objc/objc-act.h (objc_decode_option): Remove.
5468 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
5469 c_common_decode_option.
5470
e49ec17d
CD
54712002-08-07 Chris Demetriou <cgd@broadcom.com>
5472
5473 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
5474 dependency on TARGET_DOUBLE_FLOAT.
5475
ac1ca451
SC
54762002-08-07 Stephen Clarke <stephen.clarke@superh.com>
5477
5478 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
5479 overwrite callee-save registers. Fix comment.
5480
af34e51e
CD
54812002-08-06 Chris Demetriou <cgd@broadcom.com>
5482
5483 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
5484 in target_flags based on ISA, if it was not set on the command
5485 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
5486 support Branch Likely instructions.
5487 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
5488 (TARGET_BRANCHLIKELY): Likewise.
5489 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
5490 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
5491 ISA_HAS_BRANCHLIKELY.
5492 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
5493 * doc/invoke.texi: Document new MIPS -mbranch-likely and
5494 -mno-branch-likely options.
5495
2631af95
KG
54962002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5497
f538618e
KG
5498 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
5499
2631af95
KG
5500 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
5501 $(GCONFIG_H).
5502
1ae0ccb6
AH
55032002-08-06 Aldy Hernandez <aldyh@redhat.com>
5504
8537ed68
ZW
5505 * c-decl.c (duplicate_decls): Error out for incompatible TLS
5506 declarations.
1ae0ccb6 5507
8537ed68 5508 * testsuite/gcc.dg/tls/diag-3.c: New.
1ae0ccb6 5509
8d3e27d1 55102002-08-06 Dale Johannesen <dalej@apple.com>
db4c55f6 5511
8d3e27d1 5512 * c-common.c (fname_decl): Use line number 0 for
8537ed68 5513 __func__, to avoid confusing debuggers.
8d3e27d1 5514
8b219a76
NS
55152002-08-06 Nathan Sidwell <nathan@codesourcery.com>
5516
5517 * gcov.c: Tidy.
5518 (struct line_info, struct coverage): New structures.
5519 (gcov_file_name, gcov_file): Remove globals.
5520 (output_data): Take source file parameter. Fix memory leak. Break
5521 up into ...
5522 (init_line_info, output_line_info, make_gcov_file_name,
5523 accumulate_branch_counts): ... here.
5524 (calculate_branch_probs, function_summary): Adjust.
5525 (main): Adjust.
5526 (function_*): Remove global variables.
5527
317e98c0
NB
55282002-08-06 Neil Booth <neil@daikokuya.co.uk>
5529
5530 * dwarf2out.c: Remove unused macros.
5531
81d41e74
NB
55322002-08-06 Neil Booth <neil@daikokuya.co.uk>
5533
5534 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
5535
58551c23
NB
55362002-08-06 Neil Booth <neil@daikokuya.co.uk>
5537
5538 * cppinit.c (struct lang_flags): Rename trigraphs std.
5539 (set_lang): Update.
5540 * cpplib.h (struct cpp_options): New member std.
5541 * cppmacro.c (_cpp_builtin_macro_text): Use std.
5542 (collect_args): Flag whether to swallow a possible future
5543 comma pasted with varargs.
5544 (replace_args): Use this flag.
5545 * doc/cpp.texi: Update varargs extension documentation.
5546
daeabcd0
JJ
55472002-08-06 Jakub Jelinek <jakub@redhat.com>
5548
5549 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
5550
39e3a681
JJ
55512002-08-06 Jakub Jelinek <jakub@redhat.com>
5552
9812691e
JJ
5553 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
5554 and MODE_CLASS_INT modes.
39e3a681 5555
609a87f3
JJ
55562002-08-06 Jakub Jelinek <jakub@redhat.com>
5557
5558 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
5559 --{enable,disable}-threads is given to configure.
5560 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
5561 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
5562 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
5563 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
5564 Remove thread_file setting here.
5565
ff4c5e7b
DE
55662002-08-06 David Edelsohn <edelsohn@gnu.org>
5567
5568 * doc/install.texi (Binaries): Update Bull Freeware URL.
5569
54f3aa9e
GP
55702002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5571
5572 * doc/gcc.texi (Top): Rename Index to Keyword Index.
5573
d19202ba
NS
55742002-08-05 Nathan Sidwell <nathan@codesourcery.com>
5575
5576 * gcov.c (output_data): Round to % to nearest, tweak formatting.
5577
1bed5ee3
JJ
55782002-08-05 Jakub Jelinek <jakub@redhat.com>
5579
5580 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
5581 of the operands into MINUS_EXPR if code is PLUS_EXPR.
5582
84512347
DR
55832002-08-05 Douglas B Rupp <rupp@gnat.com>
5584
5585 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
5586 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
5587 drectve_section): Define.
5588 * config/i386/t-interix: Replace interix.o rule with winnt.o.
5589 * config/i386/interix.c: Remove.
5590
b835f6f1
GK
55912002-08-05 Geoffrey Keating <geoffk@redhat.com>
5592
5593 * attribs.c: Don't include obstack.h.
5594 * builtins.c: Likewise.
5595 * cfganal.c: Likewise.
5596 * cfgbuild.c: Likewise.
5597 * cfgcleanup.c: Likewise.
5598 * emit-rtl.c: Likewise.
5599 * loop.c: Likewise.
5600 * stmt.c: Likewise.
5601
5602 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
5603
fd291392
GDR
56042002-08-05 Gabriel Dos Reis <gdr@nerim.net>
5605
5606 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
5607
054b7507
CD
56082002-08-04 Chris Demetriou <cgd@broadcom.com>
5609
5610 * doc/invoke.texi: Remove duplicated paragraph describing
5611 TARGET_SWITCHES.
5612
6d9f628e
GK
56132002-08-04 Geoffrey Keating <geoffk@redhat.com>
5614
5615 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
5616 * collect2.h (permanent_obstack): Delete declaration.
5617 * collect2.c (permanent_obstack): Delete definition.
4912a07c 5618 (main): Don't initialize permanent_obstack. Use xstrdup instead.
6d9f628e
GK
5619 * expr.c: Don't include obstack.h.
5620 (permanent_obstack): Delete declaration.
5621 * function.c: Don't include obstack.h.
5622 (permanent_obstack): Delete declaration.
5623 * integrate.c: Don't include obstack.h.
5624 (function_maybepermanent_obstack): Delete declaration.
5625 * print-tree.c (debug_tree): Use x*alloc not permalloc.
5626 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
5627 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
5628 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
5629 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
5630 of permalloc, expralloc, perm_calloc.
5631 * tree.c (permanent_obstack): Delete definition.
5632 (init_ttree): Rename from init_obstacks.
5633 (permalloc): Delete.
5634 (perm_calloc): Delete.
5635 (dump_tree_statistics): Don't print information about
5636 permanent_obstack.
5637 * varasm.c (assemble_start_function): Use xstrdup instead of
5638 permalloc/strcpy.
5639 (assemble_variable): Likewise.
5640 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
5641 permalloc.
5642 (unicosmk_add_extern): Likewise.
5643 * config/c4x/c4x.c (c4x_external_ref): Likewise.
5644 (c4x_global_label): Likewise.
5645 * config/frv/frv.c (frv_encode_section_info): Likewise.
5646 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5647 (i386_pe_record_exported_symbol): Likewise.
5648 * config/mips/mips.c (mips_output_external): Likewise.
5649 (mips_output_external_libcall): Likewise.
5650 * config/pa/pa.c: (permanent_obstack): Delete declaration.
5651 (output_call): Use ggc_strdup instead of allocating on
5652 permanent_obstack.
5653 * config/romp/romp.c: Include ggc.h.
5654 (get_symref): Don't declare permanent_obstack, use ggc_strdup
5655 intead of permanent_obstack.
5656 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
5657 instead of permalloc.
5658 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
5659 instead of permalloc
5660 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
5661 instead of permalloc.
5662 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
5663 permalloc.
5664
36a05131
BS
56652002-08-04 Bernd Schmidt <bernds@redhat.com>
5666
5667 Contribute a port developed primarily by Michael Meissner,
5668 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
5669 * config.gcc: Add frv-elf target.
5670 * config/frv/cmovd.c: New file.
5671 * config/frv/cmovh.c: New file.
5672 * config/frv/cmovw.c: New file.
5673 * config/frv/frv-abi.h: New file.
5674 * config/frv/frv-asm.h: New file.
5675 * config/frv/frv-modes.def: New file.
5676 * config/frv/frv-protos.h: New file.
5677 * config/frv/frv.c: New file.
5678 * config/frv/frv.h: New file.
5679 * config/frv/frv.md: New file.
5680 * config/frv/frvbegin.c: New file.
5681 * config/frv/frvend.c: New file.
5682 * config/frv/lib1funcs.asm: New file.
5683 * config/frv/media.h: New file.
5684 * config/frv/modi.c: New file.
5685 * config/frv/t-frv: New file.
5686 * config/frv/uitod.c: New file.
5687 * config/frv/uitof.c: New file.
5688 * config/frv/ulltod.c: New file.
5689 * config/frv/ulltof.c: New file.
5690 * config/frv/umodi.c: New file.
5691 * config/frv/xm-frv.h: New file.
86a0cbcb
BS
5692
5693 * config/frv/media.h: Removed again.
5694
37b8715b
NS
56952002-08-04 Nathan Sidwell <nathan@codesourcery.com>
5696
5697 * gcov.c (bb_file_time): New static variable.
5698 (object_directory): May also be object file.
5699 (preserve_paths): New static variable.
5700 (print_usage): Adjust.
5701 (options): Adjust.
5702 (process_args): Adjust.
5703 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
5704 file. Find modification date on bb file.
5705 (read_profile): Don't rewind a NULL file.
5706 (format_hwint): New static function.
5707 (function_summary): Use format_hwint.
5708 (output_data): SOURCE_FILE_NAME is never relative to
5709 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
5710 mangling. Adjust output format to make it more machine readable.
5711 * doc/gcov.texi: Document & clarify semantics.
a7701995 5712
d500c5d7
JM
57132002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
5714
5715 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
5716
ea67fe71
NS
57172002-08-04 Nathan Sidwell <nathan@codesourcery.com>
5718
5719 * gcc.c (cc1_options): Pass output file as auxbase when
5720 appropriate.
5721 * profile.c (init_branch_prob): FILENAME has already had ending
5722 stripped.
5723 * final.c (end_final): Likewise.
5724 * toplev.c (aux_base_name): New global.
5725 (compile_file): Pass aux_base_name to init init_branch_prob and
5726 end_final.
5727 (independent_decode_option, case 'a'): New auxinfo options.
5728 (case 'd'): Protect against mising basename.
5729 (do_compile): Initialize aux_base_name.
5730 * toplev.h (aux_base_name): New global.
5731 * doc/invoke.texi: Adjust documentation.
5732
b23c054d
NS
57332002-08-04 Nathan Sidwell <nathan@codesourcery.com>
5734
5735 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
5736 of TARGET_ALIGN_DOUBLE.
5737
04c1334c 57382002-08-04 Gabriel Dos Reis <gdr@nerim.net>
a7701995 5739
04c1334c
GDR
5740 * diagnostic.c (inform): New function.
5741 * diagnostic.h (inform): Declare.
a7701995 5742
e34eaae5
DE
57432002-08-03 David Edelsohn <edelsohn@gnu.org>
5744
5745 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
5746 (movhi_internal): Same.
5747 (movqi_internal): Same.
5748 (movdi_internal64): Same.
5749
5750 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
5751
5752 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
5753 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
5754 (COMMON_ASM_OP): Define.
5755 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
5756 Use ALIGN parameter.
5757 (LOCAL_COMMON_ASM_OP): Define.
5758 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
5759
e7b489c8
RS
57602002-08-03 Roger Sayle <roger@eyesopen.com>
5761
5762 * builtins.def: Define new builtin functions exp, expf, expl,
5763 log, logf and logl (and their __builtin_* variants).
5764 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
5765 Define exp_optab and log_optab.
5766 * optabs.c (init_optans): Initialize exp_optab and log_optab.
5767 * genopinit.c (optabs): Implement exp_optab and log_optab
5768 using exp?f2 and log?f2 patterns.
5769 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
5770 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
5771 (expand_builtin): Ignore the new builtins (and all cos and
5772 sin variants) when not optimizing. Expand new builtins via
5773 expand_builtin_mathfn when flag_unsafe_math_optimizations.
5774
5775 * doc/extend.texi: Document new exp and log builtins.
5776 * doc/md.texi: Document new exp?f2 and log?f2 patterns
5777 (and previously undocumented cos?f2 and sin?f2 patterns).
5778
de8920be
JM
57792002-08-03 Jason Merrill <jason@redhat.com>
5780
5781 * explow.c (int_expr_size): New fn.
5782 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
5783 * expr.h: Declare it.
5784
ba462c8e
KW
57852002-08-02 Krister Walfridsson <cato@df.lth.se>
5786
5787 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
5788 gengtype-* dependencies.
5789
2017ed61
EC
57902002-08-02 Eric Christopher <echristo@redhat.com>
5791
5792 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
5793 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
5794 #ifndef to #undef.
5795 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
5796
055dd007
DE
57972002-08-02 David Edelsohn <edelsohn@gnu.org>
5798
5799 PR optimize/7067
5800 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
5801 small if optimizing for size.
5802
771a2a66
DJ
58032002-08-02 Daniel Jacobowitz <drow@mvista.com>
5804
5805 * configure.in (FORBUILD): Use $build_alias.
5806 * configure: Regenerated.
5807
ac8ab9fe
RS
58082002-08-02 Richard Sandiford <rsandifo@redhat.com>
5809
5810 * config.gcc: Don't include mips/abi64.h in $tm_file.
5811 * hard-reg-set.h (call_really_used_regs): Declare.
5812 * config/mips/abi64.h: Remove file.
5813 * config/mips/linux.h,
5814 * config/mips/iris6.h: Don't include it.
5815 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
5816 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
5817 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
5818 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
5819 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
5820 Bring across definitions from abi64.h.
5821 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
5822 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
5823 (struct mips_args): Use it.
5824 * config/mips/mips.c (mips_conditional_register_usage): Define.
5825
a77a9a18
JM
58262002-08-02 Jason Merrill <jason@redhat.com>
5827
5828 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
5829 * langhooks.c (lhd_expr_size): Define default.
5830 * langhooks.h (struct lang_hooks): Add expr_size.
5831 * explow.c (expr_size): Call it.
5832 * expr.c (store_expr): Don't copy an expression of size zero.
5833 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
5834 to store.
5835 * Makefile.in (builtins.o): Depend on langhooks.h.
5836
a6be5aee
KG
58372002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5838
5839 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
5840 * ra-debug.c: Include "tm_p.h".
5841 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
5842
e3e16ee3
TM
58432002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
5844
5845 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
5846 when not honoring signalling NaNs.
5847 (simplify_ternary_operation): a == b has a definite value
5848 when not honoring NaNs.
5849
b9d8832d
JM
58502002-08-02 Jason Merrill <jason@redhat.com>
5851
5852 * gdbinit.in (pct): New macro.
5853
825abef4
SS
58542002-08-01 Stan Shebs <shebs@apple.com>
5855 Andreas Tobler <toa@pop.agri.ch>
5856
5857 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
5858 plays nice with Darwin headers.
bf2e488f 5859 (_BSD_RUNE_T_DEFINED_): Likewise.
825abef4 5860
56da7207
ZW
58612002-08-01 Zack Weinberg <zack@codesourcery.com>
5862
5863 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
5864 * cppinit.c (cpp_post_options): Likewise.
5865
5866 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
5867 warning about 'LL' suffix (but not 'ULL' etc) when
5868 -Wno-long-long is in effect.
5869
5870 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
5871 Check for failing time()/localtime(), issue a warning, and
5872 make __TIME__ and __DATE__ expand to fallback strings.
5873
5874 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
5875 and __TIME__ when the date and time cannot be determined.
5876
f4857b9b
AM
58772002-08-02 Alan Modra <amodra@bigpond.net.au>
5878
5879 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
5880
77ca7b2e
DJ
58812002-08-01 Daniel Jacobowitz <drow@mvista.com>
5882
5883 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
5884
5b552f76
CD
58852002-08-01 Chris Demetriou <cgd@broadcom.com>
5886
5887 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
5888 (mipsisa64sb1el-*-elf*): Likewise.
5889 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
5890 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
5891 (TARGET_SB1, TUNE_SB1): New macros.
5892 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
5893 -mtune flags.
5894
54fbf6a1
DE
58952002-08-01 David Edelsohn <edelsohn@gnu.org>
5896
5897 * varasm.c (asm_emit_uninitialized): Return false if global BSS
5898 and ASM_EMIT_BSS not supported by target.
5899 (assemble_variable): Do not duplicate uninitialized logic.
5900 Fall through if asm_emit_uninitialized failed.
5901
3d16b407
CD
59022002-08-01 Chris Demetriou <cgd@broadcom.com>
5903
5904 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
5905
fb52d8de
AM
59062002-08-02 Alan Modra <amodra@bigpond.net.au>
5907
80926cc1
AM
5908 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
5909 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
5910
fb52d8de
AM
5911 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
5912 HOST_BITS_PER_WIDE_INT == 64.
5913
a4b5414c
KG
59142002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5915
5916 * df.c (df_insn_table_realloc): Change parameter to unsigned.
5917 * optabs.c (expand_binop): Make variable unsigned.
5918 * simplify-rtx.c (simplify_subreg): Likewise.
5919 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
5920
a03e67c3
FS
59212002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5922
5923 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
5924
de273d3f
RH
59252002-08-01 Richard Henderson <rth@redhat.com>
5926
56da7207 5927 * toplev.c (parse_options_and_default_flags): Don't set
de273d3f
RH
5928 flag_reorder_blocks for -Os.
5929
5930 * config/avr/avr.c (avr_optimization_options): Remove.
5931 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
5932 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
5933 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
5934
4e4d733e
L
59352002-08-01 H.J. Lu <hjl@gnu.org>
5936 Richard Henderson <rth@redhat.com>
5937
5938 * output.h (DECL_READONLY_SECTION): Remove.
5939 (decl_readonly_section): Declare.
5940 * varasm.c (decl_readonly_section): New.
5941 (default_section_type_flags, default_select_section): Use it.
5942 * config/arm/pe.c (arm_pe_unique_section): Likewise.
5943 * config/i386/interix.c (i386_pe_unique_section): Likewise.
5944 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
5945 * config/mcore/mcore.c (mcore_unique_section): Likewise.
5946 * config/mips/mips.c (mips_unique_section): Likewise.
5947
32e9b960
RH
59482002-08-01 Richard Henderson <rth@redhat.com>
5949
5950 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
5951 refers to a subroutine parameter.
5952
81e602b5
JJ
59532002-08-01 Jakub Jelinek <jakub@redhat.com>
5954
5955 * varasm.c (assemble_visibility): Strip name encoding.
5956
ac14c725
ID
59572002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
5958
5959 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
5960 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
5961 when there is no frame pointer.
5962 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
5963 registers properly.
5964 * config/ns32k/__unorddf2.c: New file.
5965 * config/ns32k/__unordsf2.c: New file.
5966 * config/ns32k/t-ns32k: New file.
5967 * config.gcc (ns32k-*-netbsd*): Use it.
5968
17072732
AH
59692002-08-01 Aldy Hernandez <aldyh@redhat.com>
5970
5971 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
5972
c288218a
NB
59732002-08-01 Neil Booth <neil@daikokuya.co.uk>
5974
5975 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
5976
43bfc248
BK
59772002-08-01 Benjamin Kosnik <bkoz@redhat.com>
5978
5979 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
5980
479f2cea
RS
59812002-08-01 Richard Sandiford <rsandifo@redhat.com>
5982
5983 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
5984
02280659
ZD
59852002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5986
5987 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
5988 n_sets): Removed.
5989 (expr_hash_table, set_hash_table): Type changed to ...
5990 (struct hash_table): New type.
5991 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
5992 insert_expr_in_table, insert_set_in_table, compute_hash_table,
5993 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
5994 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
5995 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
5996 (alloc_hash_table): New.
5997 (free_set_hash_table, free_expr_hash_table): Merged to ...
5998 (free_hash_table): New.
5999 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
6000 (compute_hash_table_work): New.
6001 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
6002 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
6003 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
6004 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
6005 hoist_code, one_code_hoisting_pass,
6006 trim_ld_motion_mems): Altered due to changed type of hash tables.
6007
905173eb
ZW
60082002-08-01 Zack Weinberg <zack@codesourcery.com>
6009
6010 * final.c (output_alternate_entry_point):
6011 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
6012
83321d36
KG
60132002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6014
ad0f1765
KG
6015 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
6016 avoid ISO C style function definition.
6017
83321d36
KG
6018 * expr.c (expand_assignment): Delete unused variable.
6019
73e42cf3
TM
60202002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
6021
6022 * c-common.c (cb_register_builtins): Set
6023 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
6024 is given, and to 0 otherwise.
6025 * combine.c (simplify_if_then_else): HONOR_NANS
6026 implies FLOAT_MODE_P.
6027
78df51fe
NB
60282002-08-01 Neil Booth <neil@daikokuya.co.uk>
6029
6030 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
6031 (cpp_handle_option): Don't handle it.
6032 (print_help): Update.
6033 * doc/cppopts.texi: Update.
6034
abecfc8f
NB
60352002-08-01 Neil Booth <neil@daikokuya.co.uk>
6036
6037 * c-common.c (cb_register_builtins): If C++, define
6038 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
6039 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
6040cp:
6041 * lang-specs.h: Simplify in accordance with new code in
6042 c-common.c.
6043
4078b403
NB
60442002-08-01 Neil Booth <neil@daikokuya.co.uk>
6045
6046 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
6047 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
6048 * c-decl.c: Move all warning and flag variables to c-common.c.
6049 * c-format.c: Move all warning variables to c-common.c.
6050 * c-tree.h: Move all warning and flag declarations to c-common.h.
6051 * objc/objc-act.c: Move all warning variables to c-common.c.
6052 (flag_warn_protocol): Rename warn_protocol.
6053
692f5611
JDA
60542002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6055
6056 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
6057
c7a009a2 60582002-07-31 Graham Stott <graham.stott@btinternet.com>
480e7ded 6059
905173eb 6060 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
480e7ded
GS
6061 .section prefix.
6062
b069de3b
SS
60632002-07-31 Stan Shebs <shebs@apple.com>
6064
6065 * config.gcc (i[34567]86-*-darwin*): New configuration.
6066 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
6067 defining.
6068 (TARGET_ENCODE_SECTION_INFO): Ditto.
6069 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
6070 * config/darwin.c (machopic_indirect_data_reference): Remove
6071 setting of RTX_UNCHANGING_P.
6072 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
6073 not to be applied to sums.
6074 * config/i386/t-darwin: New file.
6075 * config/i386/darwin.h: New file.
6076 * config/i386/i386.h (TARGET_MACHO): Add default definition.
6077 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
6078 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
6079 label and not the GOT add.
6080 (constant_address_p): For Mach-O, seeing a CONST is enough.
6081 (legitimate_pic_address_disp_p): Add a Mach-O case.
6082 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
6083 (legitimize_pic_address): Use generic Mach-O code to legitimize.
6084 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
6085 if outputting a difference.
6086 (ix86_output_addr_diff_elt): Add Mach-O case.
6087 (ix86_expand_move): Similarly.
6088 (ix86_expand_call): Similarly.
6089 (current_machopic_label_num): New global.
6090 (machopic_output_stub): New function.
6091 (ix86_value_regno): New function.
6092 (ix86_function_value): Use it instead of VALUE_REGNO.
6093 (ix86_libcall_value): Ditto.
6094 * config/i386/unix.h (VALUE_REGNO): Remove.
6095
1de4ecb6
GS
60962002-07-31 Graham Stott <grahas@btinternet.com>
6097
6098 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
905173eb 6099 hash for LABEL_REF's.
1de4ecb6 6100
23368455
GS
61012002-07-31 Graham Stott <grahams@btinternet.com>
6102
6103 * config/rs6000/rs6000.c (spe_init_builtins,
6104 altivec_init_builtins, rs6000_common_init_builtins):
905173eb 6105 Replace ANSI with K&R function def.
23368455 6106
ad72b533
DE
61072002-07-31 David Edelsohn <edelsohn@gnu.org>
6108
6109 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
6110 for CCFPmode.
6111
302359da
RS
61122002-07-31 Richard Sandiford <rsandifo@redhat.com>
6113
6114 * config/mips/crtn.asm: Don't use __mips16 to determine the
6115 return-address offset. Define RA to a suitable temporary
6116 register for the return address.
6117
ead0c1d5
RS
61182002-07-31 Richard Sandiford <rsandifo@redhat.com>
6119
6120 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
6121 constraints to 'd'.
6122
3fb9d48a
CD
61232002-07-30 Chris Demetriou <cgd@broadcom.com>
6124
6125 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
6126 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
6127 patch on 2002-07-29.)
6128 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6129
072cdaed
KG
61302002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6131
506a61b1
KG
6132 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
6133 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
6134 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
6135 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
6136 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
6137 (ASM_GLOBALIZE_LABEL): Delete.
6138 (GLOBAL_ASM_OP): Define.
6139
072cdaed 6140 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
905173eb 6141
072cdaed
KG
6142 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
6143 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
6144
6fd14075
GK
61452002-07-30 Geoffrey Keating <geoffk@redhat.com>
6146
6147 * doc/extend.texi (Hints implementation): Document that GCC
6148 mostly ignores `register'.
6149
2e8f2e8f
TM
61502002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
6151
6152 * flags.h: Declare flag_finite_math_only.
6153 Use it in definition of HONOR_NANS and
6154 HONOR_INFINITIES.
6155 * c-common.c (cb_register_builtins): Emit
6156 __FINITE_MATH_ONLY__ when flag_finite_math_only
6157 is set.
6158 * combine.c (simplify_if_then_else): If
6159 flag_finite_math_only is set, a == b has a
6160 definite value.
6161 * toplev.c: Initialize flag_finite_math_only.
6162 (set_flags_fast_math): Set it on -ffast-math.
6163 (flag_fast_math_set_p): Test it.
6164 * doc/invoke.texi: Document -ffinite-math-only.
6165
a538e580
RH
61662002-07-30 Richard Henderson <rth@redhat.com>
6167
6168 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
6169 (noce_process_if_block): Likewise.
6170
26e20555
BS
61712002-07-30 Bernd Schmidt <bernds@redhat.com>
6172
6173 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
6174 Bail out early if false_expr is NULL and we'd crash due to this.
79cbc1f7
BS
6175 * genemit.c (gen_expand): Recognize return insns even if the return
6176 appears in a parallel.
d8088c6f
BS
6177 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
6178 * config/fp-bit.c: Likewise.
6179 * doc/tm.texi: Document it.
905173eb 6180
0559cc77
DE
61812002-07-30 David Edelsohn <edelsohn@gnu.org>
6182 Zack Weinberg <zack@codesourcery.com>
6183
6184 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
6185 CODE_FOR_nothing. Change switch to if.
6186 (rs6000_expand_binop_builtin): Same.
6187 (rs6000_expand_builtin): Expand builtin if target support enabled.
6188 (rs6000_init_builtins): Init builtin if target support enabled.
6189 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
6190
60b8aa94
FS
61912002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6192
6193 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
6194
714fb710
RS
61952002-07-30 Richard Sandiford <rsandifo@redhat.com>
6196
6197 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
6198
c608a684
R
6199Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
6200
6201 * sh.md (cond_delay_slot): New attribute.
6202 (cbranch delay): Use it for anulled-true case.
6203 (stuff_delay_slot): New pattern.
6204 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
6205 delay slot insn.
6206 (gen_far_branch): Emit stuff_delay_slot pattern.
6207
0a756401
R
6208Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6209
6210 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
6211
68e82b83
KH
62122002-07-30 Kazu Hirata <kazu@cs.umass.edu>
6213
6214 * fold-const.c: Fix comment typos.
6215 * gcse.c: Likewise.
6216 * reload1.c: Likewise.
6217
fe6b547a
AH
62182002-07-29 Aldy Hernandez <aldyh@redhat.com>
6219
6220 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
6221 for TARGET_SPE.
6222
7ff4a7ef
GDR
62232002-07-30 Gabriel Dos Reis <gdr@nerim.net>
6224
6225 * c-pretty-print.h (pp_c_statement): Declare.
6226 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
6227 (pp_c_statement): Define.
6228
4ad5e05d
KG
62292002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6230
6231 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
6232 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
6233 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
6234 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
6235 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
6236 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
6237
6238 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
6239 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
6240
1e6a3e1e
GDR
62412002-07-30 Gabriel Dos Reis <gdr@nerim.net>
6242
6243 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
6244 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
6245 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
6246 (pp_c_expression): Update.
6247
1dcd444b
KG
62482002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6249
6250 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
6251 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
6252 * alpha/vms-ld.c (main): Likewise.
6253 * dsp16xx.c (double_reg_to_memory): Likewise.
6254 * mcore.c (mcore_expand_prolog): Likewise.
6255 * cppfiles.c (read_name_map): Likewise.
6256 * gensupport.c (process_rtx, identify_predicable_attribute,
6257 alter_test_for_insn): Likewise.
6258 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
6259
e62f4abc
RS
62602002-07-29 Roger Sayle <roger@eyesopen.com>
6261
6262 * builtins.c (expand_builtin): Change the default behavior to
905173eb 6263 only issue an error if the builtin function doesn't have a
e62f4abc
RS
6264 fallback library call. Remove several cases handled by the
6265 new default.
6266
0cd2fb44
JDA
62672002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
6268
6269 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
6270 floating point format of the target is IEEE.
6271 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
6272 format of the target is DEC.
6273
b642261e
RH
62742002-07-29 Richard Henderson <rth@redhat.com>
6275
6276 * unroll.c (verify_addresses): Remove.
6277 (find_splittable_givs): Never split DEST_ADDR givs.
6278
cba57c9d
GK
62792002-07-29 Geoffrey Keating <geoffk@redhat.com>
6280
6281 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
6282 is exhaustive.
6283 (Files): Improve documentation on generated source files.
6284
6285 * doc/extend.texi (Translation implementation): Document what
6286 diagnostics look like.
6287 (Identifiers implementation): Document that there's normally no
6288 limit on identifier names.
6289 (Integers implementation): Document two's complement.
8d9afc4e 6290 (Hints implementation): Document that GCC honors 'inline', mostly.
cba57c9d
GK
6291 (Preprocessing directives implementation): Document that GCC
6292 requires the current time.
6293
76a8ecba
GDR
62942002-07-30 Gabriel Dos Reis <gdr@nerim.net>
6295
6296 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
6297 (pp_initializer): New macro.
6298 (pp_c_initializer): Declare.
6299 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
6300 (pp_c_initializer): Define.
6301 (pp_c_initializer_list): New function.
6302 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
6303 VECTOR_CST, CONSTRUCTOR.
6304 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
905173eb 6305 IMAGPART_EXPR.
76a8ecba
GDR
6306 (pp_c_cast_expression): Handle FLOAT_EXPR.
6307 (pp_c_assignment_expression): Handle INIT_EXPR.
6308 (pp_c_expression): Update.
6309
4307be72
NB
63102002-07-30 Neil Booth <neil@daikokuya.co.uk>
6311
6312 * objc/objc-act.c (objc_init): Return immediately if filename
6313 is NULL.
6314
6d439235
EC
63152002-07-29 Eric Christopher <echristo@redhat.com>
6316
905173eb
ZW
6317 * config/mips/elf.h: Remove ecoff.h and gofast includes.
6318 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
6319 (SDB_DEBUGGING_INFO): Undefine.
6320 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
6d439235
EC
6321 (PUT_SDB_SIZE): Remove.
6322 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
905173eb
ZW
6323 (STARTFILE_SPEC): Add isa3264 define.
6324 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
6325 * config/mips/ecoff.h: Remove. and here...
6326 * config/mips/iris3.h: and here...
6327 * config/mips/sni-svr4.h: and here...
6328 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
6d439235
EC
6329 Add assembler -mmdebug options for non-dwarf debugging.
6330 * config/mips/r3900.h: Remove debug info defines.
905173eb
ZW
6331 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
6332 * config/mips/isa3264.h: Ditto.
6333 * config/mips/t-isa3264: Fix up for file removal and gofast configure
6334 change.
6335 * config/mips/t-elf: Ditto.
6336 * config/mips/t-ecoff: Ditto.
6337 * config/mips/t-r3900: Ditto.
6338 * config/mips/t-iris5-6: Ditto.
6339 * config/mips/t-isa3264: Ditto.
6340 * config/mips/t-linux: Remove.
6341 * config/mips/t-netbsd: Remove.
6342 * config/mips/t-mips: New file.
6343 * config/mips/t-gofast: Ditto.
6344 * config/mips/netbsd.h: Remove unnecessary undefines.
6345 * config/mips/linux.h: Remove #include of mips.h.
6346 * config.gcc: Add mips.h include for elf targets. Remove tm_file
6347 for ecoff. Add gofast configure option for mips.
6d439235 6348
4357a6c3
CD
63492002-07-29 Chris Demetriou <cgd@broadcom.com>
6350
6351 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
6352 linker scripts use STARTUP directives consistently.
6353 * configure: Regenerate.
6354 * config.in: Regenerate.
6355 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
6356 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
6357 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6358 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
6359 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
6360 will be the same.
6361
9a5cd606
AH
63622002-07-29 Aldy Hernandez <aldyh@redhat.com>
6363
6364 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
6365
a23acaa6
AH
63662002-07-29 Aldy Hernandez <aldyh@redhat.com>
6367
6368 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
6369
10ed84db
AH
63702002-07-29 Aldy Hernandez <aldy@quesejoda.com>
6371
6372 * config/rs6000/rs6000.md: Move altivec patterns from here...
6373
6374 * config/rs6000/altivec.md: ...to here.
6375
c3021e5d
AH
63762002-07-29 Aldy Hernandez <aldyh@redhat.com>
6377
6378 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
6379
6f1087be
RH
63802002-07-29 Richard Henderson <rth@redhat.com>
6381
6382 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
6383 set_mem_attributes and add BITPOS argument. Subtract it from
6384 OFFSET when same is adjusted.
6385 (set_mem_attributes): New wrapper function.
6386 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
6387 remove offset adjustment hack.
6388 * expr.h (set_mem_attributes_minus_bitpos): Declare.
6389
61ccbcfd
GDR
63902002-07-29 Gabriel Dos Reis <gdr@nerim.net>
6391
6392 * Makefile.in (C_OBJS): Include c-pretty-print.o
6393 (c-pretty-print.o): Add depency rule.
6394 * pretty-print.h: Add more macros.
6395 * c-pretty-print.c: New file.
6396 * c-pretty-print.h: Likewise.
6397
09101f56
AH
63982002-07-29 Aldy Hernandez <aldyh@redhat.com>
6399
6400 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
6401 constants to __ev64_s32__.
6402 (__internal_ev_mwhgsmian): Same.
6403 (__internal_ev_mwhgsmfan): Same.
6404 (__internal_ev_mwhgssfan): Same.
6405 (__internal_ev_mwhgumiaa): Same.
6406 (__internal_ev_mwhgsmiaa): Same.
6407 (__internal_ev_mwhgsmfaa): Same.
6408 (__internal_ev_mwhgssfaa): Same.
6409
af673a52
DE
64102002-07-29 David Edelsohn <edelsohn@gnu.org>
6411
6412 * varasm.c (assemble_variable): Narrow test for uninitialized
6413 without BSS target support.
6414
6c208acd
NS
64152002-07-29 Nathan Sidwell <nathan@codesourcery.com>
6416
6417 * profile.c: Add file comment describing the overall algorithm and
6418 structures.
6419 (struct edge_info): Add comments.
6420 (struct bb_info): Add comments.
6421 * basic-block.h (EDGE_*): Add comments.
6422 * doc/gcov.texi (Gcov Data Files): Document bit flags.
6423
624f0d60
BW
64242002-07-29 Bob Wilson <bob.wilson@acm.org>
6425
6426 * config/xtensa/elf.h, config/xtensa/linux.h
6427 (TARGET_OS_CPP_BUILTINS): Define.
6428 (CPP_PREDEFINES): Remove.
6429 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
6430 (CPP_SPEC): Remove.
6431
2199e5fa
ZW
64322002-07-29 Zack Weinberg <zack@codesourcery.com>
6433
6434 * gensupport.c: Include hashtab.h.
6435 (insn_elision, condition_table, hash_c_test, cmp_c_test,
6436 maybe_eval_c_test): New routines and data structures to
6437 support insn elision.
6438 (init_md_reader): Read and initialize the condition_table.
6439 (read_md_rtx): Discard insn patterns whose C test is provably
6440 always false.
6441 * gensupport.h: Declare new functions and data structures.
6442
6443 * genconditions.c, dummy-conditions.c: New files.
6444 * Makefile.in: Build genconditions; run it to construct
6445 insn-conditions.c; build that and link it into most gen*
6446 programs.
6447 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
6448 (GEN): Delete, unused.
6449 (STAGESTUFF): Update.
6450
6451 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
6452 CODE_FOR_nothing for all elided patterns.
6453 (main): Tweaked to support this.
6454 * genflags.c (gen_proto): Emit a static inline generator
6455 function here for all elided patterns, which simply returns
6456 NULL_RTX.
6457 (gen_insn): Do not define HAVE_xxx for elided patterns.
6458 (main): Tweaked to support this. No need to forward-declare
6459 struct rtx_def.
6460 * genrecog.c: Do not bother emitting the C test if it's known
6461 to be true at compile time.
6462
6ab185d6
MS
64632002-07-29 Mike Stump <mrs@apple.com>
6464
6d439235 6465 * config.gcc (target_gtfiles): Initialize, as otherwise cross
2199e5fa 6466 compilers hosted on powerpc-apple-darwin6.0 won't even build.
6ab185d6 6467
72b075d1
RE
64682002-07-29 Richard Earnshaw <rearnsha@arm.com>
6469
6470 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
6471 remove clobber of LR.
6472 (sibcall_insn, sibcall_value_insn): Update accordingly.
6473 (sibcall_epilogue): Remove debugging comment from assembler stream.
6474
f63c45ec
GDR
64752002-07-29 Gabriel Dos Reis <gdr@nerim.net>
6476
6477 * pretty-print.h: Define more macros.
6478 * diagnostic.h (output_formatted_integer): Moved from...
6479 * diagnostic.c: ... here.
6480
c27c15db
KG
64812002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6482
6483 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
6484
99086d59
ZW
64852002-07-28 Zack Weinberg <zack@codesourcery.com>
6486
6487 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
6488 arguments. Always use ".-symbol" as expression argument.
6489 * doc/tm.texi: Update to match. Document requirement for
6490 ".size symbol, .-symbol" to be acceptable to assembler.
6491
6492 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
6493 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
6494 config/i386/freebsd-aout.h, config/i386/sco5.h,
6495 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
6496 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
6497
dd86aabf
KG
64982002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6499
6fd327e9
KG
6500 * Makefile.in (gengtype-lex.c): Fix error in last change.
6501
8155cedd
KG
6502 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
6503 backslash.
6504
dd86aabf
KG
6505 * Makefile.in (vmsdbgout.o): Depend on function.h.
6506
6507 * vmsdbgout.c: Include function.h.
6508
d4348177
AM
65092002-07-28 Alan Modra <amodra@bigpond.net.au>
6510
6511 * prefix.c (update_path): Don't strip single `.' path components
6512 unless stripping a later `..' component. Exit loop as soon as
6513 a valid path is found.
6514
c2ef6d34
RS
65152002-07-27 Roger Sayle <roger@eyesopen.com>
6516
6517 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
6518 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
6519 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
6520 floating point unordered comparisons (e.g. __builtin_isgreater)
6521 as const, and leave the remaining GCC_BUILTINs unchanged.
6522
6523 * c-decl.c (builtin_function): No need to explicitly mark
6524 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
6525
52bfebf0
RS
65262002-07-27 Roger Sayle <roger@eyesopen.com>
6527
6528 * Makefile.in: rtlanal.o now depends upon real.h.
6529
6530 * flags.h [flag_signaling_nans]: New flag.
6531 [HONOR_SNANS]: New macro.
6532
6533 * toplev.c [flag_signaling_nans]: Initialize to false.
99086d59 6534 (f_options): Add processing for "-fsignaling-nans".
52bfebf0
RS
6535 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
6536 (process_options): flag_signaling_nans implies flag_trapping_math.
6537
6538 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
6539 when -fsignaling-nans. First step to implementing WG14's N965.
6540
6541 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
6542 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
6543 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
6544
6545 * simplify-rtx.c (simplify_relational_operation): Conditionalize
6546 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
6547
6548 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
6549 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
99086d59
ZW
6550 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
6551 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
52bfebf0
RS
6552 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
6553
6554 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
6555
e66f55b8
KG
65562002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6557
6558 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
6559 * gengtype-lex.l (YY_USE_PROTOS): Undef.
6560 (YY_DECL): Define.
6561
a3926fe1
RS
65622002-07-27 Roger Sayle <roger@eyesopen.com>
6563
6564 * doc/invoke.texi: Document that both -fno-builtin-foo and
6565 -fno-builtin are supported by the g++ front-end.
6566
ef69da62
SS
65672002-07-27 Stan Shebs <shebs@apple.com>
6568
6569 * configure.in: Rename config_gtfiles to target_gtfiles.
6570 * configure: Regenerate.
6571 * doc/gty.texi: Update reference.
6572 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
6573 instead of appending to it.
6574
a4b0320c
AH
65752002-07-25 Aldy Hernandez <aldyh@redhat.com>
6576
6577 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
6578 vectors are split into two registers.
6579 (function_arg): Same.
6580
c427db5d
R
6581Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
6582
6583 * pa.md (extv): Check predicates before emitting extv_32.
6584
57ac7be9
AM
65852002-07-27 Alan Modra <amodra@bigpond.net.au>
6586
6587 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
6588 (rs6000_traceback): New var.
6589 (rs6000_override_options): Set rs6000_traceback.
6590 (rs6000_output_function_epilogue): Implement traceback options.
6591 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
6592 (rs6000_traceback_name): Declare.
6593
6594 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
6595 label reference when NO_PROFILE_COUNTERS.
6596
8e51619a
JM
65972002-07-26 Jason Merrill <jason@redhat.com>
6598
6599 * function.c (assign_parms): Handle frontend-directed pass by
6600 invisible reference.
6601
b41f25cf
NB
66022002-07-26 Neil Booth <neil@daikokuya.co.uk>
6603
6604 * doc/cppopts.texi: Update.
6605
c2734e05
NB
66062002-07-26 Neil Booth <neil@daikokuya.co.uk>
6607
6608 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
6609 warnings on assertions.
6610
c372b0fa
NB
66112002-07-26 Neil Booth <neil@daikokuya.co.uk>
6612
6613 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
6614 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
6615 RID_COMPL): Remove.
6616 * c-parse.in (rid_to_yy): Similarly.
6617
558ee214
JM
66182002-07-26 Jason Merrill <jason@redhat.com>
6619
6620 * c-dump.c: Resurrect.
6621 * tree-dump.c: Move C-specific stuff to c-dump.c.
6622 * c-common.h: Declare c_dump_tree.
6623 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
6624 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
6625 (c-dump.o): New rule.
6626
ce71f754
AM
66272002-07-26 Alan Modra <amodra@bigpond.net.au>
6628
6629 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
6630 PowerPC64. Replace "T" and "S" constraints with "n" when the
6631 predicate will do. Formatting fixes.
6632 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
6633 as for extzvsi_internal1.
6634
e179e7d7
NB
66352002-07-25 Neil Booth <neil@daikokuya.co.uk>
6636
6637 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
6638 DERIV_END_LABEL_FMT): Remove.
6639 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
6640
a2056183
NB
66412002-07-25 Neil Booth <neil@daikokuya.co.uk>
6642
6643 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
6644 Remove.
6645
308c142a
SS
66462002-07-25 Stan Shebs <shebs@apple.com>
6647
6648 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
6649 local var dwarfp.
6650 (output_compiler_stub): Remove unused locals.
6651 (output_call): Always initialize line number.
6652
59324685
R
6653Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
6654
6655 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
6656 * sh.md (truncdiqi2, movqi_media): Likewise.
6657
77bbd421
NB
66582002-07-25 Neil Booth <neil@daikokuya.co.uk>
6659
6660 * gcse.c (obstack_chunk_alloc): Remove.
6661 (gcse_alloc): Fix to count allocated bytes.
6662 * collect2.c (SYMBOL__MAIN): Remove.
6663
7bad45b0
NB
66642002-07-25 Neil Booth <neil@daikokuya.co.uk>
6665
6666 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
6667 HAVE_TARGET_EXECUTABLE_SUFFIX.
6668
184166b5
R
6669Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
6670
6671 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
6672 SIZE, EXPR and OFFSET.
6673
40cb04f1
RH
66742002-07-25 Richard Henderson <rth@redhat.com>
6675
6676 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
6677 in ARRAY_REF of DECL_P case.
6678
a27fb29b
RS
66792002-07-25 Richard Sandiford <rsandifo@redhat.com>
6680
6681 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
6682 description. Document -mips32, -mips64, and the associated -march
6683 values. Describe the "mipsN" arguments to -march. Say that the
6684 -mipsN options are equivalent to -march. Reword the description
6685 of default type sizes.
6686 * toplev.h (target_flags_explicit): Declare.
6687 * toplev.c (target_flags_explicit): New var.
6688 (set_target_switch): Update target_flags_explicit.
6689 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
6690 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
6691 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
6692 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
6693 * config/mips/mips.h (mips_cpu_info): New struct.
6694 (mips_cpu_string, mips_explicit_type_size_string): Remove.
6695 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
6696 (MIPS_CPP_SET_PROCESSOR): New macro.
6697 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
6698 Define _MIPS_ARCH and _MIPS_TUNE.
6699 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
6700 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
6701 MIPS_ISA_DEFAULT were already defined.
6702 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
6703 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
6704 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
6705 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
6706 (ABI_GAS_ASM_SPEC): Remove.
6707 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
6708 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
6709 Invoke %(asm_abi_default_spec) if no ABI was specified.
6710 (CC1_SPEC): Remove ISA -> register-size rules.
6711 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
6712 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
6713 (mips_cpu_string, mips_explicit_type_size_string): Remove.
6714 (mips_cpu_info_table): New array.
6715 (mips_set_architecture, mips_set_tune): New fns.
6716 (override_options): Rework to make -mipsN equivalent to -march.
6717 Detect more erroneous cases, including those removed from CC1_SPEC.
6718 Don't change the ABI based on architecture, or vice versa.
6719 Unify logic with GAS.
6720 (mips_asm_file_start): Get architecture name from mips_arch_info.
6721 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
6722 (mips_parse_cpu): Take the name of the option as argument. Handle
6723 'from-abi'. Raise an error if the option is wrong.
6724 (mips_cpu_info_from_isa): New fn.
6725
6bbdc759
RS
67262002-07-25 Richard Sandiford <rsandifo@redhat.com>
6727
6728 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
6729 (tablejump_mips162): Likewise.
6730
80a62484
R
6731Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
6732
6733 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
6734 int_mode_for_mode.
6735
ea793912
GDR
67362002-07-25 Gabriel Dos Reis <gdr@nerim.net>
6737
6738 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
99086d59 6739 complaining.
ea793912
GDR
6740 * c-common.h (c_sizeof): Adjust definition.
6741 (c_alignof): Likewise.
6742 * c-tree.h (c_sizeof_nowarn): Now macro.
6743 * c-typeck.c (c_sizeof_nowarn): Remove definition.
6744
2d615444
NB
67452002-07-25 Neil Booth <neil@daikokuya.co.uk>
6746
6747 * c-decl.c (c_decode_option): No need to handle switches
6748 cpplib handles.
6749
2be2ac70
ZW
67502002-07-24 Zack Weinberg <zack@codesourcery.com>
6751
6752 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
6753 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
6754 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
6755 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
6756
6757 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
6758 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
6759 config/cris/aout.h, config/i386/freebsd-aout.h,
6760 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
6761 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
6762 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
6763 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
6764 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
6765 config/xtensa/elf.h, config/xtensa/linux.h:
6766 Use the new macros.
6767 Where possible, remove redundant definitions of SIZE_ASM_OP,
6768 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
6769
518878e1
AH
67702002-07-24 Aldy Hernandez <aldyh@redhat.com>
6771
6772 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
6773 TARGET_ISEL, and TARGET_FPRS.
99086d59 6774
518878e1
AH
6775 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6776 -mabi=spe, -mabi=no-spe, and -misel=.
6777
6778 * config/rs6000/rs6000-protos.h: Add output_isel.
6779 Move vrsave_operation prototype here.
6780
6781 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
6782 (smaxsi3): Same.
6783 (uminsi3): Same.
6784 (umaxsi3): Same.
6785 (abssi2_nopower): Disallow when TARGET_ISEL.
6786 (*ne0): Same.
6787 (negsf2): Change to expand and rename old pattern to *negsf2.
6788 (abssf2): Change to expand and rename old pattern to *abssf2.
99086d59 6789
518878e1
AH
6790 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
6791 fixunssfsi2.
6792
6793 Change patterns that check for TARGET_HARD_FLOAT or
6794 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
6795
6796 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
6797 rs6000_isel, rs6000_fprs, rs6000_isel_string.
6798 (rs6000_override_options): Add 8540 case to
6799 processor_target_table.
6800 Set rs6000_isel for the 8540.
6801 Call rs6000_parse_isel_option.
6802 (enable_mask_for_builtins): New.
6803 (rs6000_parse_isel_option): New.
6804 (rs6000_parse_abi_options): Add spe and no-spe.
6805 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
6806 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
6807 for TARGET_HARD_FLOAT.
6808 Add case for SPE_VECTOR_MODE.
6809 (rs6000_legitimize_reload_address): Handle SPE vector modes.
6810 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
6811 vector modes.
6812 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
6813 (rs6000_emit_move): Check for TARGET_FPRS.
6814 Add cases for SPE vector modes.
6815 (function_arg_boundary): Return 64 for SPE vector modes.
6816 (function_arg_advance): Check for TARGET_FPRS and
6817 Handle SPE vectors.
6818 (function_arg): Same.
6819 (setup_incoming_varargs): Check for TARGET_FPRS.
6820 (rs6000_va_arg): Same.
6821 (struct builtin_description): Un-constify mask field. Move up in
6822 file.
6823 (bdesc_2arg): Un-constify and add SPE builtins.
6824 (bdesc_1arg): Same.
6825 (bdesc_spe_predicates): New.
6826 (bdesc_spe_evsel): New.
6827 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
6828 (rs6000_expand_binop_builtin): Same.
6829 (bdesc_2arg_spe): New.
6830 (spe_expand_builtin): New.
6831 (spe_expand_predicate_builtin): New.
6832 (spe_expand_evsel_builtin): New.
6833 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
6834 (rs6000_init_builtins): Initialize SPE builtins. Call
6835 rs6000_common_init_builtins.
6836 (altivec_init_builtins): Move all non-altivec builtin code to...
6837 (rs6000_common_init_builtins): ...here. New function.
6838 (branch_positive_comparison_operator): Allow NE code for SPE.
6839 (ccr_bit): Return correct ccr bit for SPE fp.
6840 (print_operand): Emit crnor in 'D' case for SPE.
6841 New case 't'.
6842 Add SPE code for 'y' case.
6843 (rs6000_generate_compare): Generate rtl for SPE fp.
6844 (output_cbranch): Handle SPE hard floats.
6845 (rs6000_emit_cmove): Handle isel.
6846 (rs6000_emit_int_cmove): New.
6847 (output_isel): New.
6848 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
6849 64-bits for SPE.
6850 (debug_stack_info): Add SPE info.
6851 (gen_frame_mem_offset): New.
6852 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
6853 Change mode of frame pointer, when saving it, to Pmode.
6854 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
6855 Misc cleanups and use gen_frame_mem_offset when appropriate.
6856
6857 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
6858 (TARGET_SPE_ABI): New.
6859 (TARGET_SPE): New.
6860 (TARGET_ISEL): New.
6861 (TARGET_FPRS): New.
6862 (FIXED_SCRATCH): New.
6863 (RTX_COSTS): Add PROCESSOR_PPC8540.
6864 (ASM_CPU_SPEC): Add case for 8540.
6865 (TARGET_OPTIONS): Add isel= case.
6866 (rs6000_spe_abi): New.
6867 (rs6000_isel): New.
6868 (rs6000_fprs): New.
6869 (rs6000_isel_string): New.
6870 (UNITS_PER_SPE_WORD): New.
6871 (LOCAL_ALIGNMENT): Adjust for SPE.
6872 (HARD_REGNO_MODE_OK): Same.
6873 (DATA_ALIGNMENT): Same.
6874 (MEMBER_TYPE_FORCES_BLK): New.
6875 (FIRST_PSEUDO_REGISTER): Set to 113.
6876 (FIXED_REGISTERS): Add SPE registers.
6877 (reg_class): Same.
6878 (REG_CLASS_NAMES): Same.
6879 (REG_CLASS_CONTENTS): Same.
6880 (REGNO_REG_CLASS): Same.
6881 (REGISTER_NAMES): Same.
6882 (DEBUG_REGISTER_NAMES): Same.
6883 (ADDITIONAL_REGISTER_NAMES): Same.
6884 (CALL_USED_REGISTERS): Same.
6885 (CALL_REALLY_USED_REGISTERS): Same.
6886 (SPE_ACC_REGNO): New.
6887 (SPEFSCR_REGNO): New.
6888 (SPE_SIMD_REGNO_P): New.
6889 (HARD_REGNO_NREGS): Adjust for SPE.
6890 (VECTOR_MODE_SUPPORTED_P): Same.
6891 (REGNO_REG_CLASS): Same.
6892 (FUNCTION_VALUE): Same.
6893 (LIBCALL_VALUE): Same.
6894 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
6895 (SPE_VECTOR_MODE): New.
6896 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
6897 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
6898 (rs6000_stack): Add spe_gp_size, spe_padding_size,
6899 spe_gp_save_offset.
6900 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
6901 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
6902 (SPE_CONST_OFFSET_OK): New.
6903 (rs6000_builtins): Add SPE builtins.
6904
6905 * testsuite/gcc.dg/ppc-spe.c: New.
99086d59 6906
518878e1
AH
6907 * config/rs6000/eabispe.h: New.
6908
6909 * config/rs6000/spe.h: New.
6910
6911 * config/rs600/spe.md: New.
6912
6913 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6914 __SIMD__ for TARGET_SPE.
6915
6916 * config.gcc: Add powerpc-*-eabispe* case.
6917 Add spe.h to user headers for powerpc.
6918
8d1b7ba1
CD
69192002-07-24 Chris Demetriou <cgd@broadcom.com>
6920
6921 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
6922 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6923 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
6924
8ad8135a
RH
69252002-07-24 Richard Henderson <rth@redhat.com>
6926
6927 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
6928 form when not optimizing.
6929
dc44a4d8
DM
69302002-07-24 David Mosberger <davidm@hpl.hp.com>
6931
6932 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
6933 thread_pointer_rtx as unchanging.
6934
c5605318
MM
69352002-07-24 Michael Matz <matz@suse.de>
6936
6937 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
6938 (free_reg): Use it.
6939
3ade30ea
RE
69402002-07-24 Richard Earnshaw <rearnsha@arm.com>
6941
6942 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
6943 pattern.
6944 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
6945 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
6946
8a3ad737
CD
69472002-07-24 Chris Demetriou <cgd@broadcom.com>
6948
6949 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
6950 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6951 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
6952
7e51e626
JH
6953Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6954
6955 * toplev.c (rest_of_compilation): Dump loops before clobbering
6956 the structure.
6957
5df533b3
JH
6958Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
6959
6960 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
6961
79258dce
RS
69622002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
6963
6964 PR optimization/7291
6965 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
6966 problem on x86_64.
6967
26ff2117
GDR
69682002-07-24 Gabriel Dos Reis <gdr@nerim.net>
6969
6970 * pretty-print.h: Add macros from cp/error.c
6971
0ba1b2ff
AM
69722002-07-24 Alan Modra <amodra@bigpond.net.au>
6973
6974 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
6975 (mask64_2_operand): Declare.
6976 (build_mask64_2_operands): Declare.
6977 (and64_2_operand): Declare.
6978 (extract_MB): Declare.
6979 (extract_ME): Declare.
6980 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
6981 CONST_DOUBLE code.
6982 (mask_operand_wrap): New insn predicate.
6983 (mask64_2_operand): Likewise.
6984 (and64_2_operand): Likewise.
6985 (build_mask64_2_operands): New function.
6986 (extract_MB): New function.
6987 (extract_ME): New function.
6988 (print_operand <case m,M>): Use extract_MB and extract_ME.
6989 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
6990 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
6991 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
6992 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
6993 * config/rs6000/rs6000.md (andsi3_internal3): New
6994 (andsi3_internal3+1): Enable split for powerpc64.
6995 (andsi3_internal3+2): New split.
6996 (andsi3_internal4): Renamed old andsi3_internal3.
6997 (andsi3_internal5): New.
6998 (andsi3_internal5+1): Enable split for powerpc64.
6999 (andsi3_internal5+2): New split.
7000 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
7001 (anddi3): Handle 't' constraint.
7002 (anddi3+1): New split.
7003 (anddi3_internal2): Handle 't' constraint.
7004 (anddi3_internal2+1): New split.
7005 (anddi3_internal3): Handle 't' constraint.
7006 (anddi3_internal3+1): New split.
7007
097657c3
AM
70082002-07-24 Alan Modra <amodra@bigpond.net.au>
7009
7010 * config/rs6000/rs6000.md: Remove scratch reg on insns using
7011 addze and similar (plus (comparison r1 r2) r3) insns. Add
7012 missing scratch reg in one case. Formatting fixes.
7013
a69cbaac
NB
70142002-07-24 Neil Booth <neil@daikokuya.co.uk>
7015
7016 * cppexp.c (parse_defined): Mark macro used.
7017 * cpphash.h (struct cpp_macro): New member "used".
7018 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
7019 (struct cpp_reader): New member.
7020 * cppinit.c (cpp_finish_options): Set first_unused_line.
7021 (cpp_finish): Warn of unused macros if requested.
7022 (OPT_TABLE): New switches.
7023 (cpp_handle_option): Handle them.
7024 * cpplib.c (do_undef): Warn if macro unused.
7025 (do_ifdef, do_ifndef): Mark macro used.
7026 * cpplib.h (struct cpp_options): New member.
7027 * cppmacro.c (_cpp_warn_if_unused_macro): New.
7028 (enter_macro_context): Mark macro used.
7029 (_cpp_create_definition): Mark macro unused; warn if unused
7030 when redefined.
7031 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
7032 Mark macros used.
7033 * doc/cppopts.texi: Update.
7034
c0667597
NB
70352002-07-23 Neil Booth <neil@daikokuya.co.uk>
7036
7037 * dwarf2out.c (SECTION_ASM_OP,
7038 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
7039 * system.h (SECTION_ASM_OP): Poison.
7040 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
7041 * config/alpha/alpha-interix.h, config/mips/linux.h
7042 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
7043 * config/mmix/mmix-protos.h, config/mmix/mmix.c
7044 (mmix_asm_output_define_label_difference_symbol): Remove.
7045 * config/mmix/mmix.h
7046 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
b841421a 7047 * doc/tm.texi: Remove documentation.
c0667597 7048
bf7cd754
R
7049Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7050
7051 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
7052 (constrain_operands): Likewise.
7053 * regclass.c (record_reg_classes): Likewise.
7054 * reload.c (find_reloads): Likewise.
7055 * doc/md.texi: Likewise.
451f86fd
R
7056
7057 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
7058 * simplify-rtx.c (simplify_subreg): When converting to a non-int
7059 mode, try to convert to an integer mode of matching size first.
1d5fa6b4
R
7060
7061 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
7062 from individual subregs, check that each subreg has been generated
7063 sucessfully.
7064
10d6af32
NB
70652002-07-23 Neil Booth <neil@daikokuya.co.uk>
7066
7067 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
7068 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
7069 FOR_EACH_BB_IN_SBITMAP): Remove.
7070 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
7071 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
7072 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
7073 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
7074 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
7075 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
7076
6aaae39a
GDR
70772002-07-23 Gabriel Dos Reis <gdr@nerim.net>
7078
7079 * pretty-print.h: New file.
7080
45e574d0
JDA
70812002-07-23 Paul Koning <pkoning@equallogic.com>
7082
7083 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
7084 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
7085 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
7086 (TARGET_G_FLOAT): Default to 0 if not defined.
99086d59 7087 (ieeetoe): New, common routine to convert target format floats
45e574d0
JDA
7088 to internal form.
7089 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
7090 vs. others.
7091 (e113toe): Change to use ieeetoe.
7092
70932002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7094
7095 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
7096 IBM.
7097 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
7098 (e64toe): Remove special cases for DEC and IBM. Remove support for
7099 ARM_EXTENDED_IEEE_FORMAT.
7100 (e24toe): Remove special cases for DEC.
7101 (significand_size): Simplify. Indent.
7102 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
7103 (etoieee, toieee): New.
7104 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
7105 etoieee and toieee for IEEE arithmetic.
7106
3764f879
GDR
71072002-07-23 Gabriel Dos Reis <gdr@nerim.net>
7108
7109 * doc/extend.texi: Say ISO C90, not ISO C89.
7110 * doc/invoke.texi: Likewise.
7111 * doc/standards.texi: Likewise.
7112
aa0f70e6
SE
71132002-07-23 Steve Ellcey <sje@cup.hp.com>
7114
7115 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
7116 Fix permutation of conversion and plus/mult.
7117 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
7118 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
7119 (expand_builtin_strncpy) Ditto.
7120 (expand_builtin_memset) Ditto.
7121
fa72b064
GDR
71222002-07-23 Gabriel Dos Reis <gdr@nerim.net>
7123
7124 Fix PR/7363:
7125 * c-common.c (c_sizeof_or_alignof_type): New function.
7126 (c_alignof): Remove definition.
7127 * c-common.h (c_sizeof, c_alignof): Define as macros.
7128 (c_sizeof_or_alignof_type): Declare.
7129 (my_friendly_assert): Moved from cp/cp-tree.h
7130 * c-typeck.c (c_sizeof): Remove definition.
7131
2b773ee2
JH
71322002-07-23 Jan Hubicka <jh@suse.cz>
7133
7134 * gcse.c (try_replace_reg): Use num_changes_pending.
7135 * recog.c (num_changes_pending): New function.
7136 (validate_replace_src): Use validate_repalce_src_group.
7137 (validate_replace_src_group): New.
7138 * recog.h (validate_repalce_src_group): New.
7139 (num_changes_pending): Likewise.
7140
a0dc500c
R
7141Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
7142
7143 * calls.c (emit_library_call_value_1): If
7144 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
7145 libcall, const call nor pure call.
7146
d22eda7b
NB
71472002-07-23 Neil Booth <neil@daikokuya.co.uk>
7148
7149 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
7150
b5e66e65
NB
71512002-07-23 Neil Booth <neil@daikokuya.co.uk>
7152
7153 * vmsdbgout.c (SECTION_ASM_OP): Remove.
7154
c3a600c0
NB
71552002-07-23 Neil Booth <neil@daikokuya.co.uk>
7156
7157 * config/i386/i386.c (AT_BP): Remove.
7158
4fa31c2a
NB
71592002-07-23 Neil Booth <neil@daikokuya.co.uk>
7160
7161 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
7162 Default definition.
7163 * gcse.c: Don't define obstack_chunk_free.
7164 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
7165 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
7166 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
7167 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
7168 Don't define obstack macros.
7169
fd576c86
SC
71702002-07-22 Stephane Carrez <stcarrez@nerim.fr>
7171
7172 PR target/6744
7173 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
7174 ASM_OPERANDS instructions.
7175
b791ff31
SC
71762002-07-22 Stephane Carrez <stcarrez@nerim.fr>
7177
7178 PR target/7361
7179 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
7180 constant addresses only on 68HC12.
7181
4a941115
NB
71822002-07-22 Neil Booth <neil@daikokuya.co.uk>
7183
7184 * cppfiles.c (stack_include_file): Correct test of whether
7185 a dependency should be output.
7186
7488cc6d
DE
71872002-07-22 David Edelsohn <edelsohn@gnu.org>
7188
7189 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
7190
b41caf7c
RE
71912002-07-22 Richard Earnshaw <rearnsha@arm.com>
7192
7193 * arm.md (movqi): If optimizing and we can create pseudos, use
7194 a ZERO_EXTEND to load from memory, then copy the result into the
7195 target.
7196 (movhi): Likewise, but only for ARMv4.
7197
492e9934
NB
71982002-07-22 Neil Booth <neil@daikokuya.co.uk>
7199
7200 * ssa-ccp.c (PHI_PARMS): Remove.
7201
f01f01a6
RS
72022002-07-22 Richard Sandiford <rsandifo@redhat.com>
7203
7204 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
7205 on big-endian targets.
7206
c2ae8aef
KG
72072002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7208
7209 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
7210 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
7211 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
7212 New formatting macros.
7213
7214 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
7215
eab2120d
R
7216Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
7217
7218 * rtlanal.c (subreg_regno_offset): Return correct offset for
7219 big endian paradoxical subregs.
0d541696
R
7220
7221 * optabs.c (expand_vector_unop): Don't expand using sub_optab
7222 if we got the wrong mode.
bb9b3805
R
7223
7224 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
7225 * genrecog.c (write_switch, write_cond): Use it.
7226 * genemit.c (gen_exp): Likewise.
7227
e96eb215
JJ
72282002-07-22 Jakub Jelinek <jakub@redhat.com>
7229
7230 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
7231
cf3c4f56
JJ
72322002-07-22 Jakub Jelinek <jakub@redhat.com>
7233
7234 * c-decl.c (build_compound_literal): Defer compound literal decls
7235 until until file end to emit them only if they are actually used.
7236
533c4863
KG
72372002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7238
7239 * ra-build.c (check_conflict_numbers): Hide unused function.
7240 (livethrough_conflicts_bb): Avoid automatic aggregate
7241 initialization.
7242 (parts_to_webs_1): Avoid `U' integer constant modifier.
7243 (conflicts_between_webs): Wrap a variable in the macro controlling
7244 its usage.
7245 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
7246 (dump_igraph, dump_graph_cost): Avoid string concatenation
7247 (dump_static_insn_cost): Avoid automatic aggregate
7248 initialization.
7249 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
7250 initialization.
7251 (dump_cost): Avoid string concatenation
7252
8943a0b4
RH
72532002-07-21 Richard Henderson <rth@redhat.com>
7254
7255 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
7256 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
7257
b1aef35b
RH
72582002-07-21 Richard Henderson <rth@redhat.com>
7259
7260 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
7261 that are not unrolled completely.
7262
5e1afb11
RH
72632002-07-21 Richard Henderson <rth@redhat.com>
7264
7265 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
7266 * loop.c (strength_reduce): Update.
7267 * toplev.c (rest_of_compilation): Do unrolling in the first
7268 loop pass, not the second.
7269
c67a1cf6
RH
72702002-07-21 Richard Henderson <rth@redhat.com>
7271
7272 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
7273 when flag_argument_noalias == 2.
7274 * alias.c (nonoverlapping_memrefs_p): Handle that.
7275 * print-rtl.c (print_mem_expr): Likewise.
7276
b68daef4
HS
72772002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
7278
7279 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
7280 instead of __negdi2 directly.
7281
060a58c5
NB
72822002-07-21 Neil Booth <neil@daikokuya.co.uk>
7283
7284 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
7285 * function.c (SYMBOL__MAIN): Remove definition.
7286 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
99086d59 7287 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
060a58c5
NB
7288 * profile.c (GCOV_INDEX_TO_BB): Remove.
7289 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
7290 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
7291
2f8dd115
NB
72922002-07-21 Neil Booth <neil@daikokuya.co.uk>
7293
7294 * c-lex.c (GET_ENVIRONMENT): Remove.
7295 * collect2.c (GET_ENV_PATH_LIST): Remove.
7296 (prefix_from_env): Use GET_ENVIRONMENT.
7297 * cppinit.c (GET_ENV_PATH_LIST): Remove.
7298 (init_standard_includes): Use GET_ENVIRONMENT.
7299 * defaults.h (GET_ENVIRONMENT): Define here if not already.
7300 * gcc.c (GET_ENV_PATH_LIST): Remove.
7301 (make_relative_prefix, process_command): Update.
7302 * protoize.c (GET_ENV_PATH_LIST): Remove.
7303 (do_processing): Update.
7304
56508306
GDR
73052002-07-21 Gabriel Dos Reis <gdr@nerim.net>
7306
7307 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
7308 (grokdeclarator): Likewise.
7309 * c-format.c (C_STD_NAME): Likewise.
7310 * c-lex.c (interpret_integer): Likewise.
7311 * c-typeck.c (build_array_ref): Likewise.
7312 * cpplex.c (_cpp_lex_direct): Likewise.
7313 * toplev.c (documented_lang_options): Likewise.
7314
e2f62855
NB
73152002-07-21 Neil Booth <neil@daikokuya.co.uk>
7316
7317 * c-format.c (T99_I, T99_UI): Remove.
7318
c89d1dfd
NB
73192002-07-21 Neil Booth <neil@daikokuya.co.uk>
7320
7321 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
7322
46690369
JH
7323Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7324
7325 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
7326 do_local_cprop.
7327
60ffc1b8
AJ
73282002-07-21 Andreas Jaeger <aj@suse.de>
7329
99086d59 7330 * reload1.c (fixup_abnormal_edges): Remove unused variable.
60ffc1b8 7331
c05ffc49
BS
73322002-07-21 Bernd Schmidt <bernds@redhat.com>
7333
7334 Improvements for the ifcvt pass from Michael Meissner, with patches
7335 by Richard Sandiford <rsandifo@redhat.com>
7336 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
7337 * ifcvt.c (cond_exec_changed_p): New static variable.
7338 (last_active_insn): New function, renamed from last_active_insn_p
7339 and changed to return the last active insn in a basic block. All
7340 callers updated.
7341 (block_fallthru): New function.
7342 (cond_exec_process_insns): New argument CE_INFO. Pass it to
7343 IFCVT_MODIFY_INSN. All callers updated.
7344 Return false if START or END are NULL.
7345 Handle case where we're processing an insn that is already
7346 conditional.
7347
7348 (noce_process_if_block): CE_INFO argument rather than
7349 multiple args containing the involved basic blocks. All callers
7350 changed.
7351 (process_if_block, merge_if_block, find_if_block,
7352 cond_exec_process_if_block): Likewise.
7353
7354 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
7355 changed.
7356 Use new function last_active_insn to simplify some code.
7357 New code to handle multiple tests.
7358 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
7359 cond_exec_changed_p to TRUE.
7360
7361 (process_if_block): New code to handle multiple tests.
7362 (merge_if_block): Likewise.
7363 (find_if_header): New arg PASS. Changed to return the currently
7364 processed basic block or NULL instead of true/false. All callers
7365 changed.
7366 Call IFCVT_INIT_EXTRA_FIELDS.
7367 (block_jumps_and_fallthru_p): New function.
7368 (find_if_block): Discover opportunities to convert multiple tests.
7369 Add additional debugging output.
7370 Update the ce_info structure before returning.
7371
7372 (if_convert): Run multiple passes of if-conversion.
7373 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
7374 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
7375 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
7376 these macros.
7377
ae860ff7
JH
7378Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7379
7380 * gcse.c: Include cselib.h
7381 (constptop_register): Break out from ...
7382 (cprop_insn): ... here; kill basic_block argument.
7383 (do_local_cprop, local_cprop_pass): New functions.
7384 (one_cprop_pass): Call local_cprop_pass.
7385
0da65b89
RS
73862002-07-20 Roger Sayle <roger@eyesopen.com>
7387
7388 * simplify-rtx.c (simplify_relational_operation): Optimize
7389 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
7390
47cc673a
MM
73912002-07-20 Michae Matz <matz@suse.de>
7392
7393 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
7394
68e65275
NB
73952002-07-20 Neil Booth <neil@daikokuya.co.uk>
7396
7397 * cppexp.c (struct op): Add token pointer.
7398 (check_promotion, CHECK_PROMOTION): New.
7399 (optab): Update.
7400 (_cpp_parse_expr): Update, use token pointer of struct op.
7401 (reduce): Warn about change of sign owing to promotion.
7402 * cppinit.c (cpp_handle_option): New warning if -Wall.
7403 * cpplib.h (struct cpp_options): New member.
7404
e3485bbc
DE
74052002-07-19 David Edelsohn <edelsohn@gnu.org>
7406
7407 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
7408 fpu list. Separate Power4 compare and delayed_compare. Correct
7409 Power4 fpcompare.
7410 (fix_truncdfsi2_internal): Restore FPR preference.
7411 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
7412 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
7413
449655a6
MV
74142002-07-19 Momchil Velikov <velco@fadata.bg>
7415
7416 * reload1.c (reload_as_needed): Duplicate oldpat.
7417
8b583747
AM
74182002-07-20 Alan Modra <amodra@bigpond.net.au>
7419
7420 PR optimization/7130
7421 * loop.h (struct loop_info): Add "preconditioned".
7422 * unroll.c (unroll_loop): Set it.
7423 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
7424
0dc36574
ZW
74252002-07-19 Zack Weinberg <zack@codesourcery.com>
7426
7427 * rtl.def (CODE_LABEL): Remove slot 8.
7428 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
7429 (LABEL_ALTERNATE_NAME): Delete.
7430 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
7431 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
7432
7433 * final.c (output_alternate_entry_point): New.
7434 (final_scan_insn): Use it instead of
7435 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
7436 of a case label being an alternate entry point.
7437
7438 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
7439 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
7440 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
7441 (field deleted).
7442 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
7443
7444 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
7445 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
7446 * doc/tm.texi: Delete documentation of
7447 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
7448
59267987
RO
74492002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7450
7451 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
7452 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
7453 (LINK_SPEC): Define.
7454 (STARTFILE_SPEC): Define.
7455 (ENDFILE_SPEC): Define.
7456
7457 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
7458 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
7459
7460 * config/mips/iris6-o32-gas.h: New file.
7461 * config.gcc (mips-sgi-irix6*o32): Use it.
7462
7463 * config/mips/t-iris5-gas: New file.
7464 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
7465
75aef48a
NB
74662002-07-19 Neil Booth <neil@daikokuya.co.uk>
7467
7468 * cppexp.c (ALWAYS_EVAL): Remove.
7469 (optab, reduce): Always evaluate.
7470 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
7471 only if not skipping evaluation.
7472
72a5503d
MM
74732002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
7474
7475 * config/avr/avr.c (debug_hard_reg_set): Remove.
7476
059ba716
CD
74772002-07-19 Chris Demetriou <cgd@broadcom.com>
7478
7479 * gcc.c (cpp_options): Include "%1" (cc1_spec).
7480
544823b6
RH
74812002-07-19 Richard Henderson <rth@redhat.com>
7482
7483 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
7484
c35383cb
AM
74852002-07-19 Alan Modra <amodra@bigpond.net.au>
7486
7487 * prefix.c (update_path): Don't zap single `.' path components
7488 unless followed by another `.' and fix typo last patch.
7489
ad28cff7
NB
74902002-07-18 Neil Booth <neil@daikokuya.co.uk>
7491
7492 * cppexp.c (cpp_num_mul): Remove unused parameter.
7493 (UNARY, BINARY, OTHER, binary_handler): Remove.
7494 (ALWAYS_EVAL): New.
7495 (optab): Update.
7496 (reduce): Refactor to a large switch, don't use a function
7497 pointer.
7498
139b7f86
BT
74992002-07-18 Bo Thorsen <bo@berlioz.suse.de>
7500
7501 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
7502
e69d1422
R
7503Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7504
7505 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
7506 (sh_expand_binop_v2sf): Likewise.
7507 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
7508 (int_gpr_dest, trunc_hi_operand): New functions.
7509 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
7510 trunc_hi_operand.
7511 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
7512 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
7513 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
7514 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
7515 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
7516 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
7517 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
7518 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
7519 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
7520 (movsf_ie+1): Likewise.
7521 (loaddi_trunc): Use int_gpr_dest predicate.
7522 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
7523 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
7524 (casesi_worker_0+[12], casesi_worker): Likewise.
7525 (shcompact_preserve_incoming_args): Likewise.
7526 (mov_nop): Use any_register_operand predicate.
7527 (mperm_w0): Use trunc_hi_operand predicate.
7528
47a4976f
JDA
75292002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
7530
7531 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
7532 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
7533 numbering.
7534
f3a4e54e
JDA
75352002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
7536
7537 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
7538
30484ccf
RH
75392002-07-18 Richard Henderson <rth@redhat.com>
7540
7541 PR optimization/7147
7542 * ifcvt.c (noce_get_condition): Make certain that the condition
7543 is valid at JUMP.
7544
d042370e
R
7545Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
7546
7547 * sh.c (barrier_align, push): Shut up compiler warnings.
7548 (initial_elimination_offset,sh_media_init_builtins): Likewise.
7549 (reg_no_subreg_operand): Delete.
7550
61fee9b3
BT
75512002-07-17 Bo Thorsen <bo@suse.de>
7552
7553 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
7554 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
7555 (STARTFILE_SPEC): Remove hardcoded library paths.
7556 (ENDFILE_SPEC): Likewise.
7557
f305679f
JH
7558Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
7559
7560 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
7561
7562 * gcse.c (try_replace_reg): Do not return false positives.
7563
99bcb625
AM
75642002-07-18 Alan Modra <amodra@bigpond.net.au>
7565
f6f23ad2
AM
7566 * prefix.c: (update_path): Strip ".." components when prior dir
7567 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
7568
99bcb625
AM
7569 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
7570 (ASM_OUTPUT_REG_POP): Likewise.
7571
09eeeacb
AM
75722002-07-18 Alan Modra <amodra@bigpond.net.au>
7573
7574 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
7575 adjustments to first_reg for profiling case.
7576 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
7577 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
7578 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
7579 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
7580 (ASM_OUTPUT_REG_POP): Define.
7581 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
7582 (ASM_OUTPUT_REG_POP): Undef.
7583
74d06cf2
NB
75842002-07-17 Neil Booth <neil@daikokuya.co.uk>
7585
7586 * cpplib.c (do_sccs): Handle #sccs on all systems.
7587 * system.h (SCCS_DIRECTIVE): Poison.
7588 * config/darwin.h, config/freebsd.h, config/netbsd.h,
7589 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
7590 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
7591 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
7592 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
7593 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
7594 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
7595 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
7596 Remove all references to SCCS_DIRECTIVE.
7597 * doc/cpp.texi, doc/tm.texi: Update.
7598
61dde664
R
7599Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
7600
7601 * regrename.c (maybe_mode_change): New function.
7602 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
7603
97f51ac4
RB
76042002-07-17 Rodney Brown <rbrown64@csc.com.au>
7605
7606 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
7607 suppress addition when either ct or cf are zero.
7608
f1a73cfe 76092002-06-17 Eric Botcazou <ebotcazou@multimania.com>
30484ccf 7610 Glen Nakamura <glen@imodulo.com>
f1a73cfe
EB
7611
7612 PR optimization/6713
7613 * loop.c (loop_givs_rescan): Explicitly delete the insn that
7614 sets a non-replaceable giv after issuing the new one.
7615
23ff0223
NB
76162002-07-17 Neil Booth <neil@daikokuya.co.uk>
7617
7618 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
7619 eval_token): Clarify and correct use of "bool" variables.
7620 * cpplib.h (struct cpp_options): Similarly.
7621 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
7622 * cpptrad.c (recursive_macro): Similarly.
7623
ac09192a
R
7624Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
7625
d28586ab 7626 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
ac09192a 7627 SHmedia code.
68cef009
R
7628
7629 * sh.md (cmpgtudi_media): Remove spurious @.
701e3726
R
7630
7631 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
7632 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
ca903bba
R
7633
7634 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
7635 * sh-protos.h (sh_initialize_trampoline): Declare.
7636 * sh.c (sh_initialize_trampoline): New function.
7637 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
7638 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
7639 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
7640 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
7641 * sh.md (initialize_trampoline, double_shori): New patterns.
7642 (initialize_trampoline_compact): Likewise.
7643 (shmedia32_initialize_trampoline_big): Remove.
7644 (shmedia32_initialize_trampoline_little): Likewise.
0ac78517
R
7645
7646 * sh-protos.h (binary_float_operator): Remove declaration.
7647 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
7648 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
7649 (unary_float_operator, sh_expand_unop_v2sf): New functions.
7650 (sh_expand_binop_v2sf): Likewise.
7651 (zero_vec_operand): Delete.
7652 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
7653 all non-shared ones.
7654 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
7655 Enable nsb and byterev.
7656 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
7657 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
7658 in general regs.
7659 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
7660 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
7661 immediate operands.
7662 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
7663 Add DF_HI_REGS.
7664 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
7665 lowpart fp regs - only for big endian for now.
da7d8304 7666 (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
0ac78517
R
7667 when FPU is in use.
7668 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
7669 (LOAD_EXTEND_OP): NIL for SImode.
7670 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
7671 general and fp registers is 4.
7672 PREDICATE_CODES: Amend binary_float_operator entry.
7673 Remove zero_vec_operand. Add unary_float_operator.
7674 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
7675 subreg SET_DEST.
7676 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
7677 (truncdiqi2): Do sign extension.
7678 (movsi_media, movdi_media): Allow to use r63 to an fp register.
7679 (movdf_media, movsf_media): Likewise.
7680 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
7681 Collapse to one define_insn_and_split. Allow immediate sources.
7682 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
7683 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
7684 (movv4sf): Allow immediate sources.
7685 (movsf_media_nofpu+1): Don't split moves to FP registers.
7686 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
7687 (movv8qi_i+3): Check against CONST0_RTX.
7688 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
7689 for input and output operands. Fix argument 3 to gen_mextr_rl.
7690 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
7691 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
7692 (mshf0_w, fipr, ftrv): Likewise.
7693 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
7694
e9d7b180
JD
76952002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7696
7697 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
7698 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
7699 * arm.c: Similarly.
7700
8214bf98
RS
77012002-07-17 Richard Sandiford <rsandifo@redhat.com>
7702
7703 * config/mips/mips-protos.h (mips_sign_extend): Declare.
7704 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
7705 (TARGET_SWITCHES): Remove debugh.
7706 (ISA_HAS_TRUNC_W): New macro.
7707 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
7708 (PREDICATE_CODES): Remove se_nonimmediate_operand.
7709 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
7710 any SImode move_operand.
7711 (se_nonimmediate_operand): Remove.
7712 (mips_sign_extend): New.
7713 (mips_move_2words): Use it for sign-extended source operands.
7714 (override_options): Allow integers to be put into single FPRs.
7715 (mips_secondary_reload_class): Handle integers in float registers.
7716 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
7717 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
7718 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
7719 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
7720 (fix_truncdfdi2): Provide only a single alternative, in which the
7721 integer is in a float register. Depend on TARGET_FLOAT64 rather
7722 than TARGET_64BIT.
7723 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
7724 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
7725 (movdi_internal2): Don't allow the source operand to be sign-extended.
7726 Add alternatives for float registers.
7727 (*movdi_internal2_extend): New. Version of movdi_internal2 that
7728 allows sign-extension.
7729 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
7730 (movsi_internal2): Rename to movsi_internal. Add alternatives for
7731 float registers. Remove TARGET_DEBUG_H_MODE test.
7732 (movhi_internal1): Rename to movhi_internal. Don't check
7733 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
7734 (movqi_internal1): Rename to movqi_internal and remove
7735 TARGET_DEBUG_H_MODE dependency.
7736 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
7737
7ab0121e
JW
77382002-07-16 Jim Wilson <wilson@redhat.com>
7739
7740 * toplev.c (lang_dependent_init): Create function context for
7741 init_expr_once.
7742
349ccf2e
HPN
77432002-07-16 Hans-Peter Nilsson <hp@axis.com>
7744
7745 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
7746 --gc-sections if -r.
7747 * config/cris/cris.h: Ditto.
7748
06ec023f
RB
77492002-07-16 Rodney Brown <rbrown64@csc.com.au>
7750
7751 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
7752 the comparison directly gives a mask suppress addition when cf is
7753 zero by complementing the mask.
7754
39cef914
NN
77552002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
7756
7757 * Makefile.in: Delete references to enquire.
7758 * enquire.c: Move to contrib.
7759
92c1a778
SS
77602002-07-16 Stan Shebs <shebs@apple.com>
7761
2aa9948d
SS
7762 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
7763 config/rs6000/darwin.h.
7764 (ASM_OUTPUT_SKIP): Ditto.
7765 (TEXT_SECTION_ASM_OP): Ditto.
7766 (DATA_SECTION_ASM_OP): Ditto.
7767 (ASM_APP_ON): Define.
7768 (ASM_APP_OFF): Define.
7769 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
7770 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
7771
7772 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
92c1a778
SS
7773 (machopic_function_base_name): Declare result to be const.
7774 (machopic_non_lazy_ptr_name): Ditto.
7775 (machopic_stub_name): Ditto.
2aa9948d 7776 * config/darwin-protos.h: Ditto for the prototypes.
92c1a778 7777
daaab00a
JH
7778Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7779
7780 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
7781
63c574cc
JH
7782Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
7783
7784 * i386.md (prefetch): Fix for 64bit mode.
7785 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7786
2a500b9e
JH
7787Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
7788
7789 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
7790 * i386.c (x86_machine_dependent_reorg): New function.
7791 * i386-protos.h (x86_machine_dependent_reorg): Declare.
7792
e5faf155
ZW
77932002-07-16 Zack Weinberg <zack@codesourcery.com>
7794
7795 * builtins.c (std_expand_builtin_va_start): Remove unused
7796 first argument.
7797 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
7798 std_expand_builtin_va_start with just two arguments.
7799 * expr.h: Update prototypes.
7800
7801 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
7802 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
7803 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
7804 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
7805 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
7806 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
7807 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
7808 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
7809 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
7810 argument from all implementations of EXPAND_BUILTIN_VA_START
7811 and all uses of std_expand_builtin_va_start.
7812
dbf65c2f
R
7813Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
7814
7815 * regrename.c (copy_value): Don't record high part copies.
7816
6acb6d3e 78172002-07-16 Steve Ellcey <sje@cup.hp.com>
99b823ca 7818
6acb6d3e
SE
7819 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
7820 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
7821 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
7822
5d7c2819
ID
78232002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
7824
7825 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
7826
7827 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
7828 into addsi3 using register class "x" and "y".
7829
7830 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
7831 "earlyclobber" constraint modifier for some alternative.
e5faf155 7832
5d7c2819
ID
7833 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
7834 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
7835 unordered.
7836 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
7837
7838 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
7839 (TARGET_SWITCHES): Add -mieee-compare option.
7840 (OVERRIDE_OPTIONS): 32332 is a subset of
7841 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
43a88a8c 7842 (TARGET_SWITCHES): Fix description of bit-field option.
5d7c2819
ID
7843 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
7844 -mieee-compare option. Remove 32332 flag.
7845
5da4f548 78462002-07-16 Steve Ellcey <sje@cup.hp.com>
5d7c2819
ID
7847
7848 * explow.c (convert_memory_address): Remove special handling
5da4f548 7849 when POINTERS_EXTEND_UNSIGNED < 0.
5d7c2819 7850 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5da4f548
SE
7851 (movedi_symbolic): Fix typo.
7852 (load_fptr): Remove mode restriction so it works for SI and DI.
7853 (load_fptr_internal1): Ditto.
7854 (load_gprel): Ditto.
7855 (load_symptr_internal1): Ditto.
7856 (call_pic): Ditto.
5d7c2819 7857 * config/ia64.c (call_operand): Modify mode check.
5da4f548
SE
7858 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
7859 (ia64_expand_move): Ditto.
7860 (ia64_assemble_integer): Handle SImode function pointers.
7861 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
7862 (ia64_expand_op_and_fetch): Ditto.
7863 (ia64_expand_compare_and_swap): Ditto.
7864 (ia64_expand_lock_test_and_set): Ditto.
7865 (ia64_expand_lock_release): Ditto.
7866
1575c31e
JD
78672002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7868
7869 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
7870
78712002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7872 Richard Earnshaw <rearnsha@arm.com>
7873
e5faf155 7874 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1575c31e
JD
7875 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
7876
3894f59e
RE
78772002-07-16 Richard Earnshaw <rearnsha@arm.com>
7878
7879 * arm.md (stack_tie): New insn. Use an idiom that the alias code
7880 understands to be a memory clobber.
7881 * arm.c (arm_expand_prologue): Use it.
7882
e0b89be2 78832002-07-16 Daniel Berlin <dberlin@dberlin.org>
54b2a7f8
DB
7884
7885 * ra-rewrite.c: #include reload.h, insn-config.h
7886 * ra-build.c: #include reload.h
7887 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
e5faf155 7888 depend on reload.h, insn-config.h.
54b2a7f8 7889
cffa2189
R
7890Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
7891
7892 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
7893 the same size as a word.
7894
7895 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
7896 BYTES_BIG_ENDIAN into account.
7897
052c96b1
JH
7898Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7899
7900 * i386.md (prefetch): Fix for 64bit mode.
7901 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7902
7903 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
7904
ae32926b
MM
79052002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
7906
7907 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
7908
6c535c69
ZW
79092002-07-15 Zack Weinberg <zack@codesourcery.com>
7910
7911 * ginclude/varargs.h: Replace with stub which issues #error.
7912 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
7913 __builtin_va_start.
7914
7915 * builtins.def (BUILT_IN_VARARGS_START): Delete.
7916 (BUILT_IN_VA_START): New.
7917 * builtins.c (expand_builtin_va_start): Eliminate first
7918 argument and code to implement pre-ISO varargs.
7919 (std_expand_builtin_va_start): Ignore first argument; it is
7920 always 1.
7921 (expand_builtin): Handle BUILT_IN_VA_START and
7922 BUILT_IN_STDARG_START identically. Delete
7923 BUILT_IN_VARARGS_START case.
7924
7925 * function.c (assign_parms): Delete hide_last_arg and all
7926 its uses.
7927 (mark_varargs): Delete function.
7928 * function.h (struct function): Delete 'varargs' bit.
7929 (current_function_varargs): Delete macro.
7930 * tree.h: Don't declare mark_varargs.
7931
7932 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
7933 (c_expand_body): Don't call mark_varargs.
7934 * c-objc-common.c: Handle BUILT_IN_VA_START and
7935 BUILT_IN_STDARG_START identically. Delete
7936 BUILT_IN_VARARGS_START case.
7937 * c-tree.h: Don't declare c_mark_varargs.
7938 * c-parse.in: Remove grammar rules for '&...' (which has been
7939 commented out since before 2.7.2) and for '...' in K+R
7940 argument declarations.
7941
7942 * builtins.c, function.c, integrate.c, sibcall.c,
7943 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
7944 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
7945 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
7946 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
7947 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
7948 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
7949 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
7950 config/stormy16/stormy16.c: Delete all references to
7951 current_function_varargs, and code predicated on that flag.
7952
7953 * config/alpha/alpha.c (alpha_va_start),
7954 config/arc/arc.c (arc_va_start),
7955 config/i386/i386.c (ix86_va_start),
7956 config/mips/mips.c (mips_va_start),
7957 config/mn10300/mn10300.c (mn10300_va_start),
7958 config/rs6000/rs6000.c (rs6000_va_start),
7959 config/s390/s390.c (s390_va_start),
7960 config/sh/sh.c (sh_va_start),
7961 Ignore first argument; it is always 1.
7962
7963 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
7964 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
7965 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
7966 Delete m68hc11_va_start.
7967 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
7968 No need to define EXPAND_BUILTIN_VA_START.
7969
7970 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
7971 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
7972
6d80a854
EB
79732002-07-15 Eric Botcazou <ebotcazou@multimania.com>
7974
7975 PR optimization/7153
7976 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
7977 dies in more than one insn.
7978
043cfcbe
JT
79792002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
7982
ed8d2920 79832002-07-15 Michael Matz <matz@suse.de>,
6c535c69 7984 Daniel Berlin <dberlin@dberlin.org>,
ed8d2920
MM
7985 Denis Chertykov <denisc@overta.ru>
7986
7987 Add a new register allocator.
7988
7989 * ra.c: New file.
7990 * ra.h: New file.
7991 * ra-build.c: New file.
7992 * ra-colorize.c: New file.
7993 * ra-debug.c: New file.
7994 * ra-rewrite.c: New file.
7995
7996 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
7997 (ra-rewrite.o): New .o files for libbackend.a.
7998 (GTFILES): Add basic-block.h.
7999
8000 * toplev.c (flag_new_regalloc): New.
8001 (f_options): New option "new-ra".
8002 (rest_of_compilation): Call initialize_uninitialized_subregs()
8003 only for the old allocator. If flag_new_regalloc is set, call
8004 new allocator, instead of local_alloc(), global_alloc() and
8005 friends.
8006
8007 * doc/invoke.texi: Document -fnew-ra.
8008 * basic-block.h (FOR_ALL_BB): New.
8009 * config/rs6000/rs6000.c (print_operand): Write small constants
8010 as @l+80.
8011
8012 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
8013 (df_reg_table_realloc): Make size at least as large as max_reg_num().
8014 (df_insn_table_realloc): Size argument now is absolute, not relative.
8015 Changed all callers.
8016
8017 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
8018 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
8019
8020 2002-06-20 Michael Matz <matz@suse.de>
8021
8022 * df.h (struct ref.id): Make unsigned.
8023 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
8024
8025 2002-06-13 Michael Matz <matz@suse.de>
8026
8027 * df.h (DF_REF_MODE_CHANGE): New flag.
8028 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
8029 involving subregs with invalid mode changes, when
8030 CLASS_CANNOT_CHANGE_MODE is defined.
8031
8032 2002-05-07 Michael Matz <matz@suse.de>
8033
8034 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
8035
8036 2002-05-03 Michael Matz <matz@suse.de>
8037
8038 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
8039
8040 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
8041
8042 * regclass.c (regclass): Work with all regs which have sets or
8043 refs.
8044 (reg_scan_mark_refs): Count regs inside (clobber ...).
8045
8046 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
8047
8048 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
8049 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
8050 add new refs.
8051 (df_bb_refs_update): Don't clear insns_modified here, ...
8052 (df_analyse): ... but here.
8053
8054 * sbitmap.c (dump_sbitmap_file): New.
8055 (debug_sbitmap): Use it.
8056
8057 * sbitmap.h (dump_sbitmap_file): Add prototype.
8058
8059 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
8060
8061 * df.c (df_insn_modify): Grow the UID table if necessary, rather
8062 than assume all emits go through df_insns_modify.
8063
8064 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
8065
8066 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
8067 increase REG_N_REFS (like flow does), so that regclass doesn't
8068 think a reg is useless, and thus, not calculate a class, when it
8069 really should have.
8070
8071 2001-01-28 Daniel Berlin <dberlin@redhat.com>
8072
8073 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
8074 dataflow analysis.
8075
794a292d
JJ
80762002-07-15 Jakub Jelinek <jakub@redhat.com>
8077
8078 PR middle-end/7245
8079 * config/i386/i386.c (const_int_1_31_operand): New.
8080 * config/i386/i386.h (PREDICATE_CODES): Add it.
8081 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
8082 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
8083 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
8084
05d49501
AM
80852002-07-14 Alan Modra <amodra@bigpond.net.au>
8086
8087 PR target/7282
8088 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
8089 (floatunssidf2): Likewise.
8090 (floatsidf_ppc64): New insn_and_split.
8091 (floatunssidf_ppc64): Likewise.
8092
e89617fe
AJ
80932002-07-14 Andreas Jaeger <aj@suse.de>
8094
8095 * config.gcc (sh64): Remove unused
8096 target_requires_64bit_host_wide_int.
8097
78762e3b
RS
80982002-07-12 Roger Sayle <roger@eyesopen.com>
8099
8100 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
8101 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
8102 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
8103 whether clear_by_pieces should be used to clear storage.
8104 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
8105
8106 * doc/tm.texi: Document these two new target macros.
8107
f7a454e9
SC
81082002-07-12 Stephane Carrez <stcarrez@nerim.fr>
8109
8110 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
8111 the scratch register.
8112 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
8113 of it, forbid reload to use it.
8114
26af4041
MM
81152002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
8116
8117 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
8118 usage on 64-bit hosts, return value was truncated to 32 bits.
8119
226cfe61
R
8120Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
8121
8122 * simplify-rtx.c (simplify_subreg): Handle floating point
8123 CONST_DOUBLEs. When an integer subreg of a smaller mode than
8124 the element mode is requested, compute a subreg with an
8125 integer mode of the same size as the element mode first.
8126
25c25947
R
8127Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8128
8129 * combine.c (try_combine): When converting a paradoxical subreg
8130 to an extension, take LOAD_EXTEND_OP into account.
8131
789b7de5
RO
81322002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8133
8134 * config.gcc (mips-sgi-irix6*o32): New configuration.
8135
8136 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
8137 configurations.
8138 * configure: Regenerate.
8139
8140 * config/mips/iris6-o32-as.h: New file.
8141 * config/mips/iris6-o32.h: New file.
e89617fe 8142
789b7de5
RO
8143 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
8144 (NM_FLAGS): Define.
8145 (HAVE_AS_SHF_MERGE): Undefine.
8146
8147 * config/mips/t-iris5-as: New file.
8148 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
8149
8150 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
8151 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
8152 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
8153 dp-bit.c, fp-bit.c): Move ...
8154 * config/mips/t-iris5-6: ... here.
8155 New file, shared by IRIX 5 and IRIX 6.
8156 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
8157 mips-sgi-irix5*): Use it.
8158
8159 * config/mips/iris6.h: Remove duplicate comment.
8160
8161 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
8162 !TARGET_IRIX6]: Define.
8163 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
8164
8165 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
8166
a18c2c5f
JDA
81672002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8168
8169 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
8170 and delete code to force constant to register.
8171 * pa-protos.h (adddi3_operand): Add prototype.
8172 * pa.c (adddi3_operand): New function.
8173
e65a2d65
RS
81742002-07-11 Roger Sayle <roger@eyesopen.com>
8175
8176 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
8177 non-ANSI builtin functions.
8178
a06e3c40
R
8179Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
8180
8181 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
8182 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
8183 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
8184 (gen_const_vector_0): Use it.
8185
47abc309
JDA
81862002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8187
8188 * pa.md (adddi3): For 32-bit targets, force constants to a register
8189 if they don't fit in an 11-bit immediate. Change insn predicate to
8190 arith11_operand. Remove comment.
8191 * pa.c (cint_ok_for_move): Fix comment.
8192 (emit_move_sequence): Don't directly split DImode constants on 32-bit
8193 targets.
8194
8ac9d31f
TJ
81952002-07-11 Tim Josling <tej@melbpc.org.au>
8196
e89617fe 8197 Remove front end hard coding from gengtype.c.
8ac9d31f
TJ
8198
8199 * Makefile.in
8200 (STAGESTUFF): add gtyp-gen.h
8201 (GTFILES): Remove front end specific files.
8202 (GTFILES_FILES_LANGS): New, from configure..
8203 (GTFILES_FILES_FILES): Likewise.
8204 (GTFILES_LANG_DIR_NAMES): Likewise.
8205 (GTFILES_SRCDIR): Likewise.
8206 (gtyp-gen.h): Build from configure information.
8207 (s-gtype): Remove command line parameters from gengtype.
8208 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
8209 (mostlyclean): Delete files generated by and for gengtype.
8210
8211 * c-config-lang.in: New file.
8212
8213 * configure.in (all_gtfiles_files_langs): New. Accumulate files
8214 for each language.
8215 (all_gtfiles_files_files): New. Accumulate language for each file
8216 accumulated.
8217 (gtfiles): Pick up value for C.
8218 (srcdir): AC-SUBST this variable.
8219 (all_gtfiles_files_langs): AC-SUBST this variable.
8220 (all_gtfiles_files_files): AC-SUBST this variable.
e89617fe 8221
8ac9d31f 8222 * configure: Regenerate.
e89617fe 8223
8ac9d31f
TJ
8224 * gengtype-lex.l (parse_file): Make parameter const.
8225
8226 * gengtype.c (toplevel): include gtyp-gen.h.
8227 (BASE_FILE_<language> unnamed enum): Delete.
8228 (lang_names): Delete (replaced by gtyp-gen.h)
8229 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
8230 all references.
8231 (NUM_GT_FILES): New.
8232 (NUM_LANG_FILES): New.
8233 (srcdir_len): New.
8234 (NUM_BASE_FILES): Change calculation.
8235 (open_base_files): Change prototype to avoid warning.
8236 (startswith): Delete.
8237 (get_file_basename): Iterate through generated language list not
8238 hard coded list.
8239 (get_base_file_bitmap): Use generated list of files and languages.
8240 (close_output_files): Add prototype to rmove warning.
8241 (main): Iterate through list of generated files from gtyp-gen.h
8242 rather than command line paramaters. Ignore duplicated file
e89617fe 8243 names.
8ac9d31f
TJ
8244
8245 * gengtype.h (parse_file): Amend prototype for const parameter.
e89617fe 8246
8ac9d31f
TJ
8247 * doc/sourcebuild.texi: Document gtfiles variable.
8248
8249 * doc/gty.texi: Document changes to gtfiles variable for front
8250 ends.
8251
8252 * objc/config-lang.in (gtfiles): Add files needed for objc front
8253 end.
8254
0e603223
RS
82552002-07-10 Roger Sayle <roger@eyesopen.com>
8256
8257 PR c/2454
8258 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
8259 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
8260
c5358a5d
RS
82612002-07-10 Roger Sayle <roger@eyesopen.com>
8262 Zack Weinberg <zack@codesourcery.com>
8263
8264 * builtins.def: Make the argument types of abort and exit
8265 independent of the front-end.
8266
a35f8b74
AM
82672002-07-11 Alan Modra <amodra@bigpond.net.au>
8268
8269 * config/rs6000/linux64.h (ASM_SPEC): Define.
8270
89e7058f
AH
82712002-07-10 Aldy Hernandez <aldyh@redhat.com>
8272
6c535c69
ZW
8273 * config/rs6000/rs6000.c (emit_frame_save): New.
8274 (rs6000_frame_related): Replace reg2 before reg.
8275 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
8276 and eh_return registers.
89e7058f 8277
086bbd21
TM
82782002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
8279
8280 Revert all patches for optimization of Complex .op. Real.
8281 * complex_part_zero_p: Remove
8282 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
8283 with x.
8284 * expand_cmplxdiv_wide: Ditto.
8285 * expand_binop: Ditto.
8286
126dbce0
MM
82872002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
8288
8289 * config/avr/avr.md: Fix two 0x80000000 constants to make them
8290 negative also on 64-bit hosts.
8291
8292 Default to -fno-reorder-blocks when optimizing for size.
8293 * config/avr/avr-protos.h (avr_optimization_options): Declare.
8294 * config/avr/avr.c (avr_optimization_options): New function.
8295 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
8296
8297 Optimize returning from simple functions.
8298 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
8299 * config/avr/avr.c (avr_simple_epilogue): New function.
8300 * config/avr/avr.md (return): New insn.
8301
21c318ba
DR
83022002-07-10 Douglas B Rupp <rupp@gnat.com>
8303
8304 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
8305 HAS_INIT_SECTION to protection.
8306
537834c8
MM
83072002-07-10 Mark Mitchell <mark@codesourcery.com>
8308
8309 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
8310 deprecated.
8311
80ba02b1
R
8312Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
8313
8314 * combine.c (gen_lowpart_for_combine): Handle vector modes.
8315 Supply non-VOID mode to simplify_gen_subreg.
8316
ae3aa00d
JH
8317Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
8318
8319 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
8320
029f3983
JL
83212002-07-10 Jeffrey A Law <law@redhat.com>
8322
7a464913
JL
8323 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
8324 as appropriate.
8325
6c535c69
ZW
8326 * mn10200.c (expand_epilogue): Fix test to determine which scratch
8327 register to use.
029f3983 8328
ff27a429
R
8329Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
8330
8331 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
8332 Get mode from dest.
8333 If simplify_gen_subreg fails, try next equivalent.
8334
e6986399
GDR
83352002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
8336
8337 * diagnostic.h: #include location.h
8338 (location_t): Move definition to..
8339 * location.h: ... here. New file.
8340 * tree.h: #include location.h
8341 (DECL_SOURCE_LOCATION): New macro.
8342 (DECL_SOURCE_FILE): Use.
8343 (DECL_SOURCE_LINE): Likewise.
8344 (struct tree_decl): REplace filename and linenum with locus.
8345 * Makefile.in (TREE_H): add location.h
8346 (diagnostic.o): Depends on gt-location.h
8347 (gt-location.h): Depends on s-gtype
8348
7990b46f
MK
83492002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
8350
8351 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
8352 TARGET_OS_CPP_BUILTINS.
8353 * config/rs6000/aix31.h: Likewise.
8354 * config/rs6000/aix41.h: Likewise.
8355 * config/rs6000/aix43.h: Likewise.
8356 * config/rs6000/aix51.h: Likewise.
8357 * config/rs6000/beos.h: Likewise.
8358 * config/rs6000/darwin.h: Likewise.
8359 * config/rs6000/eabi.h: Likewise.
8360 * config/rs6000/eabisim.h: Likewise.
8361 * config/rs6000/linux.h: Likewise.
8362 * config/rs6000/linux64.h: Likewise.
8363 * config/rs6000/lynx.h: Likewise.
8364 * config/rs6000/mach.h: Likewise.
8365 * config/rs6000/rtems.h: Likewise.
8366 * config/rs6000/sysv4.h: Likewise.
8367 * config/rs6000/vxppc.h: Likewise.
efa39e99
DP
8368
83692002-07-09 Devang Patel <dpatel@apple.com>
8370 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
8371 Do not allow ObjC objects as a parameter type for Objective-C methods.
8372 My previous patch restricted 'struct' also.
e89617fe 8373
cd98faa1
NB
83742002-07-09 Neil Booth <neil@daikokuya.co.uk>
8375
8376 * cpperror.c (cpp_error): Default to directive_line within
8377 directives here.
8378 * cppexp.c (cpp_interpret_integer): Only use traditional
8379 number semantics in directives.
8380 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
8381 (do_include_common): Similarly.
8382 * cpptrad.c (scan_out_logical_line): Implement accurate
8383 quoting of <> in #include.
8384 * doc/cpp.texi: Update.
8385
2ad65b0e 8386Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
6c535c69 8387 J"orn Rennecke <joern.rennecke@superh.com>
2ad65b0e
SC
8388
8389 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
8390 * sh.md (attribute issues): Replace with:
8391 (attribute pipe_model). All users changed.
8392 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
8393 All users changed.
8394 (function units sh5issue, sh5fds): New.
8395 (attribute is_mac_media): New.
8396 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
8397 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
8398 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
8399 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
8400 (call_media, call_value_media, sibcall_media): Likewise.
8401 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
8402 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
8403 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
8404 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
8405 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
8406 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
8407 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
8408 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
8409 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
8410 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
8411 (truncdfsf2_media): Likewise.
8412 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
8413 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
8414
b6d33983
R
8415Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
8416
8417 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
8418 * sh.c (general_extend_operand, inqhi_operand): New functions.
8419 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
8420 alternatives using 'N' modifier. Add type.
8421 (adddi3z_media): Likewise. Enable generator function generation.
8422 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
8423 exact predicates / constraints. Add type.
8424 (subsi3): Allow 0 for SHMEDIA.
8425 (udivsi3_i4_media): Use match_operand for input values
8426 rather than hard registers.
8427 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8428 unnecessarily through hard registers. Keep copies of pseudo
8429 registers outside of the libcall sequence.
8430 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
8431 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
8432 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
8433 (extendhidi2, extendqidi2): Likewise.
8434 (andsi3_compact): Name.
8435 (andcdi3): Enable generator function generation.
8436 (zero_extendhisi2, zero_extendqisi2): Rename to
8437 (zero_extendhisi2_compact, zero_extendqisi2_compact).
8438 (extendhisi2, extendqisi2): Rename to
8439 (extendhisi2_compact, extendqisi2_compact).
8440 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
8441 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
8442 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
8443 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
8444 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
8445 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
8446 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
8447 (shmedia32_initialize_trampoline_big): Likewise.
8448 (shmedia32_initialize_trampoline_little): Likewise.
8449 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
8450 (negdi2): Remove spurious T clobber.
8451 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
8452 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
8453 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
8454 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
8455 (ic_invalidate_line_media): Write back data cache before invalidating
8456 instruction cache. Add type.
8457 (movsf_media): Sign-extend when the destination is a general
8458 purpose register. Add type.
8459 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
8460 (casesi_worker_0+1): Only increment ref count for proper label.
8461 (casesi_worker_0+2): Likewise.
8462
7ca0873c
MM
84632002-07-09 Mark Mitchell <mark@codesourcery.com>
8464
8465 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
8466
26b10ae0 84672002-07-09 Steve Ellcey <sje@cup.hp.com>
7ca0873c 8468
26b10ae0
SE
8469 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
8470 from Pmode to ptr_mode.
8471 (get_exception_pointer): Ditto.
8472 (connect_post_landing_pads): Ditto.
8473 (dw2_build_landing_pads): Ditto.
8474
0c3a2ea0
SE
84752002-07-08 Steve Ellcey <sje@cup.hp.com>
8476 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
8477 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
8478 (handle_pragma_redefine_extname): Change to use new function.
8479
26c34780
RS
84802002-07-08 Roger Sayle <roger@eyesopen.com>
8481
8482 * combine.c (combine_simplify_rtx): Add an explicit cast
8483 to avoid signed/unsigned comparison warning.
8484 (simplify_if_then_else): Likewise.
8485 (extended_count): Likewise.
8486 (simplify_shift_const): Likewise.
8487 (simplify_comparison): Likewise.
8488
1d4047e0
RS
84892002-07-08 Richard Sandiford <rsandifo@redhat.com>
8490
8491 * config/mips/mips.md: Add imadd type. Update scheduler description
8492 to use imadd as well as imul.
8493 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
8494 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
8495 (*mul_sub_si): Likewise for first alternative. Change second
8496 alternative from imul to multi.
8497
5351f1ca
NB
84982002-07-07 Neil Booth <neil@daikokuya.co.uk>
8499
8500 * c-common.c (c_common_post_options): Update prototype;
8501 don't init backends if preprocessing only.
8502 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
8503 * langhooks.h (struct lang_hooks): Update post_options to
8504 return a boolean.
8505 * toplev.c (parse_options_and_default_flags, do_compile,
8506 lang_independent_init): Update prototypes. Allow the
8507 front end to specify that there is no need to initialize
8508 the back end.
8509 (general_init): Move call to hex_init here...
8510 (toplev_main): ...from here. Pass flag for back end init
8511 suppression.
8512
c8cc4417
R
8513Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8514
8515 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
8516 (PREDICATE_CODES): Add entries for equality_comparison_operator,
8517 greater_comparison_operator and less_comparison_operator.
8518 * sh.c (print_operand): Add '\'' code. Make 'o' handle
8519 more operators.
8520 (equality_comparison_operator): New function.
8521 (greater_comparison_operator, less_comparison_operator): Likewise.
8522 * sh.md (beq_media_i): Disable generator function generation.
8523 Use match_operator to handle a whole class of comparisons. Add
8524 modifier in output template to provide branch prediction. Add type.
8525 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
8526 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
8527 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
8528 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
8529
957ec0f9
HPN
85302002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
8531
8532 Emit MMIX function prologue and epilogue as rtl.
8533 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
8534 not unprototyped get_hard_reg_initial_val.
8535 ("call_value", "nonlocal_goto_receiver"): Ditto.
8536 ("return"): Make define_expand. Move real insn to...
8537 ("*expanded_return"): New pattern.
8538 ("prologue", "epilogue"): New define_expands.
8539 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
8540 (struct machine_function): New member in_prologue.
8541 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
8542 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
8543 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
8544 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
8545 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
8546 (LOCAL_REGNO): Define. Adjust comment.
8547 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
8548 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
8549 leaf_function_p.
8550 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
8551 the prologue.
8552 (mmix_target_asm_function_prologue): Make static. Just mark that
8553 the prologue is being emitted. Move guts to...
8554 (mmix_expand_prologue): New function. Adjust for emitting
8555 prologue as rtl. For sizes, use HOST_WIDE_INT only.
8556 (mmix_target_asm_function_epilogue): Make static. Simply emit a
8557 \n. Move guts to...
8558 (mmix_expand_epilogue): New function. Adjust for emitting
8559 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
8560 (mmix_target_asm_function_end_prologue): Mark that the prologue
8561 has ended.
8562 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
8563 (mmix_conditional_register_usage): Improve comments.
8564 (mmix_local_regno): New function.
8565 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
8566 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
8567 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
8568 (mmix_get_hard_reg_initial_val): Ditto.
8569
7ab5c789
AJ
85702002-07-06 Andreas Jaeger <aj@suse.de>
8571
8572 * toplev.c (set_fast_math_flags): Don't use ISO C style function
8573 definitions.
8574 * gengtype.c (open_base_files): Likewise.
8575 (close_output_files): Likewise.
8576 * tracer.c (find_best_predecessor): Likewise.
8577 (find_best_successor): Likewise.
8578 (ignore_bb_p): Likewise.
8579
df061a43
RS
85802002-07-05 Roger Sayle <roger@eyesopen.com>
8581
8582 PR c++/7099
8583 * builtin-attrs.def: Define new attribute lists for use in
8584 builtins.def.
8585 * builtins.def [DEF_BUILTIN]: Modify to take an additional
8586 ATTRS argument, an enumerated value defined in builtin-attrs.def
8587 that represents the attribute list for the builtins. Modify
8588 all builtin functions to pass an appropriate attribute list.
8589 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
8590 their required noreturn attributes.
8591 * tree.h (enum_builtin_function): Ignore the additional parameter
8592 to DEF_BUILTIN.
8593 * builtins.c (built_in_names): Likewise.
8594 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
8595 argument with a tree representing the functions attribute list.
8596 Pass this "attrs" argument to builtin_function. No longer handle
8597 the noreturn_p processing manually.
8598 (built_in_attributes): Move the definitions from builtin-attrs.def
8599 before c_common_nodes_and_builtins.
8600 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
8601 DEF_BUILTIN, passing it to both builtin_function and the changed
8602 builtin_function_2.
8603
8604 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
8605 __builtin__exit and __builtin__Exit.
8606
e5eb8de8
SC
86072002-07-05 Stephane Carrez <stcarrez@nerim.fr>
8608
8609 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
8610 QI mode registers in soft registers.
7ab5c789 8611 ("zero_extendqihi2"): Do not take into account soft registers
e5eb8de8
SC
8612 for register allocation (use '*' constraint).
8613
4c8aed14
SC
86142002-07-05 Stephane Carrez <stcarrez@nerim.fr>
8615
8616 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
8617 it is dead.
8618 ("*ashrsi3"): Likewise.
8619 ("*lshrsi3"): Likewise.
8620
99ed68ea
VM
86212002-07-05 Vladimir Makarov <vmakarov@redhat.com>
8622
8623 * genautomata.c (output_max_insn_queue_index_def): Take latencies
8624 into account.
8625
4c8aed14 86262002-07-05 Stephane Carrez <stcarrez@nerim.fr>
581fd392
SC
8627
8628 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
8629 address computation and memory moves.
8630
9833f679
MM
86312002-07-03 Mark Mitchell <mark@codesourcery.com>
8632
8633 PR c++/6706
8634 * dwarfout.c (output_reg_number): Fix warning message.
8635 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
8636 before using it.
7ab5c789 8637
81bca2f5
RO
86382002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8639
8640 * gcc/gcc.c (asm_debug): Move initialization ...
8641 (init_spec): ... here.
8642
17f44f02
NS
86432002-07-05 Nathan Sidwell <nathan@codesourcery.com>
8644
8645 * c-parse.in (extdef): Append ';'.
8646 (old_style_parm_decls): Append ';'.
8647
da77408f
DJ
86482002-07-04 Daniel Jacobowitz <drow@mvista.com>
8649
8650 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
8651 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
8652 to gcc_cv_as_gstabs_flag.
8653 * configure: Rebuilt.
8654
ec52b446
GK
86552002-07-04 Geoffrey Keating <geoffk@redhat.com>
8656
8657 * ggc.h (ggc_add_root): Document as obsolete.
8658
8721e3df
R
8659Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
8660
8661 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
8662 (mshflo_w): Likewise.
8663
3767c0fd
R
8664Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8665
8666 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
8667 vector mode subregs of constants to finding integer mode
8668 subregs of constants.
8669 * cse.c (cse_insn): Use simplify_gen_subreg.
8670 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
8671 From a vector mode expression of different size than the
8672 target mode.
8673
4e314d1f
EC
86742002-07-03 Eric Christopher <echristo@redhat.com>
8675
8676 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
8677 * config/mips/mips.h: Remove deprecated -m<processor> options
8678 and cc1_cpu_spec associated.
8679 (CONSTANT_ADDRESS_P): Fix last patch.
8680 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
8681 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
8682 sunge_sf): Remove.
8683
6f0361e3
SS
86842002-07-03 Stan Shebs <shebs@apple.com>
8685
8686 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
8687 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
8688 (CPP_SPEC): Remove insertion of APPLE_CC definition.
8689
3129af4c
RS
86902002-07-03 Roger Sayle <roger@eyesopen.com>
8691
8692 * combine.c (struct_undo): Change types of recorded substitutions
8693 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
8694 (do_SUBST_INT): Change types of the substitution from unsigned int
8695 to int, to avoid compilation warning from SUBST_INT's only caller.
8696
8697 (make_extraction): Add cast to avoid compilation warning.
8698 (force_to_mode): Remove cast to avoid compilation warning.
8699
c7375e61
EB
87002002-07-03 Eric Botcazou <ebotcazou@multimania.com>
8701 Jeff Law <law@redhat.com>
8702
8703 * i386.md (length_immediate attribute): Fix typo.
8704 (length_address attribute): Likewise.
8705 (modrm attribute): Set it to 0 for immediate call instructions.
8706 (jcc_1 pattern): Set modrm attribute to 0.
8707 (jcc_2 pattern ): Likewise.
8708 (jump pattern): Likewise.
8709 (doloop_end_internal pattern): Explicitly set length.
8710 (leave pattern): Fix typo.
8711 (leave_rex64 pattern): Likewise.
8712
61c07d3c
DE
87132002-07-03 David Edelsohn <edelsohn@gnu.org>
8714
8715 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
8716 in FPR as preference.
8717 (fctiwz): Same.
8718 (floatdidf2, fix_truncdfdi2): Same.
8719 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
8720 (floatditf2): Same.
8721 (floatsitf2, fix_trunctfsi2): SImode in GPR.
8722 (ctrdi): Remove FPR alternative and splitter.
8723
87242002-07-03 Will Cohen <wcohen@redhat.com>
77966be3
WC
8725
8726 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
8727
34a80643
R
8728Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
8729
8730 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
8731 than UNITS_PER_WORD, unless this is little endian and the first unit
8732 in this word. Let extract_bit_field decide how to load an element.
8733 Force arguments to matching mode.
8734 (expand_vector_unop): Likewise.
8735
8736 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
8737 consist of word_mode elements.
8738 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
8739 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
8740 (build_unary_op): Allow vector types for BIT_NOT_EPR.
8741 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
8742 CONST_VECTOR.
8743 * optabs.c (expand_vector_binop): Try to perform operation in
8744 smaller vector modes with same inner size. Add handling of AND, IOR
8745 and XOR. Reject expansion to inner-mode sized scalars when using
8746 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
8747 (expand_vector_unop): Try to perform operation in smaller vector
8748 modes with same inner size. Add handling of one's complement.
8749 When there is no vector negate operation, try a vector subtract
8750 operation. Use simplify_gen_subreg on constants.
8751 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
8752 constants into smaller vectors with same inner mode, and to
8753 integer CONST_DOUBLEs.
8754
622d3731
KG
87552002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8756
8757 * c-parse.in (parsing_iso_function_signature): New variable.
8758 (extdef_1): New, copied from...
8759 (extdef): ... here. Reset parsing_iso_function_signature.
8760 (old_style_parm_decls): Reset parsing_iso_function_signature.
8761 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
8762 Warn about ISO C style function definitions.
8763 (nested_function, notype_nested_function): Reset
8764 parsing_iso_function_signature.
8765 (parmlist_2): Set parsing_iso_function_signature.
8766
8767 * doc/invoke.texi (-Wtraditional): Document new behavior.
8768
9bb46191
CD
87692002-07-02 Chris Demetriou <cgd@broadcom.com>
8770
8771 * config.gcc (mips*el-*-*): Use tm_defines to set
8772 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
8773 * config/mips/little.h: Remove.
8774
e1c2dd26 87752002-07-02 Devang Patel <dpatel@apple.com>
c40da518 8776
c40da518 8777 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
31e25abd
CD
8778 object as parameter. Prevent something like 'NSObject' to be
8779 used as the type for a method argument.
c40da518 8780
0879540b
NB
87812002-07-03 Neil Booth <neil@daikokuya.co.uk>
8782
8783 * cpptrad.c: Update comment.
8784
b6fb43ab 87852002-07-02 Neil Booth <neil@daikokuya.co.uk>
4e314d1f 8786
b6fb43ab
NB
8787 * doc/cpp.texi: Update for traditional preprocessing changes.
8788 * goc/cppopts.texi: Similarly.
8789
c1c5187c
ZL
87902002-07-02 Ziemowit Laski <zlaski@apple.com>
8791
8792 * c-parse.in (designator): Enable designated initializers if ObjC.
8793 (objcmessageexpr): Remove references to objc_receiver_context.
8794 * objc/objc-act.h (objc_receiver_context): Remove decl.
8795 * objc/objc-act.c (objc_receiver_context): Remove.
8796 (lookup_objc_ivar): Test objc_method_context instead of
8797 objc_receiver_context.
8798
52702ae1
R
8799Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
8800
8801 * sh.c (print_operand, case 'N'): Allow zero vector.
8802 (arith_reg_or_0_operand): Likewise.
8803 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
4e314d1f 8804 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
52702ae1
R
8805 IOR, XOR, PLUS and SET and take their respective constant
8806 ranges into account.
8807 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
8808 * sh.md (subdi3, subdi3_media): Allow zero operand.
8809 (movv8qi_i+3): Only vector that is not split is the zero vector.
8810 Fix operand 3 to simplify_subreg.
8811 (movv2si_i): Split alternative 1.
8812 (mshfhi_l_di_rev+1): New splitter.
8813
49e7b251
NB
88142002-07-02 Neil Booth <neil@daikokuya.co.uk>
8815
ba57a9c0 8816 PR preprocessor/7029
49e7b251
NB
8817 * cppinit.c (cpp_handle_option): Suppress warnings with an
8818 implicit "-w" for "-M" and "-MM".
8819 * doc/cppopts.texi: Update.
8820
a3acdc0c
RS
88212002-07-01 Roger Sayle <roger@eyesopen.com>
8822
8823 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
8824 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
8825 builtin_function.
8826
0b558962
AM
88272002-07-02 Alan Modra <amodra@bigpond.net.au>
8828
8829 * README.Portability: Fix typos.
8830
9a81c5b7
HPN
88312002-07-01 Hans-Peter Nilsson <hp@axis.com>
8832
8833 PR target/7177
8834 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
8835 of indirections for register inside sign-extended mem part.
8836
6a2dd09a
RS
88372002-07-01 Roger Sayle <roger@eyesopen.com>
8838
8839 * tree.h: Modify builtin_function interface to take an extra
8840 argument ATTRS, which is a tree representing an attribute list.
8841
8842 * c-decl.c (builtin_function): Accept additional parameter.
8843 * objc/objc-act.c (builtin_function): Likewise.
8844 * f/com.c (builtin_function): Likewise.
8845 * java/decl.c (builtin_function): Likewise.
8846 * ada/utils.c (builtin_function): Likewise.
8847 * cp/decl.c (builtin_function): Likewise.
8848 (builtin_function_1): Likewise.
8849
8850 * c-common.c (c_common_nodes_and_builtins): Pass an additional
8851 NULL_TREE argument to builtin_function. (builtin_function_2):
8852 Likewise.
8853 * cp/call.c (build_java_interface_fn_ref): Likewise.
8854 * objc/objc-act.c (synth_module_prologue): Likewise.
8855 * java/decl.c (java_init_decl_processing): Likewise.
8856 * f/com.c (ffe_com_init_0): Likewise.
8857
8858 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
8859 NULL_TREE argument to builtin_function.
8860 * config/arm/arm.c (def_builtin): Likewise.
8861 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
8862 * config/i386/i386.c (def_builtin): Likewise.
8863 * config/ia64/ia64.c (def_builtin): Likewise.
8864 * config/rs6000/rs6000.c (def_builtin): Likewise.
8865
e20569ae
ZW
88662002-07-01 Zack Weinberg <zack@codesourcery.com>
8867
8868 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
8869 * config/mips/t-isa3264: Likewise.
8870 * config/mmix/t-mmix: Likewise.
8871
f1b690f1
JDA
88722002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
8873
8874 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
8875
6bfa5aac
RS
88762002-07-01 Roger Sayle <roger@eyesopen.com>
8877
8878 PR opt/4046
8879 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
8880 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
8881 B are truth values.
8882
9a5c1b9d
NN
88832002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
8884
8885 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
8886
d3fc4dbc
MK
88872002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
8888
3b2124df
MK
8889 * README.Portability (Function prototypes): Give an example of
8890 declaring and defining a function with no arguments.
8891
d3fc4dbc
MK
8892 * README.Portability (Function prototypes): Document new
8893 variable-argument function macros.
8894
c1b92d09
R
8895Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
8896
8897 * sh.c (langhooks.h): Include.
8898 (sh_init_builtins, sh_media_init_builtins): New functions.
8899 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
8900 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
8901 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
8902 (builtin_description): New struct tag.
8903 (signature_args, bdesc): New arrays.
8904 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
8905 (print_operand): Add 'N' modifier.
8906 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
8907 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
8908 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
8909 (CONST_COSTS): Add special case for SHmedia AND.
8910 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
8911 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
8912 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
8913 target_operand can also be const or unspec.
8914 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
8915 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
8916 (attribute type): Add new types.
8917 (anddi3): Add splitter.
8918 (movdi_const_16bit+1): Add code to handle vector constants and
8919 bitmasks efficiently.
8920 (shori_media): Have generator function made.
8921 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
8922 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
8923 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
8924 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
8925 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
8926 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
8927 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
8928 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
8929 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
8930 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
8931 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
8932 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
8933 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
8934 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
8935 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
8936 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
8937 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
8938 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
8939 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
8940 (ftrv): Likewise.
8941
8942 (fpu_switch+1, fpu_switch+2): Remove constraint.
8943
97ebc06f
AH
89442002-07-01 Aldy Hernandez <aldyh@redhat.com>
8945
6c535c69
ZW
8946 * tree.c (build_function_type_list): Update function comment.
8947 Rename first argument to return_type.
97ebc06f 8948
353a10d0
NB
89492002-07-01 Neil Booth <neil@daikokuya.co.uk>
8950
8951 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
8952 tradcif.y and related files.
8953
e34cabb3
NB
89542002-07-01 Neil Booth <neil@daikokuya.co.uk>
8955
8956 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
8957
8bf3ccbb
KG
89582002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8959
8960 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
8961
44eedb75 8962See ChangeLog.7 for earlier changes.
This page took 1.475777 seconds and 5 git commands to generate.