Here is another example with 11.2.1-1.1.1. When I compile with -O0 it seems to get the configure_clocks() function has correct source file:
00000198 <configure_clocks>:
configure_clocks():
D:\Projects\SECA\LoRa\firmware/src/CMSIS/wlr089/source/gcc/startup_wlr089.c:306
198: b580 push {r7, lr}
19a: b082 sub sp, #8
19c: af00 add r7, sp, #0
D:\Projects\SECA\LoRa\firmware/src/CMSIS/wlr089/source/gcc/startup_wlr089.c:311
19e: 4bb1 ldr r3, [pc, #708] ; (464 <STACK_SIZE+0x64>)
1a0: 2280 movs r2, #128 ; 0x80
1a2: 0052 lsls r2, r2, #1
1a4: 609a str r2, [r3, #8]
D:\Projects\SECA\LoRa\firmware/src/CMSIS/wlr089/source/gcc/startup_wlr089.c:312
1a6: 4bb0 ldr r3, [pc, #704] ; (468 <STACK_SIZE+0x68>)
1a8: 2203 movs r2, #3
1aa: 609a str r2, [r3, #8]
D:\Projects\SECA\LoRa\firmware/src/CMSIS/wlr089/source/gcc/startup_wlr089.c:315
1ac: 4baf ldr r3, [pc, #700] ; (46c <STACK_SIZE+0x6c>)
1ae: 685a ldr r2, [r3, #4]
1b0: 4bae ldr r3, [pc, #696] ; (46c <STACK_SIZE+0x6c>)
1b2: 2104 movs r1, #4
1b4: 430a orrs r2, r1
1b6: 605a str r2, [r3, #4]
with compile option of -O1:
0000016c <configure_clocks>:
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:102
16c: b500 push {lr}
16e: 4b98 ldr r3, [pc, #608] ; (3d0 <HEAP_SIZE+0x1d0>)
170: 2280 movs r2, #128 ; 0x80
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:106
172: 0052 lsls r2, r2, #1
174: 609a str r2, [r3, #8]
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:107
176: 4b97 ldr r3, [pc, #604] ; (3d4 <HEAP_SIZE+0x1d4>)
178: 3afd subs r2, #253 ; 0xfd
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:108
17a: 609a str r2, [r3, #8]
17c: 4a96 ldr r2, [pc, #600] ; (3d8 <HEAP_SIZE+0x1d8>)
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:109
17e: 6853 ldr r3, [r2, #4]
180: 2104 movs r1, #4
182: 430b orrs r3, r1
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:113
184: 6053 str r3, [r2, #4]
186: 2380 movs r3, #128 ; 0x80
D:\Projects\SECA\LoRa\firmware/src/drivers/sercom/sercom.cpp:114
188: 05db lsls r3, r3, #23
18a: 789b ldrb r3, [r3, #2]