Commit Graph

111 Commits

Author SHA1 Message Date
Jim Wilson 21c40584c0 (dbxout_function): Test NO_DBX_FUNCTION_END at run time
instead of compile time.

From-SVN: r13998
1997-04-30 16:56:40 -07:00
Richard Kenner fa1610e95b Change all calls to eliminate_regs.
From-SVN: r13705
1997-03-15 07:17:02 -05:00
Richard Kenner 37306b1ec0 (dbxout_symbol): Fix forgotten case in last change: check
DECL_ARTIFICIAL also when using the short cut way.

From-SVN: r12791
1996-09-23 21:15:37 -04:00
Jim Wilson abe0396253 (dbxout_function): Don't check DECL_SECTION_NAME before
calling dbxout_function_end.

From-SVN: r12779
1996-09-23 12:34:01 -07:00
Mike Stump 0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner 960a3ef20b (dbxout_function): Respect NO_DBX_FUNCTION_END.
From-SVN: r12356
1996-06-28 14:07:33 -04:00
Richard Kenner 29de0a5c2f Add prototypes for all static functions.
(adspath): Delete; never used and has numerous parse errors.

From-SVN: r12042
1996-05-19 12:22:07 -04:00
Doug Evans d2cba896e1 dbxout.c (dbxout_function): When deciding to call dbxout_function_end change test from...
* dbxout.c (dbxout_function): When deciding to call dbxout_function_end
	change test from flag_function_sections to DECL_SECTION_NAME != NULL.

From-SVN: r11946
1996-05-06 22:51:59 +00:00
Jeff Law cf4403481d flags.h (flag_function_sections): Declare.
* flags.h (flag_function_sections): Declare.
        * toplev.c (flag_function_sections): Define.
        (compile_file): Add warnings when -ffunction-sections is
        used with -g, or profiling.  Disable -ffunction-sections
        when profiling is used.  Add warning when -ffunction-sections
        is used on a target that doesn't support it.
        * varasm.c (named_section): Make a copy of the section name
        in case the original is in temporary storage.
        (function_section): Set DECL_SECTION_NAME for each function
        if flag_function_sections is on and the target supports it.
        * dbxout.c (dbxout_function_end): New function.
        (dbxout_function): Call dbxout_function_end if using extensions
        and flag_function_sections is on.
        * sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME): Prefix a function
        section's name with ".text%" when -ffunction-sections.

From-SVN: r11774
1996-04-15 01:46:10 -06:00
Jason Merrill 7f6c7be1a0 (dbxout_typedefs): Don't emit incomplete types yet.
(dbxout_symbol): Use DECL_ARTIFICIAL to recognize C++ implicit
        typedefs.

From-SVN: r11703
1996-04-12 16:42:46 +00:00
Per Bothner 5bfaaedad7 dbxout.c (dbxout_type): Better "variant" handling to ignore const/volatile but not typedef names.
* dbxout.c (dbxout_type):  Better "variant" handling to ignore
const/volatile but not typedef names.  Improves Feb 12 change.

From-SVN: r11523
1996-03-12 21:47:30 -08:00
Jim Wilson 3d0793d589 (dbxout_type, case METHOD_TYPE): Add CHARS (1) call
after emitting second '#' character.

From-SVN: r11390
1996-02-29 17:41:00 -08:00
Per Bothner 79afd9061c Changes to distinguish typedef from original type in debug output.
* dbxout,c (dbxout_type):  Don't canonicalize typedef type to base.

