2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>

* Fix PR pascal/2231
	dwarf2read.c (read_subroutine_type):
	All pascal functions are prototyped.
This commit is contained in:
Pierre Muller 2007-09-26 13:59:54 +00:00
parent d17e0c6e9a
commit 5b8101ae7b
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
* Fix PR pascal/2231
dwarf2read.c (read_subroutine_type):
All pascal functions are prototyped.
2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
* Fix PR pascal/2283

View File

@ -4744,11 +4744,12 @@ read_subroutine_type (struct die_info *die, struct dwarf2_cu *cu)
type = die_type (die, cu);
ftype = make_function_type (type, (struct type **) 0);
/* All functions in C++ and Java have prototypes. */
/* All functions in C++, Pascal and Java have prototypes. */
attr = dwarf2_attr (die, DW_AT_prototyped, cu);
if ((attr && (DW_UNSND (attr) != 0))
|| cu->language == language_cplus
|| cu->language == language_java)
|| cu->language == language_java
|| cu->language == language_pascal)
TYPE_FLAGS (ftype) |= TYPE_FLAG_PROTOTYPED;
if (die->child != NULL)