5.4 Prefix letters in compiler diagnostic messages

The compilation tools automatically insert an identification letter to diagnostic messages.

The following table shows the prefix letters used by the compilation tools. Using these prefix letters enables the tools to use overlapping message ranges.

Table 5-2 Identifying diagnostic messages

Prefix letter Tool
C armcc
A armasm
L armlink or armar
Q fromelf
The following rules apply:
  • All of the compilation tools act on a message number without a prefix.
  • A message number with a prefix is only acted on by the tool with the matching prefix.
  • A tool does not act on a message with a non-matching prefix.
Therefore, the compiler prefix C can be used with --diag_error, --diag_remark, and --diag_warning, or when suppressing messages, for example:
armcc --diag_suppress=C1287,C4017 ...
Use the prefix letters to control options that are passed from the compiler to other tools, for example, include the prefix letter L to specify linker message numbers.
Related concepts
5.2 Options that change the severity of compiler diagnostic messages
5.3 Controlling compiler diagnostic messages with pragmas
5.5 Compiler exit status codes and termination messages
5.6 Compiler data flow warnings
Related reference
5.1 Severity of compiler diagnostic messages
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.