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

   ## Summary
   
   1. arch/tricore: add support of tricore gcc toolchain
   
   Toolchain Upstream:
   https://github.com/EEESlab/tricore-gcc-toolchain-11.3.0
   
   
   2. arch/tricore: fix compiler warning on GCC toolchain
   
   ```
   tc3xx/tc3xx_timerisr.c: In function ‘up_timer_initialize’:
   tc3xx/tc3xx_timerisr.c:58:39: warning: passing argument 1 of 
‘tricore_systimer_initialize’ discards ‘volatile’ qualifier from pointer target 
type [-Wdiscarded-qualifiers]
      58 |   lower = tricore_systimer_initialize(&MODULE_STM0, 192, 
SCU_FREQUENCY);
   In file included from tc3xx/tc3xx_timerisr.c:31:
   nuttx/arch/tricore/src/common/tricore_internal.h:252:35: note: expected 
‘void *’ but argument is of type ‘volatile Ifx_STM *’ {aka ‘volatile struct 
_Ifx_STM *’}
     252 | tricore_systimer_initialize(void *tbase, int irq, uint64_t freq);
         |                             ~~~~~~^~~~~
   tc3xx/tc3xx_serial.c:177:16: warning: initialization discards ‘volatile’ 
qualifier from pointer target type [-Wdiscarded-qualifiers]
     177 |   .uartbase  = &MODULE_ASCLIN0,
         |                ^
   tc3xx/tc3xx_serial.c:178:16: warning: initialization discards ‘const’ 
qualifier from pointer target type [-Wdiscarded-qualifiers]
     178 |   .pins      = &g_uart0_pins,
         |                ^
   common/tricore_trapcall.c: In function ‘tricore_trapcall’:
   common/tricore_trapcall.c:66:3: warning: passing argument 4 of ‘_assert’ 
discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      66 |   PANIC_WITH_REGS("Trap", CURRENT_REGS);
         |   ^~~~~~~~~~~~~~~
   In file included from common/tricore_trapcall.c:29:
   nuttx/include/assert.h:189:45: note: expected ‘void *’ but argument is of 
type ‘volatile uintptr_t *’ {aka ‘volatile long unsigned int *’}
     189 |              FAR const char *msg, FAR void *regs);
   ```
   
   Signed-off-by: chao an <[email protected]>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ci-check


-- 
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