aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/fe.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-01-27 07:58:17 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2021-05-07 05:29:12 -0400
commitb0ba442b047dcffd54055c9d0ab591d020a284d8 (patch)
tree73ee9b31d437834c86704d92aa6db0b77faf2811 /gcc/ada/fe.h
parent730c196aab01296486d21c90ffac2d9f6a338422 (diff)
downloadgcc-b0ba442b047dcffd54055c9d0ab591d020a284d8.zip
gcc-b0ba442b047dcffd54055c9d0ab591d020a284d8.tar.gz
gcc-b0ba442b047dcffd54055c9d0ab591d020a284d8.tar.bz2
[Ada] Fix type mismatch warnings during LTO bootstrap #1
gcc/ada/ * errout.ads (Set_Identifier_Casing): Add pragma Convention C. * eval_fat.ads (Rounding_Mode): Likewise. (Machine): Add WARNING comment line. * exp_code.ads (Clobber_Get_Next): Add pragma Convention C. * fe.h (Compiler_Abort): Fix return type. (Set_Identifier_Casing): Change type of parameters. (Clobber_Get_Next): Change return type. * gcc-interface/trans.c (gnat_to_gnu) <N_Code_Statement>: Add cast.
Diffstat (limited to 'gcc/ada/fe.h')
-rw-r--r--gcc/ada/fe.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/fe.h b/gcc/ada/fe.h
index 9c4a572..851e4b3 100644
--- a/gcc/ada/fe.h
+++ b/gcc/ada/fe.h
@@ -55,7 +55,7 @@ extern Nat Serious_Errors_Detected;
#define Compiler_Abort comperr__compiler_abort
-extern int Compiler_Abort (String_Pointer, String_Pointer, Boolean) ATTRIBUTE_NORETURN;
+extern void Compiler_Abort (String_Pointer, String_Pointer, Boolean) ATTRIBUTE_NORETURN;
/* debug: */
@@ -103,7 +103,7 @@ extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, unsigned char);
extern void Error_Msg_N (String_Pointer, Node_Id);
extern void Error_Msg_NE (String_Pointer, Node_Id, Entity_Id);
-extern void Set_Identifier_Casing (Char *, const Char *);
+extern void Set_Identifier_Casing (void *, const void *);
/* err_vars: */
@@ -145,7 +145,7 @@ extern Node_Id Asm_Input_Value (void);
extern Node_Id Asm_Output_Constraint (void);
extern Node_Id Asm_Output_Variable (void);
extern Node_Id Asm_Template (Node_Id);
-extern char *Clobber_Get_Next (void);
+extern void *Clobber_Get_Next (void);
extern void Clobber_Setup (Node_Id);
extern Boolean Is_Asm_Volatile (Node_Id);
extern void Next_Asm_Input (void);