aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@redhat.com>2004-10-04 05:29:27 +0000
committerEric Christopher <echristo@gcc.gnu.org>2004-10-04 05:29:27 +0000
commitb9e6959bf6e59b5122ca60f05d2926fc3b48f848 (patch)
tree4b59beb0d37117b5a5f8bad9708de195e1dd8681 /gcc/dwarf2out.c
parent13e5d623b30c289d1e895bc48c0d36f6b1723865 (diff)
downloadgcc-b9e6959bf6e59b5122ca60f05d2926fc3b48f848.zip
gcc-b9e6959bf6e59b5122ca60f05d2926fc3b48f848.tar.gz
gcc-b9e6959bf6e59b5122ca60f05d2926fc3b48f848.tar.bz2
dwarf2.h (dwarf_calling_convention): Add GNU prefix to locally defined enum.
2004-10-01 Eric Christopher <echristo@redhat.com> * dwarf2.h (dwarf_calling_convention): Add GNU prefix to locally defined enum. * dwarf2out.c (add_calling_convention_attribute): Don't emit DW_CC_normal. From-SVN: r88477
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index aa30848..11bf0f8 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -10631,8 +10631,9 @@ add_calling_convention_attribute (dw_die_ref subr_die, tree type)
value = targetm.dwarf_calling_convention (type);
- /* Only add the attribute if the backend requests it. */
- if (value)
+ /* Only add the attribute if the backend requests it, and
+ is not DW_CC_normal. */
+ if (value && (value != DW_CC_normal))
add_AT_unsigned (subr_die, DW_AT_calling_convention, value);
}