[Bug c/77410] New: macro reference supplied as macro reference argument is not expanded

2016-08-29 Thread af804 at bfn dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77410

Bug ID: 77410
   Summary: macro reference supplied as macro reference argument
is not expanded
   Product: gcc
   Version: 5.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: af804 at bfn dot org
  Target Milestone: ---

Created attachment 39516
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39516&action=edit
utl1.c - demonstrates macro expansion problem

linux (built from source)
kernel 3.18.1
Target: x86_64-unknown-linux-gnu
Configured with: /home/jhart/temp5/gcc-5.3.0/configure --prefix=/usr
--enable-languages=c,c++,fortran --disable-multilib
Thread model: posix
gcc version 5.3.0 (GCC)

to compile : gcc utl1.c -o utl1.o

message {
utl1.c:5:6: error: conflicting types for 'MDNMx'
 void MDNMx(void);
  ^
utl1.c:3:8: note: previous declaration of 'MDNMx' was here
 int m1(MDNM)(void);
^
utl1.c:2:18: note: in definition of macro 'm1'
 #define m1(mdnm) mdnm##x
}

MDNM macro is not expanded for m1 macro reference
if utl1 is used in place of MDNM macro reference in m1 reference argument,
   conflict report is correct

[Bug c/34748] cc1 fails with "Not a directory" on trivial file

2008-01-16 Thread af804 at bfn dot org


--- Comment #1 from af804 at bfn dot org  2008-01-16 09:02 ---
tried fresh build with --libexecdir=/usr/lib, problem disappeared, suspect
contamination from previous build


-- 


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



[Bug c/34748] New: cc1 fails with "Not a directory" on trivial file

2008-01-12 Thread af804 at bfn dot org
In a gcc invocation, cc1 fails with a "Not a directory" error when compiling a
trivial file if there is a file (not a directory) named "lib" in the parent to
the working directory.

To recreate it:

bash-3.2# mkdir temp
bash-3.2# cd temp
bash-3.2# mkdir temp1
bash-3.2# touch lib
bash-3.2# cd temp1
bash-3.2# cat>utl1.c< void fun1(){}
> EOF
bash-3.2# gcc -c utl1.c
cc1: error: ../lib/gcc/i686-pc-linux-gnu/4.2.1/include: Not a directory
cc1: error:
../lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/include: Not a
directory

gcc was built as follows:

../gcc-4.2.1/configure --prefix=/usr\
 --libexecdir=/usr/lib --enable-shared --enable-threads=posix\
 --enable-__cxa_atexit --enable-languages=c,c++\
 --disable-bootstrap

make
make install

when run verbosely, gcc produces the following output:
bash-3.2# gcc -c -v utl1.c
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.1/configure --prefix=/usr --libexecdir=/usr/lib
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 4.2.1
 /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/cc1 -quiet -v -iprefix
../lib/gcc/i686-pc-linux-gnu/4.2.1/ utl1.c -quiet -dumpbase utl1.c
-mtune=generic -auxbase utl1 -version -o /tmp/ccsAiCrL.s
cc1: error: ../lib/gcc/i686-pc-linux-gnu/4.2.1/include: Not a directory
cc1: error:
../lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/include: Not a
directory
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/include
 /usr/include
End of search list.
GNU C version 4.2.1 (i686-pc-linux-gnu)
compiled by GNU C version 4.2.1.
GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=97102


-- 
   Summary: cc1 fails with "Not a directory" on trivial file
   Product: gcc
   Version: 4.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
    AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: af804 at bfn dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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