From-SVN: r11217
1996-02-12 12:03:24 -08:00
Per Bothner 7ae6c85803 dbxout.c (dbxout_range_type): Emit non-range INTEGER_TYPE as a sub-range of itself (so gdb can tell the...
* dbxout.c (dbxout_range_type):  Emit non-range INTEGER_TYPE
as a sub-range of itself (so gdb can tell the difference).

From-SVN: r11179
1996-02-06 14:26:35 -08:00
Ian Lance Taylor b107aaf90e Don't include <string.h>. Don't compare strchr result to NULL.
From-SVN: r11125
1996-01-30 18:32:39 +00:00
Ian Lance Taylor 687038f1f0 Don't use #ifndef inside call to strchr, to avoid AIX problem
From-SVN: r11121
1996-01-29 16:26:41 +00:00
Ian Lance Taylor 753eae35b5 Include <string.h>
From-SVN: r11078
1996-01-22 04:34:18 +00:00
Ian Lance Taylor e663b41c30 Avoid minimal C++ debugging in a couple of cases where it doesn't work
From-SVN: r11072
1996-01-19 20:21:04 +00:00
Jim Wilson 276c865243 (gstab.h): Include if cross compiling.
From-SVN: r10935
1996-01-02 13:11:20 -08:00
Ian Lance Taylor 4bcaafd97b Output N_BINCL and N_EINCL stabs if DBX_USE_BINCL is defined.
From-SVN: r10706
1995-12-13 20:01:49 +00:00
Richard Kenner 940d9d638b Update FSF address.
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Jim Wilson 6376fd9aed (dbxout_type_fields): Correct arguments to CHARS macro in flag_minimal_debug case.
(dbxout_type_fields): Correct arguments to CHARS macro
in flag_minimal_debug case.
(dbxout_symbol_name): Use DECL_ASSEMBLER_NAME unconditionally.

From-SVN: r9366
1995-04-12 11:35:39 -07:00
Richard Kenner bf6ed04031 (dbxout_symbol): Properly handle decl whose DECL_NAME points to a
TYPE_DECL with a zero TYPE_NAME.

From-SVN: r9171
1995-03-11 06:42:39 -05:00
Jim Wilson f31093e263 (GDB_INV_REF_REGPARM_STABS_LETTER): New macro.
(dbxout_parms): For gdb, output use GDB_INV_REF_REGPARM_STABS_LETTER
for parameters passed by invisible reference in registers.

From-SVN: r9063
1995-02-24 14:33:14 -08:00
Jim Wilson dc2fba6003 (dbxout_parms): For parameters passed in memory...
(dbxout_parms): For parameters passed in memory, delete
obsolete code to handle parameters converted and stored back to
the stack slot where they were passed in.
(dbxout_reg_parms): Delete obsolete ifdefed out code.  Combine
redundant PARM_PASSED_IN_MEMORY tests.  For case where parameter
lives in memory, output stab if it doesn't live where it was passed.

From-SVN: r9057
1995-02-24 12:55:10 -08:00
Doug Evans 6697c6bf7f (dbxout_source_file): Clean up null tree pointer test. Update copyright.
From-SVN: r8867
1995-02-05 05:26:45 +00:00
Doug Evans 5604861b6f (dbxout_source_file): Don't switch to text section if in function with section attribute.
(dbxout_source_file): Don't switch to text section if
in function with section attribute.  Print Ltext label to correct
file (important on mips).

From-SVN: r8859
1995-02-04 15:31:23 +00:00
Jason Merrill 213ecac93c (dbxout_type_method_1): Don't try to look at the first
argument of non-methods (which might not have a first argument).

From-SVN: r8633
1994-12-09 03:29:37 +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
Jim Wilson 6c949b6759 (dbxout_symbol_location): Handle error_mark_node in
DECL_INITIAL for C++.

From-SVN: r8060
1994-09-09 14:03:24 -07:00
Richard Earnshaw 667732d849 (dbxout_source_file): Increment source_label_number outside
of macro expansion.

From-SVN: r7737
1994-07-12 12:11:35 +00:00
Jim Wilson 6859741315 (dbxout_type_methods): Enable debugging info for
template classes.

From-SVN: r7647
1994-07-02 16:16:32 -07:00
Jim Wilson 3a83beef35 (dbxout_symbol): Replace DECL_IGNORED_P with
TYPE_DECL_SUPPRESS_DEBUG.

From-SVN: r7515
1994-06-18 13:40:20 -07:00
Doug Evans 0725d62132 (dbxout_type): Fix call to bzero.
From-SVN: r7496
1994-06-15 23:23:33 +00:00
Per Bothner d0310c5364 (dbxout_range_type): Handle an array range that is neither int nor subrange.
From-SVN: r7494
1994-06-15 15:21:27 -07:00
Richard Kenner 4c9a05bc55 Cast pointer operands to bzero, bcopy, and bcmp to (char *).
From-SVN: r7472
1994-06-14 18:19:28 -04:00
Jim Wilson e65f61cfe4 (dbxout_type): Always emit cross-references if
use_gnu_debug_info_extensions set.

From-SVN: r7410
1994-05-31 17:23:46 -07:00
Per Bothner 71b54b5302 (dbxout_type): Write non-default precision of of ENUMERAL_TYPEs.
From-SVN: r7315
1994-05-16 15:23:11 -07:00
Doug Evans 326af3bf5e (dbxout_type): check TYPE_DECL_SUPPRESS_DEBUG to generate cross reference
in stabs.

From-SVN: r7184
1994-04-29 22:29:42 +00:00
Jim Wilson e8fca6ce38 (dbxout_type): Re-enable debugging output for anonymous structures.
(dbxout_type): Re-enable debugging output for anonymous
structures.  Change all three places that refer to xrefs to use
exactly the same condition.

From-SVN: r6935
1994-03-31 18:40:16 -08:00
Richard Kenner c967289d72 (dbxout_symbol): Remove decls of unused variables.
From-SVN: r6878
1994-03-25 14:00:51 -05:00
Jim Wilson ec7a1dd2f8 (dbxout_parms): For parameter living in psuedo-reg that
was optimized away, use declared type instead of passed type.

From-SVN: r6861
1994-03-23 15:56:41 -08:00
Jim Wilson 88bdba96d9 (source_label_number): New variable.
(dbxout_source_file): Use it.  Output an Ltext label.

From-SVN: r6841
1994-03-21 14:08:57 -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
Per Bothner 5b6e175e29 Don't treat anonymous fields as belonging to the containing object.
From-SVN: r6537
1994-02-11 18:52:08 -08:00
Per Bothner 6c73937e8f dbxout.c (dbxout_range_type): If the range has a base type (TREE_TYPE)...
* dbxout.c (dbxout_range_type):  If the range has a base type
(TREE_TYPE), emit it, even if that is some other integer type.

From-SVN: r6386
1994-01-12 13:30:12 -08:00
Jim Wilson 4e6ee2672e (dbxout_parms): For parameter passed by invisible
reference, use DECL_INCOMING_RTL if DECL_RTL is a pseudo-reg address.

From-SVN: r6275
1993-12-22 18:06:15 -08:00
Richard Kenner 159e1f8430 (dbxout_type): The "base type" of a SET_TYPE is its DOMAIN_TYPE, not
its TREE_TYPE.

From-SVN: r6209
1993-12-11 18:09:38 -05:00
Richard Stallman 177f65eab3 (dbxout_type_field): Skip fields with variable
position and/or size instead of crashing on them.

From-SVN: r6080
1993-11-13 22:08:16 +00:00
Richard Stallman fe48b58731 (dbxout_parms): Fix previous change.
From-SVN: r6069
1993-11-11 13:24:59 +00:00