-
- Downloads
ada: Fix crash with -gnatdJ and -gnatw.w
This patch fixes a crash when -gnatdJ is enabled and a warning must be emitted about an ineffective pragma Warnings clause. Some modifications are made to the specific warnings machinery so that warnings carry the ID of the pragma node they're about, so the -gnatdJ mechanism can find an appropriate enclosing subprogram. gcc/ada/ * sem_prag.adb (Analyze_Pragma): Adapt call to new signature. * erroutc.ads (Set_Specific_Warning_Off): change signature and update documentation. (Validate_Specific_Warnings): Move ... * errout.adb: ... here and change signature. Also move body of Validate_Specific_Warnings from erroutc.adb. (Finalize): Adapt call. * errout.ads (Set_Specific_Warning_Off): Adapt signature of renaming. * erroutc.adb (Set_Specific_Warning_Off): Adapt signature and body. (Validate_Specific_Warnings): Move to the body of Errout. (Warning_Specifically_Suppressed): Adapt body.
Showing
- gcc/ada/errout.adb 49 additions, 1 deletiongcc/ada/errout.adb
- gcc/ada/errout.ads 1 addition, 1 deletiongcc/ada/errout.ads
- gcc/ada/erroutc.adb 9 additions, 49 deletionsgcc/ada/erroutc.adb
- gcc/ada/erroutc.ads 9 additions, 16 deletionsgcc/ada/erroutc.ads
- gcc/ada/sem_prag.adb 1 addition, 1 deletiongcc/ada/sem_prag.adb
Loading
Please register or sign in to comment