[6/7] gdb: remove qsort kludge from ada-exp-parser.y

Message ID 20261001203105.1379971-7-simon.marchi@efficios.com
State New
Headers
Series Leftovers from parsers cleanup |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed

Commit Message

Simon Marchi Oct. 1, 2026, 8:30 p.m. UTC
  Remove the "#define qsort __qsort__dummy" kludge, which was there to
avoid a conflict between defs.h and non-standard stdlib.h files.  This
was introduced in 2002, I am pretty sure this is not needed anymore.

Change-Id: I22d42f13ad4bdd6fc118ac4e1f30abdb79beb659
---
 gdb/ada-exp-parser.y | 3 ---
 1 file changed, 3 deletions(-)
  

Patch

diff --git a/gdb/ada-exp-parser.y b/gdb/ada-exp-parser.y
index b5b925e8911e..d37ab12c3bcf 100644
--- a/gdb/ada-exp-parser.y
+++ b/gdb/ada-exp-parser.y
@@ -838,7 +838,4 @@  primary	:	'*' primary		%prec '.'
 /* yylex defined in ada-lex-gen.c: Reads one token, getting characters */
 /* through lexptr.  */
 
-/* The following kludge was found necessary to prevent conflicts between */
-/* defs.h and non-standard stdlib.h files.  */
-#define qsort __qsort__dummy
 #include "ada-lex-gen.c"