Jeff Law
e9a25f70a0
Update mainline egcs to gcc2 snapshot 971021.
...
From-SVN: r16278
1997-11-02 14:19:36 -07:00
Mike Stump
9ad8a5f011
except.c (expand_ex_region_start_for_decl): Emit EH_REGION_BEG notes for sjlj exceptions too.
...
* except.c (expand_ex_region_start_for_decl): Emit EH_REGION_BEG
notes for sjlj exceptions too.
(expand_eh_region_end): Similarly for EH_REGION_END notes.
(exception_optimize): Optimize EH regions for sjlj exceptions too.
* final.c (final_scan_insn): Don't output labels for EH REGION
notes if doing sjlj exceptions.
From-SVN: r16266
1997-11-01 21:43:34 -07:00
Jason Merrill
c5cec899dd
dwarf2out.c: s/flag_verbose_asm/flag_debug_asm/
...
* dwarf2out.c: s/flag_verbose_asm/flag_debug_asm/
* final.c (final_end_function): Also do dwarf2 thing if
DWARF2_DEBUGGING_INFO.
(final_start_function): Likewise.
From-SVN: r15713
1997-09-25 00:57:50 -04:00
Jason Merrill
6020d3605c
final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
...
* final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
* dwarf2out.c (dwarf2out_frame_debug): Pass the whole insn along.
(dwarf2out_stack_adjust): A BARRIER resets the args space to 0.
* except.c (end_eh_unwinder): Subtract 1 from return address.
* libgcc2.c (__throw): Likewise.
(find_exception_handler): Don't change PC here. Compare end with >.
From-SVN: r15554
1997-09-18 19:33:56 -04:00
Jason Merrill
0021b564f4
dwarf2 EH support
...
From-SVN: r15255
1997-09-10 14:00:28 -04:00
Jeff Law
db7cafb0ad
version.c: Bump for snapshot.
...
* version.c: Bump for snapshot.
* expmed.c (expand_divmod): Make op1_is_pow2 depend on unsignedp
for negative constants. Promote EXACT_DIV_EXPR to TRUNC_DIV_EXPR
when op1_is_pow2.
* final.c (shorten_branches): During first pass, assume worst
possible alignment for ADDR_VEC and ADDR_VEC_DIFF insns.
* Makefile.in (distclean): Remove various things left around
by running the testsuite.
From-SVN: r15136
1997-09-07 16:10:34 -06:00
J"orn Rennecke
04da53bd68
final.c (shorten_branches): Don't count the lengths of deleted instructions.
...
* final.c (shorten_branches): Don't count the lengths of deleted
instructions.
From-SVN: r15074
1997-09-04 09:47:40 -06:00
Jason Merrill
a6ab3aad51
x
...
From-SVN: r14390
1997-07-04 18:49:39 +00:00
Richard Kenner
b88c92ccb2
(final_scan_insn): Use single_set to check cc_status.flags.
...
From-SVN: r14177
1997-06-09 09:19:15 -04:00
Richard Kenner
499df3393d
(profile_function): Call function_section, not text_section.
...
From-SVN: r14076
1997-05-17 16:26:47 -04:00
Mike Stump
db3cf6fb33
reformat a little to match GNU coding standards.
...
From-SVN: r14024
1997-05-06 23:05:54 +00:00
Richard Kenner
65ed39df89
(profile_function): Only call ASM_OUTPUT_REG_{PUSH,POP} if defined.
...
From-SVN: r13937
1997-04-20 12:25:03 -04:00
Richard Kenner
0b73ca18ad
(profile_function): Save the static chain register around the call to
...
the profiler function.
From-SVN: r13865
1997-04-13 08:44:41 -04:00
Doug Evans
9e2f9a7f6a
final.c (LONG_TYPE_SIZE): Define.
...
* final.c (LONG_TYPE_SIZE): Define.
(count_instrumented_arcs): New variable.
(end_final, profile_after_prologue, leaf_function_p): Add support
for profile_arc_flag.
(add_bb): Only call CC_STATUS_INIT if HAVE_cc0.
From-SVN: r13813
1997-03-28 22:35:56 +00:00
Jim Wilson
3d14e82f05
(shorten_branches): Split all insns before computing insn lengths.
...
(shorten_branches): Split all insns before computing insn
lengths.
(final_scan_insn, case default): If HAVE_ATTR_length defined, call
abort for any insn that has a '#' output template.
From-SVN: r13744
1997-03-18 14:55:01 -08:00
Jason Merrill
a1d7ffe39c
x
...
From-SVN: r13652
1997-02-16 10:05:43 +00:00
Jason Merrill
469ac9939b
x
...
From-SVN: r13305
1996-12-13 01:31:47 +00:00
Jason Merrill
a94dbf2c26
x
...
From-SVN: r13258
1996-12-09 22:31:23 +00:00
Richard Kenner
21e3a81b93
(asm_fprintf): Use "ll" prefix for a long long HOST_WIDE_INT.
...
(output_{asm_insn,addr_const}): Use HOST_WIDE_INT_PRINT_*.
From-SVN: r13174
1996-11-15 14:13:58 -05:00
Jason Merrill
9a666dda81
x
...
From-SVN: r13160
1996-11-15 07:14:08 +00:00
Jason Merrill
d291dd49ee
DWARF2
...
From-SVN: r12920
1996-10-09 01:52:26 +00:00
Torbjorn Granlund
2f16edb13c
(final): Update insn_current_address before calling final_scan_insn.
...
From-SVN: r12918
1996-10-08 23:36:57 +00:00
Jason Merrill
7aecea252c
DWARF
...
From-SVN: r12904
1996-10-04 23:17:36 +00:00
Mike Stump
3d1953912d
install EH code
...
From-SVN: r12548
1996-07-23 19:58:32 +00:00
Mike Stump
0f41302f47
formatting tweaks
...
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Stan Cox
462da2af3d
(final_scan_insn): Modify conditional moves whose cc is nonstandard.
...
From-SVN: r11943
1996-05-06 21:01:51 +00:00
Jason Merrill
2786cbadc7
-fno-common change
...
From-SVN: r11940
1996-05-06 18:36:48 +00:00
Richard Kenner
30f5e9f517
(final_scan_insn): Allow removal of redundant test and compare
...
instructions that use clobbers.
From-SVN: r11806
1996-04-16 08:53:07 -04:00
Richard Kenner
03ffa17103
(final_scan_insn, case CODE_LABEL): Invoke FINAL_PRESCAN_INSN if
...
FINAL_SCAN_LABEL is defined.
From-SVN: r11548
1996-03-16 19:31:33 -05:00
Richard Kenner
47431dff3c
(end_final): Extended header increased to 11 words.
...
(profile_after_prologue): FUNCTION_BLOCK_PROFILER uses count_basic_blocks
instead profile_label_no.
From-SVN: r10849
1995-12-24 17:41:43 -05:00
Richard Kenner
3c7342722d
(final_start_function): Move call to sdbout_begin_function back to...
...
(final_start_function): Move call to sdbout_begin_function back to
final_scan_insn on MIPS systems so parameter descriptions are
recognized.
From-SVN: r10591
1995-11-26 13:50:57 -05:00
Richard Kenner
c7eee2df1d
(final_scan_insn): When recur for instruction in delay slot...
...
(final_scan_insn): When recur for instruction in delay slot, add loop
around recursive call in case the instruction gets split.
From-SVN: r10511
1995-10-26 08:01:21 -04:00
Richard Kenner
5fad689870
(final_start_function): Always call sdbout_begin_function and
...
xcoffout_begin_function, even if no line number info.
From-SVN: r10231
1995-08-13 21:38:53 -04:00
Richard Kenner
2e2bbce29a
(final_start_function): If SDB_DEBUG, call sdbout_begin_function.
...
If XCOFF_DEBUG, call xcoffout_begin_function instead of
xcoffout_output_first_source_line.
(final_scan_insn): Don't call sdbout_begin_function or xcoffout_begin_function.
From-SVN: r10181
1995-07-28 09:02:42 -04:00
Richard Kenner
fff752ad80
(final_scan_insn): Fix error in last change.
...
From-SVN: r10081
1995-06-28 17:29:39 -04:00
Richard Kenner
de2b56f93d
(final_scan_insn): Don't call alter_cond unless condition is on cc0.
...
From-SVN: r10062
1995-06-27 12:39:46 -04:00
Richard Kenner
940d9d638b
Update FSF address.
...
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Torbjorn Granlund
bb4aaf18a9
(shorten_branches): For non-optimizing compiles, break after first pass.
...
From-SVN: r9514
1995-04-27 20:18:13 +00:00
Richard Kenner
cb64953075
(output_asm_name): New function, using code taken from output_asm_insn.
...
(output_asm_insn): If flag_print_asm_name, print the comment after the
first assembler instruction even in multi-instruction templates.
From-SVN: r9030
1995-02-22 08:12:44 -05:00
Richard Kenner
5a1a6efdc8
(split_double): Handle CONST_INT that holds both words.
...
From-SVN: r9028
1995-02-22 07:52:50 -05:00
Doug Evans
4d1065ed1b
varasm.c (function_section): New function.
...
* varasm.c (function_section): New function.
(assemble_start_function): Call it.
* output.h (function_section): Declare it.
* final.c (final_scan_insn): Call function_section instead of
text_section.
* dwarfout.c (dwarfout_begin_block): Likewise.
(dwarfout_end_block): Likewise.
(dwarfout_label): Likewise.
(dwarfout_begin_function): Likewise.
(dwarfout_end_function): Likewise.
(dwarfout_line): Likewise.
From-SVN: r8942
1995-02-13 22:08:43 +00:00
Richard Kenner
eac400810b
(high_{block,function}_linenum): New variables.
...
(final_start_function): Initialize them.
(final_end_function): Pass highest line number to function end debugging
routines.
(final_scan_insn): Pass highest line number in block to block end debugging
function.
(output_source_line): Update highest line in block and function.
From-SVN: r8827
1995-01-27 16:54:55 -05:00
Ian Lance Taylor
f76b9db287
Check target endianness at run time, not compile time
...
From-SVN: r8470
1994-11-16 21:10:09 +00:00
Doug Evans
5d0930ea93
(asm_insn_count): Handle ASM_INPUTs too.
...
From-SVN: r8111
1994-09-21 00:05:57 +00:00
Jim Wilson
1ba298e525
(getpwd): Declare.
...
From-SVN: r7755
1994-07-12 18:31:36 -07:00
Jim Wilson
67e23d2f5c
(end_final): Store full path name in .d file not just the filename.
...
From-SVN: r7745
1994-07-12 10:09:32 -07:00
Richard Kenner
14e7bf7c23
(end_final,profile_function): Profiling variables are size of pointer,
...
not int.
From-SVN: r7617
1994-06-30 05:46:10 -04:00
Doug Evans
3cf2715de9
Restore to rcs version 1.59 (1.60 is an empty file).
...
From-SVN: r7614
1994-06-30 03:43:24 +00:00
Richard Kenner
0d45dc27a1
(end_final,profile_function): Profiling variables are size of pointer,
...
not int.
From-SVN: r7609
1994-06-29 18:57:34 -04:00
Jim Wilson
b2526fe621
(output_source_line): Call xcoffout_source_line.
...
From-SVN: r7409
1994-05-31 17:23:08 -07:00
Richard Kenner
bc29e2ad03
(split_double): Fix arg of REAL_VALUE_TO_TARGET_DOUBLE.
...
From-SVN: r7314
1994-05-16 17:52:21 -04:00
Richard Kenner
318e45ce5a
Include stdio.h and ctype.h early.
...
Add prototypes for static functions.
From-SVN: r7115
1994-04-21 15:29:50 -04:00
Jim Wilson
bdbc824c46
(final_scan_insn): Pass new arg, block num, to sdbout_end_block.
...
From-SVN: r6965
1994-04-04 14:38:54 -07:00
Richard Kenner
04fe43855a
Include <stdarg.h> instead of "gstdarg.h"; similarly for varargs.
...
From-SVN: r6922
1994-03-30 17:15:20 -05:00
Richard Kenner
6e701b09fc
(output_source_line): Remove decl of unused variable.
...
From-SVN: r6881
1994-03-25 14:07:46 -05:00
Richard Kenner
39178486b7
(final_scan_insn): Always set OPS and use alloca.
...
From-SVN: r6643
1994-02-27 10:47:55 -05:00
Jim Wilson
9316e820d0
(end_final): Pass BIGGEST_ALIGNMENT not align to
...
ASM_OUTPUT_ALIGNED_LOCAL.
From-SVN: r6577
1994-02-16 12:50:51 -08:00
Jeff Law
f7714ced3d
final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide default definition.
...
* final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide default
definition.
(asm_insn_count): Use IS_ASM_LOGICAL_LINE_SEPARATOR rather
than assuming the logical line separator is ';'.
From-SVN: r6524
1994-02-10 13:58:13 -07:00
Richard Kenner
4f90e4a0f7
If __STDC__, include gstdarg and use ANSI form of varargs.
...
From-SVN: r6514
1994-02-10 08:07:10 -05:00
Richard Kenner
177ad45ae0
(profile_function): Set ALIGN properly.
...
From-SVN: r6242
1993-12-15 18:48:15 -05:00
Steve Chamberlain
e748c6bd0c
*** empty log message ***
...
From-SVN: r6138
1993-11-22 19:00:28 +00:00
Richard Kenner
d5c724c4e7
(dialect_number): New variable.
...
(init_final): Initialize it.
(output_asm_insn, asm_fprintf): Support ASSEMBLER_DIALECT.
From-SVN: r5744
1993-10-12 07:58:29 -04:00
Richard Stallman
bfe3c3615a
(final_scan_insn): Call walk_alter_subreg for operands that are PLUS
...
or MULT, before constrain_operands.
From-SVN: r5743
1993-10-12 11:56:41 +00:00
Richard Kenner
7be2640ddb
(asm_fprintf): Add cases for 'w' and 'l'.
...
From-SVN: r5653
1993-10-06 21:46:49 -04:00
Michael Meissner
92832bb59a
Update basic block profiling.
...
From-SVN: r5249
1993-09-02 10:50:41 +00:00
Richard Stallman
6baacf6322
Include ctype.h.
...
From-SVN: r4743
1993-06-26 12:27:06 +00:00
Richard Stallman
4e75433b46
(output_addr_const): Don't insert a leading space
...
in the CONST_DOUBLE_HIGH != 0 case.
From-SVN: r4684
1993-06-17 04:44:04 +00:00
Richard Stallman
8fa20c2630
(shorten_branches): Conditionalize last change
...
on SHORTEN_WITH_ADJUST_INSN_LENGTH.
(shorten_branches): Call ADJUST_INSN_LENGTH during the shortening phase.
From-SVN: r4600
1993-05-31 03:59:30 +00:00
Richard Stallman
e8b1e86872
(shorten_branches): Do not call insn_current_length with an insn which has a non-varying length.
...
(shorten_branches): Do not call insn_current_length
with an insn which has a non-varying length. Use insn_lengths instead.
From-SVN: r4590
1993-05-29 00:11:59 +00:00
Richard Stallman
81d3c53859
(output_addr_const): Don't printing leading zeros.
...
From-SVN: r4466
1993-05-15 13:06:59 +00:00
Richard Stallman
4b438c9e61
(split_double) : Use REAL_VALUE macros to extract ints
...
from float mode CONST_DOUBLEs.
From-SVN: r3937
1993-03-31 05:46:40 +00:00
Jim Wilson
4cc70cf4bf
(end_final): Don't call assemble_zeros with an size argument of zero.
...
From-SVN: r3489
1993-02-18 17:20:58 -08:00
Richard Kenner
f65b79390a
(final_scan_insn): Call alter_subreg on duplicate operands (in case we
...
need to split the insn).
From-SVN: r3318
1993-01-24 07:18:26 -05:00
Brendan Kehoe
c716c35df1
Undo previous change.
...
From-SVN: r3252
1993-01-15 16:01:03 -05:00
Brendan Kehoe
c3c305882b
integrate.c (const_equiv): Delete decl, since it's never defined.
...
* integrate.c (const_equiv): Delete decl, since it's never defined.
(fold_out_const_cc0): Likewise.
* loop.c (delete_insn_forces): Likewise.
* final.c (alter_cond): Delete decl, since it's never defined.
From-SVN: r3209
1993-01-12 18:29:55 -05:00
Tom Wood
89881415f5
(final): When producing SDB debugging info...
...
(final): When producing SDB debugging info, delete line
number notes from inlined functions in other files as well as
duplicate line number notes.
From-SVN: r2763
1992-11-20 20:37:05 +00:00
Richard Stallman
bc9aee2d4d
(output_addr_const): Always use FILE, not asm_out_file.
...
From-SVN: r2508
1992-10-18 08:16:49 +00:00
Richard Stallman
2c16c66660
(output_asm_insn): Advance over the = when processing %=.
...
From-SVN: r2447
1992-10-14 01:21:59 +00:00
James Van Artsdalen
b329456eff
(alter_cond): If CC_NOT_SIGNED, convert signed conditions to unsigned.
...
From-SVN: r2413
1992-10-12 21:37:11 +00:00
Richard Stallman
1f1fd3b1f4
(output_addr_const): Call simplify_subtraction.
...
From-SVN: r2403
1992-10-12 08:23:25 +00:00
Tom Wood
8f313754fc
(final_scan_insn): Call dwarfout_begin_function.
...
(final_end_function): Call dwarfout_end_function.
From-SVN: r2359
1992-10-07 20:23:56 +00:00
Richard Kenner
b6c9b49af9
(shorten_branches): Correctly access insn needing delay slot.
...
From-SVN: r2216
1992-09-23 19:23:47 -04:00
Jim Wilson
61a6dd99fd
(only_leaf_regs_used): Check for global_regs.
...
From-SVN: r2130
1992-09-15 18:03:48 -07:00
Timothy Moore
48f25c7ad6
(shorten_branches): Do shorten branches with delay slots
...
if the number of delay slots is constant.
From-SVN: r2098
1992-09-10 22:20:15 +00:00
Richard Stallman
ce35884de1
(output_addr_const): If 2nd arg of MINUS is negative integer, put it in parens.
...
From-SVN: r2090
1992-09-09 20:35:19 +00:00
Richard Stallman
cdd8c058e9
(final_scan_insn): If 2 consec line notes have same line num, can omit one.
...
From-SVN: r1943
1992-08-25 17:43:28 +00:00
Richard Stallman
bc04dacb8e
Move include of stdio.h before output.h.
...
From-SVN: r1917
1992-08-20 20:18:38 +00:00
Richard Kenner
f8d97cf472
Put include of stdio.h after GCC header files (for i860-stardent-sysv4).
...
From-SVN: r1905
1992-08-20 05:58:18 -04:00
Richard Stallman
e92b33f508
(final_scan_insn): Call dwarfout_begin_block and
...
dwarfout_end_block even for -g1.
From-SVN: r1806
1992-08-12 07:28:49 +00:00
Richard Stallman
8f300dc330
(final_scan_insn): Use ASM_OUTPUT_ADDR_DIFF_ELT
...
and ASM_OUTPUT_ADDR_VEC_ELT only if defined.
From-SVN: r1782
1992-08-07 04:17:06 +00:00
Richard Kenner
aaf5be8b93
entered into RCS
...
From-SVN: r1737
1992-07-31 13:30:09 -04:00
Richard Kenner
510dd77e95
*** empty log message ***
...
From-SVN: r1730
1992-07-31 08:11:54 -04:00
Richard Stallman
65e15c1b20
*** empty log message ***
...
From-SVN: r1689
1992-07-27 03:11:22 +00:00
Richard Stallman
d80ab61eeb
*** empty log message ***
...
From-SVN: r1648
1992-07-21 02:59:00 +00:00
Richard Stallman
edb323d348
*** empty log message ***
...
From-SVN: r1628
1992-07-19 17:09:11 +00:00
Richard Stallman
fea868cb1a
*** empty log message ***
...
From-SVN: r1622
1992-07-19 00:37:32 +00:00
Richard Stallman
a8b17b3d48
*** empty log message ***
...
From-SVN: r1620
1992-07-18 04:04:15 +00:00
Charles Hannum
a981452689
*** empty log message ***
...
From-SVN: r1532
1992-07-08 22:41:03 +00:00
Richard Kenner
906c4e36c6
*** empty log message ***
...
From-SVN: r1473
1992-07-06 16:04:13 -04:00
Richard Stallman
196cedd028
*** empty log message ***
...
From-SVN: r1438
1992-07-05 03:31:52 +00:00
Richard Stallman
441b4625f4
*** empty log message ***
...
From-SVN: r1418
1992-07-04 03:18:25 +00:00
Tom Wood
bdac5f5848
*** empty log message ***
...
From-SVN: r1336
1992-06-29 16:04:35 +00:00
Richard Stallman
f72aed244a
*** empty log message ***
...
From-SVN: r1263
1992-06-24 03:59:40 +00:00
Richard Stallman
12f7c8764c
*** empty log message ***
...
From-SVN: r1149
1992-06-03 20:39:24 +00:00
Richard Stallman
ee668edcd3
*** empty log message ***
...
From-SVN: r994
1992-05-15 21:39:39 +00:00
Richard Stallman
f246a30593
*** empty log message ***
...
From-SVN: r577
1992-03-23 19:29:32 +00:00
Richard Stallman
1679e11f71
*** empty log message ***
...
From-SVN: r556
1992-03-21 23:57:32 +00:00
Michael Meissner
a130a4418f
Initial revision
...
From-SVN: r480
1992-03-14 05:30:20 +00:00