public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/31932]  New: no values accepted for --encoding options except UTF-8
@ 2007-05-15 10:18 serg at vostok dot net
  2007-05-15 10:25 ` [Bug java/31932] " serg at vostok dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: serg at vostok dot net @ 2007-05-15 10:18 UTC (permalink / raw)
  To: java-prs

Parts of gcc are compiled without libiconv even if it's present in the system
and --with-libiconv-prefix specified correctly.

The reason for this is usage of HAVE_ICONV_H macro.

1. The check for iconv.h in configure does not use the value of
--with-libiconv-prefix option.

2. HAVE_ICONV_H is useless because check for libiconv uses iconv.h anyway.

3. HAVE_ICONV is changed in some source files like this:

#ifndef HAVE_ICONV_H
#undef HAVE_ICONV
#endif

- which is inherently incorrect in and of itself: any information produced by
configure must not be changed in the source code. If configure tests don't work
right - fix them, but all source code must be compiled with the same global
settings.


-- 
           Summary: no values accepted for --encoding options except UTF-8
           Product: gcc
           Version: 4.1.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: serg at vostok dot net
 GCC build triplet: i386-portbld-freebsd6.2
  GCC host triplet: i386-portbld-freebsd6.2
GCC target triplet: i386-portbld-freebsd6.2


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


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

* [Bug java/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
@ 2007-05-15 10:25 ` serg at vostok dot net
  2007-05-15 14:33 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: serg at vostok dot net @ 2007-05-15 10:25 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from serg at vostok dot net  2007-05-15 11:25 -------
Created an attachment (id=13557)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13557&action=view)
Removes HAVE_ICONV_H from source code.

This should fix the bug. And, probably, some other problems with gcc not using
iconv.


-- 


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


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

