http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48403

--- Comment #39 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-04-04 
22:27:26 UTC ---
(In reply to comment #37)

> Confirmed.  Reduced testcase for -O2:
> 
> typedef __builtin_va_list va_list;
> 
> extern void exit (unsigned);
> extern int vfprintf (void *s, const char *format, va_list arg);
> extern void *stderr;
> 
> void fatal (const char *format, ...)
> {
>   va_list ap;
>   __builtin_va_start(ap,format);
>   vfprintf (stderr, format, ap);
>   __builtin_va_end(ap);
>   exit (1);
> }

mips64-linux, right?

$ ./cc1 ebtc.c -O2
fatal
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <early_local_cleanups> <whole-program>
<ipa-profile> <cp> <inline> <pure-const> <static-var>Assembling functions:
 fatal
Execution times (seconds)
 df scan insns         :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 (20%) wall   
   0 kB ( 0%) ggc
 parser                :   0.01 (100%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall  
  155 kB (22%) ggc
 TOTAL                 :   0.01             0.00             0.05              
 701 kB
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --enable-checking=release to disable checks.
$

How did you configure the toolchain?

Reply via email to