LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Compile-time error with gcc-4.3 on sparc64
@ 2008-01-09 9:31 David Martin
2008-01-09 11:46 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: David Martin @ 2008-01-09 9:31 UTC (permalink / raw)
To: linux-kernel
Hi,
I get the following error compiling latest kernel from git on sparc64
using gcc-4.3:
CC arch/sparc64/kernel/signal.o
cc1: warnings being treated as errors
arch/sparc64/kernel/signal.c: En la función 'do_notify_resume':
include/asm/uaccess.h:233: error: el subíndice de la matriz está por
arriba de los límites de la matriz
make[1]: *** [arch/sparc64/kernel/signal.o] Error 1
make: *** [arch/sparc64/kernel] Error 2
("On function 'do_notify resume: error: matrix subindex is over matrix limits")
Compiling with gcc-4.2 it doesn't fail, neither a warning.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compile-time error with gcc-4.3 on sparc64
2008-01-09 9:31 Compile-time error with gcc-4.3 on sparc64 David Martin
@ 2008-01-09 11:46 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-01-09 11:46 UTC (permalink / raw)
To: taldmd; +Cc: linux-kernel, sparclinux
From: "David Martin" <taldmd@gmail.com>
Date: Wed, 9 Jan 2008 10:31:45 +0100
Please report sparc problems to the Sparc mailing list,
sparclinux@vger.kernel.org, thanks.
> I get the following error compiling latest kernel from git on sparc64
> using gcc-4.3:
>
> CC arch/sparc64/kernel/signal.o
> cc1: warnings being treated as errors
> arch/sparc64/kernel/signal.c: En la función 'do_notify_resume':
> include/asm/uaccess.h:233: error: el subíndice de la matriz está por
> arriba de los límites de la matriz
> make[1]: *** [arch/sparc64/kernel/signal.o] Error 1
> make: *** [arch/sparc64/kernel] Error 2
>
> ("On function 'do_notify resume: error: matrix subindex is over matrix limits")
I think you mean "array" instead of "matrix" in your translation.
In fact, you should rerun should build failures with "LANG=C"
for the benefit of people reading your report.
Something is very wrong with the compiler, do_notify_resume() reads:
void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0, int restart_syscall,
unsigned long thread_info_flags)
{
if (thread_info_flags & (_TIF_SIGPENDING | _TIF_RESTORE_SIGMASK))
do_signal(regs, orig_i0, restart_syscall);
}
uaccess.h, line 233 is:
static inline unsigned long __must_check
copy_to_user(void __user *to, const void *from, unsigned long size)
{
unsigned long ret = ___copy_to_user(to, from, size);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
copy_to_user() isn't being called in do_notify_resume() at all.
Perhaps it's probably warning about some call to copy_to_user() that
results from the inline expansion of do_signal() and all sub-calls.
But it's a bug that GCC isn't indicating exactly where the problem is,
and in what specific function. My guess is that it's losing context
during all of the inline expansions.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-09 11:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 9:31 Compile-time error with gcc-4.3 on sparc64 David Martin
2008-01-09 11:46 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).