aarch64: fix conflicting declarations
authorAndreas Schwab <schwab@suse.de>
Mon, 4 May 2020 15:29:11 +0000 (17:29 +0200)
committerAndreas Schwab <schwab@suse.de>
Wed, 6 May 2020 12:12:57 +0000 (14:12 +0200)
aarch64_get_extension_string_for_isa_flags is declared in
"aarch64-protos.h", use that instead of re-declaring it improperly.

* config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
(aarch64_get_extension_string_for_isa_flags): Don't declare.

gcc/ChangeLog
gcc/config/aarch64/driver-aarch64.c

index ae6dd069578d6cada7099208b1010d7736fd5b85..0adda498ccb886a345a2d486e535b9b050d03697 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-06  Andreas Schwab  <schwab@suse.de>
+
+       * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
+       (aarch64_get_extension_string_for_isa_flags): Don't declare.
+
 2020-05-06  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/94964
index 0ccd200e3308bf4e11d5326fbe67fb592eebdcff..d1229e676806f9607c258e5d678fb3175fadf1c2 100644 (file)
 #include "system.h"
 #include "coretypes.h"
 #include "tm.h"
-
-/* Defined in common/config/aarch64/aarch64-common.c.  */
-std::string aarch64_get_extension_string_for_isa_flags (unsigned long,
-                                                       unsigned long);
+#include "aarch64-protos.h"
 
 struct aarch64_arch_extension
 {