Commit Graph

180 Commits

Author SHA1 Message Date
Jeffrey A Law
3a88cbd106 except.c: Do not include "assert.h".
* except.c: Do not include "assert.h".
        (save_eh_status): Turn asserts into conditional aborts.
        (restore_eh_status, scan_region): Likewise.
        * dwarfout.c: Do not include "assert.h".
        (bit_offset_attribute): Turn asserts into conditional aborts.
        (bit_size_attribute, output_inlined_enumeration_type_die): Likewise.
        (output_inlined_structure_type_die): Likewise.
        (output_inlined_union_type_die): Likewise
        (output_tagged_type_instantiation): Likewise.
        (dwarfout_file_scope_decl): Likewise.
        * dwarf2out.c: Do not include "assert.h"
        (expand_builtin_dwarf_reg_size): Turn asserts into conditional aborts.
        (reg_save, initial_return_save, dwarf2out_frame_debug): Likewise.
        (add_child_die, modified_type_die, add_bit_offset_attribute): Likewise.
        (add_bit_size_attribute, scope_die_for): Likewise.
        (output_pending_types_for_scope): Likewise.
        (get_inlined_enumeration_type_die): Likewise.
        (get_inlined_structure_type_die): Likewise.
        (get_inlined_union_type_die, gen_subprogram_die): Likewise.
        (gen_tagged_type_instantiation_die): Likewise.

From-SVN: r16442
1997-11-12 10:07:46 -07:00
Jeff Law
e9a25f70a0 Update mainline egcs to gcc2 snapshot 971021.
From-SVN: r16278
1997-11-02 14:19:36 -07:00
Jim Wilson
d4ef15f2ca dwarfout.c (dwarfout_file_scope_decl, [...]): Check TYPE_DECL_IS_STUB instead of DECL_NAME.
* dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
        TYPE_DECL_IS_STUB instead of DECL_NAME.

From-SVN: r14944
1997-08-26 12:05:23 -06:00
Richard Kenner
7532a0fbfa (output_compile_unit_die): Add support for Pascal.
From-SVN: r14627
1997-08-02 14:33:42 -04:00
Jason Merrill
5f52dcfe1e x
From-SVN: r14552
1997-07-29 05:38:55 +00:00
Jason Merrill
6a7a9f0156 x
From-SVN: r14543
1997-07-28 18:30:18 +00:00
Richard Kenner
b2943cea76 (ASM_OUTPUT_SOURCE_FILENAME): Delete default value.
From-SVN: r14538
1997-07-27 13:51:46 -04:00
Jim Wilson
d5042f7bab (field_byte_offset): Check for object_offset_in_bits
> bitpos_int, and recompute object_offset_in_bytes if true.

From-SVN: r14299
1997-06-24 12:35:11 -07:00
Richard Kenner
fa1610e95b Change all calls to eliminate_regs.
From-SVN: r13705
1997-03-15 07:17:02 -05:00
Jim Wilson
b1357021b8 (root_type_1, write_modifier_bytes_1): New functions.
(root_type): Call root_type_1.
(write_modifier_bytes): Call write_modifier_bytes_1.
(output_type, case POINTER_TYPE): Set TREE_ASM_WRITTEN before
recursive call.

