extinguish opened a new pull request, #17916:
URL: https://github.com/apache/nuttx/pull/17916

   ## Summary
   
   Incorporate a set of production‑recommended Green Hills (GHS) compiler and 
linker options to enhance debugging, diagnostics, and build quality:
   
   1. Map file enhancements (-Mn -map_eofn_symbols -Mx -Ms -Mu -Ml): generate 
detailed symbol, section, and relocation information.
   2. Debug improvements (-dual_debug, -ignore_debug_references, -v, -gsize): 
enable dual debug format, ignore debug‑section references during -delete, 
verbose linking, and section‑size reporting.
   3. Additional compile‑time checks (--prototype_errors, 
--incorrect_pragma_warnings): flag missing prototypes and incorrect pragma 
syntax.
   4. Build utilities (-keeptempfiles, -list, -nostartfiles): retain 
intermediate files, produce assembly listings, and suppress standard startup 
files.
   
   ## Impact
   
   1. Provides richer debug information and more precise map files for 
post‑build analysis.
   2. Catches potential code issues earlier through stricter prototype and 
pragma checking.
   
   ## Testing
   
   1. Verified that all new options are accepted by the Green Hills toolchain 
and do not cause build errors.
   2. Confirmed that the enhanced map file (nuttx.map) contains the expected 
additional details (symbols, sections, relocations).
   3. Ensured debug builds still produce usable debug information and that 
-gsize generates the expected .siz file.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to