This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-fdump-ada-spec: misc small fixes


The following patch fixes various small "obvious" glitches in -fdump-ada-spec:

- It adds a missing pragma Ada_2005; in the generate Ada files
  since the generated code expects Ada 2005 syntax
- It adds a pragma Style_Checks (Off); to disable style checks on auto
  generated files
- It fixes generation of bindings for the following construct:
   typedef void (*__sighandler_t) (int);
   typedef __sighandler_t sig_t;

  Before this patch, we were wrongly generating:

   subtype sig_t is access procedure (arg1 : int);

  instead of:

   subtype sig_t is uu_sighandler_t;

- It adds missing aliased keyword on some record fields, which is needed
  to be able to take the 'Access of such fields in Ada

Tested on x86_64-unknown-linux-gnu, OK to commit on trunk?

	* c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
	for pointers, and add missing Convention C pragma.
	(print_ada_struct_decl): Add missing aliased keyword.
	(dump_ads): Add pragma Ada_2005 and Style_Checks (Off).

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]