From-SVN: r13693
1997-03-06 13:28:31 -08:00
Jim Wilson
ff1ff0565b (output_type): Do early exit only if TYPE_CONTEXT is NULL or if TYPE_CONTEXT is another type (e.g.
(output_type): Do early exit only if TYPE_CONTEXT is NULL
or if TYPE_CONTEXT is another type (e.g. a nested type).

From-SVN: r13630
1997-02-12 12:39:27 -08:00
Richard Kenner
3800b162ec (dwarfout_line): Push to LINE_SECTION after calling lookup_filename.
From-SVN: r13480
1997-01-10 07:12:18 -05:00
Richard Kenner
f01ea0c674 (type_attribute): Ignore any subtype for now.
From-SVN: r13386
1997-01-06 08:35:03 -05:00
Jim Wilson
7b1bcb4940 (location_or_const_value_attribute, case CONCAT): Add.
From-SVN: r13313
1996-12-16 13:02:01 -08:00
Jason Merrill
a94dbf2c26 x
From-SVN: r13258
1996-12-09 22:31:23 +00:00
Jim Wilson
c21ee92759 (output_mem_loc_descriptor, case MULT): Add.
(dwarf_fund_type_name, case FT_unsigned_int64): Fix typo.

From-SVN: r13254
1996-12-09 12:34:02 -08:00
Jason Merrill
6619df077d x
From-SVN: r13178
1996-11-15 21:11:39 +00:00
Jason Merrill
9a666dda81 x
From-SVN: r13160
1996-11-15 07:14:08 +00:00
Jason Merrill
f37230f0b4 tweak
From-SVN: r12976
1996-10-18 06:23:23 +00:00
Torbjorn Granlund
17bbe96fed (output_bound_representation): Fix typo in prototype.
From-SVN: r12961
1996-10-15 00:58:59 +00:00
Jason Merrill
85f8926ee5 *** empty log message ***
From-SVN: r12910
1996-10-07 20:25:37 +00:00
Richard Kenner
6ba95bc92a (DWARF_VERSION): Define as 1 if not already defined.
From-SVN: r12770
1996-09-22 11:19:49 -04:00
Doug Evans
4513a33cc6 (output_bound_representation): Fix typo.
From-SVN: r12569
1996-07-26 22:18:56 +00:00
Richard Kenner
56b3408df2 (output_bound_representation): Treat default case as variable bounds,
then look inside for SAVE_EXPR.

From-SVN: r12543
1996-07-20 09:28:26 -04:00
Jim Wilson
ce4abcd88f Check DWARF_VERSION macro.
From-SVN: r12524
1996-07-18 17:28:44 -07:00
Mike Stump
0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner
461b77c857 If not GNUC, make `inline' null; otherwise, leave alone.
Add `static' to inline functions.
Add prototypes for static function.

From-SVN: r12043
1996-05-19 12:22:57 -04:00
Doug Evans
c773653b2b * dwarfout.c (*): flag_verbose_asm renamed to flag_debug_asm.
From-SVN: r12004
1996-05-17 16:33:25 +00:00
Richard Kenner
bb380e9d21 (xstrdup): Moved from here.
From-SVN: r11407
1996-03-04 08:35:34 -05:00
Richard Kenner
439eb7764a (output_compile_unit_die): Handle language_string of "GNU F77".
From-SVN: r10525
1995-10-26 21:40:40 -04:00
Richard Kenner
940d9d638b Update FSF address.
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Richard Kenner
9faa82d8c0 Fix typos in comments.
From-SVN: r9712
1995-05-16 08:39:54 -04:00
Jim Wilson
58add97ac9 (output_decl): Don't output DIE for struct or union type
with no name or with ERROR_MARK for the fields.

From-SVN: r9619
1995-05-11 11:21:22 -07:00
Jim Wilson
dfe8a5acb9 (PUSHSECTION_FORMAT): Add a leading tab.
From-SVN: r9070
1995-02-24 17:51:41 -08: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
Ian Lance Taylor
f76b9db287 Check target endianness at run time, not compile time
From-SVN: r8470
1994-11-16 21:10:09 +00:00
Richard Kenner
2c1c10ec5a (output_decl...
(output_decl, case FUNCTION_DECL): Corrected and simplified code that
determined when to generate varargs or ANSI stdargs variable length
parameter list DWARF information.

From-SVN: r7816
1994-07-28 19:56:18 -04:00
Richard Kenner
ed1817c6d7 Change rfg's address.
From-SVN: r6852
1994-03-23 16:57:20 -05:00
Jim Wilson
609380f61e (ASM_OUTPUT_DEF): Delete definition.
From-SVN: r6664
1994-02-27 16:45:49 -08:00
Per Bothner
4042d44040 Use new flag TYPE_STRING_FLAG instead of STRING_TYPE.
From-SVN: r6570
1994-02-15 19:52:30 -08:00
Richard Kenner
f29a425b91 (output_type): The "base type" of a SET_TYPE is its DOMAIN_TYPE, not
its TREE_TYPE.

From-SVN: r6210
1993-12-11 18:26:40 -05:00
Richard Stallman
692e06f5f2 (function_start_label): New function.
(output_entry_point_die): Use it.
(output_global_subroutine_die, output_local_subroutine_die): Use it.

From-SVN: r6153
1993-11-24 02:20:47 +00:00
Richard Stallman
1f17868aa6 (output_local_subroutine_die): Use the function name
from its symbol_ref, not DECL_ASSEMBLER_NAME.

From-SVN: r6142
1993-11-23 09:18:25 +00:00
Paul Eggert
f40176b103 (ASM_OUTPUT_SOURCE_FILENAME): Quote special characters in file names.
From-SVN: r5493
1993-09-28 00:23:58 +00:00
Richard Stallman
82e9f5e9b2 (dwarfout_init): Report failure of getpwd.
From-SVN: r4930
1993-07-17 01:34:14 +00:00
Richard Kenner
77b83b95e4 (output_compile_unit_die): Add support for Ada.
From-SVN: r4769
1993-06-27 18:43:10 -04:00
Richard Stallman
69d6b01d68 (type_main_variant): New function.
Use it in place of TYPE_MAIN_VARIANT everywhere in dwarfout.c.

From-SVN: r4704
1993-06-20 18:08:53 +00:00
Richard Kenner
0020519f3a (output_decl): Check for DECL_INITIAL == NULL_TREE rather than DECL_EXTERNAL !=...
(output_decl): Check for DECL_INITIAL == NULL_TREE rather than
DECL_EXTERNAL != 0 when trying to see if we have a mere function
declaration rather than a function definition.
(dwarfout_file_scope_decl): Likewise.  Also, don't bother checking
TREE_USED for file-scope functions, since it isn't 100% accurate until
the end of compilation anyway.

From-SVN: r4225
1993-04-25 18:11:11 -04:00
Richard Kenner
0e02aa7e28 (location_or_const_value_attribute): Fixed to use DECL_INCOMING_RTL for PARM_DECLs only when DECL_RTL isn't usable...
(location_or_const_value_attribute): Fixed to use DECL_INCOMING_RTL
for PARM_DECLs only when DECL_RTL isn't usable, and even then, only
when it actually points to the right place.

From-SVN: r4189
1993-04-21 18:14:38 -04:00
Richard Kenner
c1b98a9573 Treat QUAL_UNION_TYPE like UNION_TYPE when seeing if aggregate.
From-SVN: r4118
1993-04-13 06:47:33 -04:00
Richard Stallman
0591b9c628 (type_attribute): Use the TYPE_MAIN_VARIANT of the
given type when calling `user_def_type_attribute'.

From-SVN: r4005
1993-04-04 20:28:11 +00:00
Paul Eggert
8008b22801 # Fix misspellings in comments.
From-SVN: r3181
1993-01-10 20:12:31 +00:00
Tom Wood
e316696427 Include "assert.h" instead of <assert.h>.
From-SVN: r2647
1992-10-29 10:50:35 +00:00
Tom Wood
e6d9804cef (dwarfout_file_scope_decl): Generate DIEs for
built-in non-fundamental types.

From-SVN: r2528
1992-10-20 20:49:26 +00:00
Tom Wood
1396372010 (dwarfout_init...
(dwarfout_init, dwarfout_finish): Don't output labels
	or .debug_aranges entries for .data1 and .rodata1 as these
	sections aren't currently used.

From-SVN: r2369
1992-10-08 10:42:19 +00:00
Tom Wood
2a819d04bc (dwarfout_{begin,end}_function): New functions.
(body_{begin,end}_attribute): New functions.
	(dwarf_attr_name): Print AT_body_begin and AT_body_end.
	(output_{local,global}_subroutine_die): Output the new attributes.

From-SVN: r2361
1992-10-07 20:24:33 +00:00
Richard Stallman
7f7429ca2c (hard-reg-set.h): Included to get decl of `reg_names'.
(PRINT_REG):  Default definition added.
(dwarf_last_decl):  Variable declaration added.
(output_reg_number):  New function; handle -fverbose-asm reg printing.
(output_mem_loc_descriptor, output_loc_descriptor):  Call it.
(output_decl):  Set `dwarf_last_decl' each time this fn is called.

From-SVN: r2325
1992-10-05 08:04:57 +00:00
Richard Stallman
8c24a2ce8c Fix typo in last change.
From-SVN: r2319
1992-10-04 23:10:06 +00:00
Richard Stallman
52cdd5e580 (output_mem_loc_descriptor, output_loc_descriptor):
Catch cases of bogus DECL_RTL values involving pseudo-regs (for all
target systems) and print an annoying message if we ever see such a case.

From-SVN: r2311
1992-10-03 02:30:30 +00:00
Richard Stallman
28b039e302 (location_attribute): If DECL_RTL looks like (MEM pseudo),
treat that variable as optimized away.

From-SVN: r2253
1992-09-26 20:40:25 +00:00
Richard Stallman
c7d6dca22e (is_tagged_type): New function added.
(member_attribute):  Use it.
(type_ok_for_scope):  Rewritten to eliminate serious bugs.
(output_type):  Call `output_pending_types_for_scope' at the end of
struct/union types (which are themselves scopes in C++).

From-SVN: r1681
1992-07-24 21:13:11 +00:00
Richard Stallman
3abacf0289 (is_body_block): Rewritten for greater saftey.
(output_block):  Fixed to deal correctly with non-inlined blocks.

From-SVN: r1678
1992-07-24 03:30:02 +00:00
Richard Stallman
ece0ca60b8 Add #if 0 around use of DECL_ABSTRACT_VIRTUAL_P.
(pure_or_virtual_attribute):
Add #if 0 around use of DECL_ABSTRACT_VIRTUAL_P.

(BLOCK_INLINE_FUNCTION):  Obsolete definition deleted.
(block_ultimate_origin):  New function.
(output_block): Local `have_significant_locals' renamed to `must_output_die'.
(output_block): Handle abstract & concrete blocks in inline functions.
(output_decls_for_scope): Don't bump `next_block_number' for abstract blocks.

From-SVN: r1601
1992-07-17 04:12:51 +00:00
Richard Stallman
0924ddefb6 Renamed TREE_INLINE, TREE_NONLOCAL, TREE_REGDECL, TREE_EXTERNAL.
to DECL_INLINE, DECL_NONLOCAL, DECL_REGISTER, DECL_EXTERNAL.

From-SVN: r1570
1992-07-12 03:06:32 +00:00
Richard Stallman
d4d4c5a87d (output_inlined_enumeration_type_die): New function.
(output_inlined_structure_type_die, output_inlined_union_type_die):
New functions added.
(output_entry_point_die, output_formal_parameter_die,
output_global_subroutine_die, output_global_variable_die,
output_label_die, output_lexical_block_die,
output_inlined_subroutine_die, output_local_variable_die,
output_local_subroutine_die):
Fixed to handle inline abstract & concrete (i.e. inlined) instances.
(output_inlined_subroutine_die): Deleted.
(output_label_die):  Don't permit the rtx associated with a named
user-declared label to be marked as INSN_DELETED_P.
(output_tagged_type_instantiation):  New function added.
(output_decl):  Call `output_tagged_type_instantiation'.
Don't generate a pubnames label for anything marked as DECL_ABSTRACT.
(output_die):  Generate the proper kind fo DIE for each of the four
possible combination of {normal, inlined} {variable, parameter}.
(dwarfout_file_scope_decl):  Don't generate pubnames entries if
strictly abstract.

(ordering_attribute):  Only def if USE_ORDERING_ATTRIBUTE
is defined.
(output_array_type_die): Only call ordering_attribute if it is defined.
(name_and_src_coords_attributes):  Don't make it inline.
Do make it static linkage.
(const_value_attribute):  Catch invalid kinds of rtx nodes
by aborting for the default case in switch.

(output_ptr_to_mbr_type_die):  Make it static linkage.
(output_formal_types):  Make sure that `formal_type' is initialized.
(output_type):  Add a default case for switch.
(output_decl):  Don't suppress DIEs for the initial (artificial)
arguments for C++ static member functions.

(ceiling, field_type, simple_type_align_in_bits,
simple_type_size_in_bits, field_byte_offset):  New functions added.
(data_member_location_attribute):  Use new routine `field_byte_offset'
to calculate the offset value for the AT_location attribute.
(byte_size_attribute):  Use new routine `field_type' to get the
actual type for any FIELD_DECL.  Also, use `simple_type_size_in_bits'
to avoid potential problems with ERROR_MARKs when computing the size
of a FIELD_DECL.
(bit_offset_attribute):  Rewritten to use `field_byte_offset' when
determining the start of the "containing object".

From-SVN: r1531
1992-07-08 22:37:48 +00:00
Richard Stallman
cb712ad45a entered into RCS
From-SVN: r1526
1992-07-08 18:18:26 +00:00
Richard Stallman
b083f44d94 *** empty log message ***
From-SVN: r1525
1992-07-08 18:17:42 +00:00
Richard Kenner
906c4e36c6 *** empty log message ***
From-SVN: r1473
1992-07-06 16:04:13 -04:00
Richard Stallman
a9f95fb696 *** empty log message ***
From-SVN: r1464
1992-07-06 19:49:10 +00:00
Richard Stallman
04077c530d *** empty log message ***
From-SVN: r1443
1992-07-05 19:41:17 +00:00
Mike Stump
3f7cc57ab8 *** empty log message ***
From-SVN: r1341
1992-06-29 19:15:14 +00:00
Richard Stallman
8ac9cb56c4 *** empty log message ***
From-SVN: r1131
1992-05-31 05:08:49 +00:00
Richard Stallman
648ebe7bd0 *** empty log message ***
From-SVN: r982
1992-05-14 22:43:01 +00:00
Richard Stallman
6dc42e49d3 *** empty log message ***
From-SVN: r930
1992-05-07 06:41:23 +00:00
Tom Wood
75791cee29 *** empty log message ***
From-SVN: r858
1992-04-29 10:28:21 +00:00
Richard Stallman
9a631e8e94 *** empty log message ***
From-SVN: r832
1992-04-25 01:51:43 +00:00
Mike Stump
d6c667b45a *** empty log message ***
From-SVN: r739
1992-04-13 22:20:35 +00:00
Richard Stallman
85595d1af1 *** empty log message ***
From-SVN: r627
1992-03-29 22:59:36 +00:00
Richard Stallman
2e494f7040 *** empty log message ***
From-SVN: r539
1992-03-20 22:22:14 +00:00
Tom Wood
340ccaabe2 Initial revision
From-SVN: r383
1992-03-03 20:36:53 +00:00