* [Bug java/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
  2007-05-15 10:25 ` [Bug java/31932] " serg at vostok dot net
@ 2007-05-15 14:33 ` pinskia at gcc dot gnu dot org
  2007-05-15 16:29 ` [Bug libstdc++/31932] " serg at vostok dot net
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-15 14:33 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-05-15 15:33 -------
This code has been removed in 4.3.0 anyways as the java source parser is gone. 
Only the bytecode parser exists on the trunk.


-- 


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


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

* [Bug libstdc++/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
  2007-05-15 10:25 ` [Bug java/31932] " serg at vostok dot net
  2007-05-15 14:33 ` pinskia at gcc dot gnu dot org
@ 2007-05-15 16:29 ` serg at vostok dot net
  2007-05-15 18:30 ` [Bug java/31932] " pcarlini at suse dot de
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: serg at vostok dot net @ 2007-05-15 16:29 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from serg at vostok dot net  2007-05-15 17:29 -------
(In reply to comment #2)
> This code has been removed in 4.3.0 anyways as the java source parser is gone. 
> Only the bytecode parser exists on the trunk.

That still means 4.1 and 4.2 branches can be fixed.

Also not only java source parser is affected: libcpp/internal.h has this bug
too. I just don't know how to expose it there.

Which component should I tag as buggy? libstdc++?


-- 

serg at vostok dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serg at vostok dot net
          Component|java                        |libstdc++


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


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

* [Bug java/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (2 preceding siblings ...)
  2007-05-15 16:29 ` [Bug libstdc++/31932] " serg at vostok dot net
@ 2007-05-15 18:30 ` pcarlini at suse dot de
  2007-05-15 18:41 ` tromey at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pcarlini at suse dot de @ 2007-05-15 18:30 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from pcarlini at suse dot de  2007-05-15 19:30 -------
I don't think libstdc++ (the C++ runtime library) has anything to do with this.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libstdc++                   |java


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


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

* [Bug java/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (3 preceding siblings ...)
  2007-05-15 18:30 ` [Bug java/31932] " pcarlini at suse dot de
@ 2007-05-15 18:41 ` tromey at gcc dot gnu dot org
  2007-05-15 18:43 ` [Bug preprocessor/31932] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-05-15 18:41 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from tromey at gcc dot gnu dot org  2007-05-15 19:41 -------
The patch is incomplete, as libcpp/configure.in still checks for iconv.h.

Anyway the best thing to do here is submit a patch or patches to the
gcc patch list.  Include a ChangeLog entry, etc.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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


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

* [Bug preprocessor/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (4 preceding siblings ...)
  2007-05-15 18:41 ` tromey at gcc dot gnu dot org
@ 2007-05-15 18:43 ` pinskia at gcc dot gnu dot org
  2007-05-15 19:08 ` serg at vostok dot net
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-15 18:43 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-05-15 19:43 -------
libcpp is the C PreProcessor (not the standard C++ library).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|java                        |preprocessor


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


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

* [Bug preprocessor/31932] no values accepted for --encoding options except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (5 preceding siblings ...)
  2007-05-15 18:43 ` [Bug preprocessor/31932] " pinskia at gcc dot gnu dot org
@ 2007-05-15 19:08 ` serg at vostok dot net
  2007-05-15 19:34 ` [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values " serg at vostok dot net
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: serg at vostok dot net @ 2007-05-15 19:08 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from serg at vostok dot net  2007-05-15 20:08 -------
Created an attachment (id=13562)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13562&action=view)
Removes HAVE_ICONV_H from source code.

Added libcpp/configure and libcpp/configure.ac to the patch.


-- 

serg at vostok dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #13557|0                           |1
        is obsolete|                            |


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


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

* [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (6 preceding siblings ...)
  2007-05-15 19:08 ` serg at vostok dot net
@ 2007-05-15 19:34 ` serg at vostok dot net
  2009-03-29 23:48 ` jsm28 at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: serg at vostok dot net @ 2007-05-15 19:34 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from serg at vostok dot net  2007-05-15 20:34 -------
(In reply to comment #6)
> libcpp is the C PreProcessor (not the standard C++ library).

Thanks. Now I know how to expose the bug here as well. It's -f*-charset options
of cpp.


-- 

serg at vostok dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|no values accepted for --   |cpp -f*-charset and gcj --
                   |encoding options except UTF-|encoding accept no values
                   |8                           |except UTF-8


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


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

* [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (7 preceding siblings ...)
  2007-05-15 19:34 ` [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values " serg at vostok dot net
@ 2009-03-29 23:48 ` jsm28 at gcc dot gnu dot org
  2009-03-30 20:54 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-29 23:48 UTC (permalink / raw)
  To: java-prs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-03-29 23:48:10
               date|                            |


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


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

* [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (8 preceding siblings ...)
  2009-03-29 23:48 ` jsm28 at gcc dot gnu dot org
@ 2009-03-30 20:54 ` tromey at gcc dot gnu dot org
  2009-03-30 20:57 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-03-30 20:54 UTC (permalink / raw)
  To: java-prs



------- Comment #9 from tromey at gcc dot gnu dot org  2009-03-30 20:54 -------
Subject: Bug 31932

Author: tromey
Date: Mon Mar 30 20:54:18 2009
New Revision: 145316

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145316
Log:
2009-03-30  Sergiy Vyshnevetskiy  <serg@vostok.net>

        PR preprocessor/31932:
        * internal.h: Don't mention HAVE_ICONV_H.
        * configure, config.in: Rebuild.
        * configure.ac: Don't check for iconv.h.

Modified:
    trunk/libcpp/ChangeLog
    trunk/libcpp/config.in
    trunk/libcpp/configure
    trunk/libcpp/configure.ac
    trunk/libcpp/internal.h


-- 


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


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

* [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (9 preceding siblings ...)
  2009-03-30 20:54 ` tromey at gcc dot gnu dot org
@ 2009-03-30 20:57 ` tromey at gcc dot gnu dot org
  2009-03-30 20:57 ` tromey at gcc dot gnu dot org
  2009-04-16 19:05 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-03-30 20:57 UTC (permalink / raw)
  To: java-prs



------- Comment #11 from tromey at gcc dot gnu dot org  2009-03-30 20:57 -------
Oops, updated wrong field.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.5.0                       |
      Known to work|                            |4.5.0


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


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

* [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (10 preceding siblings ...)
  2009-03-30 20:57 ` tromey at gcc dot gnu dot org
@ 2009-03-30 20:57 ` tromey at gcc dot gnu dot org
  2009-04-16 19:05 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-03-30 20:57 UTC (permalink / raw)
  To: java-prs



------- Comment #10 from tromey at gcc dot gnu dot org  2009-03-30 20:57 -------
I checked in the fix on the trunk.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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


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

* [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values except UTF-8
  2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
                   ` (11 preceding siblings ...)
  2009-03-30 20:57 ` tromey at gcc dot gnu dot org
@ 2009-04-16 19:05 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-16 19:05 UTC (permalink / raw)
  To: java-prs



------- Comment #12 from pinskia at gcc dot gnu dot org  2009-04-16 19:05 -------
Fixed so closing.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-04-16 19:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-15 10:18 [Bug java/31932] New: no values accepted for --encoding options except UTF-8 serg at vostok dot net
2007-05-15 10:25 ` [Bug java/31932] " serg at vostok dot net
2007-05-15 14:33 ` pinskia at gcc dot gnu dot org
2007-05-15 16:29 ` [Bug libstdc++/31932] " serg at vostok dot net
2007-05-15 18:30 ` [Bug java/31932] " pcarlini at suse dot de
2007-05-15 18:41 ` tromey at gcc dot gnu dot org
2007-05-15 18:43 ` [Bug preprocessor/31932] " pinskia at gcc dot gnu dot org
2007-05-15 19:08 ` serg at vostok dot net
2007-05-15 19:34 ` [Bug preprocessor/31932] cpp -f*-charset and gcj --encoding accept no values " serg at vostok dot net
2009-03-29 23:48 ` jsm28 at gcc dot gnu dot org
2009-03-30 20:54 ` tromey at gcc dot gnu dot org
2009-03-30 20:57 ` tromey at gcc dot gnu dot org
2009-03-30 20:57 ` tromey at gcc dot gnu dot org
2009-04-16 19:05 ` pinskia at gcc dot gnu dot org

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