public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/30678]  New: sysmacros.h get currupt from Fixincludes with updated glibc.
@ 2007-02-02  9:34 ron3763 at msn dot com
  2007-02-02 10:39 ` [Bug bootstrap/30678] " franke dot daniel at gmail dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: ron3763 at msn dot com @ 2007-02-02  9:34 UTC (permalink / raw)
  To: gcc-bugs

Hi all, 

Frank, Bruce, I added you both to the cc line as you where the last to touch
what appears to me to be a fix up problem where one isn't needed.  This also
may occur farther down in the bootstrap, but atm is in stage1.

Notes:
glibc is 20070111 with the patch set to make it C99 compliant with the new
compiler std of handing inline's.

Here is a snippet of sysmacros.h from glibc now followed by what the compiler
chocked on during stage one bootstrap.  Separated by equals.  Also I included
below that, some text showing the compile break.

You will notice I hope the dangling for munged test where only thing left are
two "__" underscores on a line, which list I checked isn't valid C/C++ ;)

Thank you,
Ron
========================================
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H        1

#include <features.h>

/* If the compiler does not know long long it is out of luck.  We are
   not going to hack weird hacks to support the dev_t representation
   they need.  */
#ifdef __GLIBC_HAVE_LONG_LONG
__extension__
__extern_inline unsigned int gnu_dev_major (unsigned long long int __dev)
     __THROW;
__extension__
__extern_inline unsigned int gnu_dev_minor (unsigned long long int __dev)
     __THROW;
__extension__
__extern_inline unsigned long long int gnu_dev_makedev (unsigned int __major,
                                                        unsigned int __minor)
     __THROW;

# if defined __GNUC__ && __GNUC__ >= 2
__extension__ __extern_inline unsigned int
__NTH (gnu_dev_major (unsigned long long int __dev))
{
  return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}

__extension__ __extern_inline unsigned int
__NTH (gnu_dev_minor (unsigned long long int __dev))
{
  return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}

__extension__ __extern_inline unsigned long long int
__NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
{
  return ((__minor & 0xff) | ((__major & 0xfff) << 8)
          | (((unsigned long long int) (__minor & ~0xff)) << 12)
          | (((unsigned long long int) (__major & ~0xfff)) << 32));
}
# endif

=======================================================
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H        1

#include <features.h>

/* If the compiler does not know long long it is out of luck.  We are
   not going to hack weird hacks to support the dev_t representation
   they need.  */
#ifdef __GLIBC_HAVE_LONG_LONG
__extension__
__
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int gnu_dev_major (unsigned long long int __dev)
     __THROW;
__extension__
__
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int gnu_dev_minor (unsigned long long int __dev)
     __THROW;
__extension__
__
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned long long int gnu_dev_makedev (unsigned int __major,
                                                        unsigned int __minor)
     __THROW;

# if defined __GNUC__ && __GNUC__ >= 2
__extension__ __
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int
__NTH (gnu_dev_major (unsigned long long int __dev))
{
  return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}

__extension__ __
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int
__NTH (gnu_dev_minor (unsigned long long int __dev))
{
  return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}

__extension__ __
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned long long int
__NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
{
  return ((__minor & 0xff) | ((__major & 0xfff) << 8)
          | (((unsigned long long int) (__minor & ~0xff)) << 12)
          | (((unsigned long long int) (__major & ~0xfff)) << 32));
}
# endif

================================================================

var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-O -O2  -O2 -pipe -fomit-frame-pointer -O2 -march=core2 -mtune=core2 -mssse3 
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/.
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../include
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../libdecnumber
-I../../libdecnumber -o _clear_cache.o -MT _clear_cache.o -MD -MP -MF
_clear_cache.dep -DL_clear_cache -c
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/sys/sysmacros.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/types.h:223,
                 from /usr/include/sys/types.h:8,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/tsystem.h:93,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c:33:
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:42:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:49:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:56:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:65:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:75:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:85:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/sys/sysmacros.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/types.h:223,
                 from /usr/include/sys/types.h:8,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/tsystem.h:93,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c:33:
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:42:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:49:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:56:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:65:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:75:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:85:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/sys/sysmacros.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/types.h:223,
                 from /usr/include/sys/types.h:8,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/tsystem.h:93,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c:33:
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:42:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:49:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:56:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:65:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:75:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:85:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/sys/sysmacros.h:8,


-- 
           Summary: sysmacros.h get currupt from Fixincludes with updated
                    glibc.
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ron3763 at msn dot com
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-03-01  5:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02  9:34 [Bug bootstrap/30678] New: sysmacros.h get currupt from Fixincludes with updated glibc ron3763 at msn dot com
2007-02-02 10:39 ` [Bug bootstrap/30678] " franke dot daniel at gmail dot com
2007-02-02 14:57 ` bkorb at gnu dot org
2007-02-02 21:22 ` ron3763 at msn dot com
2007-02-02 21:32 ` bkorb at gnu dot org
2007-02-03 18:32 ` bkorb at gnu dot org
2007-02-03 19:33 ` ron3763 at msn dot com
2007-02-03 20:37 ` bkorb at gnu dot org
2007-02-04 11:32 ` ron3763 at msn dot com
2007-02-04 22:24 ` tkoenig at gcc dot gnu dot org
2007-02-04 23:06 ` ron3763 at msn dot com
2007-02-04 23:07 ` ron3763 at msn dot com
2007-02-07 20:05 ` [Bug bootstrap/30678] [4.3 regression] " tkoenig at gcc dot gnu dot org
2007-02-07 21:02 ` bkorb at gnu dot org
2007-02-08 20:26 ` tkoenig at gcc dot gnu dot org
2007-02-08 20:53 ` bkorb at gnu dot org
2007-02-08 21:38 ` pinskia at gcc dot gnu dot org
2007-02-09 21:45 ` pinskia at gcc dot gnu dot org
2007-03-01  5:08 ` b33fc0d3 at gmail dot com

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 read-only IMAP folder(s) and NNTP newsgroup(s).