]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Treat Info-Warnings as Info messages
authorViljar Indus <indus@adacore.com>
Mon, 6 May 2024 12:17:27 +0000 (15:17 +0300)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 20 Jun 2024 08:50:49 +0000 (10:50 +0200)
commitd1c07598fad36218809907312f5c3d247b0413aa
treeb1309fc0b8dc44ca92d5c0cddb78f1e8c7733153
parent6e5f911e779e7571ce8c6f082f8aafaa2d5eca23
ada: Treat Info-Warnings as Info messages

There was a general concept of info messages being a subset of
warnings. However that is no longer the case. Messages with an
info insertion character should be treated just as info messages.

gcc/ada/

* atree.ads: Remove Warning_Info_Messages.
* errout.adb: Remove various places where Warning_Info_Messages
was used.
* erroutc.adb: Remove various places where Warning_Info_Messages
was used. Create Error_Msg_Object objects with only an info
attribute if the message contained both info and warning insertion
characters. New method Has_Switch_Tag for detecting if a message
should have an error tag.
* errutil.adb: Create Error_Msg_Object objects with only an info
attribute if the message contained both info and warning insertion
characters.
gcc/ada/atree.ads
gcc/ada/errout.adb
gcc/ada/erroutc.adb
gcc/ada/errutil.adb